From 01ad9ecf1b302f4b84b7bb992ed8f6b9d3d0839f Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 7 Mar 2022 15:55:04 -0500 Subject: [PATCH] docs: updated copyright (#234) PiperOrigin-RevId: 431035391 Source-Link: https://github.com/googleapis/googleapis/commit/4b39bf110a91309c9f2bd15dd7f4ae67b792ce41 Source-Link: https://github.com/googleapis/googleapis-gen/commit/c2f48252c7a7d8d58dfe1c86ea18d4f01cdc119e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzJmNDgyNTJjN2E3ZDhkNThkZmUxYzg2ZWExOGQ0ZjAxY2RjMTE5ZSJ9 See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md PiperOrigin-RevId: 431547560 Source-Link: https://github.com/googleapis/googleapis/commit/8df2b3aaf9ee8c245f6d27d9f5627697c890a863 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4bb2092fa3a94dee5331fc580691c6fdd62237a7 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGJiMjA5MmZhM2E5NGRlZTUzMzFmYzU4MDY5MWM2ZmRkNjIyMzdhNyJ9 See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../dialogflow/cx/v3/advanced_settings.proto | 4 +- .../google/cloud/dialogflow/cx/v3/agent.proto | 3 +- .../cloud/dialogflow/cx/v3/audio_config.proto | 4 +- .../cloud/dialogflow/cx/v3/changelog.proto | 3 +- .../cloud/dialogflow/cx/v3/deployment.proto | 4 +- .../cloud/dialogflow/cx/v3/entity_type.proto | 2 +- .../cloud/dialogflow/cx/v3/environment.proto | 3 +- .../cloud/dialogflow/cx/v3/experiment.proto | 2 +- .../google/cloud/dialogflow/cx/v3/flow.proto | 3 +- .../cloud/dialogflow/cx/v3/fulfillment.proto | 4 +- .../cloud/dialogflow/cx/v3/intent.proto | 4 +- .../google/cloud/dialogflow/cx/v3/page.proto | 3 +- .../dialogflow/cx/v3/response_message.proto | 3 +- .../dialogflow/cx/v3/security_settings.proto | 3 +- .../cloud/dialogflow/cx/v3/session.proto | 4 +- .../cx/v3/session_entity_type.proto | 2 +- .../cloud/dialogflow/cx/v3/test_case.proto | 2 +- .../cx/v3/transition_route_group.proto | 2 +- .../dialogflow/cx/v3/validation_message.proto | 5 +- .../cloud/dialogflow/cx/v3/version.proto | 7 +- .../cloud/dialogflow/cx/v3/webhook.proto | 2 +- .../cx/v3beta1/advanced_settings.proto | 4 +- .../cloud/dialogflow/cx/v3beta1/agent.proto | 3 +- .../dialogflow/cx/v3beta1/audio_config.proto | 4 +- .../dialogflow/cx/v3beta1/changelog.proto | 3 +- .../dialogflow/cx/v3beta1/deployment.proto | 4 +- .../dialogflow/cx/v3beta1/entity_type.proto | 2 +- .../dialogflow/cx/v3beta1/environment.proto | 3 +- .../dialogflow/cx/v3beta1/experiment.proto | 2 +- .../cloud/dialogflow/cx/v3beta1/flow.proto | 3 +- .../dialogflow/cx/v3beta1/fulfillment.proto | 4 +- .../cloud/dialogflow/cx/v3beta1/intent.proto | 4 +- .../cloud/dialogflow/cx/v3beta1/page.proto | 3 +- .../cx/v3beta1/response_message.proto | 3 +- .../cx/v3beta1/security_settings.proto | 3 +- .../cloud/dialogflow/cx/v3beta1/session.proto | 4 +- .../cx/v3beta1/session_entity_type.proto | 2 +- .../dialogflow/cx/v3beta1/test_case.proto | 2 +- .../cx/v3beta1/transition_route_group.proto | 2 +- .../cx/v3beta1/validation_message.proto | 5 +- .../cloud/dialogflow/cx/v3beta1/version.proto | 7 +- .../cloud/dialogflow/cx/v3beta1/webhook.proto | 2 +- .../protos/protos.d.ts | 46912 +++--- .../protos/protos.js | 124734 +++++++-------- .../protos/protos.json | 7582 +- 45 files changed, 89656 insertions(+), 89710 deletions(-) diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/advanced_settings.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/advanced_settings.proto index 6fba53ce91e..904faab84db 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/advanced_settings.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/advanced_settings.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,9 +16,7 @@ syntax = "proto3"; package google.cloud.dialogflow.cx.v3; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; -import "google/protobuf/duration.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/agent.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/agent.proto index 8c41dcd2295..f10a4c08324 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/agent.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/agent.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,7 +22,6 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/dialogflow/cx/v3/advanced_settings.proto"; import "google/cloud/dialogflow/cx/v3/flow.proto"; -import "google/cloud/dialogflow/cx/v3/security_settings.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/audio_config.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/audio_config.proto index d2551ff83cc..79eea1aad8d 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/audio_config.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/audio_config.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,11 +16,9 @@ syntax = "proto3"; package google.cloud.dialogflow.cx.v3; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/duration.proto"; -import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/changelog.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/changelog.proto index 997de1bb661..583055fdcf4 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/changelog.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/changelog.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,7 +20,6 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/deployment.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/deployment.proto index 022f6df39d9..f5831cc6490 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/deployment.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/deployment.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,8 +20,6 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/protobuf/empty.proto"; -import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/entity_type.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/entity_type.proto index a987bd4f908..92c689e3952 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/entity_type.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/entity_type.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/environment.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/environment.proto index e4e74864feb..f2e59c38c5e 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/environment.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/environment.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,7 +21,6 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/dialogflow/cx/v3/test_case.proto"; -import "google/cloud/dialogflow/cx/v3/webhook.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/experiment.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/experiment.proto index 203aa005ea0..6b5216dd5c0 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/experiment.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/experiment.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/flow.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/flow.proto index 98be51c4f7d..23d1bd8dfd8 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/flow.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/flow.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,7 +20,6 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/dialogflow/cx/v3/advanced_settings.proto"; import "google/cloud/dialogflow/cx/v3/page.proto"; import "google/cloud/dialogflow/cx/v3/validation_message.proto"; import "google/longrunning/operations.proto"; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/fulfillment.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/fulfillment.proto index 6e81155add7..1da35aae593 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/fulfillment.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/fulfillment.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,9 +16,7 @@ syntax = "proto3"; package google.cloud.dialogflow.cx.v3; -import "google/api/annotations.proto"; import "google/api/resource.proto"; -import "google/cloud/dialogflow/cx/v3/advanced_settings.proto"; import "google/cloud/dialogflow/cx/v3/response_message.proto"; import "google/protobuf/struct.proto"; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/intent.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/intent.proto index 48bc0f894a5..05160288496 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/intent.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/intent.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,10 +20,8 @@ import "google/api/annotations.proto"; 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/field_mask.proto"; -import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/page.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/page.proto index 694e4b6d440..66a57519557 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/page.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/page.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,7 +20,6 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/dialogflow/cx/v3/advanced_settings.proto"; import "google/cloud/dialogflow/cx/v3/fulfillment.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/response_message.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/response_message.proto index 6c0f10b0ca9..72a235714cd 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/response_message.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/response_message.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.dialogflow.cx.v3; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/protobuf/struct.proto"; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/security_settings.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/security_settings.proto index 190b6610fb4..0c48b16cbaa 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/security_settings.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/security_settings.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,7 +20,6 @@ import "google/api/annotations.proto"; 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/field_mask.proto"; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/session.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/session.proto index 0ef952f223c..4f49581d38a 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/session.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/session.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,9 +20,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/dialogflow/cx/v3/advanced_settings.proto"; import "google/cloud/dialogflow/cx/v3/audio_config.proto"; -import "google/cloud/dialogflow/cx/v3/flow.proto"; import "google/cloud/dialogflow/cx/v3/intent.proto"; import "google/cloud/dialogflow/cx/v3/page.proto"; import "google/cloud/dialogflow/cx/v3/response_message.proto"; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/session_entity_type.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/session_entity_type.proto index f9d298c48b5..cf9f1a4106f 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/session_entity_type.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/session_entity_type.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/test_case.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/test_case.proto index 3f698e19b6d..6530128741b 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/test_case.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/test_case.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/transition_route_group.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/transition_route_group.proto index 382254d9603..c84d7493de3 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/transition_route_group.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/transition_route_group.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/validation_message.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/validation_message.proto index 1263b4eea2d..fc7f2517182 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/validation_message.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/validation_message.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,9 +16,6 @@ syntax = "proto3"; package google.cloud.dialogflow.cx.v3; -import "google/api/annotations.proto"; -import "google/protobuf/struct.proto"; - option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/version.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/version.proto index 326c4850c88..636503d6c25 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/version.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/version.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,12 +20,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/dialogflow/cx/v3/entity_type.proto"; import "google/cloud/dialogflow/cx/v3/flow.proto"; -import "google/cloud/dialogflow/cx/v3/intent.proto"; -import "google/cloud/dialogflow/cx/v3/page.proto"; -import "google/cloud/dialogflow/cx/v3/transition_route_group.proto"; -import "google/cloud/dialogflow/cx/v3/webhook.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/webhook.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/webhook.proto index b2d7f36187c..99506a825c8 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/webhook.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/webhook.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/advanced_settings.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/advanced_settings.proto index 2f895d1c022..92b2176ca17 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/advanced_settings.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/advanced_settings.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,9 +16,7 @@ syntax = "proto3"; package google.cloud.dialogflow.cx.v3beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; -import "google/protobuf/duration.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1"; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/agent.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/agent.proto index 0322519c675..0511d499eac 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/agent.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/agent.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,7 +22,6 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/dialogflow/cx/v3beta1/advanced_settings.proto"; import "google/cloud/dialogflow/cx/v3beta1/flow.proto"; -import "google/cloud/dialogflow/cx/v3beta1/security_settings.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/audio_config.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/audio_config.proto index cd30c986742..8bf3300e327 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/audio_config.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/audio_config.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,11 +16,9 @@ syntax = "proto3"; package google.cloud.dialogflow.cx.v3beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/duration.proto"; -import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1"; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/changelog.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/changelog.proto index 55a75a86176..5ce64bbdc3e 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/changelog.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/changelog.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,7 +20,6 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/deployment.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/deployment.proto index fefff1e60ec..4b218e33701 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/deployment.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/deployment.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,8 +20,6 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/protobuf/empty.proto"; -import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/entity_type.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/entity_type.proto index fce78ba931a..7cf8033dee6 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/entity_type.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/entity_type.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/environment.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/environment.proto index a53460eaef8..a6b50b44ca8 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/environment.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/environment.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,7 +21,6 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/dialogflow/cx/v3beta1/test_case.proto"; -import "google/cloud/dialogflow/cx/v3beta1/webhook.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/experiment.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/experiment.proto index fce46f5536d..633bdfbf3d8 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/experiment.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/experiment.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/flow.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/flow.proto index 1d8e6c88ce2..b84a188b5d6 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/flow.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/flow.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,7 +20,6 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/dialogflow/cx/v3beta1/advanced_settings.proto"; import "google/cloud/dialogflow/cx/v3beta1/page.proto"; import "google/cloud/dialogflow/cx/v3beta1/validation_message.proto"; import "google/longrunning/operations.proto"; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto index 2c5cb541c1a..b908c44a494 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,9 +16,7 @@ syntax = "proto3"; package google.cloud.dialogflow.cx.v3beta1; -import "google/api/annotations.proto"; import "google/api/resource.proto"; -import "google/cloud/dialogflow/cx/v3beta1/advanced_settings.proto"; import "google/cloud/dialogflow/cx/v3beta1/response_message.proto"; import "google/protobuf/struct.proto"; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/intent.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/intent.proto index 5d69f8231e8..86505c30b1e 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/intent.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/intent.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,10 +20,8 @@ import "google/api/annotations.proto"; 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/field_mask.proto"; -import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1"; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/page.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/page.proto index 6b40859715c..299d7a36615 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/page.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/page.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,7 +20,6 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/dialogflow/cx/v3beta1/advanced_settings.proto"; import "google/cloud/dialogflow/cx/v3beta1/fulfillment.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto index 14535834d24..b7a69da6bf4 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.dialogflow.cx.v3beta1; -import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/protobuf/struct.proto"; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/security_settings.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/security_settings.proto index 9aebe74fd74..ecc742e332e 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/security_settings.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/security_settings.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,7 +20,6 @@ import "google/api/annotations.proto"; 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/field_mask.proto"; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/session.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/session.proto index e566ebf19c7..af075e78519 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/session.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/session.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,9 +20,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/dialogflow/cx/v3beta1/advanced_settings.proto"; import "google/cloud/dialogflow/cx/v3beta1/audio_config.proto"; -import "google/cloud/dialogflow/cx/v3beta1/flow.proto"; import "google/cloud/dialogflow/cx/v3beta1/intent.proto"; import "google/cloud/dialogflow/cx/v3beta1/page.proto"; import "google/cloud/dialogflow/cx/v3beta1/response_message.proto"; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/session_entity_type.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/session_entity_type.proto index d0f1f5241e6..dfb87f0305d 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/session_entity_type.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/session_entity_type.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/test_case.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/test_case.proto index d71656a2dd2..812f1269984 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/test_case.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/test_case.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/transition_route_group.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/transition_route_group.proto index fd3406f4b49..da632d8708c 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/transition_route_group.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/transition_route_group.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/validation_message.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/validation_message.proto index d2875bdfa79..5e6a26eab2b 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/validation_message.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/validation_message.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,9 +16,6 @@ syntax = "proto3"; package google.cloud.dialogflow.cx.v3beta1; -import "google/api/annotations.proto"; -import "google/protobuf/struct.proto"; - option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1"; option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3beta1;cx"; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/version.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/version.proto index 8fd47f5ffe9..6fed1db0671 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/version.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/version.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,12 +20,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/dialogflow/cx/v3beta1/entity_type.proto"; import "google/cloud/dialogflow/cx/v3beta1/flow.proto"; -import "google/cloud/dialogflow/cx/v3beta1/intent.proto"; -import "google/cloud/dialogflow/cx/v3beta1/page.proto"; -import "google/cloud/dialogflow/cx/v3beta1/transition_route_group.proto"; -import "google/cloud/dialogflow/cx/v3beta1/webhook.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/webhook.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/webhook.proto index 662a0458aa6..198feb142d8 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/webhook.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/webhook.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-dialogflow-cx/protos/protos.d.ts b/packages/google-cloud-dialogflow-cx/protos/protos.d.ts index 42ae3ba07cb..fb7868e2b6a 100644 --- a/packages/google-cloud-dialogflow-cx/protos/protos.d.ts +++ b/packages/google-cloud-dialogflow-cx/protos/protos.d.ts @@ -6896,1546 +6896,1662 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** Represents a SecuritySettingsService */ - class SecuritySettingsService extends $protobuf.rpc.Service { - - /** - * Constructs a new SecuritySettingsService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new SecuritySettingsService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SecuritySettingsService; - - /** - * Calls CreateSecuritySettings. - * @param request CreateSecuritySettingsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SecuritySettings - */ - public createSecuritySettings(request: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettingsCallback): void; - - /** - * Calls CreateSecuritySettings. - * @param request CreateSecuritySettingsRequest message or plain object - * @returns Promise - */ - public createSecuritySettings(request: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest): Promise; - - /** - * Calls GetSecuritySettings. - * @param request GetSecuritySettingsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SecuritySettings - */ - public getSecuritySettings(request: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3.SecuritySettingsService.GetSecuritySettingsCallback): void; - - /** - * Calls GetSecuritySettings. - * @param request GetSecuritySettingsRequest message or plain object - * @returns Promise - */ - public getSecuritySettings(request: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest): Promise; + /** AudioEncoding enum. */ + enum AudioEncoding { + AUDIO_ENCODING_UNSPECIFIED = 0, + AUDIO_ENCODING_LINEAR_16 = 1, + AUDIO_ENCODING_FLAC = 2, + AUDIO_ENCODING_MULAW = 3, + AUDIO_ENCODING_AMR = 4, + AUDIO_ENCODING_AMR_WB = 5, + AUDIO_ENCODING_OGG_OPUS = 6, + AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7 + } - /** - * Calls UpdateSecuritySettings. - * @param request UpdateSecuritySettingsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SecuritySettings - */ - public updateSecuritySettings(request: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettingsCallback): void; + /** SpeechModelVariant enum. */ + enum SpeechModelVariant { + SPEECH_MODEL_VARIANT_UNSPECIFIED = 0, + USE_BEST_AVAILABLE = 1, + USE_STANDARD = 2, + USE_ENHANCED = 3 + } - /** - * Calls UpdateSecuritySettings. - * @param request UpdateSecuritySettingsRequest message or plain object - * @returns Promise - */ - public updateSecuritySettings(request: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest): Promise; + /** Properties of a SpeechWordInfo. */ + interface ISpeechWordInfo { - /** - * Calls ListSecuritySettings. - * @param request ListSecuritySettingsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListSecuritySettingsResponse - */ - public listSecuritySettings(request: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3.SecuritySettingsService.ListSecuritySettingsCallback): void; + /** SpeechWordInfo word */ + word?: (string|null); - /** - * Calls ListSecuritySettings. - * @param request ListSecuritySettingsRequest message or plain object - * @returns Promise - */ - public listSecuritySettings(request: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest): Promise; + /** SpeechWordInfo startOffset */ + startOffset?: (google.protobuf.IDuration|null); - /** - * Calls DeleteSecuritySettings. - * @param request DeleteSecuritySettingsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public deleteSecuritySettings(request: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3.SecuritySettingsService.DeleteSecuritySettingsCallback): void; + /** SpeechWordInfo endOffset */ + endOffset?: (google.protobuf.IDuration|null); - /** - * Calls DeleteSecuritySettings. - * @param request DeleteSecuritySettingsRequest message or plain object - * @returns Promise - */ - public deleteSecuritySettings(request: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest): Promise; + /** SpeechWordInfo confidence */ + confidence?: (number|null); } - namespace SecuritySettingsService { - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#createSecuritySettings}. - * @param error Error, if any - * @param [response] SecuritySettings - */ - type CreateSecuritySettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SecuritySettings) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#getSecuritySettings}. - * @param error Error, if any - * @param [response] SecuritySettings - */ - type GetSecuritySettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SecuritySettings) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#updateSecuritySettings}. - * @param error Error, if any - * @param [response] SecuritySettings - */ - type UpdateSecuritySettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SecuritySettings) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#listSecuritySettings}. - * @param error Error, if any - * @param [response] ListSecuritySettingsResponse - */ - type ListSecuritySettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse) => void; + /** Represents a SpeechWordInfo. */ + class SpeechWordInfo implements ISpeechWordInfo { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#deleteSecuritySettings}. - * @param error Error, if any - * @param [response] Empty + * Constructs a new SpeechWordInfo. + * @param [properties] Properties to set */ - type DeleteSecuritySettingsCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - } - - /** Properties of a GetSecuritySettingsRequest. */ - interface IGetSecuritySettingsRequest { + constructor(properties?: google.cloud.dialogflow.cx.v3.ISpeechWordInfo); - /** GetSecuritySettingsRequest name */ - name?: (string|null); - } + /** SpeechWordInfo word. */ + public word: string; - /** Represents a GetSecuritySettingsRequest. */ - class GetSecuritySettingsRequest implements IGetSecuritySettingsRequest { + /** SpeechWordInfo startOffset. */ + public startOffset?: (google.protobuf.IDuration|null); - /** - * Constructs a new GetSecuritySettingsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest); + /** SpeechWordInfo endOffset. */ + public endOffset?: (google.protobuf.IDuration|null); - /** GetSecuritySettingsRequest name. */ - public name: string; + /** SpeechWordInfo confidence. */ + public confidence: number; /** - * Creates a new GetSecuritySettingsRequest instance using the specified properties. + * Creates a new SpeechWordInfo instance using the specified properties. * @param [properties] Properties to set - * @returns GetSecuritySettingsRequest instance + * @returns SpeechWordInfo instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest): google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ISpeechWordInfo): google.cloud.dialogflow.cx.v3.SpeechWordInfo; /** - * Encodes the specified GetSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest.verify|verify} messages. - * @param message GetSecuritySettingsRequest message or plain object to encode + * Encodes the specified SpeechWordInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SpeechWordInfo.verify|verify} messages. + * @param message SpeechWordInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ISpeechWordInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest.verify|verify} messages. - * @param message GetSecuritySettingsRequest message or plain object to encode + * Encodes the specified SpeechWordInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SpeechWordInfo.verify|verify} messages. + * @param message SpeechWordInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ISpeechWordInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSecuritySettingsRequest message from the specified reader or buffer. + * Decodes a SpeechWordInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetSecuritySettingsRequest + * @returns SpeechWordInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SpeechWordInfo; /** - * Decodes a GetSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a SpeechWordInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetSecuritySettingsRequest + * @returns SpeechWordInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SpeechWordInfo; /** - * Verifies a GetSecuritySettingsRequest message. + * Verifies a SpeechWordInfo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SpeechWordInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetSecuritySettingsRequest + * @returns SpeechWordInfo */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SpeechWordInfo; /** - * Creates a plain object from a GetSecuritySettingsRequest message. Also converts values to other types if specified. - * @param message GetSecuritySettingsRequest + * Creates a plain object from a SpeechWordInfo message. Also converts values to other types if specified. + * @param message SpeechWordInfo * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.SpeechWordInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSecuritySettingsRequest to JSON. + * Converts this SpeechWordInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateSecuritySettingsRequest. */ - interface IUpdateSecuritySettingsRequest { + /** Properties of an InputAudioConfig. */ + interface IInputAudioConfig { - /** UpdateSecuritySettingsRequest securitySettings */ - securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings|null); + /** InputAudioConfig audioEncoding */ + audioEncoding?: (google.cloud.dialogflow.cx.v3.AudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3.AudioEncoding|null); - /** UpdateSecuritySettingsRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** InputAudioConfig sampleRateHertz */ + sampleRateHertz?: (number|null); + + /** InputAudioConfig enableWordInfo */ + enableWordInfo?: (boolean|null); + + /** InputAudioConfig phraseHints */ + phraseHints?: (string[]|null); + + /** InputAudioConfig model */ + model?: (string|null); + + /** InputAudioConfig modelVariant */ + modelVariant?: (google.cloud.dialogflow.cx.v3.SpeechModelVariant|keyof typeof google.cloud.dialogflow.cx.v3.SpeechModelVariant|null); + + /** InputAudioConfig singleUtterance */ + singleUtterance?: (boolean|null); } - /** Represents an UpdateSecuritySettingsRequest. */ - class UpdateSecuritySettingsRequest implements IUpdateSecuritySettingsRequest { + /** Represents an InputAudioConfig. */ + class InputAudioConfig implements IInputAudioConfig { /** - * Constructs a new UpdateSecuritySettingsRequest. + * Constructs a new InputAudioConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IInputAudioConfig); - /** UpdateSecuritySettingsRequest securitySettings. */ - public securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings|null); + /** InputAudioConfig audioEncoding. */ + public audioEncoding: (google.cloud.dialogflow.cx.v3.AudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3.AudioEncoding); - /** UpdateSecuritySettingsRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** InputAudioConfig sampleRateHertz. */ + public sampleRateHertz: number; + + /** InputAudioConfig enableWordInfo. */ + public enableWordInfo: boolean; + + /** InputAudioConfig phraseHints. */ + public phraseHints: string[]; + + /** InputAudioConfig model. */ + public model: string; + + /** InputAudioConfig modelVariant. */ + public modelVariant: (google.cloud.dialogflow.cx.v3.SpeechModelVariant|keyof typeof google.cloud.dialogflow.cx.v3.SpeechModelVariant); + + /** InputAudioConfig singleUtterance. */ + public singleUtterance: boolean; /** - * Creates a new UpdateSecuritySettingsRequest instance using the specified properties. + * Creates a new InputAudioConfig instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateSecuritySettingsRequest instance + * @returns InputAudioConfig instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest): google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IInputAudioConfig): google.cloud.dialogflow.cx.v3.InputAudioConfig; /** - * Encodes the specified UpdateSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest.verify|verify} messages. - * @param message UpdateSecuritySettingsRequest message or plain object to encode + * Encodes the specified InputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.InputAudioConfig.verify|verify} messages. + * @param message InputAudioConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IInputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest.verify|verify} messages. - * @param message UpdateSecuritySettingsRequest message or plain object to encode + * Encodes the specified InputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.InputAudioConfig.verify|verify} messages. + * @param message InputAudioConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IInputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateSecuritySettingsRequest message from the specified reader or buffer. + * Decodes an InputAudioConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateSecuritySettingsRequest + * @returns InputAudioConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.InputAudioConfig; /** - * Decodes an UpdateSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * Decodes an InputAudioConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateSecuritySettingsRequest + * @returns InputAudioConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.InputAudioConfig; /** - * Verifies an UpdateSecuritySettingsRequest message. + * Verifies an InputAudioConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an InputAudioConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateSecuritySettingsRequest + * @returns InputAudioConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.InputAudioConfig; /** - * Creates a plain object from an UpdateSecuritySettingsRequest message. Also converts values to other types if specified. - * @param message UpdateSecuritySettingsRequest + * Creates a plain object from an InputAudioConfig message. Also converts values to other types if specified. + * @param message InputAudioConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.InputAudioConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateSecuritySettingsRequest to JSON. + * Converts this InputAudioConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListSecuritySettingsRequest. */ - interface IListSecuritySettingsRequest { + /** SsmlVoiceGender enum. */ + enum SsmlVoiceGender { + SSML_VOICE_GENDER_UNSPECIFIED = 0, + SSML_VOICE_GENDER_MALE = 1, + SSML_VOICE_GENDER_FEMALE = 2, + SSML_VOICE_GENDER_NEUTRAL = 3 + } - /** ListSecuritySettingsRequest parent */ - parent?: (string|null); + /** Properties of a VoiceSelectionParams. */ + interface IVoiceSelectionParams { - /** ListSecuritySettingsRequest pageSize */ - pageSize?: (number|null); + /** VoiceSelectionParams name */ + name?: (string|null); - /** ListSecuritySettingsRequest pageToken */ - pageToken?: (string|null); + /** VoiceSelectionParams ssmlGender */ + ssmlGender?: (google.cloud.dialogflow.cx.v3.SsmlVoiceGender|keyof typeof google.cloud.dialogflow.cx.v3.SsmlVoiceGender|null); } - /** Represents a ListSecuritySettingsRequest. */ - class ListSecuritySettingsRequest implements IListSecuritySettingsRequest { + /** Represents a VoiceSelectionParams. */ + class VoiceSelectionParams implements IVoiceSelectionParams { /** - * Constructs a new ListSecuritySettingsRequest. + * Constructs a new VoiceSelectionParams. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest); - - /** ListSecuritySettingsRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.dialogflow.cx.v3.IVoiceSelectionParams); - /** ListSecuritySettingsRequest pageSize. */ - public pageSize: number; + /** VoiceSelectionParams name. */ + public name: string; - /** ListSecuritySettingsRequest pageToken. */ - public pageToken: string; + /** VoiceSelectionParams ssmlGender. */ + public ssmlGender: (google.cloud.dialogflow.cx.v3.SsmlVoiceGender|keyof typeof google.cloud.dialogflow.cx.v3.SsmlVoiceGender); /** - * Creates a new ListSecuritySettingsRequest instance using the specified properties. + * Creates a new VoiceSelectionParams instance using the specified properties. * @param [properties] Properties to set - * @returns ListSecuritySettingsRequest instance + * @returns VoiceSelectionParams instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest): google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IVoiceSelectionParams): google.cloud.dialogflow.cx.v3.VoiceSelectionParams; /** - * Encodes the specified ListSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest.verify|verify} messages. - * @param message ListSecuritySettingsRequest message or plain object to encode + * Encodes the specified VoiceSelectionParams message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VoiceSelectionParams.verify|verify} messages. + * @param message VoiceSelectionParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IVoiceSelectionParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest.verify|verify} messages. - * @param message ListSecuritySettingsRequest message or plain object to encode + * Encodes the specified VoiceSelectionParams message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VoiceSelectionParams.verify|verify} messages. + * @param message VoiceSelectionParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IVoiceSelectionParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListSecuritySettingsRequest message from the specified reader or buffer. + * Decodes a VoiceSelectionParams message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListSecuritySettingsRequest + * @returns VoiceSelectionParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.VoiceSelectionParams; /** - * Decodes a ListSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a VoiceSelectionParams message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListSecuritySettingsRequest + * @returns VoiceSelectionParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.VoiceSelectionParams; /** - * Verifies a ListSecuritySettingsRequest message. + * Verifies a VoiceSelectionParams message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VoiceSelectionParams message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListSecuritySettingsRequest + * @returns VoiceSelectionParams */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.VoiceSelectionParams; /** - * Creates a plain object from a ListSecuritySettingsRequest message. Also converts values to other types if specified. - * @param message ListSecuritySettingsRequest + * Creates a plain object from a VoiceSelectionParams message. Also converts values to other types if specified. + * @param message VoiceSelectionParams * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.VoiceSelectionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListSecuritySettingsRequest to JSON. + * Converts this VoiceSelectionParams to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListSecuritySettingsResponse. */ - interface IListSecuritySettingsResponse { + /** Properties of a SynthesizeSpeechConfig. */ + interface ISynthesizeSpeechConfig { - /** ListSecuritySettingsResponse securitySettings */ - securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings[]|null); + /** SynthesizeSpeechConfig speakingRate */ + speakingRate?: (number|null); - /** ListSecuritySettingsResponse nextPageToken */ - nextPageToken?: (string|null); + /** SynthesizeSpeechConfig pitch */ + pitch?: (number|null); + + /** SynthesizeSpeechConfig volumeGainDb */ + volumeGainDb?: (number|null); + + /** SynthesizeSpeechConfig effectsProfileId */ + effectsProfileId?: (string[]|null); + + /** SynthesizeSpeechConfig voice */ + voice?: (google.cloud.dialogflow.cx.v3.IVoiceSelectionParams|null); } - /** Represents a ListSecuritySettingsResponse. */ - class ListSecuritySettingsResponse implements IListSecuritySettingsResponse { + /** Represents a SynthesizeSpeechConfig. */ + class SynthesizeSpeechConfig implements ISynthesizeSpeechConfig { /** - * Constructs a new ListSecuritySettingsResponse. + * Constructs a new SynthesizeSpeechConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig); - /** ListSecuritySettingsResponse securitySettings. */ - public securitySettings: google.cloud.dialogflow.cx.v3.ISecuritySettings[]; + /** SynthesizeSpeechConfig speakingRate. */ + public speakingRate: number; - /** ListSecuritySettingsResponse nextPageToken. */ - public nextPageToken: string; + /** SynthesizeSpeechConfig pitch. */ + public pitch: number; + + /** SynthesizeSpeechConfig volumeGainDb. */ + public volumeGainDb: number; + + /** SynthesizeSpeechConfig effectsProfileId. */ + public effectsProfileId: string[]; + + /** SynthesizeSpeechConfig voice. */ + public voice?: (google.cloud.dialogflow.cx.v3.IVoiceSelectionParams|null); /** - * Creates a new ListSecuritySettingsResponse instance using the specified properties. + * Creates a new SynthesizeSpeechConfig instance using the specified properties. * @param [properties] Properties to set - * @returns ListSecuritySettingsResponse instance + * @returns SynthesizeSpeechConfig instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse): google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig): google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig; /** - * Encodes the specified ListSecuritySettingsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse.verify|verify} messages. - * @param message ListSecuritySettingsResponse message or plain object to encode + * Encodes the specified SynthesizeSpeechConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.verify|verify} messages. + * @param message SynthesizeSpeechConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListSecuritySettingsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse.verify|verify} messages. - * @param message ListSecuritySettingsResponse message or plain object to encode + * Encodes the specified SynthesizeSpeechConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.verify|verify} messages. + * @param message SynthesizeSpeechConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListSecuritySettingsResponse message from the specified reader or buffer. + * Decodes a SynthesizeSpeechConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListSecuritySettingsResponse + * @returns SynthesizeSpeechConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig; /** - * Decodes a ListSecuritySettingsResponse message from the specified reader or buffer, length delimited. + * Decodes a SynthesizeSpeechConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListSecuritySettingsResponse + * @returns SynthesizeSpeechConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig; /** - * Verifies a ListSecuritySettingsResponse message. + * Verifies a SynthesizeSpeechConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListSecuritySettingsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SynthesizeSpeechConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListSecuritySettingsResponse + * @returns SynthesizeSpeechConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig; /** - * Creates a plain object from a ListSecuritySettingsResponse message. Also converts values to other types if specified. - * @param message ListSecuritySettingsResponse + * Creates a plain object from a SynthesizeSpeechConfig message. Also converts values to other types if specified. + * @param message SynthesizeSpeechConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListSecuritySettingsResponse to JSON. + * Converts this SynthesizeSpeechConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateSecuritySettingsRequest. */ - interface ICreateSecuritySettingsRequest { + /** OutputAudioEncoding enum. */ + enum OutputAudioEncoding { + OUTPUT_AUDIO_ENCODING_UNSPECIFIED = 0, + OUTPUT_AUDIO_ENCODING_LINEAR_16 = 1, + OUTPUT_AUDIO_ENCODING_MP3 = 2, + OUTPUT_AUDIO_ENCODING_MP3_64_KBPS = 4, + OUTPUT_AUDIO_ENCODING_OGG_OPUS = 3, + OUTPUT_AUDIO_ENCODING_MULAW = 5 + } - /** CreateSecuritySettingsRequest parent */ - parent?: (string|null); + /** Properties of an OutputAudioConfig. */ + interface IOutputAudioConfig { - /** CreateSecuritySettingsRequest securitySettings */ - securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings|null); + /** OutputAudioConfig audioEncoding */ + audioEncoding?: (google.cloud.dialogflow.cx.v3.OutputAudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3.OutputAudioEncoding|null); + + /** OutputAudioConfig sampleRateHertz */ + sampleRateHertz?: (number|null); + + /** OutputAudioConfig synthesizeSpeechConfig */ + synthesizeSpeechConfig?: (google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig|null); } - /** Represents a CreateSecuritySettingsRequest. */ - class CreateSecuritySettingsRequest implements ICreateSecuritySettingsRequest { + /** Represents an OutputAudioConfig. */ + class OutputAudioConfig implements IOutputAudioConfig { /** - * Constructs a new CreateSecuritySettingsRequest. + * Constructs a new OutputAudioConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IOutputAudioConfig); - /** CreateSecuritySettingsRequest parent. */ - public parent: string; + /** OutputAudioConfig audioEncoding. */ + public audioEncoding: (google.cloud.dialogflow.cx.v3.OutputAudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3.OutputAudioEncoding); - /** CreateSecuritySettingsRequest securitySettings. */ - public securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings|null); + /** OutputAudioConfig sampleRateHertz. */ + public sampleRateHertz: number; + + /** OutputAudioConfig synthesizeSpeechConfig. */ + public synthesizeSpeechConfig?: (google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig|null); /** - * Creates a new CreateSecuritySettingsRequest instance using the specified properties. + * Creates a new OutputAudioConfig instance using the specified properties. * @param [properties] Properties to set - * @returns CreateSecuritySettingsRequest instance + * @returns OutputAudioConfig instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest): google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IOutputAudioConfig): google.cloud.dialogflow.cx.v3.OutputAudioConfig; /** - * Encodes the specified CreateSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest.verify|verify} messages. - * @param message CreateSecuritySettingsRequest message or plain object to encode + * Encodes the specified OutputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify|verify} messages. + * @param message OutputAudioConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IOutputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest.verify|verify} messages. - * @param message CreateSecuritySettingsRequest message or plain object to encode + * Encodes the specified OutputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify|verify} messages. + * @param message OutputAudioConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IOutputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateSecuritySettingsRequest message from the specified reader or buffer. + * Decodes an OutputAudioConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateSecuritySettingsRequest + * @returns OutputAudioConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.OutputAudioConfig; /** - * Decodes a CreateSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * Decodes an OutputAudioConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateSecuritySettingsRequest + * @returns OutputAudioConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.OutputAudioConfig; /** - * Verifies a CreateSecuritySettingsRequest message. + * Verifies an OutputAudioConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an OutputAudioConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateSecuritySettingsRequest + * @returns OutputAudioConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.OutputAudioConfig; /** - * Creates a plain object from a CreateSecuritySettingsRequest message. Also converts values to other types if specified. - * @param message CreateSecuritySettingsRequest + * Creates a plain object from an OutputAudioConfig message. Also converts values to other types if specified. + * @param message OutputAudioConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.OutputAudioConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateSecuritySettingsRequest to JSON. + * Converts this OutputAudioConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteSecuritySettingsRequest. */ - interface IDeleteSecuritySettingsRequest { + /** Represents a Changelogs */ + class Changelogs extends $protobuf.rpc.Service { - /** DeleteSecuritySettingsRequest name */ - name?: (string|null); + /** + * Constructs a new Changelogs service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new Changelogs service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Changelogs; + + /** + * Calls ListChangelogs. + * @param request ListChangelogsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListChangelogsResponse + */ + public listChangelogs(request: google.cloud.dialogflow.cx.v3.IListChangelogsRequest, callback: google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogsCallback): void; + + /** + * Calls ListChangelogs. + * @param request ListChangelogsRequest message or plain object + * @returns Promise + */ + public listChangelogs(request: google.cloud.dialogflow.cx.v3.IListChangelogsRequest): Promise; + + /** + * Calls GetChangelog. + * @param request GetChangelogRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Changelog + */ + public getChangelog(request: google.cloud.dialogflow.cx.v3.IGetChangelogRequest, callback: google.cloud.dialogflow.cx.v3.Changelogs.GetChangelogCallback): void; + + /** + * Calls GetChangelog. + * @param request GetChangelogRequest message or plain object + * @returns Promise + */ + public getChangelog(request: google.cloud.dialogflow.cx.v3.IGetChangelogRequest): Promise; } - /** Represents a DeleteSecuritySettingsRequest. */ - class DeleteSecuritySettingsRequest implements IDeleteSecuritySettingsRequest { + namespace Changelogs { /** - * Constructs a new DeleteSecuritySettingsRequest. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Changelogs#listChangelogs}. + * @param error Error, if any + * @param [response] ListChangelogsResponse + */ + type ListChangelogsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListChangelogsResponse) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Changelogs#getChangelog}. + * @param error Error, if any + * @param [response] Changelog + */ + type GetChangelogCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Changelog) => void; + } + + /** Properties of a ListChangelogsRequest. */ + interface IListChangelogsRequest { + + /** ListChangelogsRequest parent */ + parent?: (string|null); + + /** ListChangelogsRequest filter */ + filter?: (string|null); + + /** ListChangelogsRequest pageSize */ + pageSize?: (number|null); + + /** ListChangelogsRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListChangelogsRequest. */ + class ListChangelogsRequest implements IListChangelogsRequest { + + /** + * Constructs a new ListChangelogsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListChangelogsRequest); - /** DeleteSecuritySettingsRequest name. */ - public name: string; + /** ListChangelogsRequest parent. */ + public parent: string; + + /** ListChangelogsRequest filter. */ + public filter: string; + + /** ListChangelogsRequest pageSize. */ + public pageSize: number; + + /** ListChangelogsRequest pageToken. */ + public pageToken: string; /** - * Creates a new DeleteSecuritySettingsRequest instance using the specified properties. + * Creates a new ListChangelogsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteSecuritySettingsRequest instance + * @returns ListChangelogsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest): google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListChangelogsRequest): google.cloud.dialogflow.cx.v3.ListChangelogsRequest; /** - * Encodes the specified DeleteSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest.verify|verify} messages. - * @param message DeleteSecuritySettingsRequest message or plain object to encode + * Encodes the specified ListChangelogsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListChangelogsRequest.verify|verify} messages. + * @param message ListChangelogsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListChangelogsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest.verify|verify} messages. - * @param message DeleteSecuritySettingsRequest message or plain object to encode + * Encodes the specified ListChangelogsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListChangelogsRequest.verify|verify} messages. + * @param message ListChangelogsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListChangelogsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteSecuritySettingsRequest message from the specified reader or buffer. + * Decodes a ListChangelogsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteSecuritySettingsRequest + * @returns ListChangelogsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListChangelogsRequest; /** - * Decodes a DeleteSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListChangelogsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteSecuritySettingsRequest + * @returns ListChangelogsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListChangelogsRequest; /** - * Verifies a DeleteSecuritySettingsRequest message. + * Verifies a ListChangelogsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListChangelogsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteSecuritySettingsRequest + * @returns ListChangelogsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListChangelogsRequest; /** - * Creates a plain object from a DeleteSecuritySettingsRequest message. Also converts values to other types if specified. - * @param message DeleteSecuritySettingsRequest + * Creates a plain object from a ListChangelogsRequest message. Also converts values to other types if specified. + * @param message ListChangelogsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListChangelogsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteSecuritySettingsRequest to JSON. + * Converts this ListChangelogsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SecuritySettings. */ - interface ISecuritySettings { - - /** SecuritySettings name */ - name?: (string|null); + /** Properties of a ListChangelogsResponse. */ + interface IListChangelogsResponse { - /** SecuritySettings displayName */ - displayName?: (string|null); + /** ListChangelogsResponse changelogs */ + changelogs?: (google.cloud.dialogflow.cx.v3.IChangelog[]|null); - /** SecuritySettings redactionStrategy */ - redactionStrategy?: (google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy|keyof typeof google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy|null); + /** ListChangelogsResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** SecuritySettings redactionScope */ - redactionScope?: (google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope|keyof typeof google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope|null); + /** Represents a ListChangelogsResponse. */ + class ListChangelogsResponse implements IListChangelogsResponse { - /** SecuritySettings inspectTemplate */ - inspectTemplate?: (string|null); + /** + * Constructs a new ListChangelogsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IListChangelogsResponse); - /** SecuritySettings deidentifyTemplate */ - deidentifyTemplate?: (string|null); + /** ListChangelogsResponse changelogs. */ + public changelogs: google.cloud.dialogflow.cx.v3.IChangelog[]; - /** SecuritySettings retentionWindowDays */ - retentionWindowDays?: (number|null); + /** ListChangelogsResponse nextPageToken. */ + public nextPageToken: string; - /** SecuritySettings purgeDataTypes */ - purgeDataTypes?: (google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType[]|null); + /** + * Creates a new ListChangelogsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListChangelogsResponse instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IListChangelogsResponse): google.cloud.dialogflow.cx.v3.ListChangelogsResponse; - /** SecuritySettings insightsExportSettings */ - insightsExportSettings?: (google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings|null); - } + /** + * Encodes the specified ListChangelogsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListChangelogsResponse.verify|verify} messages. + * @param message ListChangelogsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IListChangelogsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a SecuritySettings. */ - class SecuritySettings implements ISecuritySettings { + /** + * Encodes the specified ListChangelogsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListChangelogsResponse.verify|verify} messages. + * @param message ListChangelogsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListChangelogsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Constructs a new SecuritySettings. - * @param [properties] Properties to set + * Decodes a ListChangelogsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListChangelogsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ISecuritySettings); + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListChangelogsResponse; - /** SecuritySettings name. */ - public name: string; + /** + * Decodes a ListChangelogsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListChangelogsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListChangelogsResponse; - /** SecuritySettings displayName. */ - public displayName: string; + /** + * Verifies a ListChangelogsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** SecuritySettings redactionStrategy. */ - public redactionStrategy: (google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy|keyof typeof google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy); + /** + * Creates a ListChangelogsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListChangelogsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListChangelogsResponse; - /** SecuritySettings redactionScope. */ - public redactionScope: (google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope|keyof typeof google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope); + /** + * Creates a plain object from a ListChangelogsResponse message. Also converts values to other types if specified. + * @param message ListChangelogsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.ListChangelogsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** SecuritySettings inspectTemplate. */ - public inspectTemplate: string; + /** + * Converts this ListChangelogsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** SecuritySettings deidentifyTemplate. */ - public deidentifyTemplate: string; + /** Properties of a GetChangelogRequest. */ + interface IGetChangelogRequest { - /** SecuritySettings retentionWindowDays. */ - public retentionWindowDays?: (number|null); + /** GetChangelogRequest name */ + name?: (string|null); + } - /** SecuritySettings purgeDataTypes. */ - public purgeDataTypes: google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType[]; + /** Represents a GetChangelogRequest. */ + class GetChangelogRequest implements IGetChangelogRequest { - /** SecuritySettings insightsExportSettings. */ - public insightsExportSettings?: (google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings|null); + /** + * Constructs a new GetChangelogRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetChangelogRequest); - /** SecuritySettings dataRetention. */ - public dataRetention?: "retentionWindowDays"; + /** GetChangelogRequest name. */ + public name: string; /** - * Creates a new SecuritySettings instance using the specified properties. + * Creates a new GetChangelogRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SecuritySettings instance + * @returns GetChangelogRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ISecuritySettings): google.cloud.dialogflow.cx.v3.SecuritySettings; + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetChangelogRequest): google.cloud.dialogflow.cx.v3.GetChangelogRequest; /** - * Encodes the specified SecuritySettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.verify|verify} messages. - * @param message SecuritySettings message or plain object to encode + * Encodes the specified GetChangelogRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetChangelogRequest.verify|verify} messages. + * @param message GetChangelogRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ISecuritySettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetChangelogRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SecuritySettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.verify|verify} messages. - * @param message SecuritySettings message or plain object to encode + * Encodes the specified GetChangelogRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetChangelogRequest.verify|verify} messages. + * @param message GetChangelogRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ISecuritySettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetChangelogRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SecuritySettings message from the specified reader or buffer. + * Decodes a GetChangelogRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SecuritySettings + * @returns GetChangelogRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SecuritySettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetChangelogRequest; /** - * Decodes a SecuritySettings message from the specified reader or buffer, length delimited. + * Decodes a GetChangelogRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SecuritySettings + * @returns GetChangelogRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SecuritySettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetChangelogRequest; /** - * Verifies a SecuritySettings message. + * Verifies a GetChangelogRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SecuritySettings message from a plain object. Also converts values to their respective internal types. + * Creates a GetChangelogRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SecuritySettings + * @returns GetChangelogRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SecuritySettings; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetChangelogRequest; /** - * Creates a plain object from a SecuritySettings message. Also converts values to other types if specified. - * @param message SecuritySettings + * Creates a plain object from a GetChangelogRequest message. Also converts values to other types if specified. + * @param message GetChangelogRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.SecuritySettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.GetChangelogRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SecuritySettings to JSON. + * Converts this GetChangelogRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace SecuritySettings { - - /** RedactionStrategy enum. */ - enum RedactionStrategy { - REDACTION_STRATEGY_UNSPECIFIED = 0, - REDACT_WITH_SERVICE = 1 - } + /** Properties of a Changelog. */ + interface IChangelog { - /** RedactionScope enum. */ - enum RedactionScope { - REDACTION_SCOPE_UNSPECIFIED = 0, - REDACT_DISK_STORAGE = 2 - } + /** Changelog name */ + name?: (string|null); - /** PurgeDataType enum. */ - enum PurgeDataType { - PURGE_DATA_TYPE_UNSPECIFIED = 0, - DIALOGFLOW_HISTORY = 1 - } + /** Changelog userEmail */ + userEmail?: (string|null); - /** Properties of an InsightsExportSettings. */ - interface IInsightsExportSettings { + /** Changelog displayName */ + displayName?: (string|null); - /** InsightsExportSettings enableInsightsExport */ - enableInsightsExport?: (boolean|null); - } + /** Changelog action */ + action?: (string|null); - /** Represents an InsightsExportSettings. */ - class InsightsExportSettings implements IInsightsExportSettings { + /** Changelog type */ + type?: (string|null); - /** - * Constructs a new InsightsExportSettings. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings); + /** Changelog resource */ + resource?: (string|null); - /** InsightsExportSettings enableInsightsExport. */ - public enableInsightsExport: boolean; + /** Changelog createTime */ + createTime?: (google.protobuf.ITimestamp|null); + } - /** - * Creates a new InsightsExportSettings instance using the specified properties. - * @param [properties] Properties to set - * @returns InsightsExportSettings instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings): google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings; + /** Represents a Changelog. */ + class Changelog implements IChangelog { - /** - * Encodes the specified InsightsExportSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.verify|verify} messages. - * @param message InsightsExportSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new Changelog. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IChangelog); - /** - * Encodes the specified InsightsExportSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.verify|verify} messages. - * @param message InsightsExportSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings, writer?: $protobuf.Writer): $protobuf.Writer; + /** Changelog name. */ + public name: string; - /** - * Decodes an InsightsExportSettings message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InsightsExportSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings; + /** Changelog userEmail. */ + public userEmail: string; - /** - * Decodes an InsightsExportSettings message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InsightsExportSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings; + /** Changelog displayName. */ + public displayName: string; - /** - * Verifies an InsightsExportSettings message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an InsightsExportSettings message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InsightsExportSettings - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings; - - /** - * Creates a plain object from an InsightsExportSettings message. Also converts values to other types if specified. - * @param message InsightsExportSettings - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this InsightsExportSettings to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** AudioEncoding enum. */ - enum AudioEncoding { - AUDIO_ENCODING_UNSPECIFIED = 0, - AUDIO_ENCODING_LINEAR_16 = 1, - AUDIO_ENCODING_FLAC = 2, - AUDIO_ENCODING_MULAW = 3, - AUDIO_ENCODING_AMR = 4, - AUDIO_ENCODING_AMR_WB = 5, - AUDIO_ENCODING_OGG_OPUS = 6, - AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7 - } - - /** SpeechModelVariant enum. */ - enum SpeechModelVariant { - SPEECH_MODEL_VARIANT_UNSPECIFIED = 0, - USE_BEST_AVAILABLE = 1, - USE_STANDARD = 2, - USE_ENHANCED = 3 - } - - /** Properties of a SpeechWordInfo. */ - interface ISpeechWordInfo { - - /** SpeechWordInfo word */ - word?: (string|null); - - /** SpeechWordInfo startOffset */ - startOffset?: (google.protobuf.IDuration|null); - - /** SpeechWordInfo endOffset */ - endOffset?: (google.protobuf.IDuration|null); - - /** SpeechWordInfo confidence */ - confidence?: (number|null); - } - - /** Represents a SpeechWordInfo. */ - class SpeechWordInfo implements ISpeechWordInfo { - - /** - * Constructs a new SpeechWordInfo. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ISpeechWordInfo); - - /** SpeechWordInfo word. */ - public word: string; + /** Changelog action. */ + public action: string; - /** SpeechWordInfo startOffset. */ - public startOffset?: (google.protobuf.IDuration|null); + /** Changelog type. */ + public type: string; - /** SpeechWordInfo endOffset. */ - public endOffset?: (google.protobuf.IDuration|null); + /** Changelog resource. */ + public resource: string; - /** SpeechWordInfo confidence. */ - public confidence: number; + /** Changelog createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new SpeechWordInfo instance using the specified properties. + * Creates a new Changelog instance using the specified properties. * @param [properties] Properties to set - * @returns SpeechWordInfo instance + * @returns Changelog instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ISpeechWordInfo): google.cloud.dialogflow.cx.v3.SpeechWordInfo; + public static create(properties?: google.cloud.dialogflow.cx.v3.IChangelog): google.cloud.dialogflow.cx.v3.Changelog; /** - * Encodes the specified SpeechWordInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SpeechWordInfo.verify|verify} messages. - * @param message SpeechWordInfo message or plain object to encode + * Encodes the specified Changelog message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Changelog.verify|verify} messages. + * @param message Changelog message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ISpeechWordInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IChangelog, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SpeechWordInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SpeechWordInfo.verify|verify} messages. - * @param message SpeechWordInfo message or plain object to encode + * Encodes the specified Changelog message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Changelog.verify|verify} messages. + * @param message Changelog message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ISpeechWordInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IChangelog, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SpeechWordInfo message from the specified reader or buffer. + * Decodes a Changelog message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SpeechWordInfo + * @returns Changelog * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SpeechWordInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Changelog; /** - * Decodes a SpeechWordInfo message from the specified reader or buffer, length delimited. + * Decodes a Changelog message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SpeechWordInfo + * @returns Changelog * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SpeechWordInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Changelog; /** - * Verifies a SpeechWordInfo message. + * Verifies a Changelog message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SpeechWordInfo message from a plain object. Also converts values to their respective internal types. + * Creates a Changelog message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SpeechWordInfo + * @returns Changelog */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SpeechWordInfo; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Changelog; /** - * Creates a plain object from a SpeechWordInfo message. Also converts values to other types if specified. - * @param message SpeechWordInfo + * Creates a plain object from a Changelog message. Also converts values to other types if specified. + * @param message Changelog * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.SpeechWordInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Changelog, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SpeechWordInfo to JSON. + * Converts this Changelog to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an InputAudioConfig. */ - interface IInputAudioConfig { + /** Represents a Deployments */ + class Deployments extends $protobuf.rpc.Service { - /** InputAudioConfig audioEncoding */ - audioEncoding?: (google.cloud.dialogflow.cx.v3.AudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3.AudioEncoding|null); + /** + * Constructs a new Deployments service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** InputAudioConfig sampleRateHertz */ - sampleRateHertz?: (number|null); + /** + * Creates new Deployments service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Deployments; - /** InputAudioConfig enableWordInfo */ - enableWordInfo?: (boolean|null); + /** + * Calls ListDeployments. + * @param request ListDeploymentsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListDeploymentsResponse + */ + public listDeployments(request: google.cloud.dialogflow.cx.v3.IListDeploymentsRequest, callback: google.cloud.dialogflow.cx.v3.Deployments.ListDeploymentsCallback): void; - /** InputAudioConfig phraseHints */ - phraseHints?: (string[]|null); + /** + * Calls ListDeployments. + * @param request ListDeploymentsRequest message or plain object + * @returns Promise + */ + public listDeployments(request: google.cloud.dialogflow.cx.v3.IListDeploymentsRequest): Promise; - /** InputAudioConfig model */ - model?: (string|null); + /** + * Calls GetDeployment. + * @param request GetDeploymentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Deployment + */ + public getDeployment(request: google.cloud.dialogflow.cx.v3.IGetDeploymentRequest, callback: google.cloud.dialogflow.cx.v3.Deployments.GetDeploymentCallback): void; - /** InputAudioConfig modelVariant */ - modelVariant?: (google.cloud.dialogflow.cx.v3.SpeechModelVariant|keyof typeof google.cloud.dialogflow.cx.v3.SpeechModelVariant|null); + /** + * Calls GetDeployment. + * @param request GetDeploymentRequest message or plain object + * @returns Promise + */ + public getDeployment(request: google.cloud.dialogflow.cx.v3.IGetDeploymentRequest): Promise; + } - /** InputAudioConfig singleUtterance */ - singleUtterance?: (boolean|null); + namespace Deployments { + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Deployments#listDeployments}. + * @param error Error, if any + * @param [response] ListDeploymentsResponse + */ + type ListDeploymentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListDeploymentsResponse) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Deployments#getDeployment}. + * @param error Error, if any + * @param [response] Deployment + */ + type GetDeploymentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Deployment) => void; } - /** Represents an InputAudioConfig. */ - class InputAudioConfig implements IInputAudioConfig { + /** Properties of a Deployment. */ + interface IDeployment { + + /** Deployment name */ + name?: (string|null); + + /** Deployment flowVersion */ + flowVersion?: (string|null); + + /** Deployment state */ + state?: (google.cloud.dialogflow.cx.v3.Deployment.State|keyof typeof google.cloud.dialogflow.cx.v3.Deployment.State|null); + + /** Deployment result */ + result?: (google.cloud.dialogflow.cx.v3.Deployment.IResult|null); + + /** Deployment startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** Deployment endTime */ + endTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a Deployment. */ + class Deployment implements IDeployment { /** - * Constructs a new InputAudioConfig. + * Constructs a new Deployment. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IInputAudioConfig); - - /** InputAudioConfig audioEncoding. */ - public audioEncoding: (google.cloud.dialogflow.cx.v3.AudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3.AudioEncoding); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeployment); - /** InputAudioConfig sampleRateHertz. */ - public sampleRateHertz: number; + /** Deployment name. */ + public name: string; - /** InputAudioConfig enableWordInfo. */ - public enableWordInfo: boolean; + /** Deployment flowVersion. */ + public flowVersion: string; - /** InputAudioConfig phraseHints. */ - public phraseHints: string[]; + /** Deployment state. */ + public state: (google.cloud.dialogflow.cx.v3.Deployment.State|keyof typeof google.cloud.dialogflow.cx.v3.Deployment.State); - /** InputAudioConfig model. */ - public model: string; + /** Deployment result. */ + public result?: (google.cloud.dialogflow.cx.v3.Deployment.IResult|null); - /** InputAudioConfig modelVariant. */ - public modelVariant: (google.cloud.dialogflow.cx.v3.SpeechModelVariant|keyof typeof google.cloud.dialogflow.cx.v3.SpeechModelVariant); + /** Deployment startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); - /** InputAudioConfig singleUtterance. */ - public singleUtterance: boolean; + /** Deployment endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new InputAudioConfig instance using the specified properties. + * Creates a new Deployment instance using the specified properties. * @param [properties] Properties to set - * @returns InputAudioConfig instance + * @returns Deployment instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IInputAudioConfig): google.cloud.dialogflow.cx.v3.InputAudioConfig; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeployment): google.cloud.dialogflow.cx.v3.Deployment; /** - * Encodes the specified InputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.InputAudioConfig.verify|verify} messages. - * @param message InputAudioConfig message or plain object to encode + * Encodes the specified Deployment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Deployment.verify|verify} messages. + * @param message Deployment message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IInputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeployment, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified InputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.InputAudioConfig.verify|verify} messages. - * @param message InputAudioConfig message or plain object to encode + * Encodes the specified Deployment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Deployment.verify|verify} messages. + * @param message Deployment message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IInputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeployment, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an InputAudioConfig message from the specified reader or buffer. + * Decodes a Deployment message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns InputAudioConfig + * @returns Deployment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.InputAudioConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Deployment; /** - * Decodes an InputAudioConfig message from the specified reader or buffer, length delimited. + * Decodes a Deployment message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns InputAudioConfig + * @returns Deployment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.InputAudioConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Deployment; /** - * Verifies an InputAudioConfig message. + * Verifies a Deployment message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an InputAudioConfig message from a plain object. Also converts values to their respective internal types. + * Creates a Deployment message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns InputAudioConfig + * @returns Deployment */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.InputAudioConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Deployment; /** - * Creates a plain object from an InputAudioConfig message. Also converts values to other types if specified. - * @param message InputAudioConfig + * Creates a plain object from a Deployment message. Also converts values to other types if specified. + * @param message Deployment * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.InputAudioConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Deployment, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this InputAudioConfig to JSON. + * Converts this Deployment to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** SsmlVoiceGender enum. */ - enum SsmlVoiceGender { - SSML_VOICE_GENDER_UNSPECIFIED = 0, - SSML_VOICE_GENDER_MALE = 1, - SSML_VOICE_GENDER_FEMALE = 2, - SSML_VOICE_GENDER_NEUTRAL = 3 + namespace Deployment { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + RUNNING = 1, + SUCCEEDED = 2, + FAILED = 3 + } + + /** Properties of a Result. */ + interface IResult { + + /** Result deploymentTestResults */ + deploymentTestResults?: (string[]|null); + + /** Result experiment */ + experiment?: (string|null); + } + + /** Represents a Result. */ + class Result implements IResult { + + /** + * Constructs a new Result. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.Deployment.IResult); + + /** Result deploymentTestResults. */ + public deploymentTestResults: string[]; + + /** Result experiment. */ + public experiment: string; + + /** + * Creates a new Result instance using the specified properties. + * @param [properties] Properties to set + * @returns Result instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.Deployment.IResult): google.cloud.dialogflow.cx.v3.Deployment.Result; + + /** + * Encodes the specified Result message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Deployment.Result.verify|verify} messages. + * @param message Result message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.Deployment.IResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Result message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Deployment.Result.verify|verify} messages. + * @param message Result message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Deployment.IResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Result message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Result + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Deployment.Result; + + /** + * Decodes a Result message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Result + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Deployment.Result; + + /** + * Verifies a Result message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Result message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Result + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Deployment.Result; + + /** + * Creates a plain object from a Result message. Also converts values to other types if specified. + * @param message Result + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.Deployment.Result, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Result to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Properties of a VoiceSelectionParams. */ - interface IVoiceSelectionParams { + /** Properties of a ListDeploymentsRequest. */ + interface IListDeploymentsRequest { - /** VoiceSelectionParams name */ - name?: (string|null); + /** ListDeploymentsRequest parent */ + parent?: (string|null); - /** VoiceSelectionParams ssmlGender */ - ssmlGender?: (google.cloud.dialogflow.cx.v3.SsmlVoiceGender|keyof typeof google.cloud.dialogflow.cx.v3.SsmlVoiceGender|null); + /** ListDeploymentsRequest pageSize */ + pageSize?: (number|null); + + /** ListDeploymentsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a VoiceSelectionParams. */ - class VoiceSelectionParams implements IVoiceSelectionParams { + /** Represents a ListDeploymentsRequest. */ + class ListDeploymentsRequest implements IListDeploymentsRequest { /** - * Constructs a new VoiceSelectionParams. + * Constructs a new ListDeploymentsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IVoiceSelectionParams); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListDeploymentsRequest); - /** VoiceSelectionParams name. */ - public name: string; + /** ListDeploymentsRequest parent. */ + public parent: string; - /** VoiceSelectionParams ssmlGender. */ - public ssmlGender: (google.cloud.dialogflow.cx.v3.SsmlVoiceGender|keyof typeof google.cloud.dialogflow.cx.v3.SsmlVoiceGender); + /** ListDeploymentsRequest pageSize. */ + public pageSize: number; + + /** ListDeploymentsRequest pageToken. */ + public pageToken: string; /** - * Creates a new VoiceSelectionParams instance using the specified properties. + * Creates a new ListDeploymentsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns VoiceSelectionParams instance + * @returns ListDeploymentsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IVoiceSelectionParams): google.cloud.dialogflow.cx.v3.VoiceSelectionParams; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListDeploymentsRequest): google.cloud.dialogflow.cx.v3.ListDeploymentsRequest; /** - * Encodes the specified VoiceSelectionParams message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VoiceSelectionParams.verify|verify} messages. - * @param message VoiceSelectionParams message or plain object to encode + * Encodes the specified ListDeploymentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListDeploymentsRequest.verify|verify} messages. + * @param message ListDeploymentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IVoiceSelectionParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListDeploymentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VoiceSelectionParams message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VoiceSelectionParams.verify|verify} messages. - * @param message VoiceSelectionParams message or plain object to encode + * Encodes the specified ListDeploymentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListDeploymentsRequest.verify|verify} messages. + * @param message ListDeploymentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IVoiceSelectionParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListDeploymentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VoiceSelectionParams message from the specified reader or buffer. + * Decodes a ListDeploymentsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VoiceSelectionParams + * @returns ListDeploymentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.VoiceSelectionParams; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListDeploymentsRequest; /** - * Decodes a VoiceSelectionParams message from the specified reader or buffer, length delimited. + * Decodes a ListDeploymentsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VoiceSelectionParams + * @returns ListDeploymentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.VoiceSelectionParams; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListDeploymentsRequest; /** - * Verifies a VoiceSelectionParams message. + * Verifies a ListDeploymentsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a VoiceSelectionParams message from a plain object. Also converts values to their respective internal types. + * Creates a ListDeploymentsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VoiceSelectionParams + * @returns ListDeploymentsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.VoiceSelectionParams; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListDeploymentsRequest; /** - * Creates a plain object from a VoiceSelectionParams message. Also converts values to other types if specified. - * @param message VoiceSelectionParams + * Creates a plain object from a ListDeploymentsRequest message. Also converts values to other types if specified. + * @param message ListDeploymentsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.VoiceSelectionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListDeploymentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VoiceSelectionParams to JSON. + * Converts this ListDeploymentsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SynthesizeSpeechConfig. */ - interface ISynthesizeSpeechConfig { + /** Properties of a ListDeploymentsResponse. */ + interface IListDeploymentsResponse { - /** SynthesizeSpeechConfig speakingRate */ - speakingRate?: (number|null); + /** ListDeploymentsResponse deployments */ + deployments?: (google.cloud.dialogflow.cx.v3.IDeployment[]|null); - /** SynthesizeSpeechConfig pitch */ - pitch?: (number|null); - - /** SynthesizeSpeechConfig volumeGainDb */ - volumeGainDb?: (number|null); - - /** SynthesizeSpeechConfig effectsProfileId */ - effectsProfileId?: (string[]|null); - - /** SynthesizeSpeechConfig voice */ - voice?: (google.cloud.dialogflow.cx.v3.IVoiceSelectionParams|null); + /** ListDeploymentsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a SynthesizeSpeechConfig. */ - class SynthesizeSpeechConfig implements ISynthesizeSpeechConfig { + /** Represents a ListDeploymentsResponse. */ + class ListDeploymentsResponse implements IListDeploymentsResponse { /** - * Constructs a new SynthesizeSpeechConfig. + * Constructs a new ListDeploymentsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig); - - /** SynthesizeSpeechConfig speakingRate. */ - public speakingRate: number; - - /** SynthesizeSpeechConfig pitch. */ - public pitch: number; - - /** SynthesizeSpeechConfig volumeGainDb. */ - public volumeGainDb: number; + constructor(properties?: google.cloud.dialogflow.cx.v3.IListDeploymentsResponse); - /** SynthesizeSpeechConfig effectsProfileId. */ - public effectsProfileId: string[]; + /** ListDeploymentsResponse deployments. */ + public deployments: google.cloud.dialogflow.cx.v3.IDeployment[]; - /** SynthesizeSpeechConfig voice. */ - public voice?: (google.cloud.dialogflow.cx.v3.IVoiceSelectionParams|null); + /** ListDeploymentsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new SynthesizeSpeechConfig instance using the specified properties. + * Creates a new ListDeploymentsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns SynthesizeSpeechConfig instance + * @returns ListDeploymentsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig): google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListDeploymentsResponse): google.cloud.dialogflow.cx.v3.ListDeploymentsResponse; /** - * Encodes the specified SynthesizeSpeechConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.verify|verify} messages. - * @param message SynthesizeSpeechConfig message or plain object to encode + * Encodes the specified ListDeploymentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListDeploymentsResponse.verify|verify} messages. + * @param message ListDeploymentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListDeploymentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SynthesizeSpeechConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.verify|verify} messages. - * @param message SynthesizeSpeechConfig message or plain object to encode + * Encodes the specified ListDeploymentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListDeploymentsResponse.verify|verify} messages. + * @param message ListDeploymentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListDeploymentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SynthesizeSpeechConfig message from the specified reader or buffer. + * Decodes a ListDeploymentsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SynthesizeSpeechConfig + * @returns ListDeploymentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListDeploymentsResponse; /** - * Decodes a SynthesizeSpeechConfig message from the specified reader or buffer, length delimited. + * Decodes a ListDeploymentsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SynthesizeSpeechConfig + * @returns ListDeploymentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListDeploymentsResponse; /** - * Verifies a SynthesizeSpeechConfig message. + * Verifies a ListDeploymentsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SynthesizeSpeechConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ListDeploymentsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SynthesizeSpeechConfig + * @returns ListDeploymentsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListDeploymentsResponse; /** - * Creates a plain object from a SynthesizeSpeechConfig message. Also converts values to other types if specified. - * @param message SynthesizeSpeechConfig + * Creates a plain object from a ListDeploymentsResponse message. Also converts values to other types if specified. + * @param message ListDeploymentsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListDeploymentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SynthesizeSpeechConfig to JSON. + * Converts this ListDeploymentsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** OutputAudioEncoding enum. */ - enum OutputAudioEncoding { - OUTPUT_AUDIO_ENCODING_UNSPECIFIED = 0, - OUTPUT_AUDIO_ENCODING_LINEAR_16 = 1, - OUTPUT_AUDIO_ENCODING_MP3 = 2, - OUTPUT_AUDIO_ENCODING_MP3_64_KBPS = 4, - OUTPUT_AUDIO_ENCODING_OGG_OPUS = 3, - OUTPUT_AUDIO_ENCODING_MULAW = 5 - } - - /** Properties of an OutputAudioConfig. */ - interface IOutputAudioConfig { - - /** OutputAudioConfig audioEncoding */ - audioEncoding?: (google.cloud.dialogflow.cx.v3.OutputAudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3.OutputAudioEncoding|null); - - /** OutputAudioConfig sampleRateHertz */ - sampleRateHertz?: (number|null); + /** Properties of a GetDeploymentRequest. */ + interface IGetDeploymentRequest { - /** OutputAudioConfig synthesizeSpeechConfig */ - synthesizeSpeechConfig?: (google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig|null); + /** GetDeploymentRequest name */ + name?: (string|null); } - /** Represents an OutputAudioConfig. */ - class OutputAudioConfig implements IOutputAudioConfig { + /** Represents a GetDeploymentRequest. */ + class GetDeploymentRequest implements IGetDeploymentRequest { /** - * Constructs a new OutputAudioConfig. + * Constructs a new GetDeploymentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IOutputAudioConfig); - - /** OutputAudioConfig audioEncoding. */ - public audioEncoding: (google.cloud.dialogflow.cx.v3.OutputAudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3.OutputAudioEncoding); - - /** OutputAudioConfig sampleRateHertz. */ - public sampleRateHertz: number; + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetDeploymentRequest); - /** OutputAudioConfig synthesizeSpeechConfig. */ - public synthesizeSpeechConfig?: (google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig|null); + /** GetDeploymentRequest name. */ + public name: string; /** - * Creates a new OutputAudioConfig instance using the specified properties. + * Creates a new GetDeploymentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns OutputAudioConfig instance + * @returns GetDeploymentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IOutputAudioConfig): google.cloud.dialogflow.cx.v3.OutputAudioConfig; + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetDeploymentRequest): google.cloud.dialogflow.cx.v3.GetDeploymentRequest; /** - * Encodes the specified OutputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify|verify} messages. - * @param message OutputAudioConfig message or plain object to encode + * Encodes the specified GetDeploymentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetDeploymentRequest.verify|verify} messages. + * @param message GetDeploymentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IOutputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified OutputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify|verify} messages. - * @param message OutputAudioConfig message or plain object to encode + * Encodes the specified GetDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetDeploymentRequest.verify|verify} messages. + * @param message GetDeploymentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IOutputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an OutputAudioConfig message from the specified reader or buffer. + * Decodes a GetDeploymentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns OutputAudioConfig + * @returns GetDeploymentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.OutputAudioConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetDeploymentRequest; /** - * Decodes an OutputAudioConfig message from the specified reader or buffer, length delimited. + * Decodes a GetDeploymentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns OutputAudioConfig + * @returns GetDeploymentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.OutputAudioConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetDeploymentRequest; /** - * Verifies an OutputAudioConfig message. + * Verifies a GetDeploymentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an OutputAudioConfig message from a plain object. Also converts values to their respective internal types. + * Creates a GetDeploymentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns OutputAudioConfig + * @returns GetDeploymentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.OutputAudioConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetDeploymentRequest; /** - * Creates a plain object from an OutputAudioConfig message. Also converts values to other types if specified. - * @param message OutputAudioConfig + * Creates a plain object from a GetDeploymentRequest message. Also converts values to other types if specified. + * @param message GetDeploymentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.OutputAudioConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.GetDeploymentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this OutputAudioConfig to JSON. + * Converts this GetDeploymentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a Changelogs */ - class Changelogs extends $protobuf.rpc.Service { + /** Represents an EntityTypes */ + class EntityTypes extends $protobuf.rpc.Service { /** - * Constructs a new Changelogs service. + * Constructs a new EntityTypes service. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited @@ -8443,1066 +8559,1063 @@ export namespace google { constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates new Changelogs service using the specified rpc implementation. + * Creates new EntityTypes service using the specified rpc implementation. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Changelogs; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): EntityTypes; /** - * Calls ListChangelogs. - * @param request ListChangelogsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListChangelogsResponse + * Calls ListEntityTypes. + * @param request ListEntityTypesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListEntityTypesResponse */ - public listChangelogs(request: google.cloud.dialogflow.cx.v3.IListChangelogsRequest, callback: google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogsCallback): void; + public listEntityTypes(request: google.cloud.dialogflow.cx.v3.IListEntityTypesRequest, callback: google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypesCallback): void; /** - * Calls ListChangelogs. - * @param request ListChangelogsRequest message or plain object + * Calls ListEntityTypes. + * @param request ListEntityTypesRequest message or plain object * @returns Promise */ - public listChangelogs(request: google.cloud.dialogflow.cx.v3.IListChangelogsRequest): Promise; + public listEntityTypes(request: google.cloud.dialogflow.cx.v3.IListEntityTypesRequest): Promise; /** - * Calls GetChangelog. - * @param request GetChangelogRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Changelog + * Calls GetEntityType. + * @param request GetEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and EntityType */ - public getChangelog(request: google.cloud.dialogflow.cx.v3.IGetChangelogRequest, callback: google.cloud.dialogflow.cx.v3.Changelogs.GetChangelogCallback): void; + public getEntityType(request: google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityTypeCallback): void; /** - * Calls GetChangelog. - * @param request GetChangelogRequest message or plain object + * Calls GetEntityType. + * @param request GetEntityTypeRequest message or plain object * @returns Promise */ - public getChangelog(request: google.cloud.dialogflow.cx.v3.IGetChangelogRequest): Promise; - } - - namespace Changelogs { + public getEntityType(request: google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest): Promise; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Changelogs#listChangelogs}. - * @param error Error, if any - * @param [response] ListChangelogsResponse + * Calls CreateEntityType. + * @param request CreateEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and EntityType */ - type ListChangelogsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListChangelogsResponse) => void; + public createEntityType(request: google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.EntityTypes.CreateEntityTypeCallback): void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Changelogs#getChangelog}. - * @param error Error, if any - * @param [response] Changelog + * Calls CreateEntityType. + * @param request CreateEntityTypeRequest message or plain object + * @returns Promise */ - type GetChangelogCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Changelog) => void; - } - - /** Properties of a ListChangelogsRequest. */ - interface IListChangelogsRequest { - - /** ListChangelogsRequest parent */ - parent?: (string|null); - - /** ListChangelogsRequest filter */ - filter?: (string|null); - - /** ListChangelogsRequest pageSize */ - pageSize?: (number|null); - - /** ListChangelogsRequest pageToken */ - pageToken?: (string|null); - } - - /** Represents a ListChangelogsRequest. */ - class ListChangelogsRequest implements IListChangelogsRequest { + public createEntityType(request: google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest): Promise; /** - * Constructs a new ListChangelogsRequest. - * @param [properties] Properties to set + * Calls UpdateEntityType. + * @param request UpdateEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and EntityType */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListChangelogsRequest); - - /** ListChangelogsRequest parent. */ - public parent: string; - - /** ListChangelogsRequest filter. */ - public filter: string; - - /** ListChangelogsRequest pageSize. */ - public pageSize: number; - - /** ListChangelogsRequest pageToken. */ - public pageToken: string; + public updateEntityType(request: google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityTypeCallback): void; /** - * Creates a new ListChangelogsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListChangelogsRequest instance + * Calls UpdateEntityType. + * @param request UpdateEntityTypeRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListChangelogsRequest): google.cloud.dialogflow.cx.v3.ListChangelogsRequest; + public updateEntityType(request: google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest): Promise; /** - * Encodes the specified ListChangelogsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListChangelogsRequest.verify|verify} messages. - * @param message ListChangelogsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls DeleteEntityType. + * @param request DeleteEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListChangelogsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public deleteEntityType(request: google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.EntityTypes.DeleteEntityTypeCallback): void; /** - * Encodes the specified ListChangelogsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListChangelogsRequest.verify|verify} messages. - * @param message ListChangelogsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls DeleteEntityType. + * @param request DeleteEntityTypeRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListChangelogsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public deleteEntityType(request: google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest): Promise; + } - /** - * Decodes a ListChangelogsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListChangelogsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListChangelogsRequest; + namespace EntityTypes { /** - * Decodes a ListChangelogsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListChangelogsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes#listEntityTypes}. + * @param error Error, if any + * @param [response] ListEntityTypesResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListChangelogsRequest; + type ListEntityTypesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListEntityTypesResponse) => void; /** - * Verifies a ListChangelogsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes#getEntityType}. + * @param error Error, if any + * @param [response] EntityType */ - public static verify(message: { [k: string]: any }): (string|null); + type GetEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.EntityType) => void; /** - * Creates a ListChangelogsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListChangelogsRequest + * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes#createEntityType}. + * @param error Error, if any + * @param [response] EntityType */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListChangelogsRequest; + type CreateEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.EntityType) => void; /** - * Creates a plain object from a ListChangelogsRequest message. Also converts values to other types if specified. - * @param message ListChangelogsRequest - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes#updateEntityType}. + * @param error Error, if any + * @param [response] EntityType */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListChangelogsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type UpdateEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.EntityType) => void; /** - * Converts this ListChangelogsRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes#deleteEntityType}. + * @param error Error, if any + * @param [response] Empty */ - public toJSON(): { [k: string]: any }; + type DeleteEntityTypeCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } - /** Properties of a ListChangelogsResponse. */ - interface IListChangelogsResponse { + /** Properties of an EntityType. */ + interface IEntityType { - /** ListChangelogsResponse changelogs */ - changelogs?: (google.cloud.dialogflow.cx.v3.IChangelog[]|null); + /** EntityType name */ + name?: (string|null); - /** ListChangelogsResponse nextPageToken */ - nextPageToken?: (string|null); + /** EntityType displayName */ + displayName?: (string|null); + + /** EntityType kind */ + kind?: (google.cloud.dialogflow.cx.v3.EntityType.Kind|keyof typeof google.cloud.dialogflow.cx.v3.EntityType.Kind|null); + + /** EntityType autoExpansionMode */ + autoExpansionMode?: (google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode|keyof typeof google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode|null); + + /** EntityType entities */ + entities?: (google.cloud.dialogflow.cx.v3.EntityType.IEntity[]|null); + + /** EntityType excludedPhrases */ + excludedPhrases?: (google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase[]|null); + + /** EntityType enableFuzzyExtraction */ + enableFuzzyExtraction?: (boolean|null); + + /** EntityType redact */ + redact?: (boolean|null); } - /** Represents a ListChangelogsResponse. */ - class ListChangelogsResponse implements IListChangelogsResponse { + /** Represents an EntityType. */ + class EntityType implements IEntityType { /** - * Constructs a new ListChangelogsResponse. + * Constructs a new EntityType. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListChangelogsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IEntityType); - /** ListChangelogsResponse changelogs. */ - public changelogs: google.cloud.dialogflow.cx.v3.IChangelog[]; + /** EntityType name. */ + public name: string; - /** ListChangelogsResponse nextPageToken. */ - public nextPageToken: string; + /** EntityType displayName. */ + public displayName: string; + + /** EntityType kind. */ + public kind: (google.cloud.dialogflow.cx.v3.EntityType.Kind|keyof typeof google.cloud.dialogflow.cx.v3.EntityType.Kind); + + /** EntityType autoExpansionMode. */ + public autoExpansionMode: (google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode|keyof typeof google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode); + + /** EntityType entities. */ + public entities: google.cloud.dialogflow.cx.v3.EntityType.IEntity[]; + + /** EntityType excludedPhrases. */ + public excludedPhrases: google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase[]; + + /** EntityType enableFuzzyExtraction. */ + public enableFuzzyExtraction: boolean; + + /** EntityType redact. */ + public redact: boolean; /** - * Creates a new ListChangelogsResponse instance using the specified properties. + * Creates a new EntityType instance using the specified properties. * @param [properties] Properties to set - * @returns ListChangelogsResponse instance + * @returns EntityType instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListChangelogsResponse): google.cloud.dialogflow.cx.v3.ListChangelogsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IEntityType): google.cloud.dialogflow.cx.v3.EntityType; /** - * Encodes the specified ListChangelogsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListChangelogsResponse.verify|verify} messages. - * @param message ListChangelogsResponse message or plain object to encode + * Encodes the specified EntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.verify|verify} messages. + * @param message EntityType message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListChangelogsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListChangelogsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListChangelogsResponse.verify|verify} messages. - * @param message ListChangelogsResponse message or plain object to encode + * Encodes the specified EntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.verify|verify} messages. + * @param message EntityType message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListChangelogsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListChangelogsResponse message from the specified reader or buffer. + * Decodes an EntityType message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListChangelogsResponse + * @returns EntityType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListChangelogsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.EntityType; /** - * Decodes a ListChangelogsResponse message from the specified reader or buffer, length delimited. + * Decodes an EntityType message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListChangelogsResponse + * @returns EntityType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListChangelogsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.EntityType; /** - * Verifies a ListChangelogsResponse message. + * Verifies an EntityType message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListChangelogsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an EntityType message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListChangelogsResponse + * @returns EntityType */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListChangelogsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.EntityType; /** - * Creates a plain object from a ListChangelogsResponse message. Also converts values to other types if specified. - * @param message ListChangelogsResponse + * Creates a plain object from an EntityType message. Also converts values to other types if specified. + * @param message EntityType * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListChangelogsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.EntityType, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListChangelogsResponse to JSON. + * Converts this EntityType to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetChangelogRequest. */ - interface IGetChangelogRequest { + namespace EntityType { - /** GetChangelogRequest name */ - name?: (string|null); - } + /** Kind enum. */ + enum Kind { + KIND_UNSPECIFIED = 0, + KIND_MAP = 1, + KIND_LIST = 2, + KIND_REGEXP = 3 + } - /** Represents a GetChangelogRequest. */ - class GetChangelogRequest implements IGetChangelogRequest { + /** AutoExpansionMode enum. */ + enum AutoExpansionMode { + AUTO_EXPANSION_MODE_UNSPECIFIED = 0, + AUTO_EXPANSION_MODE_DEFAULT = 1 + } - /** - * Constructs a new GetChangelogRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetChangelogRequest); + /** Properties of an Entity. */ + interface IEntity { - /** GetChangelogRequest name. */ - public name: string; + /** Entity value */ + value?: (string|null); - /** - * Creates a new GetChangelogRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetChangelogRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IGetChangelogRequest): google.cloud.dialogflow.cx.v3.GetChangelogRequest; + /** Entity synonyms */ + synonyms?: (string[]|null); + } - /** - * Encodes the specified GetChangelogRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetChangelogRequest.verify|verify} messages. - * @param message GetChangelogRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.IGetChangelogRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents an Entity. */ + class Entity implements IEntity { - /** - * Encodes the specified GetChangelogRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetChangelogRequest.verify|verify} messages. - * @param message GetChangelogRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetChangelogRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new Entity. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.EntityType.IEntity); - /** - * Decodes a GetChangelogRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetChangelogRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetChangelogRequest; + /** Entity value. */ + public value: string; - /** - * Decodes a GetChangelogRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetChangelogRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetChangelogRequest; + /** Entity synonyms. */ + public synonyms: string[]; - /** - * Verifies a GetChangelogRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a new Entity instance using the specified properties. + * @param [properties] Properties to set + * @returns Entity instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.EntityType.IEntity): google.cloud.dialogflow.cx.v3.EntityType.Entity; - /** - * Creates a GetChangelogRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetChangelogRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetChangelogRequest; + /** + * Encodes the specified Entity message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.Entity.verify|verify} messages. + * @param message Entity message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.EntityType.IEntity, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a GetChangelogRequest message. Also converts values to other types if specified. - * @param message GetChangelogRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.GetChangelogRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified Entity message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.Entity.verify|verify} messages. + * @param message Entity message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.EntityType.IEntity, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this GetChangelogRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Decodes an Entity message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Entity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.EntityType.Entity; - /** Properties of a Changelog. */ - interface IChangelog { + /** + * Decodes an Entity message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Entity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.EntityType.Entity; - /** Changelog name */ - name?: (string|null); + /** + * Verifies an Entity message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Changelog userEmail */ - userEmail?: (string|null); + /** + * Creates an Entity message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Entity + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.EntityType.Entity; - /** Changelog displayName */ - displayName?: (string|null); + /** + * Creates a plain object from an Entity message. Also converts values to other types if specified. + * @param message Entity + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.EntityType.Entity, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Changelog action */ - action?: (string|null); + /** + * Converts this Entity to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Changelog type */ - type?: (string|null); + /** Properties of an ExcludedPhrase. */ + interface IExcludedPhrase { - /** Changelog resource */ - resource?: (string|null); + /** ExcludedPhrase value */ + value?: (string|null); + } - /** Changelog createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** Represents an ExcludedPhrase. */ + class ExcludedPhrase implements IExcludedPhrase { + + /** + * Constructs a new ExcludedPhrase. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase); + + /** ExcludedPhrase value. */ + public value: string; + + /** + * Creates a new ExcludedPhrase instance using the specified properties. + * @param [properties] Properties to set + * @returns ExcludedPhrase instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase): google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase; + + /** + * Encodes the specified ExcludedPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase.verify|verify} messages. + * @param message ExcludedPhrase message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExcludedPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase.verify|verify} messages. + * @param message ExcludedPhrase message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExcludedPhrase message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExcludedPhrase + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase; + + /** + * Decodes an ExcludedPhrase message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExcludedPhrase + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase; + + /** + * Verifies an ExcludedPhrase message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExcludedPhrase message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExcludedPhrase + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase; + + /** + * Creates a plain object from an ExcludedPhrase message. Also converts values to other types if specified. + * @param message ExcludedPhrase + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExcludedPhrase to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Represents a Changelog. */ - class Changelog implements IChangelog { + /** Properties of a ListEntityTypesRequest. */ + interface IListEntityTypesRequest { - /** - * Constructs a new Changelog. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IChangelog); + /** ListEntityTypesRequest parent */ + parent?: (string|null); - /** Changelog name. */ - public name: string; + /** ListEntityTypesRequest languageCode */ + languageCode?: (string|null); - /** Changelog userEmail. */ - public userEmail: string; + /** ListEntityTypesRequest pageSize */ + pageSize?: (number|null); - /** Changelog displayName. */ - public displayName: string; + /** ListEntityTypesRequest pageToken */ + pageToken?: (string|null); + } - /** Changelog action. */ - public action: string; + /** Represents a ListEntityTypesRequest. */ + class ListEntityTypesRequest implements IListEntityTypesRequest { - /** Changelog type. */ - public type: string; + /** + * Constructs a new ListEntityTypesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IListEntityTypesRequest); - /** Changelog resource. */ - public resource: string; + /** ListEntityTypesRequest parent. */ + public parent: string; - /** Changelog createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** ListEntityTypesRequest languageCode. */ + public languageCode: string; + + /** ListEntityTypesRequest pageSize. */ + public pageSize: number; + + /** ListEntityTypesRequest pageToken. */ + public pageToken: string; /** - * Creates a new Changelog instance using the specified properties. + * Creates a new ListEntityTypesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Changelog instance + * @returns ListEntityTypesRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IChangelog): google.cloud.dialogflow.cx.v3.Changelog; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListEntityTypesRequest): google.cloud.dialogflow.cx.v3.ListEntityTypesRequest; /** - * Encodes the specified Changelog message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Changelog.verify|verify} messages. - * @param message Changelog message or plain object to encode + * Encodes the specified ListEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEntityTypesRequest.verify|verify} messages. + * @param message ListEntityTypesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IChangelog, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Changelog message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Changelog.verify|verify} messages. - * @param message Changelog message or plain object to encode + * Encodes the specified ListEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEntityTypesRequest.verify|verify} messages. + * @param message ListEntityTypesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IChangelog, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Changelog message from the specified reader or buffer. + * Decodes a ListEntityTypesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Changelog + * @returns ListEntityTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Changelog; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListEntityTypesRequest; /** - * Decodes a Changelog message from the specified reader or buffer, length delimited. + * Decodes a ListEntityTypesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Changelog + * @returns ListEntityTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Changelog; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListEntityTypesRequest; /** - * Verifies a Changelog message. + * Verifies a ListEntityTypesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Changelog message from a plain object. Also converts values to their respective internal types. + * Creates a ListEntityTypesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Changelog + * @returns ListEntityTypesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Changelog; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListEntityTypesRequest; /** - * Creates a plain object from a Changelog message. Also converts values to other types if specified. - * @param message Changelog + * Creates a plain object from a ListEntityTypesRequest message. Also converts values to other types if specified. + * @param message ListEntityTypesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Changelog, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListEntityTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Changelog to JSON. + * Converts this ListEntityTypesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a Deployments */ - class Deployments extends $protobuf.rpc.Service { + /** Properties of a ListEntityTypesResponse. */ + interface IListEntityTypesResponse { + + /** ListEntityTypesResponse entityTypes */ + entityTypes?: (google.cloud.dialogflow.cx.v3.IEntityType[]|null); + + /** ListEntityTypesResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListEntityTypesResponse. */ + class ListEntityTypesResponse implements IListEntityTypesResponse { /** - * Constructs a new Deployments service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited + * Constructs a new ListEntityTypesResponse. + * @param [properties] Properties to set */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListEntityTypesResponse); + + /** ListEntityTypesResponse entityTypes. */ + public entityTypes: google.cloud.dialogflow.cx.v3.IEntityType[]; + + /** ListEntityTypesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates new Deployments service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. + * Creates a new ListEntityTypesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListEntityTypesResponse instance */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Deployments; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListEntityTypesResponse): google.cloud.dialogflow.cx.v3.ListEntityTypesResponse; /** - * Calls ListDeployments. - * @param request ListDeploymentsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListDeploymentsResponse + * Encodes the specified ListEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEntityTypesResponse.verify|verify} messages. + * @param message ListEntityTypesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listDeployments(request: google.cloud.dialogflow.cx.v3.IListDeploymentsRequest, callback: google.cloud.dialogflow.cx.v3.Deployments.ListDeploymentsCallback): void; + public static encode(message: google.cloud.dialogflow.cx.v3.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListDeployments. - * @param request ListDeploymentsRequest message or plain object - * @returns Promise + * Encodes the specified ListEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEntityTypesResponse.verify|verify} messages. + * @param message ListEntityTypesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listDeployments(request: google.cloud.dialogflow.cx.v3.IListDeploymentsRequest): Promise; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetDeployment. - * @param request GetDeploymentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Deployment + * Decodes a ListEntityTypesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListEntityTypesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getDeployment(request: google.cloud.dialogflow.cx.v3.IGetDeploymentRequest, callback: google.cloud.dialogflow.cx.v3.Deployments.GetDeploymentCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListEntityTypesResponse; /** - * Calls GetDeployment. - * @param request GetDeploymentRequest message or plain object - * @returns Promise + * Decodes a ListEntityTypesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListEntityTypesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getDeployment(request: google.cloud.dialogflow.cx.v3.IGetDeploymentRequest): Promise; - } + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListEntityTypesResponse; - namespace Deployments { + /** + * Verifies a ListEntityTypesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Deployments#listDeployments}. - * @param error Error, if any - * @param [response] ListDeploymentsResponse + * Creates a ListEntityTypesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListEntityTypesResponse */ - type ListDeploymentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListDeploymentsResponse) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListEntityTypesResponse; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Deployments#getDeployment}. - * @param error Error, if any - * @param [response] Deployment + * Creates a plain object from a ListEntityTypesResponse message. Also converts values to other types if specified. + * @param message ListEntityTypesResponse + * @param [options] Conversion options + * @returns Plain object */ - type GetDeploymentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Deployment) => void; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListEntityTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListEntityTypesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Properties of a Deployment. */ - interface IDeployment { + /** Properties of a GetEntityTypeRequest. */ + interface IGetEntityTypeRequest { - /** Deployment name */ + /** GetEntityTypeRequest name */ name?: (string|null); - /** Deployment flowVersion */ - flowVersion?: (string|null); - - /** Deployment state */ - state?: (google.cloud.dialogflow.cx.v3.Deployment.State|keyof typeof google.cloud.dialogflow.cx.v3.Deployment.State|null); - - /** Deployment result */ - result?: (google.cloud.dialogflow.cx.v3.Deployment.IResult|null); - - /** Deployment startTime */ - startTime?: (google.protobuf.ITimestamp|null); - - /** Deployment endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** GetEntityTypeRequest languageCode */ + languageCode?: (string|null); } - /** Represents a Deployment. */ - class Deployment implements IDeployment { + /** Represents a GetEntityTypeRequest. */ + class GetEntityTypeRequest implements IGetEntityTypeRequest { /** - * Constructs a new Deployment. + * Constructs a new GetEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDeployment); + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest); - /** Deployment name. */ + /** GetEntityTypeRequest name. */ public name: string; - /** Deployment flowVersion. */ - public flowVersion: string; - - /** Deployment state. */ - public state: (google.cloud.dialogflow.cx.v3.Deployment.State|keyof typeof google.cloud.dialogflow.cx.v3.Deployment.State); - - /** Deployment result. */ - public result?: (google.cloud.dialogflow.cx.v3.Deployment.IResult|null); - - /** Deployment startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); - - /** Deployment endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** GetEntityTypeRequest languageCode. */ + public languageCode: string; /** - * Creates a new Deployment instance using the specified properties. + * Creates a new GetEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Deployment instance + * @returns GetEntityTypeRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IDeployment): google.cloud.dialogflow.cx.v3.Deployment; + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest): google.cloud.dialogflow.cx.v3.GetEntityTypeRequest; /** - * Encodes the specified Deployment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Deployment.verify|verify} messages. - * @param message Deployment message or plain object to encode + * Encodes the specified GetEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetEntityTypeRequest.verify|verify} messages. + * @param message GetEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IDeployment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Deployment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Deployment.verify|verify} messages. - * @param message Deployment message or plain object to encode + * Encodes the specified GetEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetEntityTypeRequest.verify|verify} messages. + * @param message GetEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeployment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Deployment message from the specified reader or buffer. + * Decodes a GetEntityTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Deployment + * @returns GetEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Deployment; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetEntityTypeRequest; /** - * Decodes a Deployment message from the specified reader or buffer, length delimited. + * Decodes a GetEntityTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Deployment + * @returns GetEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Deployment; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetEntityTypeRequest; /** - * Verifies a Deployment message. + * Verifies a GetEntityTypeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Deployment message from a plain object. Also converts values to their respective internal types. + * Creates a GetEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Deployment + * @returns GetEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Deployment; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetEntityTypeRequest; /** - * Creates a plain object from a Deployment message. Also converts values to other types if specified. - * @param message Deployment + * Creates a plain object from a GetEntityTypeRequest message. Also converts values to other types if specified. + * @param message GetEntityTypeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Deployment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.GetEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Deployment to JSON. + * Converts this GetEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Deployment { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - RUNNING = 1, - SUCCEEDED = 2, - FAILED = 3 - } - - /** Properties of a Result. */ - interface IResult { - - /** Result deploymentTestResults */ - deploymentTestResults?: (string[]|null); - - /** Result experiment */ - experiment?: (string|null); - } - - /** Represents a Result. */ - class Result implements IResult { - - /** - * Constructs a new Result. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Deployment.IResult); - - /** Result deploymentTestResults. */ - public deploymentTestResults: string[]; - - /** Result experiment. */ - public experiment: string; - - /** - * Creates a new Result instance using the specified properties. - * @param [properties] Properties to set - * @returns Result instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.Deployment.IResult): google.cloud.dialogflow.cx.v3.Deployment.Result; - - /** - * Encodes the specified Result message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Deployment.Result.verify|verify} messages. - * @param message Result message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.Deployment.IResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Result message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Deployment.Result.verify|verify} messages. - * @param message Result message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Deployment.IResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Result message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Result - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Deployment.Result; - - /** - * Decodes a Result message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Result - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Deployment.Result; - - /** - * Verifies a Result message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Result message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Result - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Deployment.Result; - - /** - * Creates a plain object from a Result message. Also converts values to other types if specified. - * @param message Result - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Deployment.Result, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Result to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of a ListDeploymentsRequest. */ - interface IListDeploymentsRequest { + /** Properties of a CreateEntityTypeRequest. */ + interface ICreateEntityTypeRequest { - /** ListDeploymentsRequest parent */ + /** CreateEntityTypeRequest parent */ parent?: (string|null); - /** ListDeploymentsRequest pageSize */ - pageSize?: (number|null); + /** CreateEntityTypeRequest entityType */ + entityType?: (google.cloud.dialogflow.cx.v3.IEntityType|null); - /** ListDeploymentsRequest pageToken */ - pageToken?: (string|null); + /** CreateEntityTypeRequest languageCode */ + languageCode?: (string|null); } - /** Represents a ListDeploymentsRequest. */ - class ListDeploymentsRequest implements IListDeploymentsRequest { + /** Represents a CreateEntityTypeRequest. */ + class CreateEntityTypeRequest implements ICreateEntityTypeRequest { /** - * Constructs a new ListDeploymentsRequest. + * Constructs a new CreateEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListDeploymentsRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest); - /** ListDeploymentsRequest parent. */ + /** CreateEntityTypeRequest parent. */ public parent: string; - /** ListDeploymentsRequest pageSize. */ - public pageSize: number; + /** CreateEntityTypeRequest entityType. */ + public entityType?: (google.cloud.dialogflow.cx.v3.IEntityType|null); - /** ListDeploymentsRequest pageToken. */ - public pageToken: string; + /** CreateEntityTypeRequest languageCode. */ + public languageCode: string; /** - * Creates a new ListDeploymentsRequest instance using the specified properties. + * Creates a new CreateEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListDeploymentsRequest instance + * @returns CreateEntityTypeRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListDeploymentsRequest): google.cloud.dialogflow.cx.v3.ListDeploymentsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest): google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest; /** - * Encodes the specified ListDeploymentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListDeploymentsRequest.verify|verify} messages. - * @param message ListDeploymentsRequest message or plain object to encode + * Encodes the specified CreateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest.verify|verify} messages. + * @param message CreateEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListDeploymentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDeploymentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListDeploymentsRequest.verify|verify} messages. - * @param message ListDeploymentsRequest message or plain object to encode + * Encodes the specified CreateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest.verify|verify} messages. + * @param message CreateEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListDeploymentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDeploymentsRequest message from the specified reader or buffer. + * Decodes a CreateEntityTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDeploymentsRequest + * @returns CreateEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListDeploymentsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest; /** - * Decodes a ListDeploymentsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateEntityTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDeploymentsRequest + * @returns CreateEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListDeploymentsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest; /** - * Verifies a ListDeploymentsRequest message. + * Verifies a CreateEntityTypeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListDeploymentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDeploymentsRequest + * @returns CreateEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListDeploymentsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest; /** - * Creates a plain object from a ListDeploymentsRequest message. Also converts values to other types if specified. - * @param message ListDeploymentsRequest + * Creates a plain object from a CreateEntityTypeRequest message. Also converts values to other types if specified. + * @param message CreateEntityTypeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListDeploymentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDeploymentsRequest to JSON. + * Converts this CreateEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListDeploymentsResponse. */ - interface IListDeploymentsResponse { + /** Properties of an UpdateEntityTypeRequest. */ + interface IUpdateEntityTypeRequest { - /** ListDeploymentsResponse deployments */ - deployments?: (google.cloud.dialogflow.cx.v3.IDeployment[]|null); + /** UpdateEntityTypeRequest entityType */ + entityType?: (google.cloud.dialogflow.cx.v3.IEntityType|null); - /** ListDeploymentsResponse nextPageToken */ - nextPageToken?: (string|null); + /** UpdateEntityTypeRequest languageCode */ + languageCode?: (string|null); + + /** UpdateEntityTypeRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ListDeploymentsResponse. */ - class ListDeploymentsResponse implements IListDeploymentsResponse { + /** Represents an UpdateEntityTypeRequest. */ + class UpdateEntityTypeRequest implements IUpdateEntityTypeRequest { /** - * Constructs a new ListDeploymentsResponse. + * Constructs a new UpdateEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListDeploymentsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest); - /** ListDeploymentsResponse deployments. */ - public deployments: google.cloud.dialogflow.cx.v3.IDeployment[]; + /** UpdateEntityTypeRequest entityType. */ + public entityType?: (google.cloud.dialogflow.cx.v3.IEntityType|null); - /** ListDeploymentsResponse nextPageToken. */ - public nextPageToken: string; + /** UpdateEntityTypeRequest languageCode. */ + public languageCode: string; + + /** UpdateEntityTypeRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ListDeploymentsResponse instance using the specified properties. + * Creates a new UpdateEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListDeploymentsResponse instance + * @returns UpdateEntityTypeRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListDeploymentsResponse): google.cloud.dialogflow.cx.v3.ListDeploymentsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest): google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest; /** - * Encodes the specified ListDeploymentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListDeploymentsResponse.verify|verify} messages. - * @param message ListDeploymentsResponse message or plain object to encode + * Encodes the specified UpdateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest.verify|verify} messages. + * @param message UpdateEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListDeploymentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDeploymentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListDeploymentsResponse.verify|verify} messages. - * @param message ListDeploymentsResponse message or plain object to encode + * Encodes the specified UpdateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest.verify|verify} messages. + * @param message UpdateEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListDeploymentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDeploymentsResponse message from the specified reader or buffer. + * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDeploymentsResponse + * @returns UpdateEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListDeploymentsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest; /** - * Decodes a ListDeploymentsResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDeploymentsResponse + * @returns UpdateEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListDeploymentsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest; /** - * Verifies a ListDeploymentsResponse message. + * Verifies an UpdateEntityTypeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListDeploymentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDeploymentsResponse + * @returns UpdateEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListDeploymentsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest; /** - * Creates a plain object from a ListDeploymentsResponse message. Also converts values to other types if specified. - * @param message ListDeploymentsResponse + * Creates a plain object from an UpdateEntityTypeRequest message. Also converts values to other types if specified. + * @param message UpdateEntityTypeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListDeploymentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDeploymentsResponse to JSON. + * Converts this UpdateEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetDeploymentRequest. */ - interface IGetDeploymentRequest { + /** Properties of a DeleteEntityTypeRequest. */ + interface IDeleteEntityTypeRequest { - /** GetDeploymentRequest name */ + /** DeleteEntityTypeRequest name */ name?: (string|null); + + /** DeleteEntityTypeRequest force */ + force?: (boolean|null); } - /** Represents a GetDeploymentRequest. */ - class GetDeploymentRequest implements IGetDeploymentRequest { + /** Represents a DeleteEntityTypeRequest. */ + class DeleteEntityTypeRequest implements IDeleteEntityTypeRequest { /** - * Constructs a new GetDeploymentRequest. + * Constructs a new DeleteEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetDeploymentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest); - /** GetDeploymentRequest name. */ + /** DeleteEntityTypeRequest name. */ public name: string; + /** DeleteEntityTypeRequest force. */ + public force: boolean; + /** - * Creates a new GetDeploymentRequest instance using the specified properties. + * Creates a new DeleteEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetDeploymentRequest instance + * @returns DeleteEntityTypeRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IGetDeploymentRequest): google.cloud.dialogflow.cx.v3.GetDeploymentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest): google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest; /** - * Encodes the specified GetDeploymentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetDeploymentRequest.verify|verify} messages. - * @param message GetDeploymentRequest message or plain object to encode + * Encodes the specified DeleteEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest.verify|verify} messages. + * @param message DeleteEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IGetDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetDeploymentRequest.verify|verify} messages. - * @param message GetDeploymentRequest message or plain object to encode + * Encodes the specified DeleteEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest.verify|verify} messages. + * @param message DeleteEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetDeploymentRequest message from the specified reader or buffer. + * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetDeploymentRequest + * @returns DeleteEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetDeploymentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest; /** - * Decodes a GetDeploymentRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetDeploymentRequest + * @returns DeleteEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetDeploymentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest; /** - * Verifies a GetDeploymentRequest message. + * Verifies a DeleteEntityTypeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetDeploymentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetDeploymentRequest + * @returns DeleteEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetDeploymentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest; /** - * Creates a plain object from a GetDeploymentRequest message. Also converts values to other types if specified. - * @param message GetDeploymentRequest + * Creates a plain object from a DeleteEntityTypeRequest message. Also converts values to other types if specified. + * @param message DeleteEntityTypeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.GetDeploymentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetDeploymentRequest to JSON. + * Converts this DeleteEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents an EntityTypes */ - class EntityTypes extends $protobuf.rpc.Service { + /** Represents an Environments */ + class Environments extends $protobuf.rpc.Service { /** - * Constructs a new EntityTypes service. + * Constructs a new Environments service. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited @@ -9510,7552 +9623,7668 @@ export namespace google { constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates new EntityTypes service using the specified rpc implementation. + * Creates new Environments service using the specified rpc implementation. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): EntityTypes; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Environments; /** - * Calls ListEntityTypes. - * @param request ListEntityTypesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListEntityTypesResponse + * Calls ListEnvironments. + * @param request ListEnvironmentsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListEnvironmentsResponse */ - public listEntityTypes(request: google.cloud.dialogflow.cx.v3.IListEntityTypesRequest, callback: google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypesCallback): void; + public listEnvironments(request: google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest, callback: google.cloud.dialogflow.cx.v3.Environments.ListEnvironmentsCallback): void; /** - * Calls ListEntityTypes. - * @param request ListEntityTypesRequest message or plain object + * Calls ListEnvironments. + * @param request ListEnvironmentsRequest message or plain object * @returns Promise */ - public listEntityTypes(request: google.cloud.dialogflow.cx.v3.IListEntityTypesRequest): Promise; + public listEnvironments(request: google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest): Promise; /** - * Calls GetEntityType. - * @param request GetEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and EntityType + * Calls GetEnvironment. + * @param request GetEnvironmentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Environment */ - public getEntityType(request: google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityTypeCallback): void; + public getEnvironment(request: google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3.Environments.GetEnvironmentCallback): void; /** - * Calls GetEntityType. - * @param request GetEntityTypeRequest message or plain object + * Calls GetEnvironment. + * @param request GetEnvironmentRequest message or plain object * @returns Promise */ - public getEntityType(request: google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest): Promise; + public getEnvironment(request: google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest): Promise; /** - * Calls CreateEntityType. - * @param request CreateEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and EntityType + * Calls CreateEnvironment. + * @param request CreateEnvironmentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public createEntityType(request: google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.EntityTypes.CreateEntityTypeCallback): void; + public createEnvironment(request: google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3.Environments.CreateEnvironmentCallback): void; /** - * Calls CreateEntityType. - * @param request CreateEntityTypeRequest message or plain object + * Calls CreateEnvironment. + * @param request CreateEnvironmentRequest message or plain object * @returns Promise */ - public createEntityType(request: google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest): Promise; + public createEnvironment(request: google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest): Promise; /** - * Calls UpdateEntityType. - * @param request UpdateEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and EntityType + * Calls UpdateEnvironment. + * @param request UpdateEnvironmentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public updateEntityType(request: google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityTypeCallback): void; + public updateEnvironment(request: google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3.Environments.UpdateEnvironmentCallback): void; /** - * Calls UpdateEntityType. - * @param request UpdateEntityTypeRequest message or plain object + * Calls UpdateEnvironment. + * @param request UpdateEnvironmentRequest message or plain object * @returns Promise */ - public updateEntityType(request: google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest): Promise; + public updateEnvironment(request: google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest): Promise; /** - * Calls DeleteEntityType. - * @param request DeleteEntityTypeRequest message or plain object + * Calls DeleteEnvironment. + * @param request DeleteEnvironmentRequest message or plain object * @param callback Node-style callback called with the error, if any, and Empty */ - public deleteEntityType(request: google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.EntityTypes.DeleteEntityTypeCallback): void; + public deleteEnvironment(request: google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3.Environments.DeleteEnvironmentCallback): void; /** - * Calls DeleteEntityType. - * @param request DeleteEntityTypeRequest message or plain object + * Calls DeleteEnvironment. + * @param request DeleteEnvironmentRequest message or plain object * @returns Promise */ - public deleteEntityType(request: google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest): Promise; + public deleteEnvironment(request: google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest): Promise; + + /** + * Calls LookupEnvironmentHistory. + * @param request LookupEnvironmentHistoryRequest message or plain object + * @param callback Node-style callback called with the error, if any, and LookupEnvironmentHistoryResponse + */ + public lookupEnvironmentHistory(request: google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest, callback: google.cloud.dialogflow.cx.v3.Environments.LookupEnvironmentHistoryCallback): void; + + /** + * Calls LookupEnvironmentHistory. + * @param request LookupEnvironmentHistoryRequest message or plain object + * @returns Promise + */ + public lookupEnvironmentHistory(request: google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest): Promise; + + /** + * Calls RunContinuousTest. + * @param request RunContinuousTestRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public runContinuousTest(request: google.cloud.dialogflow.cx.v3.IRunContinuousTestRequest, callback: google.cloud.dialogflow.cx.v3.Environments.RunContinuousTestCallback): void; + + /** + * Calls RunContinuousTest. + * @param request RunContinuousTestRequest message or plain object + * @returns Promise + */ + public runContinuousTest(request: google.cloud.dialogflow.cx.v3.IRunContinuousTestRequest): Promise; + + /** + * Calls ListContinuousTestResults. + * @param request ListContinuousTestResultsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListContinuousTestResultsResponse + */ + public listContinuousTestResults(request: google.cloud.dialogflow.cx.v3.IListContinuousTestResultsRequest, callback: google.cloud.dialogflow.cx.v3.Environments.ListContinuousTestResultsCallback): void; + + /** + * Calls ListContinuousTestResults. + * @param request ListContinuousTestResultsRequest message or plain object + * @returns Promise + */ + public listContinuousTestResults(request: google.cloud.dialogflow.cx.v3.IListContinuousTestResultsRequest): Promise; + + /** + * Calls DeployFlow. + * @param request DeployFlowRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deployFlow(request: google.cloud.dialogflow.cx.v3.IDeployFlowRequest, callback: google.cloud.dialogflow.cx.v3.Environments.DeployFlowCallback): void; + + /** + * Calls DeployFlow. + * @param request DeployFlowRequest message or plain object + * @returns Promise + */ + public deployFlow(request: google.cloud.dialogflow.cx.v3.IDeployFlowRequest): Promise; } - namespace EntityTypes { + namespace Environments { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes#listEntityTypes}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#listEnvironments}. * @param error Error, if any - * @param [response] ListEntityTypesResponse + * @param [response] ListEnvironmentsResponse */ - type ListEntityTypesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListEntityTypesResponse) => void; + type ListEnvironmentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes#getEntityType}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#getEnvironment}. * @param error Error, if any - * @param [response] EntityType + * @param [response] Environment */ - type GetEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.EntityType) => void; + type GetEnvironmentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Environment) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes#createEntityType}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#createEnvironment}. * @param error Error, if any - * @param [response] EntityType + * @param [response] Operation */ - type CreateEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.EntityType) => void; + type CreateEnvironmentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes#updateEntityType}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#updateEnvironment}. * @param error Error, if any - * @param [response] EntityType + * @param [response] Operation */ - type UpdateEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.EntityType) => void; + type UpdateEnvironmentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes#deleteEntityType}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#deleteEnvironment}. * @param error Error, if any * @param [response] Empty */ - type DeleteEntityTypeCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - } - - /** Properties of an EntityType. */ - interface IEntityType { + type DeleteEnvironmentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - /** EntityType name */ - name?: (string|null); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#lookupEnvironmentHistory}. + * @param error Error, if any + * @param [response] LookupEnvironmentHistoryResponse + */ + type LookupEnvironmentHistoryCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse) => void; - /** EntityType displayName */ - displayName?: (string|null); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#runContinuousTest}. + * @param error Error, if any + * @param [response] Operation + */ + type RunContinuousTestCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** EntityType kind */ - kind?: (google.cloud.dialogflow.cx.v3.EntityType.Kind|keyof typeof google.cloud.dialogflow.cx.v3.EntityType.Kind|null); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#listContinuousTestResults}. + * @param error Error, if any + * @param [response] ListContinuousTestResultsResponse + */ + type ListContinuousTestResultsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse) => void; - /** EntityType autoExpansionMode */ - autoExpansionMode?: (google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode|keyof typeof google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode|null); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#deployFlow}. + * @param error Error, if any + * @param [response] Operation + */ + type DeployFlowCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + } - /** EntityType entities */ - entities?: (google.cloud.dialogflow.cx.v3.EntityType.IEntity[]|null); + /** Properties of an Environment. */ + interface IEnvironment { - /** EntityType excludedPhrases */ - excludedPhrases?: (google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase[]|null); + /** Environment name */ + name?: (string|null); - /** EntityType enableFuzzyExtraction */ - enableFuzzyExtraction?: (boolean|null); + /** Environment displayName */ + displayName?: (string|null); - /** EntityType redact */ - redact?: (boolean|null); + /** Environment description */ + description?: (string|null); + + /** Environment versionConfigs */ + versionConfigs?: (google.cloud.dialogflow.cx.v3.Environment.IVersionConfig[]|null); + + /** Environment updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Environment testCasesConfig */ + testCasesConfig?: (google.cloud.dialogflow.cx.v3.Environment.ITestCasesConfig|null); } - /** Represents an EntityType. */ - class EntityType implements IEntityType { + /** Represents an Environment. */ + class Environment implements IEnvironment { /** - * Constructs a new EntityType. + * Constructs a new Environment. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IEntityType); + constructor(properties?: google.cloud.dialogflow.cx.v3.IEnvironment); - /** EntityType name. */ + /** Environment name. */ public name: string; - /** EntityType displayName. */ + /** Environment displayName. */ public displayName: string; - /** EntityType kind. */ - public kind: (google.cloud.dialogflow.cx.v3.EntityType.Kind|keyof typeof google.cloud.dialogflow.cx.v3.EntityType.Kind); - - /** EntityType autoExpansionMode. */ - public autoExpansionMode: (google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode|keyof typeof google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode); - - /** EntityType entities. */ - public entities: google.cloud.dialogflow.cx.v3.EntityType.IEntity[]; + /** Environment description. */ + public description: string; - /** EntityType excludedPhrases. */ - public excludedPhrases: google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase[]; + /** Environment versionConfigs. */ + public versionConfigs: google.cloud.dialogflow.cx.v3.Environment.IVersionConfig[]; - /** EntityType enableFuzzyExtraction. */ - public enableFuzzyExtraction: boolean; + /** Environment updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** EntityType redact. */ - public redact: boolean; + /** Environment testCasesConfig. */ + public testCasesConfig?: (google.cloud.dialogflow.cx.v3.Environment.ITestCasesConfig|null); /** - * Creates a new EntityType instance using the specified properties. + * Creates a new Environment instance using the specified properties. * @param [properties] Properties to set - * @returns EntityType instance + * @returns Environment instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IEntityType): google.cloud.dialogflow.cx.v3.EntityType; + public static create(properties?: google.cloud.dialogflow.cx.v3.IEnvironment): google.cloud.dialogflow.cx.v3.Environment; /** - * Encodes the specified EntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.verify|verify} messages. - * @param message EntityType message or plain object to encode + * Encodes the specified Environment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Environment.verify|verify} messages. + * @param message Environment message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.verify|verify} messages. - * @param message EntityType message or plain object to encode + * Encodes the specified Environment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Environment.verify|verify} messages. + * @param message Environment message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EntityType message from the specified reader or buffer. + * Decodes an Environment message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EntityType + * @returns Environment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.EntityType; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Environment; /** - * Decodes an EntityType message from the specified reader or buffer, length delimited. + * Decodes an Environment message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EntityType + * @returns Environment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.EntityType; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Environment; /** - * Verifies an EntityType message. + * Verifies an Environment message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an EntityType message from a plain object. Also converts values to their respective internal types. + * Creates an Environment message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EntityType + * @returns Environment */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.EntityType; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Environment; /** - * Creates a plain object from an EntityType message. Also converts values to other types if specified. - * @param message EntityType + * Creates a plain object from an Environment message. Also converts values to other types if specified. + * @param message Environment * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.EntityType, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Environment, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EntityType to JSON. + * Converts this Environment to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace EntityType { - - /** Kind enum. */ - enum Kind { - KIND_UNSPECIFIED = 0, - KIND_MAP = 1, - KIND_LIST = 2, - KIND_REGEXP = 3 - } - - /** AutoExpansionMode enum. */ - enum AutoExpansionMode { - AUTO_EXPANSION_MODE_UNSPECIFIED = 0, - AUTO_EXPANSION_MODE_DEFAULT = 1 - } - - /** Properties of an Entity. */ - interface IEntity { + namespace Environment { - /** Entity value */ - value?: (string|null); + /** Properties of a VersionConfig. */ + interface IVersionConfig { - /** Entity synonyms */ - synonyms?: (string[]|null); + /** VersionConfig version */ + version?: (string|null); } - /** Represents an Entity. */ - class Entity implements IEntity { + /** Represents a VersionConfig. */ + class VersionConfig implements IVersionConfig { /** - * Constructs a new Entity. + * Constructs a new VersionConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.EntityType.IEntity); - - /** Entity value. */ - public value: string; + constructor(properties?: google.cloud.dialogflow.cx.v3.Environment.IVersionConfig); - /** Entity synonyms. */ - public synonyms: string[]; + /** VersionConfig version. */ + public version: string; /** - * Creates a new Entity instance using the specified properties. + * Creates a new VersionConfig instance using the specified properties. * @param [properties] Properties to set - * @returns Entity instance + * @returns VersionConfig instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.EntityType.IEntity): google.cloud.dialogflow.cx.v3.EntityType.Entity; + public static create(properties?: google.cloud.dialogflow.cx.v3.Environment.IVersionConfig): google.cloud.dialogflow.cx.v3.Environment.VersionConfig; /** - * Encodes the specified Entity message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.Entity.verify|verify} messages. - * @param message Entity message or plain object to encode + * Encodes the specified VersionConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Environment.VersionConfig.verify|verify} messages. + * @param message VersionConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.EntityType.IEntity, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.Environment.IVersionConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Entity message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.Entity.verify|verify} messages. - * @param message Entity message or plain object to encode + * Encodes the specified VersionConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Environment.VersionConfig.verify|verify} messages. + * @param message VersionConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.EntityType.IEntity, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Environment.IVersionConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Entity message from the specified reader or buffer. + * Decodes a VersionConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Entity + * @returns VersionConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.EntityType.Entity; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Environment.VersionConfig; /** - * Decodes an Entity message from the specified reader or buffer, length delimited. + * Decodes a VersionConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Entity + * @returns VersionConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.EntityType.Entity; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Environment.VersionConfig; /** - * Verifies an Entity message. + * Verifies a VersionConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an Entity message from a plain object. Also converts values to their respective internal types. + * Creates a VersionConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Entity + * @returns VersionConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.EntityType.Entity; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Environment.VersionConfig; /** - * Creates a plain object from an Entity message. Also converts values to other types if specified. - * @param message Entity + * Creates a plain object from a VersionConfig message. Also converts values to other types if specified. + * @param message VersionConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.EntityType.Entity, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Environment.VersionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Entity to JSON. + * Converts this VersionConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ExcludedPhrase. */ - interface IExcludedPhrase { + /** Properties of a TestCasesConfig. */ + interface ITestCasesConfig { - /** ExcludedPhrase value */ - value?: (string|null); + /** TestCasesConfig testCases */ + testCases?: (string[]|null); + + /** TestCasesConfig enableContinuousRun */ + enableContinuousRun?: (boolean|null); + + /** TestCasesConfig enablePredeploymentRun */ + enablePredeploymentRun?: (boolean|null); } - /** Represents an ExcludedPhrase. */ - class ExcludedPhrase implements IExcludedPhrase { + /** Represents a TestCasesConfig. */ + class TestCasesConfig implements ITestCasesConfig { /** - * Constructs a new ExcludedPhrase. + * Constructs a new TestCasesConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase); + constructor(properties?: google.cloud.dialogflow.cx.v3.Environment.ITestCasesConfig); - /** ExcludedPhrase value. */ - public value: string; + /** TestCasesConfig testCases. */ + public testCases: string[]; + + /** TestCasesConfig enableContinuousRun. */ + public enableContinuousRun: boolean; + + /** TestCasesConfig enablePredeploymentRun. */ + public enablePredeploymentRun: boolean; /** - * Creates a new ExcludedPhrase instance using the specified properties. + * Creates a new TestCasesConfig instance using the specified properties. * @param [properties] Properties to set - * @returns ExcludedPhrase instance + * @returns TestCasesConfig instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase): google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase; + public static create(properties?: google.cloud.dialogflow.cx.v3.Environment.ITestCasesConfig): google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig; /** - * Encodes the specified ExcludedPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase.verify|verify} messages. - * @param message ExcludedPhrase message or plain object to encode + * Encodes the specified TestCasesConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.verify|verify} messages. + * @param message TestCasesConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.Environment.ITestCasesConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExcludedPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase.verify|verify} messages. - * @param message ExcludedPhrase message or plain object to encode + * Encodes the specified TestCasesConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.verify|verify} messages. + * @param message TestCasesConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Environment.ITestCasesConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExcludedPhrase message from the specified reader or buffer. + * Decodes a TestCasesConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExcludedPhrase + * @returns TestCasesConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig; /** - * Decodes an ExcludedPhrase message from the specified reader or buffer, length delimited. + * Decodes a TestCasesConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExcludedPhrase + * @returns TestCasesConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig; /** - * Verifies an ExcludedPhrase message. + * Verifies a TestCasesConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ExcludedPhrase message from a plain object. Also converts values to their respective internal types. + * Creates a TestCasesConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExcludedPhrase + * @returns TestCasesConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig; /** - * Creates a plain object from an ExcludedPhrase message. Also converts values to other types if specified. - * @param message ExcludedPhrase + * Creates a plain object from a TestCasesConfig message. Also converts values to other types if specified. + * @param message TestCasesConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExcludedPhrase to JSON. + * Converts this TestCasesConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } } - /** Properties of a ListEntityTypesRequest. */ - interface IListEntityTypesRequest { + /** Properties of a ListEnvironmentsRequest. */ + interface IListEnvironmentsRequest { - /** ListEntityTypesRequest parent */ + /** ListEnvironmentsRequest parent */ parent?: (string|null); - /** ListEntityTypesRequest languageCode */ - languageCode?: (string|null); - - /** ListEntityTypesRequest pageSize */ + /** ListEnvironmentsRequest pageSize */ pageSize?: (number|null); - /** ListEntityTypesRequest pageToken */ + /** ListEnvironmentsRequest pageToken */ pageToken?: (string|null); } - /** Represents a ListEntityTypesRequest. */ - class ListEntityTypesRequest implements IListEntityTypesRequest { + /** Represents a ListEnvironmentsRequest. */ + class ListEnvironmentsRequest implements IListEnvironmentsRequest { /** - * Constructs a new ListEntityTypesRequest. + * Constructs a new ListEnvironmentsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListEntityTypesRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest); - /** ListEntityTypesRequest parent. */ + /** ListEnvironmentsRequest parent. */ public parent: string; - /** ListEntityTypesRequest languageCode. */ - public languageCode: string; - - /** ListEntityTypesRequest pageSize. */ + /** ListEnvironmentsRequest pageSize. */ public pageSize: number; - /** ListEntityTypesRequest pageToken. */ + /** ListEnvironmentsRequest pageToken. */ public pageToken: string; /** - * Creates a new ListEntityTypesRequest instance using the specified properties. + * Creates a new ListEnvironmentsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListEntityTypesRequest instance + * @returns ListEnvironmentsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListEntityTypesRequest): google.cloud.dialogflow.cx.v3.ListEntityTypesRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest): google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest; /** - * Encodes the specified ListEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEntityTypesRequest.verify|verify} messages. - * @param message ListEntityTypesRequest message or plain object to encode + * Encodes the specified ListEnvironmentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest.verify|verify} messages. + * @param message ListEnvironmentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEntityTypesRequest.verify|verify} messages. - * @param message ListEntityTypesRequest message or plain object to encode + * Encodes the specified ListEnvironmentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest.verify|verify} messages. + * @param message ListEnvironmentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListEntityTypesRequest message from the specified reader or buffer. + * Decodes a ListEnvironmentsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListEntityTypesRequest + * @returns ListEnvironmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListEntityTypesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest; /** - * Decodes a ListEntityTypesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListEnvironmentsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListEntityTypesRequest + * @returns ListEnvironmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListEntityTypesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest; /** - * Verifies a ListEntityTypesRequest message. + * Verifies a ListEnvironmentsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListEntityTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListEnvironmentsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListEntityTypesRequest + * @returns ListEnvironmentsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListEntityTypesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest; /** - * Creates a plain object from a ListEntityTypesRequest message. Also converts values to other types if specified. - * @param message ListEntityTypesRequest + * Creates a plain object from a ListEnvironmentsRequest message. Also converts values to other types if specified. + * @param message ListEnvironmentsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListEntityTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListEntityTypesRequest to JSON. + * Converts this ListEnvironmentsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListEntityTypesResponse. */ - interface IListEntityTypesResponse { + /** Properties of a ListEnvironmentsResponse. */ + interface IListEnvironmentsResponse { - /** ListEntityTypesResponse entityTypes */ - entityTypes?: (google.cloud.dialogflow.cx.v3.IEntityType[]|null); + /** ListEnvironmentsResponse environments */ + environments?: (google.cloud.dialogflow.cx.v3.IEnvironment[]|null); - /** ListEntityTypesResponse nextPageToken */ + /** ListEnvironmentsResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a ListEntityTypesResponse. */ - class ListEntityTypesResponse implements IListEntityTypesResponse { + /** Represents a ListEnvironmentsResponse. */ + class ListEnvironmentsResponse implements IListEnvironmentsResponse { /** - * Constructs a new ListEntityTypesResponse. + * Constructs a new ListEnvironmentsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListEntityTypesResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListEnvironmentsResponse); - /** ListEntityTypesResponse entityTypes. */ - public entityTypes: google.cloud.dialogflow.cx.v3.IEntityType[]; + /** ListEnvironmentsResponse environments. */ + public environments: google.cloud.dialogflow.cx.v3.IEnvironment[]; - /** ListEntityTypesResponse nextPageToken. */ + /** ListEnvironmentsResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new ListEntityTypesResponse instance using the specified properties. + * Creates a new ListEnvironmentsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListEntityTypesResponse instance + * @returns ListEnvironmentsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListEntityTypesResponse): google.cloud.dialogflow.cx.v3.ListEntityTypesResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListEnvironmentsResponse): google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse; /** - * Encodes the specified ListEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEntityTypesResponse.verify|verify} messages. - * @param message ListEntityTypesResponse message or plain object to encode + * Encodes the specified ListEnvironmentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse.verify|verify} messages. + * @param message ListEnvironmentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListEnvironmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEntityTypesResponse.verify|verify} messages. - * @param message ListEntityTypesResponse message or plain object to encode + * Encodes the specified ListEnvironmentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse.verify|verify} messages. + * @param message ListEnvironmentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListEnvironmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListEntityTypesResponse message from the specified reader or buffer. + * Decodes a ListEnvironmentsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListEntityTypesResponse + * @returns ListEnvironmentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListEntityTypesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse; /** - * Decodes a ListEntityTypesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListEnvironmentsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListEntityTypesResponse + * @returns ListEnvironmentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListEntityTypesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse; /** - * Verifies a ListEntityTypesResponse message. + * Verifies a ListEnvironmentsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListEntityTypesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListEnvironmentsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListEntityTypesResponse + * @returns ListEnvironmentsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListEntityTypesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse; /** - * Creates a plain object from a ListEntityTypesResponse message. Also converts values to other types if specified. - * @param message ListEntityTypesResponse + * Creates a plain object from a ListEnvironmentsResponse message. Also converts values to other types if specified. + * @param message ListEnvironmentsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListEntityTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListEntityTypesResponse to JSON. + * Converts this ListEnvironmentsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetEntityTypeRequest. */ - interface IGetEntityTypeRequest { + /** Properties of a GetEnvironmentRequest. */ + interface IGetEnvironmentRequest { - /** GetEntityTypeRequest name */ + /** GetEnvironmentRequest name */ name?: (string|null); - - /** GetEntityTypeRequest languageCode */ - languageCode?: (string|null); } - /** Represents a GetEntityTypeRequest. */ - class GetEntityTypeRequest implements IGetEntityTypeRequest { + /** Represents a GetEnvironmentRequest. */ + class GetEnvironmentRequest implements IGetEnvironmentRequest { /** - * Constructs a new GetEntityTypeRequest. + * Constructs a new GetEnvironmentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest); - /** GetEntityTypeRequest name. */ + /** GetEnvironmentRequest name. */ public name: string; - /** GetEntityTypeRequest languageCode. */ - public languageCode: string; - /** - * Creates a new GetEntityTypeRequest instance using the specified properties. + * Creates a new GetEnvironmentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetEntityTypeRequest instance + * @returns GetEnvironmentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest): google.cloud.dialogflow.cx.v3.GetEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest): google.cloud.dialogflow.cx.v3.GetEnvironmentRequest; /** - * Encodes the specified GetEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetEntityTypeRequest.verify|verify} messages. - * @param message GetEntityTypeRequest message or plain object to encode + * Encodes the specified GetEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetEnvironmentRequest.verify|verify} messages. + * @param message GetEnvironmentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetEntityTypeRequest.verify|verify} messages. - * @param message GetEntityTypeRequest message or plain object to encode + * Encodes the specified GetEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetEnvironmentRequest.verify|verify} messages. + * @param message GetEnvironmentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetEntityTypeRequest message from the specified reader or buffer. + * Decodes a GetEnvironmentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetEntityTypeRequest + * @returns GetEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetEnvironmentRequest; /** - * Decodes a GetEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a GetEnvironmentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetEntityTypeRequest + * @returns GetEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetEnvironmentRequest; /** - * Verifies a GetEntityTypeRequest message. + * Verifies a GetEnvironmentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetEnvironmentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetEntityTypeRequest + * @returns GetEnvironmentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetEnvironmentRequest; /** - * Creates a plain object from a GetEntityTypeRequest message. Also converts values to other types if specified. - * @param message GetEntityTypeRequest + * Creates a plain object from a GetEnvironmentRequest message. Also converts values to other types if specified. + * @param message GetEnvironmentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.GetEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.GetEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetEntityTypeRequest to JSON. + * Converts this GetEnvironmentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateEntityTypeRequest. */ - interface ICreateEntityTypeRequest { - - /** CreateEntityTypeRequest parent */ - parent?: (string|null); + /** Properties of a CreateEnvironmentRequest. */ + interface ICreateEnvironmentRequest { - /** CreateEntityTypeRequest entityType */ - entityType?: (google.cloud.dialogflow.cx.v3.IEntityType|null); + /** CreateEnvironmentRequest parent */ + parent?: (string|null); - /** CreateEntityTypeRequest languageCode */ - languageCode?: (string|null); + /** CreateEnvironmentRequest environment */ + environment?: (google.cloud.dialogflow.cx.v3.IEnvironment|null); } - /** Represents a CreateEntityTypeRequest. */ - class CreateEntityTypeRequest implements ICreateEntityTypeRequest { + /** Represents a CreateEnvironmentRequest. */ + class CreateEnvironmentRequest implements ICreateEnvironmentRequest { /** - * Constructs a new CreateEntityTypeRequest. + * Constructs a new CreateEnvironmentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest); - /** CreateEntityTypeRequest parent. */ + /** CreateEnvironmentRequest parent. */ public parent: string; - /** CreateEntityTypeRequest entityType. */ - public entityType?: (google.cloud.dialogflow.cx.v3.IEntityType|null); - - /** CreateEntityTypeRequest languageCode. */ - public languageCode: string; + /** CreateEnvironmentRequest environment. */ + public environment?: (google.cloud.dialogflow.cx.v3.IEnvironment|null); /** - * Creates a new CreateEntityTypeRequest instance using the specified properties. + * Creates a new CreateEnvironmentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateEntityTypeRequest instance + * @returns CreateEnvironmentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest): google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest): google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest; /** - * Encodes the specified CreateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest.verify|verify} messages. - * @param message CreateEntityTypeRequest message or plain object to encode + * Encodes the specified CreateEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest.verify|verify} messages. + * @param message CreateEnvironmentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest.verify|verify} messages. - * @param message CreateEntityTypeRequest message or plain object to encode + * Encodes the specified CreateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest.verify|verify} messages. + * @param message CreateEnvironmentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateEntityTypeRequest message from the specified reader or buffer. + * Decodes a CreateEnvironmentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateEntityTypeRequest + * @returns CreateEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest; /** - * Decodes a CreateEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateEnvironmentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateEntityTypeRequest + * @returns CreateEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest; /** - * Verifies a CreateEntityTypeRequest message. + * Verifies a CreateEnvironmentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateEntityTypeRequest + * @returns CreateEnvironmentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest; /** - * Creates a plain object from a CreateEntityTypeRequest message. Also converts values to other types if specified. - * @param message CreateEntityTypeRequest + * Creates a plain object from a CreateEnvironmentRequest message. Also converts values to other types if specified. + * @param message CreateEnvironmentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateEntityTypeRequest to JSON. + * Converts this CreateEnvironmentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateEntityTypeRequest. */ - interface IUpdateEntityTypeRequest { - - /** UpdateEntityTypeRequest entityType */ - entityType?: (google.cloud.dialogflow.cx.v3.IEntityType|null); + /** Properties of an UpdateEnvironmentRequest. */ + interface IUpdateEnvironmentRequest { - /** UpdateEntityTypeRequest languageCode */ - languageCode?: (string|null); + /** UpdateEnvironmentRequest environment */ + environment?: (google.cloud.dialogflow.cx.v3.IEnvironment|null); - /** UpdateEntityTypeRequest updateMask */ + /** UpdateEnvironmentRequest updateMask */ updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents an UpdateEntityTypeRequest. */ - class UpdateEntityTypeRequest implements IUpdateEntityTypeRequest { + /** Represents an UpdateEnvironmentRequest. */ + class UpdateEnvironmentRequest implements IUpdateEnvironmentRequest { /** - * Constructs a new UpdateEntityTypeRequest. + * Constructs a new UpdateEnvironmentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest); - - /** UpdateEntityTypeRequest entityType. */ - public entityType?: (google.cloud.dialogflow.cx.v3.IEntityType|null); + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest); - /** UpdateEntityTypeRequest languageCode. */ - public languageCode: string; + /** UpdateEnvironmentRequest environment. */ + public environment?: (google.cloud.dialogflow.cx.v3.IEnvironment|null); - /** UpdateEntityTypeRequest updateMask. */ + /** UpdateEnvironmentRequest updateMask. */ public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new UpdateEntityTypeRequest instance using the specified properties. + * Creates a new UpdateEnvironmentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateEntityTypeRequest instance + * @returns UpdateEnvironmentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest): google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest): google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest; /** - * Encodes the specified UpdateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest.verify|verify} messages. - * @param message UpdateEntityTypeRequest message or plain object to encode + * Encodes the specified UpdateEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest.verify|verify} messages. + * @param message UpdateEnvironmentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest.verify|verify} messages. - * @param message UpdateEntityTypeRequest message or plain object to encode + * Encodes the specified UpdateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest.verify|verify} messages. + * @param message UpdateEnvironmentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer. + * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateEntityTypeRequest + * @returns UpdateEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest; /** - * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateEntityTypeRequest + * @returns UpdateEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest; /** - * Verifies an UpdateEntityTypeRequest message. + * Verifies an UpdateEnvironmentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateEntityTypeRequest + * @returns UpdateEnvironmentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest; /** - * Creates a plain object from an UpdateEntityTypeRequest message. Also converts values to other types if specified. - * @param message UpdateEntityTypeRequest + * Creates a plain object from an UpdateEnvironmentRequest message. Also converts values to other types if specified. + * @param message UpdateEnvironmentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateEntityTypeRequest to JSON. + * Converts this UpdateEnvironmentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteEntityTypeRequest. */ - interface IDeleteEntityTypeRequest { + /** Properties of a DeleteEnvironmentRequest. */ + interface IDeleteEnvironmentRequest { - /** DeleteEntityTypeRequest name */ + /** DeleteEnvironmentRequest name */ name?: (string|null); - - /** DeleteEntityTypeRequest force */ - force?: (boolean|null); } - /** Represents a DeleteEntityTypeRequest. */ - class DeleteEntityTypeRequest implements IDeleteEntityTypeRequest { + /** Represents a DeleteEnvironmentRequest. */ + class DeleteEnvironmentRequest implements IDeleteEnvironmentRequest { /** - * Constructs a new DeleteEntityTypeRequest. + * Constructs a new DeleteEnvironmentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest); - /** DeleteEntityTypeRequest name. */ + /** DeleteEnvironmentRequest name. */ public name: string; - /** DeleteEntityTypeRequest force. */ - public force: boolean; - /** - * Creates a new DeleteEntityTypeRequest instance using the specified properties. + * Creates a new DeleteEnvironmentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteEntityTypeRequest instance + * @returns DeleteEnvironmentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest): google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest): google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest; /** - * Encodes the specified DeleteEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest.verify|verify} messages. - * @param message DeleteEntityTypeRequest message or plain object to encode + * Encodes the specified DeleteEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest.verify|verify} messages. + * @param message DeleteEnvironmentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest.verify|verify} messages. - * @param message DeleteEntityTypeRequest message or plain object to encode + * Encodes the specified DeleteEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest.verify|verify} messages. + * @param message DeleteEnvironmentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer. + * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteEntityTypeRequest + * @returns DeleteEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest; /** - * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteEntityTypeRequest + * @returns DeleteEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest; /** - * Verifies a DeleteEntityTypeRequest message. + * Verifies a DeleteEnvironmentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteEnvironmentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteEntityTypeRequest + * @returns DeleteEnvironmentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest; /** - * Creates a plain object from a DeleteEntityTypeRequest message. Also converts values to other types if specified. - * @param message DeleteEntityTypeRequest + * Creates a plain object from a DeleteEnvironmentRequest message. Also converts values to other types if specified. + * @param message DeleteEnvironmentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteEntityTypeRequest to JSON. + * Converts this DeleteEnvironmentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents an Environments */ - class Environments extends $protobuf.rpc.Service { + /** Properties of a LookupEnvironmentHistoryRequest. */ + interface ILookupEnvironmentHistoryRequest { - /** - * Constructs a new Environments service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** LookupEnvironmentHistoryRequest name */ + name?: (string|null); - /** - * Creates new Environments service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Environments; + /** LookupEnvironmentHistoryRequest pageSize */ + pageSize?: (number|null); - /** - * Calls ListEnvironments. - * @param request ListEnvironmentsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListEnvironmentsResponse - */ - public listEnvironments(request: google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest, callback: google.cloud.dialogflow.cx.v3.Environments.ListEnvironmentsCallback): void; + /** LookupEnvironmentHistoryRequest pageToken */ + pageToken?: (string|null); + } - /** - * Calls ListEnvironments. - * @param request ListEnvironmentsRequest message or plain object - * @returns Promise - */ - public listEnvironments(request: google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest): Promise; + /** Represents a LookupEnvironmentHistoryRequest. */ + class LookupEnvironmentHistoryRequest implements ILookupEnvironmentHistoryRequest { /** - * Calls GetEnvironment. - * @param request GetEnvironmentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Environment + * Constructs a new LookupEnvironmentHistoryRequest. + * @param [properties] Properties to set */ - public getEnvironment(request: google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3.Environments.GetEnvironmentCallback): void; + constructor(properties?: google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest); - /** - * Calls GetEnvironment. - * @param request GetEnvironmentRequest message or plain object - * @returns Promise - */ - public getEnvironment(request: google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest): Promise; + /** LookupEnvironmentHistoryRequest name. */ + public name: string; - /** - * Calls CreateEnvironment. - * @param request CreateEnvironmentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public createEnvironment(request: google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3.Environments.CreateEnvironmentCallback): void; + /** LookupEnvironmentHistoryRequest pageSize. */ + public pageSize: number; - /** - * Calls CreateEnvironment. - * @param request CreateEnvironmentRequest message or plain object - * @returns Promise - */ - public createEnvironment(request: google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest): Promise; + /** LookupEnvironmentHistoryRequest pageToken. */ + public pageToken: string; /** - * Calls UpdateEnvironment. - * @param request UpdateEnvironmentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a new LookupEnvironmentHistoryRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns LookupEnvironmentHistoryRequest instance */ - public updateEnvironment(request: google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3.Environments.UpdateEnvironmentCallback): void; + public static create(properties?: google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest): google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest; /** - * Calls UpdateEnvironment. - * @param request UpdateEnvironmentRequest message or plain object - * @returns Promise + * Encodes the specified LookupEnvironmentHistoryRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest.verify|verify} messages. + * @param message LookupEnvironmentHistoryRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public updateEnvironment(request: google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest): Promise; + public static encode(message: google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteEnvironment. - * @param request DeleteEnvironmentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Encodes the specified LookupEnvironmentHistoryRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest.verify|verify} messages. + * @param message LookupEnvironmentHistoryRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteEnvironment(request: google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3.Environments.DeleteEnvironmentCallback): void; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteEnvironment. - * @param request DeleteEnvironmentRequest message or plain object - * @returns Promise + * Decodes a LookupEnvironmentHistoryRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LookupEnvironmentHistoryRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteEnvironment(request: google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest; /** - * Calls LookupEnvironmentHistory. - * @param request LookupEnvironmentHistoryRequest message or plain object - * @param callback Node-style callback called with the error, if any, and LookupEnvironmentHistoryResponse + * Decodes a LookupEnvironmentHistoryRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LookupEnvironmentHistoryRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public lookupEnvironmentHistory(request: google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest, callback: google.cloud.dialogflow.cx.v3.Environments.LookupEnvironmentHistoryCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest; /** - * Calls LookupEnvironmentHistory. - * @param request LookupEnvironmentHistoryRequest message or plain object - * @returns Promise + * Verifies a LookupEnvironmentHistoryRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public lookupEnvironmentHistory(request: google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls RunContinuousTest. - * @param request RunContinuousTestRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a LookupEnvironmentHistoryRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LookupEnvironmentHistoryRequest */ - public runContinuousTest(request: google.cloud.dialogflow.cx.v3.IRunContinuousTestRequest, callback: google.cloud.dialogflow.cx.v3.Environments.RunContinuousTestCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest; /** - * Calls RunContinuousTest. - * @param request RunContinuousTestRequest message or plain object - * @returns Promise + * Creates a plain object from a LookupEnvironmentHistoryRequest message. Also converts values to other types if specified. + * @param message LookupEnvironmentHistoryRequest + * @param [options] Conversion options + * @returns Plain object */ - public runContinuousTest(request: google.cloud.dialogflow.cx.v3.IRunContinuousTestRequest): Promise; + public static toObject(message: google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ListContinuousTestResults. - * @param request ListContinuousTestResultsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListContinuousTestResultsResponse + * Converts this LookupEnvironmentHistoryRequest to JSON. + * @returns JSON object */ - public listContinuousTestResults(request: google.cloud.dialogflow.cx.v3.IListContinuousTestResultsRequest, callback: google.cloud.dialogflow.cx.v3.Environments.ListContinuousTestResultsCallback): void; + public toJSON(): { [k: string]: any }; + } - /** - * Calls ListContinuousTestResults. - * @param request ListContinuousTestResultsRequest message or plain object - * @returns Promise - */ - public listContinuousTestResults(request: google.cloud.dialogflow.cx.v3.IListContinuousTestResultsRequest): Promise; + /** Properties of a LookupEnvironmentHistoryResponse. */ + interface ILookupEnvironmentHistoryResponse { - /** - * Calls DeployFlow. - * @param request DeployFlowRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deployFlow(request: google.cloud.dialogflow.cx.v3.IDeployFlowRequest, callback: google.cloud.dialogflow.cx.v3.Environments.DeployFlowCallback): void; + /** LookupEnvironmentHistoryResponse environments */ + environments?: (google.cloud.dialogflow.cx.v3.IEnvironment[]|null); + + /** LookupEnvironmentHistoryResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a LookupEnvironmentHistoryResponse. */ + class LookupEnvironmentHistoryResponse implements ILookupEnvironmentHistoryResponse { /** - * Calls DeployFlow. - * @param request DeployFlowRequest message or plain object - * @returns Promise + * Constructs a new LookupEnvironmentHistoryResponse. + * @param [properties] Properties to set */ - public deployFlow(request: google.cloud.dialogflow.cx.v3.IDeployFlowRequest): Promise; - } + constructor(properties?: google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryResponse); - namespace Environments { + /** LookupEnvironmentHistoryResponse environments. */ + public environments: google.cloud.dialogflow.cx.v3.IEnvironment[]; + + /** LookupEnvironmentHistoryResponse nextPageToken. */ + public nextPageToken: string; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#listEnvironments}. - * @param error Error, if any - * @param [response] ListEnvironmentsResponse + * Creates a new LookupEnvironmentHistoryResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns LookupEnvironmentHistoryResponse instance */ - type ListEnvironmentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse) => void; + public static create(properties?: google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryResponse): google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#getEnvironment}. - * @param error Error, if any - * @param [response] Environment + * Encodes the specified LookupEnvironmentHistoryResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse.verify|verify} messages. + * @param message LookupEnvironmentHistoryResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type GetEnvironmentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Environment) => void; + public static encode(message: google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#createEnvironment}. - * @param error Error, if any - * @param [response] Operation + * Encodes the specified LookupEnvironmentHistoryResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse.verify|verify} messages. + * @param message LookupEnvironmentHistoryResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type CreateEnvironmentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#updateEnvironment}. - * @param error Error, if any - * @param [response] Operation + * Decodes a LookupEnvironmentHistoryResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LookupEnvironmentHistoryResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type UpdateEnvironmentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#deleteEnvironment}. - * @param error Error, if any - * @param [response] Empty + * Decodes a LookupEnvironmentHistoryResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LookupEnvironmentHistoryResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type DeleteEnvironmentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#lookupEnvironmentHistory}. - * @param error Error, if any - * @param [response] LookupEnvironmentHistoryResponse + * Verifies a LookupEnvironmentHistoryResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type LookupEnvironmentHistoryCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#runContinuousTest}. - * @param error Error, if any - * @param [response] Operation + * Creates a LookupEnvironmentHistoryResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LookupEnvironmentHistoryResponse */ - type RunContinuousTestCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#listContinuousTestResults}. - * @param error Error, if any - * @param [response] ListContinuousTestResultsResponse + * Creates a plain object from a LookupEnvironmentHistoryResponse message. Also converts values to other types if specified. + * @param message LookupEnvironmentHistoryResponse + * @param [options] Conversion options + * @returns Plain object */ - type ListContinuousTestResultsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse) => void; + public static toObject(message: google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#deployFlow}. - * @param error Error, if any - * @param [response] Operation + * Converts this LookupEnvironmentHistoryResponse to JSON. + * @returns JSON object */ - type DeployFlowCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public toJSON(): { [k: string]: any }; } - /** Properties of an Environment. */ - interface IEnvironment { + /** Properties of a ContinuousTestResult. */ + interface IContinuousTestResult { - /** Environment name */ + /** ContinuousTestResult name */ name?: (string|null); - /** Environment displayName */ - displayName?: (string|null); - - /** Environment description */ - description?: (string|null); - - /** Environment versionConfigs */ - versionConfigs?: (google.cloud.dialogflow.cx.v3.Environment.IVersionConfig[]|null); + /** ContinuousTestResult result */ + result?: (google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult|keyof typeof google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult|null); - /** Environment updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** ContinuousTestResult testCaseResults */ + testCaseResults?: (string[]|null); - /** Environment testCasesConfig */ - testCasesConfig?: (google.cloud.dialogflow.cx.v3.Environment.ITestCasesConfig|null); + /** ContinuousTestResult runTime */ + runTime?: (google.protobuf.ITimestamp|null); } - /** Represents an Environment. */ - class Environment implements IEnvironment { + /** Represents a ContinuousTestResult. */ + class ContinuousTestResult implements IContinuousTestResult { /** - * Constructs a new Environment. + * Constructs a new ContinuousTestResult. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IEnvironment); + constructor(properties?: google.cloud.dialogflow.cx.v3.IContinuousTestResult); - /** Environment name. */ + /** ContinuousTestResult name. */ public name: string; - /** Environment displayName. */ - public displayName: string; - - /** Environment description. */ - public description: string; - - /** Environment versionConfigs. */ - public versionConfigs: google.cloud.dialogflow.cx.v3.Environment.IVersionConfig[]; + /** ContinuousTestResult result. */ + public result: (google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult|keyof typeof google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult); - /** Environment updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** ContinuousTestResult testCaseResults. */ + public testCaseResults: string[]; - /** Environment testCasesConfig. */ - public testCasesConfig?: (google.cloud.dialogflow.cx.v3.Environment.ITestCasesConfig|null); + /** ContinuousTestResult runTime. */ + public runTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new Environment instance using the specified properties. + * Creates a new ContinuousTestResult instance using the specified properties. * @param [properties] Properties to set - * @returns Environment instance + * @returns ContinuousTestResult instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IEnvironment): google.cloud.dialogflow.cx.v3.Environment; + public static create(properties?: google.cloud.dialogflow.cx.v3.IContinuousTestResult): google.cloud.dialogflow.cx.v3.ContinuousTestResult; /** - * Encodes the specified Environment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Environment.verify|verify} messages. - * @param message Environment message or plain object to encode + * Encodes the specified ContinuousTestResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ContinuousTestResult.verify|verify} messages. + * @param message ContinuousTestResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IContinuousTestResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Environment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Environment.verify|verify} messages. - * @param message Environment message or plain object to encode + * Encodes the specified ContinuousTestResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ContinuousTestResult.verify|verify} messages. + * @param message ContinuousTestResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IContinuousTestResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Environment message from the specified reader or buffer. + * Decodes a ContinuousTestResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Environment + * @returns ContinuousTestResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Environment; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ContinuousTestResult; /** - * Decodes an Environment message from the specified reader or buffer, length delimited. + * Decodes a ContinuousTestResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Environment + * @returns ContinuousTestResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Environment; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ContinuousTestResult; /** - * Verifies an Environment message. + * Verifies a ContinuousTestResult message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an Environment message from a plain object. Also converts values to their respective internal types. + * Creates a ContinuousTestResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Environment + * @returns ContinuousTestResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Environment; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ContinuousTestResult; /** - * Creates a plain object from an Environment message. Also converts values to other types if specified. - * @param message Environment + * Creates a plain object from a ContinuousTestResult message. Also converts values to other types if specified. + * @param message ContinuousTestResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Environment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ContinuousTestResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Environment to JSON. + * Converts this ContinuousTestResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Environment { - - /** Properties of a VersionConfig. */ - interface IVersionConfig { - - /** VersionConfig version */ - version?: (string|null); - } - - /** Represents a VersionConfig. */ - class VersionConfig implements IVersionConfig { - - /** - * Constructs a new VersionConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Environment.IVersionConfig); - - /** VersionConfig version. */ - public version: string; - - /** - * Creates a new VersionConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns VersionConfig instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.Environment.IVersionConfig): google.cloud.dialogflow.cx.v3.Environment.VersionConfig; - - /** - * Encodes the specified VersionConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Environment.VersionConfig.verify|verify} messages. - * @param message VersionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.Environment.IVersionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified VersionConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Environment.VersionConfig.verify|verify} messages. - * @param message VersionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Environment.IVersionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VersionConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VersionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Environment.VersionConfig; - - /** - * Decodes a VersionConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VersionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Environment.VersionConfig; - - /** - * Verifies a VersionConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a VersionConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VersionConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Environment.VersionConfig; - - /** - * Creates a plain object from a VersionConfig message. Also converts values to other types if specified. - * @param message VersionConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Environment.VersionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this VersionConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a TestCasesConfig. */ - interface ITestCasesConfig { - - /** TestCasesConfig testCases */ - testCases?: (string[]|null); - - /** TestCasesConfig enableContinuousRun */ - enableContinuousRun?: (boolean|null); - - /** TestCasesConfig enablePredeploymentRun */ - enablePredeploymentRun?: (boolean|null); - } - - /** Represents a TestCasesConfig. */ - class TestCasesConfig implements ITestCasesConfig { - - /** - * Constructs a new TestCasesConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Environment.ITestCasesConfig); - - /** TestCasesConfig testCases. */ - public testCases: string[]; - - /** TestCasesConfig enableContinuousRun. */ - public enableContinuousRun: boolean; - - /** TestCasesConfig enablePredeploymentRun. */ - public enablePredeploymentRun: boolean; - - /** - * Creates a new TestCasesConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns TestCasesConfig instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.Environment.ITestCasesConfig): google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig; - - /** - * Encodes the specified TestCasesConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.verify|verify} messages. - * @param message TestCasesConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.Environment.ITestCasesConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TestCasesConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.verify|verify} messages. - * @param message TestCasesConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Environment.ITestCasesConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TestCasesConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TestCasesConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig; - - /** - * Decodes a TestCasesConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TestCasesConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig; - - /** - * Verifies a TestCasesConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a TestCasesConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TestCasesConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig; - - /** - * Creates a plain object from a TestCasesConfig message. Also converts values to other types if specified. - * @param message TestCasesConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + namespace ContinuousTestResult { - /** - * Converts this TestCasesConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** AggregatedTestResult enum. */ + enum AggregatedTestResult { + AGGREGATED_TEST_RESULT_UNSPECIFIED = 0, + PASSED = 1, + FAILED = 2 } } - /** Properties of a ListEnvironmentsRequest. */ - interface IListEnvironmentsRequest { - - /** ListEnvironmentsRequest parent */ - parent?: (string|null); - - /** ListEnvironmentsRequest pageSize */ - pageSize?: (number|null); + /** Properties of a RunContinuousTestRequest. */ + interface IRunContinuousTestRequest { - /** ListEnvironmentsRequest pageToken */ - pageToken?: (string|null); + /** RunContinuousTestRequest environment */ + environment?: (string|null); } - /** Represents a ListEnvironmentsRequest. */ - class ListEnvironmentsRequest implements IListEnvironmentsRequest { + /** Represents a RunContinuousTestRequest. */ + class RunContinuousTestRequest implements IRunContinuousTestRequest { /** - * Constructs a new ListEnvironmentsRequest. + * Constructs a new RunContinuousTestRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest); - - /** ListEnvironmentsRequest parent. */ - public parent: string; - - /** ListEnvironmentsRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.cloud.dialogflow.cx.v3.IRunContinuousTestRequest); - /** ListEnvironmentsRequest pageToken. */ - public pageToken: string; + /** RunContinuousTestRequest environment. */ + public environment: string; /** - * Creates a new ListEnvironmentsRequest instance using the specified properties. + * Creates a new RunContinuousTestRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListEnvironmentsRequest instance + * @returns RunContinuousTestRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest): google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IRunContinuousTestRequest): google.cloud.dialogflow.cx.v3.RunContinuousTestRequest; /** - * Encodes the specified ListEnvironmentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest.verify|verify} messages. - * @param message ListEnvironmentsRequest message or plain object to encode + * Encodes the specified RunContinuousTestRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunContinuousTestRequest.verify|verify} messages. + * @param message RunContinuousTestRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IRunContinuousTestRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListEnvironmentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest.verify|verify} messages. - * @param message ListEnvironmentsRequest message or plain object to encode + * Encodes the specified RunContinuousTestRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunContinuousTestRequest.verify|verify} messages. + * @param message RunContinuousTestRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IRunContinuousTestRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListEnvironmentsRequest message from the specified reader or buffer. + * Decodes a RunContinuousTestRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListEnvironmentsRequest + * @returns RunContinuousTestRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.RunContinuousTestRequest; /** - * Decodes a ListEnvironmentsRequest message from the specified reader or buffer, length delimited. + * Decodes a RunContinuousTestRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListEnvironmentsRequest + * @returns RunContinuousTestRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.RunContinuousTestRequest; /** - * Verifies a ListEnvironmentsRequest message. + * Verifies a RunContinuousTestRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListEnvironmentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RunContinuousTestRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListEnvironmentsRequest + * @returns RunContinuousTestRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.RunContinuousTestRequest; /** - * Creates a plain object from a ListEnvironmentsRequest message. Also converts values to other types if specified. - * @param message ListEnvironmentsRequest + * Creates a plain object from a RunContinuousTestRequest message. Also converts values to other types if specified. + * @param message RunContinuousTestRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.RunContinuousTestRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListEnvironmentsRequest to JSON. + * Converts this RunContinuousTestRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListEnvironmentsResponse. */ - interface IListEnvironmentsResponse { - - /** ListEnvironmentsResponse environments */ - environments?: (google.cloud.dialogflow.cx.v3.IEnvironment[]|null); + /** Properties of a RunContinuousTestResponse. */ + interface IRunContinuousTestResponse { - /** ListEnvironmentsResponse nextPageToken */ - nextPageToken?: (string|null); + /** RunContinuousTestResponse continuousTestResult */ + continuousTestResult?: (google.cloud.dialogflow.cx.v3.IContinuousTestResult|null); } - /** Represents a ListEnvironmentsResponse. */ - class ListEnvironmentsResponse implements IListEnvironmentsResponse { + /** Represents a RunContinuousTestResponse. */ + class RunContinuousTestResponse implements IRunContinuousTestResponse { /** - * Constructs a new ListEnvironmentsResponse. + * Constructs a new RunContinuousTestResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListEnvironmentsResponse); - - /** ListEnvironmentsResponse environments. */ - public environments: google.cloud.dialogflow.cx.v3.IEnvironment[]; + constructor(properties?: google.cloud.dialogflow.cx.v3.IRunContinuousTestResponse); - /** ListEnvironmentsResponse nextPageToken. */ - public nextPageToken: string; + /** RunContinuousTestResponse continuousTestResult. */ + public continuousTestResult?: (google.cloud.dialogflow.cx.v3.IContinuousTestResult|null); /** - * Creates a new ListEnvironmentsResponse instance using the specified properties. + * Creates a new RunContinuousTestResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListEnvironmentsResponse instance + * @returns RunContinuousTestResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListEnvironmentsResponse): google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IRunContinuousTestResponse): google.cloud.dialogflow.cx.v3.RunContinuousTestResponse; /** - * Encodes the specified ListEnvironmentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse.verify|verify} messages. - * @param message ListEnvironmentsResponse message or plain object to encode + * Encodes the specified RunContinuousTestResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunContinuousTestResponse.verify|verify} messages. + * @param message RunContinuousTestResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListEnvironmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IRunContinuousTestResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListEnvironmentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse.verify|verify} messages. - * @param message ListEnvironmentsResponse message or plain object to encode + * Encodes the specified RunContinuousTestResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunContinuousTestResponse.verify|verify} messages. + * @param message RunContinuousTestResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListEnvironmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IRunContinuousTestResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListEnvironmentsResponse message from the specified reader or buffer. + * Decodes a RunContinuousTestResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListEnvironmentsResponse + * @returns RunContinuousTestResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.RunContinuousTestResponse; /** - * Decodes a ListEnvironmentsResponse message from the specified reader or buffer, length delimited. + * Decodes a RunContinuousTestResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListEnvironmentsResponse + * @returns RunContinuousTestResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.RunContinuousTestResponse; /** - * Verifies a ListEnvironmentsResponse message. + * Verifies a RunContinuousTestResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListEnvironmentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RunContinuousTestResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListEnvironmentsResponse + * @returns RunContinuousTestResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.RunContinuousTestResponse; /** - * Creates a plain object from a ListEnvironmentsResponse message. Also converts values to other types if specified. - * @param message ListEnvironmentsResponse + * Creates a plain object from a RunContinuousTestResponse message. Also converts values to other types if specified. + * @param message RunContinuousTestResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.RunContinuousTestResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListEnvironmentsResponse to JSON. + * Converts this RunContinuousTestResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetEnvironmentRequest. */ - interface IGetEnvironmentRequest { + /** Properties of a RunContinuousTestMetadata. */ + interface IRunContinuousTestMetadata { - /** GetEnvironmentRequest name */ - name?: (string|null); + /** RunContinuousTestMetadata errors */ + errors?: (google.cloud.dialogflow.cx.v3.ITestError[]|null); } - /** Represents a GetEnvironmentRequest. */ - class GetEnvironmentRequest implements IGetEnvironmentRequest { + /** Represents a RunContinuousTestMetadata. */ + class RunContinuousTestMetadata implements IRunContinuousTestMetadata { /** - * Constructs a new GetEnvironmentRequest. + * Constructs a new RunContinuousTestMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IRunContinuousTestMetadata); - /** GetEnvironmentRequest name. */ - public name: string; + /** RunContinuousTestMetadata errors. */ + public errors: google.cloud.dialogflow.cx.v3.ITestError[]; /** - * Creates a new GetEnvironmentRequest instance using the specified properties. + * Creates a new RunContinuousTestMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns GetEnvironmentRequest instance + * @returns RunContinuousTestMetadata instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest): google.cloud.dialogflow.cx.v3.GetEnvironmentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IRunContinuousTestMetadata): google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata; /** - * Encodes the specified GetEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetEnvironmentRequest.verify|verify} messages. - * @param message GetEnvironmentRequest message or plain object to encode + * Encodes the specified RunContinuousTestMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata.verify|verify} messages. + * @param message RunContinuousTestMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IRunContinuousTestMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetEnvironmentRequest.verify|verify} messages. - * @param message GetEnvironmentRequest message or plain object to encode + * Encodes the specified RunContinuousTestMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata.verify|verify} messages. + * @param message RunContinuousTestMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IRunContinuousTestMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetEnvironmentRequest message from the specified reader or buffer. + * Decodes a RunContinuousTestMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetEnvironmentRequest + * @returns RunContinuousTestMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetEnvironmentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata; /** - * Decodes a GetEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes a RunContinuousTestMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetEnvironmentRequest + * @returns RunContinuousTestMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetEnvironmentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata; /** - * Verifies a GetEnvironmentRequest message. + * Verifies a RunContinuousTestMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RunContinuousTestMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetEnvironmentRequest + * @returns RunContinuousTestMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetEnvironmentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata; /** - * Creates a plain object from a GetEnvironmentRequest message. Also converts values to other types if specified. - * @param message GetEnvironmentRequest + * Creates a plain object from a RunContinuousTestMetadata message. Also converts values to other types if specified. + * @param message RunContinuousTestMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.GetEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetEnvironmentRequest to JSON. + * Converts this RunContinuousTestMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateEnvironmentRequest. */ - interface ICreateEnvironmentRequest { + /** Properties of a ListContinuousTestResultsRequest. */ + interface IListContinuousTestResultsRequest { - /** CreateEnvironmentRequest parent */ + /** ListContinuousTestResultsRequest parent */ parent?: (string|null); - /** CreateEnvironmentRequest environment */ - environment?: (google.cloud.dialogflow.cx.v3.IEnvironment|null); + /** ListContinuousTestResultsRequest pageSize */ + pageSize?: (number|null); + + /** ListContinuousTestResultsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a CreateEnvironmentRequest. */ - class CreateEnvironmentRequest implements ICreateEnvironmentRequest { + /** Represents a ListContinuousTestResultsRequest. */ + class ListContinuousTestResultsRequest implements IListContinuousTestResultsRequest { /** - * Constructs a new CreateEnvironmentRequest. + * Constructs a new ListContinuousTestResultsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListContinuousTestResultsRequest); - /** CreateEnvironmentRequest parent. */ + /** ListContinuousTestResultsRequest parent. */ public parent: string; - /** CreateEnvironmentRequest environment. */ - public environment?: (google.cloud.dialogflow.cx.v3.IEnvironment|null); + /** ListContinuousTestResultsRequest pageSize. */ + public pageSize: number; + + /** ListContinuousTestResultsRequest pageToken. */ + public pageToken: string; /** - * Creates a new CreateEnvironmentRequest instance using the specified properties. + * Creates a new ListContinuousTestResultsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateEnvironmentRequest instance + * @returns ListContinuousTestResultsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest): google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListContinuousTestResultsRequest): google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest; /** - * Encodes the specified CreateEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest.verify|verify} messages. - * @param message CreateEnvironmentRequest message or plain object to encode + * Encodes the specified ListContinuousTestResultsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest.verify|verify} messages. + * @param message ListContinuousTestResultsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListContinuousTestResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest.verify|verify} messages. - * @param message CreateEnvironmentRequest message or plain object to encode + * Encodes the specified ListContinuousTestResultsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest.verify|verify} messages. + * @param message ListContinuousTestResultsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListContinuousTestResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateEnvironmentRequest message from the specified reader or buffer. + * Decodes a ListContinuousTestResultsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateEnvironmentRequest + * @returns ListContinuousTestResultsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest; /** - * Decodes a CreateEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes a ListContinuousTestResultsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateEnvironmentRequest + * @returns ListContinuousTestResultsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest; /** - * Verifies a CreateEnvironmentRequest message. + * Verifies a ListContinuousTestResultsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListContinuousTestResultsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateEnvironmentRequest + * @returns ListContinuousTestResultsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest; /** - * Creates a plain object from a CreateEnvironmentRequest message. Also converts values to other types if specified. - * @param message CreateEnvironmentRequest + * Creates a plain object from a ListContinuousTestResultsRequest message. Also converts values to other types if specified. + * @param message ListContinuousTestResultsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateEnvironmentRequest to JSON. + * Converts this ListContinuousTestResultsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateEnvironmentRequest. */ - interface IUpdateEnvironmentRequest { + /** Properties of a ListContinuousTestResultsResponse. */ + interface IListContinuousTestResultsResponse { - /** UpdateEnvironmentRequest environment */ - environment?: (google.cloud.dialogflow.cx.v3.IEnvironment|null); + /** ListContinuousTestResultsResponse continuousTestResults */ + continuousTestResults?: (google.cloud.dialogflow.cx.v3.IContinuousTestResult[]|null); - /** UpdateEnvironmentRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** ListContinuousTestResultsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an UpdateEnvironmentRequest. */ - class UpdateEnvironmentRequest implements IUpdateEnvironmentRequest { + /** Represents a ListContinuousTestResultsResponse. */ + class ListContinuousTestResultsResponse implements IListContinuousTestResultsResponse { /** - * Constructs a new UpdateEnvironmentRequest. + * Constructs a new ListContinuousTestResultsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListContinuousTestResultsResponse); - /** UpdateEnvironmentRequest environment. */ - public environment?: (google.cloud.dialogflow.cx.v3.IEnvironment|null); + /** ListContinuousTestResultsResponse continuousTestResults. */ + public continuousTestResults: google.cloud.dialogflow.cx.v3.IContinuousTestResult[]; - /** UpdateEnvironmentRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** ListContinuousTestResultsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new UpdateEnvironmentRequest instance using the specified properties. + * Creates a new ListContinuousTestResultsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateEnvironmentRequest instance + * @returns ListContinuousTestResultsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest): google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListContinuousTestResultsResponse): google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse; /** - * Encodes the specified UpdateEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest.verify|verify} messages. - * @param message UpdateEnvironmentRequest message or plain object to encode + * Encodes the specified ListContinuousTestResultsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse.verify|verify} messages. + * @param message ListContinuousTestResultsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListContinuousTestResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest.verify|verify} messages. - * @param message UpdateEnvironmentRequest message or plain object to encode + * Encodes the specified ListContinuousTestResultsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse.verify|verify} messages. + * @param message ListContinuousTestResultsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListContinuousTestResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer. + * Decodes a ListContinuousTestResultsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateEnvironmentRequest + * @returns ListContinuousTestResultsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse; /** - * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes a ListContinuousTestResultsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateEnvironmentRequest + * @returns ListContinuousTestResultsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse; /** - * Verifies an UpdateEnvironmentRequest message. + * Verifies a ListContinuousTestResultsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListContinuousTestResultsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateEnvironmentRequest + * @returns ListContinuousTestResultsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse; /** - * Creates a plain object from an UpdateEnvironmentRequest message. Also converts values to other types if specified. - * @param message UpdateEnvironmentRequest + * Creates a plain object from a ListContinuousTestResultsResponse message. Also converts values to other types if specified. + * @param message ListContinuousTestResultsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateEnvironmentRequest to JSON. + * Converts this ListContinuousTestResultsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteEnvironmentRequest. */ - interface IDeleteEnvironmentRequest { + /** Properties of a DeployFlowRequest. */ + interface IDeployFlowRequest { - /** DeleteEnvironmentRequest name */ - name?: (string|null); + /** DeployFlowRequest environment */ + environment?: (string|null); + + /** DeployFlowRequest flowVersion */ + flowVersion?: (string|null); } - /** Represents a DeleteEnvironmentRequest. */ - class DeleteEnvironmentRequest implements IDeleteEnvironmentRequest { + /** Represents a DeployFlowRequest. */ + class DeployFlowRequest implements IDeployFlowRequest { /** - * Constructs a new DeleteEnvironmentRequest. + * Constructs a new DeployFlowRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeployFlowRequest); - /** DeleteEnvironmentRequest name. */ - public name: string; + /** DeployFlowRequest environment. */ + public environment: string; + + /** DeployFlowRequest flowVersion. */ + public flowVersion: string; /** - * Creates a new DeleteEnvironmentRequest instance using the specified properties. + * Creates a new DeployFlowRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteEnvironmentRequest instance + * @returns DeployFlowRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest): google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeployFlowRequest): google.cloud.dialogflow.cx.v3.DeployFlowRequest; /** - * Encodes the specified DeleteEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest.verify|verify} messages. - * @param message DeleteEnvironmentRequest message or plain object to encode + * Encodes the specified DeployFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeployFlowRequest.verify|verify} messages. + * @param message DeployFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeployFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest.verify|verify} messages. - * @param message DeleteEnvironmentRequest message or plain object to encode + * Encodes the specified DeployFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeployFlowRequest.verify|verify} messages. + * @param message DeployFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeployFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer. + * Decodes a DeployFlowRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteEnvironmentRequest + * @returns DeployFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeployFlowRequest; /** - * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes a DeployFlowRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteEnvironmentRequest + * @returns DeployFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeployFlowRequest; /** - * Verifies a DeleteEnvironmentRequest message. + * Verifies a DeployFlowRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeployFlowRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteEnvironmentRequest + * @returns DeployFlowRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeployFlowRequest; /** - * Creates a plain object from a DeleteEnvironmentRequest message. Also converts values to other types if specified. - * @param message DeleteEnvironmentRequest + * Creates a plain object from a DeployFlowRequest message. Also converts values to other types if specified. + * @param message DeployFlowRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeployFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteEnvironmentRequest to JSON. + * Converts this DeployFlowRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a LookupEnvironmentHistoryRequest. */ - interface ILookupEnvironmentHistoryRequest { - - /** LookupEnvironmentHistoryRequest name */ - name?: (string|null); + /** Properties of a DeployFlowResponse. */ + interface IDeployFlowResponse { - /** LookupEnvironmentHistoryRequest pageSize */ - pageSize?: (number|null); + /** DeployFlowResponse environment */ + environment?: (google.cloud.dialogflow.cx.v3.IEnvironment|null); - /** LookupEnvironmentHistoryRequest pageToken */ - pageToken?: (string|null); + /** DeployFlowResponse deployment */ + deployment?: (string|null); } - /** Represents a LookupEnvironmentHistoryRequest. */ - class LookupEnvironmentHistoryRequest implements ILookupEnvironmentHistoryRequest { + /** Represents a DeployFlowResponse. */ + class DeployFlowResponse implements IDeployFlowResponse { /** - * Constructs a new LookupEnvironmentHistoryRequest. + * Constructs a new DeployFlowResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest); - - /** LookupEnvironmentHistoryRequest name. */ - public name: string; + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeployFlowResponse); - /** LookupEnvironmentHistoryRequest pageSize. */ - public pageSize: number; + /** DeployFlowResponse environment. */ + public environment?: (google.cloud.dialogflow.cx.v3.IEnvironment|null); - /** LookupEnvironmentHistoryRequest pageToken. */ - public pageToken: string; + /** DeployFlowResponse deployment. */ + public deployment: string; /** - * Creates a new LookupEnvironmentHistoryRequest instance using the specified properties. + * Creates a new DeployFlowResponse instance using the specified properties. * @param [properties] Properties to set - * @returns LookupEnvironmentHistoryRequest instance + * @returns DeployFlowResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest): google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeployFlowResponse): google.cloud.dialogflow.cx.v3.DeployFlowResponse; /** - * Encodes the specified LookupEnvironmentHistoryRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest.verify|verify} messages. - * @param message LookupEnvironmentHistoryRequest message or plain object to encode + * Encodes the specified DeployFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeployFlowResponse.verify|verify} messages. + * @param message DeployFlowResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeployFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LookupEnvironmentHistoryRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest.verify|verify} messages. - * @param message LookupEnvironmentHistoryRequest message or plain object to encode + * Encodes the specified DeployFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeployFlowResponse.verify|verify} messages. + * @param message DeployFlowResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeployFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LookupEnvironmentHistoryRequest message from the specified reader or buffer. + * Decodes a DeployFlowResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns LookupEnvironmentHistoryRequest + * @returns DeployFlowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeployFlowResponse; /** - * Decodes a LookupEnvironmentHistoryRequest message from the specified reader or buffer, length delimited. + * Decodes a DeployFlowResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LookupEnvironmentHistoryRequest + * @returns DeployFlowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeployFlowResponse; /** - * Verifies a LookupEnvironmentHistoryRequest message. + * Verifies a DeployFlowResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a LookupEnvironmentHistoryRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeployFlowResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LookupEnvironmentHistoryRequest + * @returns DeployFlowResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeployFlowResponse; /** - * Creates a plain object from a LookupEnvironmentHistoryRequest message. Also converts values to other types if specified. - * @param message LookupEnvironmentHistoryRequest + * Creates a plain object from a DeployFlowResponse message. Also converts values to other types if specified. + * @param message DeployFlowResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeployFlowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LookupEnvironmentHistoryRequest to JSON. + * Converts this DeployFlowResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a LookupEnvironmentHistoryResponse. */ - interface ILookupEnvironmentHistoryResponse { - - /** LookupEnvironmentHistoryResponse environments */ - environments?: (google.cloud.dialogflow.cx.v3.IEnvironment[]|null); + /** Properties of a DeployFlowMetadata. */ + interface IDeployFlowMetadata { - /** LookupEnvironmentHistoryResponse nextPageToken */ - nextPageToken?: (string|null); + /** DeployFlowMetadata testErrors */ + testErrors?: (google.cloud.dialogflow.cx.v3.ITestError[]|null); } - /** Represents a LookupEnvironmentHistoryResponse. */ - class LookupEnvironmentHistoryResponse implements ILookupEnvironmentHistoryResponse { + /** Represents a DeployFlowMetadata. */ + class DeployFlowMetadata implements IDeployFlowMetadata { /** - * Constructs a new LookupEnvironmentHistoryResponse. + * Constructs a new DeployFlowMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryResponse); - - /** LookupEnvironmentHistoryResponse environments. */ - public environments: google.cloud.dialogflow.cx.v3.IEnvironment[]; + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeployFlowMetadata); - /** LookupEnvironmentHistoryResponse nextPageToken. */ - public nextPageToken: string; + /** DeployFlowMetadata testErrors. */ + public testErrors: google.cloud.dialogflow.cx.v3.ITestError[]; /** - * Creates a new LookupEnvironmentHistoryResponse instance using the specified properties. + * Creates a new DeployFlowMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns LookupEnvironmentHistoryResponse instance + * @returns DeployFlowMetadata instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryResponse): google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeployFlowMetadata): google.cloud.dialogflow.cx.v3.DeployFlowMetadata; /** - * Encodes the specified LookupEnvironmentHistoryResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse.verify|verify} messages. - * @param message LookupEnvironmentHistoryResponse message or plain object to encode + * Encodes the specified DeployFlowMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeployFlowMetadata.verify|verify} messages. + * @param message DeployFlowMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeployFlowMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LookupEnvironmentHistoryResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse.verify|verify} messages. - * @param message LookupEnvironmentHistoryResponse message or plain object to encode + * Encodes the specified DeployFlowMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeployFlowMetadata.verify|verify} messages. + * @param message DeployFlowMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeployFlowMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LookupEnvironmentHistoryResponse message from the specified reader or buffer. + * Decodes a DeployFlowMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns LookupEnvironmentHistoryResponse + * @returns DeployFlowMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeployFlowMetadata; /** - * Decodes a LookupEnvironmentHistoryResponse message from the specified reader or buffer, length delimited. + * Decodes a DeployFlowMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LookupEnvironmentHistoryResponse + * @returns DeployFlowMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeployFlowMetadata; /** - * Verifies a LookupEnvironmentHistoryResponse message. + * Verifies a DeployFlowMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a LookupEnvironmentHistoryResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeployFlowMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LookupEnvironmentHistoryResponse + * @returns DeployFlowMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeployFlowMetadata; /** - * Creates a plain object from a LookupEnvironmentHistoryResponse message. Also converts values to other types if specified. - * @param message LookupEnvironmentHistoryResponse + * Creates a plain object from a DeployFlowMetadata message. Also converts values to other types if specified. + * @param message DeployFlowMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeployFlowMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LookupEnvironmentHistoryResponse to JSON. + * Converts this DeployFlowMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ContinuousTestResult. */ - interface IContinuousTestResult { - - /** ContinuousTestResult name */ - name?: (string|null); - - /** ContinuousTestResult result */ - result?: (google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult|keyof typeof google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult|null); - - /** ContinuousTestResult testCaseResults */ - testCaseResults?: (string[]|null); - - /** ContinuousTestResult runTime */ - runTime?: (google.protobuf.ITimestamp|null); - } - - /** Represents a ContinuousTestResult. */ - class ContinuousTestResult implements IContinuousTestResult { + /** Represents a TestCases */ + class TestCases extends $protobuf.rpc.Service { /** - * Constructs a new ContinuousTestResult. - * @param [properties] Properties to set + * Constructs a new TestCases service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IContinuousTestResult); - - /** ContinuousTestResult name. */ - public name: string; - - /** ContinuousTestResult result. */ - public result: (google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult|keyof typeof google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult); - - /** ContinuousTestResult testCaseResults. */ - public testCaseResults: string[]; - - /** ContinuousTestResult runTime. */ - public runTime?: (google.protobuf.ITimestamp|null); + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates a new ContinuousTestResult instance using the specified properties. - * @param [properties] Properties to set - * @returns ContinuousTestResult instance + * Creates new TestCases service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IContinuousTestResult): google.cloud.dialogflow.cx.v3.ContinuousTestResult; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): TestCases; /** - * Encodes the specified ContinuousTestResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ContinuousTestResult.verify|verify} messages. - * @param message ContinuousTestResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListTestCases. + * @param request ListTestCasesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListTestCasesResponse */ - public static encode(message: google.cloud.dialogflow.cx.v3.IContinuousTestResult, writer?: $protobuf.Writer): $protobuf.Writer; + public listTestCases(request: google.cloud.dialogflow.cx.v3.IListTestCasesRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.ListTestCasesCallback): void; /** - * Encodes the specified ContinuousTestResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ContinuousTestResult.verify|verify} messages. - * @param message ContinuousTestResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListTestCases. + * @param request ListTestCasesRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IContinuousTestResult, writer?: $protobuf.Writer): $protobuf.Writer; + public listTestCases(request: google.cloud.dialogflow.cx.v3.IListTestCasesRequest): Promise; /** - * Decodes a ContinuousTestResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ContinuousTestResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls BatchDeleteTestCases. + * @param request BatchDeleteTestCasesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ContinuousTestResult; + public batchDeleteTestCases(request: google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.BatchDeleteTestCasesCallback): void; /** - * Decodes a ContinuousTestResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ContinuousTestResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls BatchDeleteTestCases. + * @param request BatchDeleteTestCasesRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ContinuousTestResult; + public batchDeleteTestCases(request: google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest): Promise; /** - * Verifies a ContinuousTestResult message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls GetTestCase. + * @param request GetTestCaseRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestCase */ - public static verify(message: { [k: string]: any }): (string|null); + public getTestCase(request: google.cloud.dialogflow.cx.v3.IGetTestCaseRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.GetTestCaseCallback): void; /** - * Creates a ContinuousTestResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ContinuousTestResult + * Calls GetTestCase. + * @param request GetTestCaseRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ContinuousTestResult; + public getTestCase(request: google.cloud.dialogflow.cx.v3.IGetTestCaseRequest): Promise; /** - * Creates a plain object from a ContinuousTestResult message. Also converts values to other types if specified. - * @param message ContinuousTestResult - * @param [options] Conversion options - * @returns Plain object + * Calls CreateTestCase. + * @param request CreateTestCaseRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestCase */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ContinuousTestResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public createTestCase(request: google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.CreateTestCaseCallback): void; /** - * Converts this ContinuousTestResult to JSON. - * @returns JSON object + * Calls CreateTestCase. + * @param request CreateTestCaseRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; - } - - namespace ContinuousTestResult { - - /** AggregatedTestResult enum. */ - enum AggregatedTestResult { - AGGREGATED_TEST_RESULT_UNSPECIFIED = 0, - PASSED = 1, - FAILED = 2 - } - } - - /** Properties of a RunContinuousTestRequest. */ - interface IRunContinuousTestRequest { - - /** RunContinuousTestRequest environment */ - environment?: (string|null); - } - - /** Represents a RunContinuousTestRequest. */ - class RunContinuousTestRequest implements IRunContinuousTestRequest { + public createTestCase(request: google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest): Promise; /** - * Constructs a new RunContinuousTestRequest. - * @param [properties] Properties to set + * Calls UpdateTestCase. + * @param request UpdateTestCaseRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestCase */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IRunContinuousTestRequest); + public updateTestCase(request: google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.UpdateTestCaseCallback): void; - /** RunContinuousTestRequest environment. */ - public environment: string; + /** + * Calls UpdateTestCase. + * @param request UpdateTestCaseRequest message or plain object + * @returns Promise + */ + public updateTestCase(request: google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest): Promise; /** - * Creates a new RunContinuousTestRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RunContinuousTestRequest instance + * Calls RunTestCase. + * @param request RunTestCaseRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IRunContinuousTestRequest): google.cloud.dialogflow.cx.v3.RunContinuousTestRequest; + public runTestCase(request: google.cloud.dialogflow.cx.v3.IRunTestCaseRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.RunTestCaseCallback): void; /** - * Encodes the specified RunContinuousTestRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunContinuousTestRequest.verify|verify} messages. - * @param message RunContinuousTestRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls RunTestCase. + * @param request RunTestCaseRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.dialogflow.cx.v3.IRunContinuousTestRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public runTestCase(request: google.cloud.dialogflow.cx.v3.IRunTestCaseRequest): Promise; /** - * Encodes the specified RunContinuousTestRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunContinuousTestRequest.verify|verify} messages. - * @param message RunContinuousTestRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls BatchRunTestCases. + * @param request BatchRunTestCasesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IRunContinuousTestRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public batchRunTestCases(request: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCasesCallback): void; /** - * Decodes a RunContinuousTestRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RunContinuousTestRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls BatchRunTestCases. + * @param request BatchRunTestCasesRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.RunContinuousTestRequest; + public batchRunTestCases(request: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest): Promise; /** - * Decodes a RunContinuousTestRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RunContinuousTestRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CalculateCoverage. + * @param request CalculateCoverageRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CalculateCoverageResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.RunContinuousTestRequest; + public calculateCoverage(request: google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.CalculateCoverageCallback): void; /** - * Verifies a RunContinuousTestRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls CalculateCoverage. + * @param request CalculateCoverageRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public calculateCoverage(request: google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest): Promise; /** - * Creates a RunContinuousTestRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RunContinuousTestRequest + * Calls ImportTestCases. + * @param request ImportTestCasesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.RunContinuousTestRequest; + public importTestCases(request: google.cloud.dialogflow.cx.v3.IImportTestCasesRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.ImportTestCasesCallback): void; /** - * Creates a plain object from a RunContinuousTestRequest message. Also converts values to other types if specified. - * @param message RunContinuousTestRequest - * @param [options] Conversion options - * @returns Plain object + * Calls ImportTestCases. + * @param request ImportTestCasesRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.dialogflow.cx.v3.RunContinuousTestRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public importTestCases(request: google.cloud.dialogflow.cx.v3.IImportTestCasesRequest): Promise; /** - * Converts this RunContinuousTestRequest to JSON. - * @returns JSON object + * Calls ExportTestCases. + * @param request ExportTestCasesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public toJSON(): { [k: string]: any }; - } + public exportTestCases(request: google.cloud.dialogflow.cx.v3.IExportTestCasesRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.ExportTestCasesCallback): void; - /** Properties of a RunContinuousTestResponse. */ - interface IRunContinuousTestResponse { + /** + * Calls ExportTestCases. + * @param request ExportTestCasesRequest message or plain object + * @returns Promise + */ + public exportTestCases(request: google.cloud.dialogflow.cx.v3.IExportTestCasesRequest): Promise; - /** RunContinuousTestResponse continuousTestResult */ - continuousTestResult?: (google.cloud.dialogflow.cx.v3.IContinuousTestResult|null); + /** + * Calls ListTestCaseResults. + * @param request ListTestCaseResultsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListTestCaseResultsResponse + */ + public listTestCaseResults(request: google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResultsCallback): void; + + /** + * Calls ListTestCaseResults. + * @param request ListTestCaseResultsRequest message or plain object + * @returns Promise + */ + public listTestCaseResults(request: google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest): Promise; + + /** + * Calls GetTestCaseResult. + * @param request GetTestCaseResultRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestCaseResult + */ + public getTestCaseResult(request: google.cloud.dialogflow.cx.v3.IGetTestCaseResultRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.GetTestCaseResultCallback): void; + + /** + * Calls GetTestCaseResult. + * @param request GetTestCaseResultRequest message or plain object + * @returns Promise + */ + public getTestCaseResult(request: google.cloud.dialogflow.cx.v3.IGetTestCaseResultRequest): Promise; } - /** Represents a RunContinuousTestResponse. */ - class RunContinuousTestResponse implements IRunContinuousTestResponse { + namespace TestCases { /** - * Constructs a new RunContinuousTestResponse. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#listTestCases}. + * @param error Error, if any + * @param [response] ListTestCasesResponse */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IRunContinuousTestResponse); + type ListTestCasesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListTestCasesResponse) => void; - /** RunContinuousTestResponse continuousTestResult. */ - public continuousTestResult?: (google.cloud.dialogflow.cx.v3.IContinuousTestResult|null); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#batchDeleteTestCases}. + * @param error Error, if any + * @param [response] Empty + */ + type BatchDeleteTestCasesCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Creates a new RunContinuousTestResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns RunContinuousTestResponse instance + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#getTestCase}. + * @param error Error, if any + * @param [response] TestCase */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IRunContinuousTestResponse): google.cloud.dialogflow.cx.v3.RunContinuousTestResponse; + type GetTestCaseCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TestCase) => void; /** - * Encodes the specified RunContinuousTestResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunContinuousTestResponse.verify|verify} messages. - * @param message RunContinuousTestResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#createTestCase}. + * @param error Error, if any + * @param [response] TestCase */ - public static encode(message: google.cloud.dialogflow.cx.v3.IRunContinuousTestResponse, writer?: $protobuf.Writer): $protobuf.Writer; + type CreateTestCaseCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TestCase) => void; /** - * Encodes the specified RunContinuousTestResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunContinuousTestResponse.verify|verify} messages. - * @param message RunContinuousTestResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#updateTestCase}. + * @param error Error, if any + * @param [response] TestCase */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IRunContinuousTestResponse, writer?: $protobuf.Writer): $protobuf.Writer; + type UpdateTestCaseCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TestCase) => void; /** - * Decodes a RunContinuousTestResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RunContinuousTestResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#runTestCase}. + * @param error Error, if any + * @param [response] Operation */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.RunContinuousTestResponse; + type RunTestCaseCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes a RunContinuousTestResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RunContinuousTestResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#batchRunTestCases}. + * @param error Error, if any + * @param [response] Operation */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.RunContinuousTestResponse; + type BatchRunTestCasesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Verifies a RunContinuousTestResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#calculateCoverage}. + * @param error Error, if any + * @param [response] CalculateCoverageResponse */ - public static verify(message: { [k: string]: any }): (string|null); + type CalculateCoverageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.CalculateCoverageResponse) => void; /** - * Creates a RunContinuousTestResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RunContinuousTestResponse + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#importTestCases}. + * @param error Error, if any + * @param [response] Operation */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.RunContinuousTestResponse; + type ImportTestCasesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a plain object from a RunContinuousTestResponse message. Also converts values to other types if specified. - * @param message RunContinuousTestResponse - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#exportTestCases}. + * @param error Error, if any + * @param [response] Operation */ - public static toObject(message: google.cloud.dialogflow.cx.v3.RunContinuousTestResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type ExportTestCasesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Converts this RunContinuousTestResponse to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#listTestCaseResults}. + * @param error Error, if any + * @param [response] ListTestCaseResultsResponse */ - public toJSON(): { [k: string]: any }; + type ListTestCaseResultsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#getTestCaseResult}. + * @param error Error, if any + * @param [response] TestCaseResult + */ + type GetTestCaseResultCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TestCaseResult) => void; } - /** Properties of a RunContinuousTestMetadata. */ - interface IRunContinuousTestMetadata { + /** Properties of a TestCase. */ + interface ITestCase { - /** RunContinuousTestMetadata errors */ - errors?: (google.cloud.dialogflow.cx.v3.ITestError[]|null); + /** TestCase name */ + name?: (string|null); + + /** TestCase tags */ + tags?: (string[]|null); + + /** TestCase displayName */ + displayName?: (string|null); + + /** TestCase notes */ + notes?: (string|null); + + /** TestCase testConfig */ + testConfig?: (google.cloud.dialogflow.cx.v3.ITestConfig|null); + + /** TestCase testCaseConversationTurns */ + testCaseConversationTurns?: (google.cloud.dialogflow.cx.v3.IConversationTurn[]|null); + + /** TestCase creationTime */ + creationTime?: (google.protobuf.ITimestamp|null); + + /** TestCase lastTestResult */ + lastTestResult?: (google.cloud.dialogflow.cx.v3.ITestCaseResult|null); } - /** Represents a RunContinuousTestMetadata. */ - class RunContinuousTestMetadata implements IRunContinuousTestMetadata { + /** Represents a TestCase. */ + class TestCase implements ITestCase { /** - * Constructs a new RunContinuousTestMetadata. + * Constructs a new TestCase. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IRunContinuousTestMetadata); + constructor(properties?: google.cloud.dialogflow.cx.v3.ITestCase); - /** RunContinuousTestMetadata errors. */ - public errors: google.cloud.dialogflow.cx.v3.ITestError[]; + /** TestCase name. */ + public name: string; + + /** TestCase tags. */ + public tags: string[]; + + /** TestCase displayName. */ + public displayName: string; + + /** TestCase notes. */ + public notes: string; + + /** TestCase testConfig. */ + public testConfig?: (google.cloud.dialogflow.cx.v3.ITestConfig|null); + + /** TestCase testCaseConversationTurns. */ + public testCaseConversationTurns: google.cloud.dialogflow.cx.v3.IConversationTurn[]; + + /** TestCase creationTime. */ + public creationTime?: (google.protobuf.ITimestamp|null); + + /** TestCase lastTestResult. */ + public lastTestResult?: (google.cloud.dialogflow.cx.v3.ITestCaseResult|null); /** - * Creates a new RunContinuousTestMetadata instance using the specified properties. + * Creates a new TestCase instance using the specified properties. * @param [properties] Properties to set - * @returns RunContinuousTestMetadata instance + * @returns TestCase instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IRunContinuousTestMetadata): google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata; + public static create(properties?: google.cloud.dialogflow.cx.v3.ITestCase): google.cloud.dialogflow.cx.v3.TestCase; /** - * Encodes the specified RunContinuousTestMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata.verify|verify} messages. - * @param message RunContinuousTestMetadata message or plain object to encode + * Encodes the specified TestCase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCase.verify|verify} messages. + * @param message TestCase message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IRunContinuousTestMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ITestCase, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RunContinuousTestMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata.verify|verify} messages. - * @param message RunContinuousTestMetadata message or plain object to encode + * Encodes the specified TestCase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCase.verify|verify} messages. + * @param message TestCase message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IRunContinuousTestMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITestCase, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RunContinuousTestMetadata message from the specified reader or buffer. + * Decodes a TestCase message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RunContinuousTestMetadata + * @returns TestCase * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TestCase; /** - * Decodes a RunContinuousTestMetadata message from the specified reader or buffer, length delimited. + * Decodes a TestCase message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RunContinuousTestMetadata + * @returns TestCase * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TestCase; /** - * Verifies a RunContinuousTestMetadata message. + * Verifies a TestCase message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RunContinuousTestMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a TestCase message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RunContinuousTestMetadata + * @returns TestCase */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TestCase; /** - * Creates a plain object from a RunContinuousTestMetadata message. Also converts values to other types if specified. - * @param message RunContinuousTestMetadata + * Creates a plain object from a TestCase message. Also converts values to other types if specified. + * @param message TestCase * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.TestCase, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RunContinuousTestMetadata to JSON. + * Converts this TestCase to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListContinuousTestResultsRequest. */ - interface IListContinuousTestResultsRequest { + /** Properties of a TestCaseResult. */ + interface ITestCaseResult { - /** ListContinuousTestResultsRequest parent */ - parent?: (string|null); + /** TestCaseResult name */ + name?: (string|null); - /** ListContinuousTestResultsRequest pageSize */ - pageSize?: (number|null); + /** TestCaseResult environment */ + environment?: (string|null); - /** ListContinuousTestResultsRequest pageToken */ - pageToken?: (string|null); + /** TestCaseResult conversationTurns */ + conversationTurns?: (google.cloud.dialogflow.cx.v3.IConversationTurn[]|null); + + /** TestCaseResult testResult */ + testResult?: (google.cloud.dialogflow.cx.v3.TestResult|keyof typeof google.cloud.dialogflow.cx.v3.TestResult|null); + + /** TestCaseResult testTime */ + testTime?: (google.protobuf.ITimestamp|null); } - /** Represents a ListContinuousTestResultsRequest. */ - class ListContinuousTestResultsRequest implements IListContinuousTestResultsRequest { + /** Represents a TestCaseResult. */ + class TestCaseResult implements ITestCaseResult { /** - * Constructs a new ListContinuousTestResultsRequest. + * Constructs a new TestCaseResult. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListContinuousTestResultsRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ITestCaseResult); - /** ListContinuousTestResultsRequest parent. */ - public parent: string; + /** TestCaseResult name. */ + public name: string; - /** ListContinuousTestResultsRequest pageSize. */ - public pageSize: number; + /** TestCaseResult environment. */ + public environment: string; - /** ListContinuousTestResultsRequest pageToken. */ - public pageToken: string; + /** TestCaseResult conversationTurns. */ + public conversationTurns: google.cloud.dialogflow.cx.v3.IConversationTurn[]; + + /** TestCaseResult testResult. */ + public testResult: (google.cloud.dialogflow.cx.v3.TestResult|keyof typeof google.cloud.dialogflow.cx.v3.TestResult); + + /** TestCaseResult testTime. */ + public testTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new ListContinuousTestResultsRequest instance using the specified properties. + * Creates a new TestCaseResult instance using the specified properties. * @param [properties] Properties to set - * @returns ListContinuousTestResultsRequest instance + * @returns TestCaseResult instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListContinuousTestResultsRequest): google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ITestCaseResult): google.cloud.dialogflow.cx.v3.TestCaseResult; /** - * Encodes the specified ListContinuousTestResultsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest.verify|verify} messages. - * @param message ListContinuousTestResultsRequest message or plain object to encode + * Encodes the specified TestCaseResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCaseResult.verify|verify} messages. + * @param message TestCaseResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListContinuousTestResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ITestCaseResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListContinuousTestResultsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest.verify|verify} messages. - * @param message ListContinuousTestResultsRequest message or plain object to encode + * Encodes the specified TestCaseResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCaseResult.verify|verify} messages. + * @param message TestCaseResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListContinuousTestResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITestCaseResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListContinuousTestResultsRequest message from the specified reader or buffer. + * Decodes a TestCaseResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListContinuousTestResultsRequest + * @returns TestCaseResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TestCaseResult; /** - * Decodes a ListContinuousTestResultsRequest message from the specified reader or buffer, length delimited. + * Decodes a TestCaseResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListContinuousTestResultsRequest + * @returns TestCaseResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TestCaseResult; /** - * Verifies a ListContinuousTestResultsRequest message. + * Verifies a TestCaseResult message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListContinuousTestResultsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestCaseResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListContinuousTestResultsRequest + * @returns TestCaseResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TestCaseResult; /** - * Creates a plain object from a ListContinuousTestResultsRequest message. Also converts values to other types if specified. - * @param message ListContinuousTestResultsRequest + * Creates a plain object from a TestCaseResult message. Also converts values to other types if specified. + * @param message TestCaseResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.TestCaseResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListContinuousTestResultsRequest to JSON. + * Converts this TestCaseResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListContinuousTestResultsResponse. */ - interface IListContinuousTestResultsResponse { + /** Properties of a TestConfig. */ + interface ITestConfig { - /** ListContinuousTestResultsResponse continuousTestResults */ - continuousTestResults?: (google.cloud.dialogflow.cx.v3.IContinuousTestResult[]|null); + /** TestConfig trackingParameters */ + trackingParameters?: (string[]|null); - /** ListContinuousTestResultsResponse nextPageToken */ - nextPageToken?: (string|null); + /** TestConfig flow */ + flow?: (string|null); } - /** Represents a ListContinuousTestResultsResponse. */ - class ListContinuousTestResultsResponse implements IListContinuousTestResultsResponse { + /** Represents a TestConfig. */ + class TestConfig implements ITestConfig { /** - * Constructs a new ListContinuousTestResultsResponse. + * Constructs a new TestConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListContinuousTestResultsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.ITestConfig); - /** ListContinuousTestResultsResponse continuousTestResults. */ - public continuousTestResults: google.cloud.dialogflow.cx.v3.IContinuousTestResult[]; + /** TestConfig trackingParameters. */ + public trackingParameters: string[]; - /** ListContinuousTestResultsResponse nextPageToken. */ - public nextPageToken: string; + /** TestConfig flow. */ + public flow: string; /** - * Creates a new ListContinuousTestResultsResponse instance using the specified properties. + * Creates a new TestConfig instance using the specified properties. * @param [properties] Properties to set - * @returns ListContinuousTestResultsResponse instance + * @returns TestConfig instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListContinuousTestResultsResponse): google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.ITestConfig): google.cloud.dialogflow.cx.v3.TestConfig; /** - * Encodes the specified ListContinuousTestResultsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse.verify|verify} messages. - * @param message ListContinuousTestResultsResponse message or plain object to encode + * Encodes the specified TestConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestConfig.verify|verify} messages. + * @param message TestConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListContinuousTestResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ITestConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListContinuousTestResultsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse.verify|verify} messages. - * @param message ListContinuousTestResultsResponse message or plain object to encode + * Encodes the specified TestConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestConfig.verify|verify} messages. + * @param message TestConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListContinuousTestResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITestConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListContinuousTestResultsResponse message from the specified reader or buffer. + * Decodes a TestConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListContinuousTestResultsResponse + * @returns TestConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TestConfig; /** - * Decodes a ListContinuousTestResultsResponse message from the specified reader or buffer, length delimited. + * Decodes a TestConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListContinuousTestResultsResponse + * @returns TestConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TestConfig; /** - * Verifies a ListContinuousTestResultsResponse message. + * Verifies a TestConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListContinuousTestResultsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TestConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListContinuousTestResultsResponse + * @returns TestConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TestConfig; /** - * Creates a plain object from a ListContinuousTestResultsResponse message. Also converts values to other types if specified. - * @param message ListContinuousTestResultsResponse + * Creates a plain object from a TestConfig message. Also converts values to other types if specified. + * @param message TestConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.TestConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListContinuousTestResultsResponse to JSON. + * Converts this TestConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeployFlowRequest. */ - interface IDeployFlowRequest { + /** Properties of a ConversationTurn. */ + interface IConversationTurn { - /** DeployFlowRequest environment */ - environment?: (string|null); + /** ConversationTurn userInput */ + userInput?: (google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput|null); - /** DeployFlowRequest flowVersion */ - flowVersion?: (string|null); + /** ConversationTurn virtualAgentOutput */ + virtualAgentOutput?: (google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput|null); } - /** Represents a DeployFlowRequest. */ - class DeployFlowRequest implements IDeployFlowRequest { + /** Represents a ConversationTurn. */ + class ConversationTurn implements IConversationTurn { /** - * Constructs a new DeployFlowRequest. + * Constructs a new ConversationTurn. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDeployFlowRequest); - - /** DeployFlowRequest environment. */ - public environment: string; + constructor(properties?: google.cloud.dialogflow.cx.v3.IConversationTurn); - /** DeployFlowRequest flowVersion. */ - public flowVersion: string; + /** ConversationTurn userInput. */ + public userInput?: (google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput|null); + + /** ConversationTurn virtualAgentOutput. */ + public virtualAgentOutput?: (google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput|null); /** - * Creates a new DeployFlowRequest instance using the specified properties. + * Creates a new ConversationTurn instance using the specified properties. * @param [properties] Properties to set - * @returns DeployFlowRequest instance + * @returns ConversationTurn instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IDeployFlowRequest): google.cloud.dialogflow.cx.v3.DeployFlowRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IConversationTurn): google.cloud.dialogflow.cx.v3.ConversationTurn; /** - * Encodes the specified DeployFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeployFlowRequest.verify|verify} messages. - * @param message DeployFlowRequest message or plain object to encode + * Encodes the specified ConversationTurn message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.verify|verify} messages. + * @param message ConversationTurn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IDeployFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IConversationTurn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeployFlowRequest.verify|verify} messages. - * @param message DeployFlowRequest message or plain object to encode + * Encodes the specified ConversationTurn message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.verify|verify} messages. + * @param message ConversationTurn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeployFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IConversationTurn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployFlowRequest message from the specified reader or buffer. + * Decodes a ConversationTurn message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployFlowRequest + * @returns ConversationTurn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeployFlowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ConversationTurn; /** - * Decodes a DeployFlowRequest message from the specified reader or buffer, length delimited. + * Decodes a ConversationTurn message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployFlowRequest + * @returns ConversationTurn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeployFlowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ConversationTurn; /** - * Verifies a DeployFlowRequest message. + * Verifies a ConversationTurn message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeployFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ConversationTurn message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployFlowRequest + * @returns ConversationTurn */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeployFlowRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ConversationTurn; /** - * Creates a plain object from a DeployFlowRequest message. Also converts values to other types if specified. - * @param message DeployFlowRequest + * Creates a plain object from a ConversationTurn message. Also converts values to other types if specified. + * @param message ConversationTurn * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.DeployFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ConversationTurn, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployFlowRequest to JSON. + * Converts this ConversationTurn to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeployFlowResponse. */ - interface IDeployFlowResponse { + namespace ConversationTurn { - /** DeployFlowResponse environment */ - environment?: (google.cloud.dialogflow.cx.v3.IEnvironment|null); + /** Properties of a UserInput. */ + interface IUserInput { - /** DeployFlowResponse deployment */ - deployment?: (string|null); + /** UserInput input */ + input?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); + + /** UserInput injectedParameters */ + injectedParameters?: (google.protobuf.IStruct|null); + + /** UserInput isWebhookEnabled */ + isWebhookEnabled?: (boolean|null); + + /** UserInput enableSentimentAnalysis */ + enableSentimentAnalysis?: (boolean|null); + } + + /** Represents a UserInput. */ + class UserInput implements IUserInput { + + /** + * Constructs a new UserInput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput); + + /** UserInput input. */ + public input?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); + + /** UserInput injectedParameters. */ + public injectedParameters?: (google.protobuf.IStruct|null); + + /** UserInput isWebhookEnabled. */ + public isWebhookEnabled: boolean; + + /** UserInput enableSentimentAnalysis. */ + public enableSentimentAnalysis: boolean; + + /** + * Creates a new UserInput instance using the specified properties. + * @param [properties] Properties to set + * @returns UserInput instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput): google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput; + + /** + * Encodes the specified UserInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.verify|verify} messages. + * @param message UserInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UserInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.verify|verify} messages. + * @param message UserInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a UserInput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UserInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput; + + /** + * Decodes a UserInput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UserInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput; + + /** + * Verifies a UserInput message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a UserInput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UserInput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput; + + /** + * Creates a plain object from a UserInput message. Also converts values to other types if specified. + * @param message UserInput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UserInput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a VirtualAgentOutput. */ + interface IVirtualAgentOutput { + + /** VirtualAgentOutput sessionParameters */ + sessionParameters?: (google.protobuf.IStruct|null); + + /** VirtualAgentOutput differences */ + differences?: (google.cloud.dialogflow.cx.v3.ITestRunDifference[]|null); + + /** VirtualAgentOutput diagnosticInfo */ + diagnosticInfo?: (google.protobuf.IStruct|null); + + /** VirtualAgentOutput triggeredIntent */ + triggeredIntent?: (google.cloud.dialogflow.cx.v3.IIntent|null); + + /** VirtualAgentOutput currentPage */ + currentPage?: (google.cloud.dialogflow.cx.v3.IPage|null); + + /** VirtualAgentOutput textResponses */ + textResponses?: (google.cloud.dialogflow.cx.v3.ResponseMessage.IText[]|null); + + /** VirtualAgentOutput status */ + status?: (google.rpc.IStatus|null); + } + + /** Represents a VirtualAgentOutput. */ + class VirtualAgentOutput implements IVirtualAgentOutput { + + /** + * Constructs a new VirtualAgentOutput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput); + + /** VirtualAgentOutput sessionParameters. */ + public sessionParameters?: (google.protobuf.IStruct|null); + + /** VirtualAgentOutput differences. */ + public differences: google.cloud.dialogflow.cx.v3.ITestRunDifference[]; + + /** VirtualAgentOutput diagnosticInfo. */ + public diagnosticInfo?: (google.protobuf.IStruct|null); + + /** VirtualAgentOutput triggeredIntent. */ + public triggeredIntent?: (google.cloud.dialogflow.cx.v3.IIntent|null); + + /** VirtualAgentOutput currentPage. */ + public currentPage?: (google.cloud.dialogflow.cx.v3.IPage|null); + + /** VirtualAgentOutput textResponses. */ + public textResponses: google.cloud.dialogflow.cx.v3.ResponseMessage.IText[]; + + /** VirtualAgentOutput status. */ + public status?: (google.rpc.IStatus|null); + + /** + * Creates a new VirtualAgentOutput instance using the specified properties. + * @param [properties] Properties to set + * @returns VirtualAgentOutput instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput): google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput; + + /** + * Encodes the specified VirtualAgentOutput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.verify|verify} messages. + * @param message VirtualAgentOutput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VirtualAgentOutput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.verify|verify} messages. + * @param message VirtualAgentOutput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VirtualAgentOutput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VirtualAgentOutput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput; + + /** + * Decodes a VirtualAgentOutput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VirtualAgentOutput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput; + + /** + * Verifies a VirtualAgentOutput message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VirtualAgentOutput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VirtualAgentOutput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput; + + /** + * Creates a plain object from a VirtualAgentOutput message. Also converts values to other types if specified. + * @param message VirtualAgentOutput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VirtualAgentOutput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Represents a DeployFlowResponse. */ - class DeployFlowResponse implements IDeployFlowResponse { + /** Properties of a TestRunDifference. */ + interface ITestRunDifference { + + /** TestRunDifference type */ + type?: (google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType|keyof typeof google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType|null); + + /** TestRunDifference description */ + description?: (string|null); + } + + /** Represents a TestRunDifference. */ + class TestRunDifference implements ITestRunDifference { /** - * Constructs a new DeployFlowResponse. + * Constructs a new TestRunDifference. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDeployFlowResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.ITestRunDifference); - /** DeployFlowResponse environment. */ - public environment?: (google.cloud.dialogflow.cx.v3.IEnvironment|null); + /** TestRunDifference type. */ + public type: (google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType|keyof typeof google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType); - /** DeployFlowResponse deployment. */ - public deployment: string; + /** TestRunDifference description. */ + public description: string; /** - * Creates a new DeployFlowResponse instance using the specified properties. + * Creates a new TestRunDifference instance using the specified properties. * @param [properties] Properties to set - * @returns DeployFlowResponse instance + * @returns TestRunDifference instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IDeployFlowResponse): google.cloud.dialogflow.cx.v3.DeployFlowResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.ITestRunDifference): google.cloud.dialogflow.cx.v3.TestRunDifference; /** - * Encodes the specified DeployFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeployFlowResponse.verify|verify} messages. - * @param message DeployFlowResponse message or plain object to encode + * Encodes the specified TestRunDifference message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestRunDifference.verify|verify} messages. + * @param message TestRunDifference message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IDeployFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ITestRunDifference, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeployFlowResponse.verify|verify} messages. - * @param message DeployFlowResponse message or plain object to encode + * Encodes the specified TestRunDifference message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestRunDifference.verify|verify} messages. + * @param message TestRunDifference message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeployFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITestRunDifference, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployFlowResponse message from the specified reader or buffer. + * Decodes a TestRunDifference message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployFlowResponse + * @returns TestRunDifference * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeployFlowResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TestRunDifference; /** - * Decodes a DeployFlowResponse message from the specified reader or buffer, length delimited. + * Decodes a TestRunDifference message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployFlowResponse + * @returns TestRunDifference * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeployFlowResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TestRunDifference; /** - * Verifies a DeployFlowResponse message. + * Verifies a TestRunDifference message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeployFlowResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TestRunDifference message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployFlowResponse + * @returns TestRunDifference */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeployFlowResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TestRunDifference; /** - * Creates a plain object from a DeployFlowResponse message. Also converts values to other types if specified. - * @param message DeployFlowResponse + * Creates a plain object from a TestRunDifference message. Also converts values to other types if specified. + * @param message TestRunDifference * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.DeployFlowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.TestRunDifference, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployFlowResponse to JSON. + * Converts this TestRunDifference to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeployFlowMetadata. */ - interface IDeployFlowMetadata { + namespace TestRunDifference { - /** DeployFlowMetadata testErrors */ - testErrors?: (google.cloud.dialogflow.cx.v3.ITestError[]|null); + /** DiffType enum. */ + enum DiffType { + DIFF_TYPE_UNSPECIFIED = 0, + INTENT = 1, + PAGE = 2, + PARAMETERS = 3, + UTTERANCE = 4 + } } - /** Represents a DeployFlowMetadata. */ - class DeployFlowMetadata implements IDeployFlowMetadata { + /** Properties of a TransitionCoverage. */ + interface ITransitionCoverage { + + /** TransitionCoverage transitions */ + transitions?: (google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition[]|null); + + /** TransitionCoverage coverageScore */ + coverageScore?: (number|null); + } + + /** Represents a TransitionCoverage. */ + class TransitionCoverage implements ITransitionCoverage { /** - * Constructs a new DeployFlowMetadata. + * Constructs a new TransitionCoverage. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDeployFlowMetadata); + constructor(properties?: google.cloud.dialogflow.cx.v3.ITransitionCoverage); - /** DeployFlowMetadata testErrors. */ - public testErrors: google.cloud.dialogflow.cx.v3.ITestError[]; + /** TransitionCoverage transitions. */ + public transitions: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition[]; + + /** TransitionCoverage coverageScore. */ + public coverageScore: number; /** - * Creates a new DeployFlowMetadata instance using the specified properties. + * Creates a new TransitionCoverage instance using the specified properties. * @param [properties] Properties to set - * @returns DeployFlowMetadata instance + * @returns TransitionCoverage instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IDeployFlowMetadata): google.cloud.dialogflow.cx.v3.DeployFlowMetadata; + public static create(properties?: google.cloud.dialogflow.cx.v3.ITransitionCoverage): google.cloud.dialogflow.cx.v3.TransitionCoverage; /** - * Encodes the specified DeployFlowMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeployFlowMetadata.verify|verify} messages. - * @param message DeployFlowMetadata message or plain object to encode + * Encodes the specified TransitionCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.verify|verify} messages. + * @param message TransitionCoverage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IDeployFlowMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ITransitionCoverage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployFlowMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeployFlowMetadata.verify|verify} messages. - * @param message DeployFlowMetadata message or plain object to encode + * Encodes the specified TransitionCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.verify|verify} messages. + * @param message TransitionCoverage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeployFlowMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITransitionCoverage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployFlowMetadata message from the specified reader or buffer. + * Decodes a TransitionCoverage message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployFlowMetadata + * @returns TransitionCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeployFlowMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TransitionCoverage; /** - * Decodes a DeployFlowMetadata message from the specified reader or buffer, length delimited. + * Decodes a TransitionCoverage message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployFlowMetadata + * @returns TransitionCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeployFlowMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TransitionCoverage; /** - * Verifies a DeployFlowMetadata message. + * Verifies a TransitionCoverage message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeployFlowMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a TransitionCoverage message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployFlowMetadata + * @returns TransitionCoverage */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeployFlowMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TransitionCoverage; /** - * Creates a plain object from a DeployFlowMetadata message. Also converts values to other types if specified. - * @param message DeployFlowMetadata + * Creates a plain object from a TransitionCoverage message. Also converts values to other types if specified. + * @param message TransitionCoverage * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.DeployFlowMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.TransitionCoverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployFlowMetadata to JSON. + * Converts this TransitionCoverage to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a TestCases */ - class TestCases extends $protobuf.rpc.Service { + namespace TransitionCoverage { - /** - * Constructs a new TestCases service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** Properties of a TransitionNode. */ + interface ITransitionNode { - /** - * Creates new TestCases service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): TestCases; + /** TransitionNode page */ + page?: (google.cloud.dialogflow.cx.v3.IPage|null); - /** - * Calls ListTestCases. - * @param request ListTestCasesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListTestCasesResponse - */ - public listTestCases(request: google.cloud.dialogflow.cx.v3.IListTestCasesRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.ListTestCasesCallback): void; + /** TransitionNode flow */ + flow?: (google.cloud.dialogflow.cx.v3.IFlow|null); + } - /** - * Calls ListTestCases. - * @param request ListTestCasesRequest message or plain object - * @returns Promise - */ - public listTestCases(request: google.cloud.dialogflow.cx.v3.IListTestCasesRequest): Promise; + /** Represents a TransitionNode. */ + class TransitionNode implements ITransitionNode { - /** - * Calls BatchDeleteTestCases. - * @param request BatchDeleteTestCasesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public batchDeleteTestCases(request: google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.BatchDeleteTestCasesCallback): void; + /** + * Constructs a new TransitionNode. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode); - /** - * Calls BatchDeleteTestCases. - * @param request BatchDeleteTestCasesRequest message or plain object - * @returns Promise - */ - public batchDeleteTestCases(request: google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest): Promise; + /** TransitionNode page. */ + public page?: (google.cloud.dialogflow.cx.v3.IPage|null); - /** - * Calls GetTestCase. - * @param request GetTestCaseRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TestCase - */ - public getTestCase(request: google.cloud.dialogflow.cx.v3.IGetTestCaseRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.GetTestCaseCallback): void; - - /** - * Calls GetTestCase. - * @param request GetTestCaseRequest message or plain object - * @returns Promise - */ - public getTestCase(request: google.cloud.dialogflow.cx.v3.IGetTestCaseRequest): Promise; - - /** - * Calls CreateTestCase. - * @param request CreateTestCaseRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TestCase - */ - public createTestCase(request: google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.CreateTestCaseCallback): void; - - /** - * Calls CreateTestCase. - * @param request CreateTestCaseRequest message or plain object - * @returns Promise - */ - public createTestCase(request: google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest): Promise; + /** TransitionNode flow. */ + public flow?: (google.cloud.dialogflow.cx.v3.IFlow|null); - /** - * Calls UpdateTestCase. - * @param request UpdateTestCaseRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TestCase - */ - public updateTestCase(request: google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.UpdateTestCaseCallback): void; + /** TransitionNode kind. */ + public kind?: ("page"|"flow"); - /** - * Calls UpdateTestCase. - * @param request UpdateTestCaseRequest message or plain object - * @returns Promise - */ - public updateTestCase(request: google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest): Promise; + /** + * Creates a new TransitionNode instance using the specified properties. + * @param [properties] Properties to set + * @returns TransitionNode instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode): google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode; - /** - * Calls RunTestCase. - * @param request RunTestCaseRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public runTestCase(request: google.cloud.dialogflow.cx.v3.IRunTestCaseRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.RunTestCaseCallback): void; + /** + * Encodes the specified TransitionNode message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.verify|verify} messages. + * @param message TransitionNode message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Calls RunTestCase. - * @param request RunTestCaseRequest message or plain object - * @returns Promise - */ - public runTestCase(request: google.cloud.dialogflow.cx.v3.IRunTestCaseRequest): Promise; + /** + * Encodes the specified TransitionNode message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.verify|verify} messages. + * @param message TransitionNode message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Calls BatchRunTestCases. - * @param request BatchRunTestCasesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public batchRunTestCases(request: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCasesCallback): void; + /** + * Decodes a TransitionNode message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TransitionNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode; - /** - * Calls BatchRunTestCases. - * @param request BatchRunTestCasesRequest message or plain object - * @returns Promise - */ - public batchRunTestCases(request: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest): Promise; + /** + * Decodes a TransitionNode message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TransitionNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode; - /** - * Calls CalculateCoverage. - * @param request CalculateCoverageRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CalculateCoverageResponse - */ - public calculateCoverage(request: google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.CalculateCoverageCallback): void; + /** + * Verifies a TransitionNode message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Calls CalculateCoverage. - * @param request CalculateCoverageRequest message or plain object - * @returns Promise - */ - public calculateCoverage(request: google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest): Promise; + /** + * Creates a TransitionNode message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TransitionNode + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode; - /** - * Calls ImportTestCases. - * @param request ImportTestCasesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public importTestCases(request: google.cloud.dialogflow.cx.v3.IImportTestCasesRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.ImportTestCasesCallback): void; + /** + * Creates a plain object from a TransitionNode message. Also converts values to other types if specified. + * @param message TransitionNode + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Calls ImportTestCases. - * @param request ImportTestCasesRequest message or plain object - * @returns Promise - */ - public importTestCases(request: google.cloud.dialogflow.cx.v3.IImportTestCasesRequest): Promise; + /** + * Converts this TransitionNode to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Calls ExportTestCases. - * @param request ExportTestCasesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public exportTestCases(request: google.cloud.dialogflow.cx.v3.IExportTestCasesRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.ExportTestCasesCallback): void; + /** Properties of a Transition. */ + interface ITransition { - /** - * Calls ExportTestCases. - * @param request ExportTestCasesRequest message or plain object - * @returns Promise - */ - public exportTestCases(request: google.cloud.dialogflow.cx.v3.IExportTestCasesRequest): Promise; + /** Transition source */ + source?: (google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode|null); - /** - * Calls ListTestCaseResults. - * @param request ListTestCaseResultsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListTestCaseResultsResponse - */ - public listTestCaseResults(request: google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResultsCallback): void; + /** Transition index */ + index?: (number|null); - /** - * Calls ListTestCaseResults. - * @param request ListTestCaseResultsRequest message or plain object - * @returns Promise - */ - public listTestCaseResults(request: google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest): Promise; + /** Transition target */ + target?: (google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode|null); - /** - * Calls GetTestCaseResult. - * @param request GetTestCaseResultRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TestCaseResult - */ - public getTestCaseResult(request: google.cloud.dialogflow.cx.v3.IGetTestCaseResultRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.GetTestCaseResultCallback): void; + /** Transition covered */ + covered?: (boolean|null); - /** - * Calls GetTestCaseResult. - * @param request GetTestCaseResultRequest message or plain object - * @returns Promise - */ - public getTestCaseResult(request: google.cloud.dialogflow.cx.v3.IGetTestCaseResultRequest): Promise; - } + /** Transition transitionRoute */ + transitionRoute?: (google.cloud.dialogflow.cx.v3.ITransitionRoute|null); - namespace TestCases { + /** Transition eventHandler */ + eventHandler?: (google.cloud.dialogflow.cx.v3.IEventHandler|null); + } - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#listTestCases}. - * @param error Error, if any - * @param [response] ListTestCasesResponse - */ - type ListTestCasesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListTestCasesResponse) => void; + /** Represents a Transition. */ + class Transition implements ITransition { - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#batchDeleteTestCases}. - * @param error Error, if any - * @param [response] Empty - */ - type BatchDeleteTestCasesCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + /** + * Constructs a new Transition. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition); - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#getTestCase}. - * @param error Error, if any - * @param [response] TestCase - */ - type GetTestCaseCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TestCase) => void; + /** Transition source. */ + public source?: (google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode|null); - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#createTestCase}. - * @param error Error, if any - * @param [response] TestCase - */ - type CreateTestCaseCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TestCase) => void; + /** Transition index. */ + public index: number; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#updateTestCase}. - * @param error Error, if any - * @param [response] TestCase - */ - type UpdateTestCaseCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TestCase) => void; + /** Transition target. */ + public target?: (google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode|null); - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#runTestCase}. - * @param error Error, if any - * @param [response] Operation - */ - type RunTestCaseCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** Transition covered. */ + public covered: boolean; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#batchRunTestCases}. - * @param error Error, if any - * @param [response] Operation - */ - type BatchRunTestCasesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** Transition transitionRoute. */ + public transitionRoute?: (google.cloud.dialogflow.cx.v3.ITransitionRoute|null); - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#calculateCoverage}. - * @param error Error, if any - * @param [response] CalculateCoverageResponse - */ - type CalculateCoverageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.CalculateCoverageResponse) => void; + /** Transition eventHandler. */ + public eventHandler?: (google.cloud.dialogflow.cx.v3.IEventHandler|null); - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#importTestCases}. - * @param error Error, if any - * @param [response] Operation - */ - type ImportTestCasesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** Transition detail. */ + public detail?: ("transitionRoute"|"eventHandler"); - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#exportTestCases}. - * @param error Error, if any - * @param [response] Operation - */ - type ExportTestCasesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Creates a new Transition instance using the specified properties. + * @param [properties] Properties to set + * @returns Transition instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition): google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#listTestCaseResults}. - * @param error Error, if any - * @param [response] ListTestCaseResultsResponse - */ - type ListTestCaseResultsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse) => void; + /** + * Encodes the specified Transition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.verify|verify} messages. + * @param message Transition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#getTestCaseResult}. - * @param error Error, if any - * @param [response] TestCaseResult - */ - type GetTestCaseResultCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TestCaseResult) => void; - } + /** + * Encodes the specified Transition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.verify|verify} messages. + * @param message Transition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a TestCase. */ - interface ITestCase { + /** + * Decodes a Transition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Transition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition; - /** TestCase name */ - name?: (string|null); + /** + * Decodes a Transition message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Transition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition; - /** TestCase tags */ - tags?: (string[]|null); + /** + * Verifies a Transition message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** TestCase displayName */ - displayName?: (string|null); + /** + * Creates a Transition message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Transition + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition; - /** TestCase notes */ - notes?: (string|null); + /** + * Creates a plain object from a Transition message. Also converts values to other types if specified. + * @param message Transition + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** TestCase testConfig */ - testConfig?: (google.cloud.dialogflow.cx.v3.ITestConfig|null); + /** + * Converts this Transition to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } - /** TestCase testCaseConversationTurns */ - testCaseConversationTurns?: (google.cloud.dialogflow.cx.v3.IConversationTurn[]|null); + /** Properties of a TransitionRouteGroupCoverage. */ + interface ITransitionRouteGroupCoverage { - /** TestCase creationTime */ - creationTime?: (google.protobuf.ITimestamp|null); + /** TransitionRouteGroupCoverage coverages */ + coverages?: (google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage[]|null); - /** TestCase lastTestResult */ - lastTestResult?: (google.cloud.dialogflow.cx.v3.ITestCaseResult|null); + /** TransitionRouteGroupCoverage coverageScore */ + coverageScore?: (number|null); } - /** Represents a TestCase. */ - class TestCase implements ITestCase { + /** Represents a TransitionRouteGroupCoverage. */ + class TransitionRouteGroupCoverage implements ITransitionRouteGroupCoverage { /** - * Constructs a new TestCase. + * Constructs a new TransitionRouteGroupCoverage. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ITestCase); - - /** TestCase name. */ - public name: string; - - /** TestCase tags. */ - public tags: string[]; - - /** TestCase displayName. */ - public displayName: string; - - /** TestCase notes. */ - public notes: string; - - /** TestCase testConfig. */ - public testConfig?: (google.cloud.dialogflow.cx.v3.ITestConfig|null); - - /** TestCase testCaseConversationTurns. */ - public testCaseConversationTurns: google.cloud.dialogflow.cx.v3.IConversationTurn[]; + constructor(properties?: google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage); - /** TestCase creationTime. */ - public creationTime?: (google.protobuf.ITimestamp|null); + /** TransitionRouteGroupCoverage coverages. */ + public coverages: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage[]; - /** TestCase lastTestResult. */ - public lastTestResult?: (google.cloud.dialogflow.cx.v3.ITestCaseResult|null); + /** TransitionRouteGroupCoverage coverageScore. */ + public coverageScore: number; /** - * Creates a new TestCase instance using the specified properties. + * Creates a new TransitionRouteGroupCoverage instance using the specified properties. * @param [properties] Properties to set - * @returns TestCase instance + * @returns TransitionRouteGroupCoverage instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ITestCase): google.cloud.dialogflow.cx.v3.TestCase; + public static create(properties?: google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage; /** - * Encodes the specified TestCase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCase.verify|verify} messages. - * @param message TestCase message or plain object to encode + * Encodes the specified TransitionRouteGroupCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.verify|verify} messages. + * @param message TransitionRouteGroupCoverage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ITestCase, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TestCase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCase.verify|verify} messages. - * @param message TestCase message or plain object to encode + * Encodes the specified TransitionRouteGroupCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.verify|verify} messages. + * @param message TransitionRouteGroupCoverage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITestCase, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TestCase message from the specified reader or buffer. + * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TestCase + * @returns TransitionRouteGroupCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TestCase; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage; /** - * Decodes a TestCase message from the specified reader or buffer, length delimited. + * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TestCase + * @returns TransitionRouteGroupCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TestCase; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage; /** - * Verifies a TestCase message. + * Verifies a TransitionRouteGroupCoverage message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TestCase message from a plain object. Also converts values to their respective internal types. + * Creates a TransitionRouteGroupCoverage message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TestCase + * @returns TransitionRouteGroupCoverage */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TestCase; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage; /** - * Creates a plain object from a TestCase message. Also converts values to other types if specified. - * @param message TestCase + * Creates a plain object from a TransitionRouteGroupCoverage message. Also converts values to other types if specified. + * @param message TransitionRouteGroupCoverage * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.TestCase, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TestCase to JSON. + * Converts this TransitionRouteGroupCoverage to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TestCaseResult. */ - interface ITestCaseResult { - - /** TestCaseResult name */ - name?: (string|null); + namespace TransitionRouteGroupCoverage { - /** TestCaseResult environment */ - environment?: (string|null); + /** Properties of a Coverage. */ + interface ICoverage { - /** TestCaseResult conversationTurns */ - conversationTurns?: (google.cloud.dialogflow.cx.v3.IConversationTurn[]|null); + /** Coverage routeGroup */ + routeGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); - /** TestCaseResult testResult */ - testResult?: (google.cloud.dialogflow.cx.v3.TestResult|keyof typeof google.cloud.dialogflow.cx.v3.TestResult|null); + /** Coverage transitions */ + transitions?: (google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition[]|null); - /** TestCaseResult testTime */ - testTime?: (google.protobuf.ITimestamp|null); - } + /** Coverage coverageScore */ + coverageScore?: (number|null); + } - /** Represents a TestCaseResult. */ - class TestCaseResult implements ITestCaseResult { + /** Represents a Coverage. */ + class Coverage implements ICoverage { - /** - * Constructs a new TestCaseResult. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ITestCaseResult); + /** + * Constructs a new Coverage. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage); - /** TestCaseResult name. */ - public name: string; + /** Coverage routeGroup. */ + public routeGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); - /** TestCaseResult environment. */ - public environment: string; + /** Coverage transitions. */ + public transitions: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition[]; - /** TestCaseResult conversationTurns. */ - public conversationTurns: google.cloud.dialogflow.cx.v3.IConversationTurn[]; + /** Coverage coverageScore. */ + public coverageScore: number; - /** TestCaseResult testResult. */ - public testResult: (google.cloud.dialogflow.cx.v3.TestResult|keyof typeof google.cloud.dialogflow.cx.v3.TestResult); + /** + * Creates a new Coverage instance using the specified properties. + * @param [properties] Properties to set + * @returns Coverage instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage; - /** TestCaseResult testTime. */ - public testTime?: (google.protobuf.ITimestamp|null); + /** + * Encodes the specified Coverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.verify|verify} messages. + * @param message Coverage message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Coverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.verify|verify} messages. + * @param message Coverage message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Coverage message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Coverage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage; + + /** + * Decodes a Coverage message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Coverage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage; + + /** + * Verifies a Coverage message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Coverage message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Coverage + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage; + + /** + * Creates a plain object from a Coverage message. Also converts values to other types if specified. + * @param message Coverage + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Coverage to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace Coverage { + + /** Properties of a Transition. */ + interface ITransition { + + /** Transition transitionRoute */ + transitionRoute?: (google.cloud.dialogflow.cx.v3.ITransitionRoute|null); + + /** Transition covered */ + covered?: (boolean|null); + } + + /** Represents a Transition. */ + class Transition implements ITransition { + + /** + * Constructs a new Transition. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition); + + /** Transition transitionRoute. */ + public transitionRoute?: (google.cloud.dialogflow.cx.v3.ITransitionRoute|null); + + /** Transition covered. */ + public covered: boolean; + + /** + * Creates a new Transition instance using the specified properties. + * @param [properties] Properties to set + * @returns Transition instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition; + + /** + * Encodes the specified Transition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.verify|verify} messages. + * @param message Transition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Transition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.verify|verify} messages. + * @param message Transition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Transition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Transition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition; + + /** + * Decodes a Transition message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Transition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition; + + /** + * Verifies a Transition message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Transition message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Transition + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition; + + /** + * Creates a plain object from a Transition message. Also converts values to other types if specified. + * @param message Transition + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Transition to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + + /** Properties of an IntentCoverage. */ + interface IIntentCoverage { + + /** IntentCoverage intents */ + intents?: (google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent[]|null); + + /** IntentCoverage coverageScore */ + coverageScore?: (number|null); + } + + /** Represents an IntentCoverage. */ + class IntentCoverage implements IIntentCoverage { /** - * Creates a new TestCaseResult instance using the specified properties. + * Constructs a new IntentCoverage. * @param [properties] Properties to set - * @returns TestCaseResult instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ITestCaseResult): google.cloud.dialogflow.cx.v3.TestCaseResult; + constructor(properties?: google.cloud.dialogflow.cx.v3.IIntentCoverage); + + /** IntentCoverage intents. */ + public intents: google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent[]; + + /** IntentCoverage coverageScore. */ + public coverageScore: number; /** - * Encodes the specified TestCaseResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCaseResult.verify|verify} messages. - * @param message TestCaseResult message or plain object to encode + * Creates a new IntentCoverage instance using the specified properties. + * @param [properties] Properties to set + * @returns IntentCoverage instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IIntentCoverage): google.cloud.dialogflow.cx.v3.IntentCoverage; + + /** + * Encodes the specified IntentCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentCoverage.verify|verify} messages. + * @param message IntentCoverage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ITestCaseResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IIntentCoverage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TestCaseResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCaseResult.verify|verify} messages. - * @param message TestCaseResult message or plain object to encode + * Encodes the specified IntentCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentCoverage.verify|verify} messages. + * @param message IntentCoverage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITestCaseResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IIntentCoverage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TestCaseResult message from the specified reader or buffer. + * Decodes an IntentCoverage message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TestCaseResult + * @returns IntentCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TestCaseResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.IntentCoverage; /** - * Decodes a TestCaseResult message from the specified reader or buffer, length delimited. + * Decodes an IntentCoverage message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TestCaseResult + * @returns IntentCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TestCaseResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.IntentCoverage; /** - * Verifies a TestCaseResult message. + * Verifies an IntentCoverage message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TestCaseResult message from a plain object. Also converts values to their respective internal types. + * Creates an IntentCoverage message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TestCaseResult + * @returns IntentCoverage */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TestCaseResult; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.IntentCoverage; /** - * Creates a plain object from a TestCaseResult message. Also converts values to other types if specified. - * @param message TestCaseResult + * Creates a plain object from an IntentCoverage message. Also converts values to other types if specified. + * @param message IntentCoverage * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.TestCaseResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.IntentCoverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TestCaseResult to JSON. + * Converts this IntentCoverage to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TestConfig. */ - interface ITestConfig { + namespace IntentCoverage { - /** TestConfig trackingParameters */ - trackingParameters?: (string[]|null); + /** Properties of an Intent. */ + interface IIntent { - /** TestConfig flow */ - flow?: (string|null); + /** Intent intent */ + intent?: (string|null); + + /** Intent covered */ + covered?: (boolean|null); + } + + /** Represents an Intent. */ + class Intent implements IIntent { + + /** + * Constructs a new Intent. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent); + + /** Intent intent. */ + public intent: string; + + /** Intent covered. */ + public covered: boolean; + + /** + * Creates a new Intent instance using the specified properties. + * @param [properties] Properties to set + * @returns Intent instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent): google.cloud.dialogflow.cx.v3.IntentCoverage.Intent; + + /** + * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.verify|verify} messages. + * @param message Intent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.verify|verify} messages. + * @param message Intent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Intent message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Intent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.IntentCoverage.Intent; + + /** + * Decodes an Intent message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Intent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.IntentCoverage.Intent; + + /** + * Verifies an Intent message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an Intent message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Intent + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.IntentCoverage.Intent; + + /** + * Creates a plain object from an Intent message. Also converts values to other types if specified. + * @param message Intent + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.IntentCoverage.Intent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Intent to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Represents a TestConfig. */ - class TestConfig implements ITestConfig { + /** Properties of a CalculateCoverageRequest. */ + interface ICalculateCoverageRequest { + + /** CalculateCoverageRequest agent */ + agent?: (string|null); + + /** CalculateCoverageRequest type */ + type?: (google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType|keyof typeof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType|null); + } + + /** Represents a CalculateCoverageRequest. */ + class CalculateCoverageRequest implements ICalculateCoverageRequest { /** - * Constructs a new TestConfig. + * Constructs a new CalculateCoverageRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ITestConfig); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest); - /** TestConfig trackingParameters. */ - public trackingParameters: string[]; + /** CalculateCoverageRequest agent. */ + public agent: string; - /** TestConfig flow. */ - public flow: string; + /** CalculateCoverageRequest type. */ + public type: (google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType|keyof typeof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType); /** - * Creates a new TestConfig instance using the specified properties. + * Creates a new CalculateCoverageRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TestConfig instance + * @returns CalculateCoverageRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ITestConfig): google.cloud.dialogflow.cx.v3.TestConfig; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest): google.cloud.dialogflow.cx.v3.CalculateCoverageRequest; /** - * Encodes the specified TestConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestConfig.verify|verify} messages. - * @param message TestConfig message or plain object to encode + * Encodes the specified CalculateCoverageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.verify|verify} messages. + * @param message CalculateCoverageRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ITestConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TestConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestConfig.verify|verify} messages. - * @param message TestConfig message or plain object to encode + * Encodes the specified CalculateCoverageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.verify|verify} messages. + * @param message CalculateCoverageRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITestConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TestConfig message from the specified reader or buffer. + * Decodes a CalculateCoverageRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TestConfig + * @returns CalculateCoverageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TestConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CalculateCoverageRequest; /** - * Decodes a TestConfig message from the specified reader or buffer, length delimited. + * Decodes a CalculateCoverageRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TestConfig + * @returns CalculateCoverageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TestConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CalculateCoverageRequest; /** - * Verifies a TestConfig message. + * Verifies a CalculateCoverageRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TestConfig message from a plain object. Also converts values to their respective internal types. + * Creates a CalculateCoverageRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TestConfig + * @returns CalculateCoverageRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TestConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CalculateCoverageRequest; /** - * Creates a plain object from a TestConfig message. Also converts values to other types if specified. - * @param message TestConfig + * Creates a plain object from a CalculateCoverageRequest message. Also converts values to other types if specified. + * @param message CalculateCoverageRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.TestConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CalculateCoverageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TestConfig to JSON. + * Converts this CalculateCoverageRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ConversationTurn. */ - interface IConversationTurn { + namespace CalculateCoverageRequest { - /** ConversationTurn userInput */ - userInput?: (google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput|null); + /** CoverageType enum. */ + enum CoverageType { + COVERAGE_TYPE_UNSPECIFIED = 0, + INTENT = 1, + PAGE_TRANSITION = 2, + TRANSITION_ROUTE_GROUP = 3 + } + } - /** ConversationTurn virtualAgentOutput */ - virtualAgentOutput?: (google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput|null); + /** Properties of a CalculateCoverageResponse. */ + interface ICalculateCoverageResponse { + + /** CalculateCoverageResponse agent */ + agent?: (string|null); + + /** CalculateCoverageResponse intentCoverage */ + intentCoverage?: (google.cloud.dialogflow.cx.v3.IIntentCoverage|null); + + /** CalculateCoverageResponse transitionCoverage */ + transitionCoverage?: (google.cloud.dialogflow.cx.v3.ITransitionCoverage|null); + + /** CalculateCoverageResponse routeGroupCoverage */ + routeGroupCoverage?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage|null); } - /** Represents a ConversationTurn. */ - class ConversationTurn implements IConversationTurn { + /** Represents a CalculateCoverageResponse. */ + class CalculateCoverageResponse implements ICalculateCoverageResponse { /** - * Constructs a new ConversationTurn. + * Constructs a new CalculateCoverageResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IConversationTurn); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICalculateCoverageResponse); - /** ConversationTurn userInput. */ - public userInput?: (google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput|null); + /** CalculateCoverageResponse agent. */ + public agent: string; - /** ConversationTurn virtualAgentOutput. */ - public virtualAgentOutput?: (google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput|null); + /** CalculateCoverageResponse intentCoverage. */ + public intentCoverage?: (google.cloud.dialogflow.cx.v3.IIntentCoverage|null); + + /** CalculateCoverageResponse transitionCoverage. */ + public transitionCoverage?: (google.cloud.dialogflow.cx.v3.ITransitionCoverage|null); + + /** CalculateCoverageResponse routeGroupCoverage. */ + public routeGroupCoverage?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage|null); + + /** CalculateCoverageResponse coverageType. */ + public coverageType?: ("intentCoverage"|"transitionCoverage"|"routeGroupCoverage"); /** - * Creates a new ConversationTurn instance using the specified properties. + * Creates a new CalculateCoverageResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ConversationTurn instance + * @returns CalculateCoverageResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IConversationTurn): google.cloud.dialogflow.cx.v3.ConversationTurn; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICalculateCoverageResponse): google.cloud.dialogflow.cx.v3.CalculateCoverageResponse; /** - * Encodes the specified ConversationTurn message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.verify|verify} messages. - * @param message ConversationTurn message or plain object to encode + * Encodes the specified CalculateCoverageResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.verify|verify} messages. + * @param message CalculateCoverageResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IConversationTurn, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICalculateCoverageResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ConversationTurn message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.verify|verify} messages. - * @param message ConversationTurn message or plain object to encode + * Encodes the specified CalculateCoverageResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.verify|verify} messages. + * @param message CalculateCoverageResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IConversationTurn, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICalculateCoverageResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ConversationTurn message from the specified reader or buffer. + * Decodes a CalculateCoverageResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ConversationTurn + * @returns CalculateCoverageResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ConversationTurn; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CalculateCoverageResponse; /** - * Decodes a ConversationTurn message from the specified reader or buffer, length delimited. + * Decodes a CalculateCoverageResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ConversationTurn + * @returns CalculateCoverageResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ConversationTurn; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CalculateCoverageResponse; /** - * Verifies a ConversationTurn message. + * Verifies a CalculateCoverageResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ConversationTurn message from a plain object. Also converts values to their respective internal types. + * Creates a CalculateCoverageResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ConversationTurn + * @returns CalculateCoverageResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ConversationTurn; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CalculateCoverageResponse; /** - * Creates a plain object from a ConversationTurn message. Also converts values to other types if specified. - * @param message ConversationTurn + * Creates a plain object from a CalculateCoverageResponse message. Also converts values to other types if specified. + * @param message CalculateCoverageResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ConversationTurn, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CalculateCoverageResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ConversationTurn to JSON. + * Converts this CalculateCoverageResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace ConversationTurn { - - /** Properties of a UserInput. */ - interface IUserInput { - - /** UserInput input */ - input?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); - - /** UserInput injectedParameters */ - injectedParameters?: (google.protobuf.IStruct|null); - - /** UserInput isWebhookEnabled */ - isWebhookEnabled?: (boolean|null); - - /** UserInput enableSentimentAnalysis */ - enableSentimentAnalysis?: (boolean|null); - } - - /** Represents a UserInput. */ - class UserInput implements IUserInput { - - /** - * Constructs a new UserInput. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput); - - /** UserInput input. */ - public input?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); - - /** UserInput injectedParameters. */ - public injectedParameters?: (google.protobuf.IStruct|null); - - /** UserInput isWebhookEnabled. */ - public isWebhookEnabled: boolean; - - /** UserInput enableSentimentAnalysis. */ - public enableSentimentAnalysis: boolean; - - /** - * Creates a new UserInput instance using the specified properties. - * @param [properties] Properties to set - * @returns UserInput instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput): google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput; - - /** - * Encodes the specified UserInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.verify|verify} messages. - * @param message UserInput message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UserInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.verify|verify} messages. - * @param message UserInput message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a UserInput message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UserInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput; - - /** - * Decodes a UserInput message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput; - - /** - * Verifies a UserInput message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a UserInput message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UserInput - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput; - - /** - * Creates a plain object from a UserInput message. Also converts values to other types if specified. - * @param message UserInput - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UserInput to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a VirtualAgentOutput. */ - interface IVirtualAgentOutput { - - /** VirtualAgentOutput sessionParameters */ - sessionParameters?: (google.protobuf.IStruct|null); - - /** VirtualAgentOutput differences */ - differences?: (google.cloud.dialogflow.cx.v3.ITestRunDifference[]|null); - - /** VirtualAgentOutput diagnosticInfo */ - diagnosticInfo?: (google.protobuf.IStruct|null); - - /** VirtualAgentOutput triggeredIntent */ - triggeredIntent?: (google.cloud.dialogflow.cx.v3.IIntent|null); + /** Properties of a ListTestCasesRequest. */ + interface IListTestCasesRequest { - /** VirtualAgentOutput currentPage */ - currentPage?: (google.cloud.dialogflow.cx.v3.IPage|null); + /** ListTestCasesRequest parent */ + parent?: (string|null); - /** VirtualAgentOutput textResponses */ - textResponses?: (google.cloud.dialogflow.cx.v3.ResponseMessage.IText[]|null); + /** ListTestCasesRequest pageSize */ + pageSize?: (number|null); - /** VirtualAgentOutput status */ - status?: (google.rpc.IStatus|null); - } + /** ListTestCasesRequest pageToken */ + pageToken?: (string|null); - /** Represents a VirtualAgentOutput. */ - class VirtualAgentOutput implements IVirtualAgentOutput { + /** ListTestCasesRequest view */ + view?: (google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView|keyof typeof google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView|null); + } - /** - * Constructs a new VirtualAgentOutput. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput); + /** Represents a ListTestCasesRequest. */ + class ListTestCasesRequest implements IListTestCasesRequest { - /** VirtualAgentOutput sessionParameters. */ - public sessionParameters?: (google.protobuf.IStruct|null); + /** + * Constructs a new ListTestCasesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IListTestCasesRequest); - /** VirtualAgentOutput differences. */ - public differences: google.cloud.dialogflow.cx.v3.ITestRunDifference[]; + /** ListTestCasesRequest parent. */ + public parent: string; - /** VirtualAgentOutput diagnosticInfo. */ - public diagnosticInfo?: (google.protobuf.IStruct|null); + /** ListTestCasesRequest pageSize. */ + public pageSize: number; - /** VirtualAgentOutput triggeredIntent. */ - public triggeredIntent?: (google.cloud.dialogflow.cx.v3.IIntent|null); + /** ListTestCasesRequest pageToken. */ + public pageToken: string; - /** VirtualAgentOutput currentPage. */ - public currentPage?: (google.cloud.dialogflow.cx.v3.IPage|null); + /** ListTestCasesRequest view. */ + public view: (google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView|keyof typeof google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView); - /** VirtualAgentOutput textResponses. */ - public textResponses: google.cloud.dialogflow.cx.v3.ResponseMessage.IText[]; + /** + * Creates a new ListTestCasesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListTestCasesRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IListTestCasesRequest): google.cloud.dialogflow.cx.v3.ListTestCasesRequest; - /** VirtualAgentOutput status. */ - public status?: (google.rpc.IStatus|null); + /** + * Encodes the specified ListTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCasesRequest.verify|verify} messages. + * @param message ListTestCasesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IListTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new VirtualAgentOutput instance using the specified properties. - * @param [properties] Properties to set - * @returns VirtualAgentOutput instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput): google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput; + /** + * Encodes the specified ListTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCasesRequest.verify|verify} messages. + * @param message ListTestCasesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified VirtualAgentOutput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.verify|verify} messages. - * @param message VirtualAgentOutput message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a ListTestCasesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListTestCasesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListTestCasesRequest; - /** - * Encodes the specified VirtualAgentOutput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.verify|verify} messages. - * @param message VirtualAgentOutput message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a ListTestCasesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListTestCasesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListTestCasesRequest; - /** - * Decodes a VirtualAgentOutput message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VirtualAgentOutput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput; + /** + * Verifies a ListTestCasesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes a VirtualAgentOutput message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VirtualAgentOutput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput; + /** + * Creates a ListTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListTestCasesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListTestCasesRequest; - /** - * Verifies a VirtualAgentOutput message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a plain object from a ListTestCasesRequest message. Also converts values to other types if specified. + * @param message ListTestCasesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.ListTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a VirtualAgentOutput message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VirtualAgentOutput - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput; + /** + * Converts this ListTestCasesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Creates a plain object from a VirtualAgentOutput message. Also converts values to other types if specified. - * @param message VirtualAgentOutput - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + namespace ListTestCasesRequest { - /** - * Converts this VirtualAgentOutput to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** TestCaseView enum. */ + enum TestCaseView { + TEST_CASE_VIEW_UNSPECIFIED = 0, + BASIC = 1, + FULL = 2 } } - /** Properties of a TestRunDifference. */ - interface ITestRunDifference { + /** Properties of a ListTestCasesResponse. */ + interface IListTestCasesResponse { - /** TestRunDifference type */ - type?: (google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType|keyof typeof google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType|null); + /** ListTestCasesResponse testCases */ + testCases?: (google.cloud.dialogflow.cx.v3.ITestCase[]|null); - /** TestRunDifference description */ - description?: (string|null); + /** ListTestCasesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a TestRunDifference. */ - class TestRunDifference implements ITestRunDifference { + /** Represents a ListTestCasesResponse. */ + class ListTestCasesResponse implements IListTestCasesResponse { /** - * Constructs a new TestRunDifference. + * Constructs a new ListTestCasesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ITestRunDifference); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListTestCasesResponse); - /** TestRunDifference type. */ - public type: (google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType|keyof typeof google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType); + /** ListTestCasesResponse testCases. */ + public testCases: google.cloud.dialogflow.cx.v3.ITestCase[]; - /** TestRunDifference description. */ - public description: string; + /** ListTestCasesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new TestRunDifference instance using the specified properties. + * Creates a new ListTestCasesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns TestRunDifference instance + * @returns ListTestCasesResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ITestRunDifference): google.cloud.dialogflow.cx.v3.TestRunDifference; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListTestCasesResponse): google.cloud.dialogflow.cx.v3.ListTestCasesResponse; /** - * Encodes the specified TestRunDifference message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestRunDifference.verify|verify} messages. - * @param message TestRunDifference message or plain object to encode + * Encodes the specified ListTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCasesResponse.verify|verify} messages. + * @param message ListTestCasesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ITestRunDifference, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TestRunDifference message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestRunDifference.verify|verify} messages. - * @param message TestRunDifference message or plain object to encode + * Encodes the specified ListTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCasesResponse.verify|verify} messages. + * @param message ListTestCasesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITestRunDifference, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TestRunDifference message from the specified reader or buffer. + * Decodes a ListTestCasesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TestRunDifference + * @returns ListTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TestRunDifference; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListTestCasesResponse; /** - * Decodes a TestRunDifference message from the specified reader or buffer, length delimited. + * Decodes a ListTestCasesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TestRunDifference + * @returns ListTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TestRunDifference; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListTestCasesResponse; /** - * Verifies a TestRunDifference message. + * Verifies a ListTestCasesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TestRunDifference message from a plain object. Also converts values to their respective internal types. + * Creates a ListTestCasesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TestRunDifference + * @returns ListTestCasesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TestRunDifference; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListTestCasesResponse; /** - * Creates a plain object from a TestRunDifference message. Also converts values to other types if specified. - * @param message TestRunDifference + * Creates a plain object from a ListTestCasesResponse message. Also converts values to other types if specified. + * @param message ListTestCasesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.TestRunDifference, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TestRunDifference to JSON. + * Converts this ListTestCasesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace TestRunDifference { - - /** DiffType enum. */ - enum DiffType { - DIFF_TYPE_UNSPECIFIED = 0, - INTENT = 1, - PAGE = 2, - PARAMETERS = 3, - UTTERANCE = 4 - } - } - - /** Properties of a TransitionCoverage. */ - interface ITransitionCoverage { + /** Properties of a BatchDeleteTestCasesRequest. */ + interface IBatchDeleteTestCasesRequest { - /** TransitionCoverage transitions */ - transitions?: (google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition[]|null); + /** BatchDeleteTestCasesRequest parent */ + parent?: (string|null); - /** TransitionCoverage coverageScore */ - coverageScore?: (number|null); + /** BatchDeleteTestCasesRequest names */ + names?: (string[]|null); } - /** Represents a TransitionCoverage. */ - class TransitionCoverage implements ITransitionCoverage { + /** Represents a BatchDeleteTestCasesRequest. */ + class BatchDeleteTestCasesRequest implements IBatchDeleteTestCasesRequest { /** - * Constructs a new TransitionCoverage. + * Constructs a new BatchDeleteTestCasesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ITransitionCoverage); + constructor(properties?: google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest); - /** TransitionCoverage transitions. */ - public transitions: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition[]; + /** BatchDeleteTestCasesRequest parent. */ + public parent: string; - /** TransitionCoverage coverageScore. */ - public coverageScore: number; + /** BatchDeleteTestCasesRequest names. */ + public names: string[]; /** - * Creates a new TransitionCoverage instance using the specified properties. + * Creates a new BatchDeleteTestCasesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TransitionCoverage instance + * @returns BatchDeleteTestCasesRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ITransitionCoverage): google.cloud.dialogflow.cx.v3.TransitionCoverage; + public static create(properties?: google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest): google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest; /** - * Encodes the specified TransitionCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.verify|verify} messages. - * @param message TransitionCoverage message or plain object to encode + * Encodes the specified BatchDeleteTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest.verify|verify} messages. + * @param message BatchDeleteTestCasesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ITransitionCoverage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TransitionCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.verify|verify} messages. - * @param message TransitionCoverage message or plain object to encode + * Encodes the specified BatchDeleteTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest.verify|verify} messages. + * @param message BatchDeleteTestCasesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITransitionCoverage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TransitionCoverage message from the specified reader or buffer. + * Decodes a BatchDeleteTestCasesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TransitionCoverage + * @returns BatchDeleteTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TransitionCoverage; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest; /** - * Decodes a TransitionCoverage message from the specified reader or buffer, length delimited. + * Decodes a BatchDeleteTestCasesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TransitionCoverage + * @returns BatchDeleteTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TransitionCoverage; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest; /** - * Verifies a TransitionCoverage message. + * Verifies a BatchDeleteTestCasesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TransitionCoverage message from a plain object. Also converts values to their respective internal types. + * Creates a BatchDeleteTestCasesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TransitionCoverage + * @returns BatchDeleteTestCasesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TransitionCoverage; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest; /** - * Creates a plain object from a TransitionCoverage message. Also converts values to other types if specified. - * @param message TransitionCoverage + * Creates a plain object from a BatchDeleteTestCasesRequest message. Also converts values to other types if specified. + * @param message BatchDeleteTestCasesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.TransitionCoverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TransitionCoverage to JSON. + * Converts this BatchDeleteTestCasesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace TransitionCoverage { - - /** Properties of a TransitionNode. */ - interface ITransitionNode { - - /** TransitionNode page */ - page?: (google.cloud.dialogflow.cx.v3.IPage|null); + /** Properties of a CreateTestCaseRequest. */ + interface ICreateTestCaseRequest { - /** TransitionNode flow */ - flow?: (google.cloud.dialogflow.cx.v3.IFlow|null); - } + /** CreateTestCaseRequest parent */ + parent?: (string|null); - /** Represents a TransitionNode. */ - class TransitionNode implements ITransitionNode { + /** CreateTestCaseRequest testCase */ + testCase?: (google.cloud.dialogflow.cx.v3.ITestCase|null); + } - /** - * Constructs a new TransitionNode. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode); + /** Represents a CreateTestCaseRequest. */ + class CreateTestCaseRequest implements ICreateTestCaseRequest { - /** TransitionNode page. */ - public page?: (google.cloud.dialogflow.cx.v3.IPage|null); + /** + * Constructs a new CreateTestCaseRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest); - /** TransitionNode flow. */ - public flow?: (google.cloud.dialogflow.cx.v3.IFlow|null); + /** CreateTestCaseRequest parent. */ + public parent: string; - /** TransitionNode kind. */ - public kind?: ("page"|"flow"); + /** CreateTestCaseRequest testCase. */ + public testCase?: (google.cloud.dialogflow.cx.v3.ITestCase|null); - /** - * Creates a new TransitionNode instance using the specified properties. - * @param [properties] Properties to set - * @returns TransitionNode instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode): google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode; + /** + * Creates a new CreateTestCaseRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateTestCaseRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest): google.cloud.dialogflow.cx.v3.CreateTestCaseRequest; - /** - * Encodes the specified TransitionNode message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.verify|verify} messages. - * @param message TransitionNode message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified CreateTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTestCaseRequest.verify|verify} messages. + * @param message CreateTestCaseRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TransitionNode message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.verify|verify} messages. - * @param message TransitionNode message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified CreateTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTestCaseRequest.verify|verify} messages. + * @param message CreateTestCaseRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a TransitionNode message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TransitionNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode; + /** + * Decodes a CreateTestCaseRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateTestCaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateTestCaseRequest; - /** - * Decodes a TransitionNode message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TransitionNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode; + /** + * Decodes a CreateTestCaseRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateTestCaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateTestCaseRequest; - /** - * Verifies a TransitionNode message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies a CreateTestCaseRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a TransitionNode message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TransitionNode - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode; + /** + * Creates a CreateTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateTestCaseRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateTestCaseRequest; - /** - * Creates a plain object from a TransitionNode message. Also converts values to other types if specified. - * @param message TransitionNode - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a CreateTestCaseRequest message. Also converts values to other types if specified. + * @param message CreateTestCaseRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this TransitionNode to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Converts this CreateTestCaseRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Properties of a Transition. */ - interface ITransition { + /** Properties of an UpdateTestCaseRequest. */ + interface IUpdateTestCaseRequest { - /** Transition source */ - source?: (google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode|null); + /** UpdateTestCaseRequest testCase */ + testCase?: (google.cloud.dialogflow.cx.v3.ITestCase|null); - /** Transition index */ - index?: (number|null); + /** UpdateTestCaseRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } - /** Transition target */ - target?: (google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode|null); + /** Represents an UpdateTestCaseRequest. */ + class UpdateTestCaseRequest implements IUpdateTestCaseRequest { - /** Transition covered */ - covered?: (boolean|null); + /** + * Constructs a new UpdateTestCaseRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest); - /** Transition transitionRoute */ - transitionRoute?: (google.cloud.dialogflow.cx.v3.ITransitionRoute|null); + /** UpdateTestCaseRequest testCase. */ + public testCase?: (google.cloud.dialogflow.cx.v3.ITestCase|null); - /** Transition eventHandler */ - eventHandler?: (google.cloud.dialogflow.cx.v3.IEventHandler|null); - } + /** UpdateTestCaseRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** Represents a Transition. */ - class Transition implements ITransition { + /** + * Creates a new UpdateTestCaseRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateTestCaseRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest): google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest; - /** - * Constructs a new Transition. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition); + /** + * Encodes the specified UpdateTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest.verify|verify} messages. + * @param message UpdateTestCaseRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Transition source. */ - public source?: (google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode|null); + /** + * Encodes the specified UpdateTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest.verify|verify} messages. + * @param message UpdateTestCaseRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Transition index. */ - public index: number; + /** + * Decodes an UpdateTestCaseRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateTestCaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest; - /** Transition target. */ - public target?: (google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode|null); + /** + * Decodes an UpdateTestCaseRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateTestCaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest; - /** Transition covered. */ - public covered: boolean; + /** + * Verifies an UpdateTestCaseRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Transition transitionRoute. */ - public transitionRoute?: (google.cloud.dialogflow.cx.v3.ITransitionRoute|null); + /** + * Creates an UpdateTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateTestCaseRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest; - /** Transition eventHandler. */ - public eventHandler?: (google.cloud.dialogflow.cx.v3.IEventHandler|null); + /** + * Creates a plain object from an UpdateTestCaseRequest message. Also converts values to other types if specified. + * @param message UpdateTestCaseRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Transition detail. */ - public detail?: ("transitionRoute"|"eventHandler"); + /** + * Converts this UpdateTestCaseRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Creates a new Transition instance using the specified properties. - * @param [properties] Properties to set - * @returns Transition instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition): google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition; + /** Properties of a GetTestCaseRequest. */ + interface IGetTestCaseRequest { - /** - * Encodes the specified Transition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.verify|verify} messages. - * @param message Transition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition, writer?: $protobuf.Writer): $protobuf.Writer; + /** GetTestCaseRequest name */ + name?: (string|null); + } - /** - * Encodes the specified Transition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.verify|verify} messages. - * @param message Transition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a GetTestCaseRequest. */ + class GetTestCaseRequest implements IGetTestCaseRequest { - /** - * Decodes a Transition message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Transition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition; + /** + * Constructs a new GetTestCaseRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetTestCaseRequest); - /** - * Decodes a Transition message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Transition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition; + /** GetTestCaseRequest name. */ + public name: string; - /** - * Verifies a Transition message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a new GetTestCaseRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTestCaseRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetTestCaseRequest): google.cloud.dialogflow.cx.v3.GetTestCaseRequest; - /** - * Creates a Transition message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Transition - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition; + /** + * Encodes the specified GetTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTestCaseRequest.verify|verify} messages. + * @param message GetTestCaseRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IGetTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a Transition message. Also converts values to other types if specified. - * @param message Transition - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified GetTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTestCaseRequest.verify|verify} messages. + * @param message GetTestCaseRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this Transition to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Decodes a GetTestCaseRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTestCaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetTestCaseRequest; + + /** + * Decodes a GetTestCaseRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetTestCaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetTestCaseRequest; + + /** + * Verifies a GetTestCaseRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetTestCaseRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetTestCaseRequest; + + /** + * Creates a plain object from a GetTestCaseRequest message. Also converts values to other types if specified. + * @param message GetTestCaseRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.GetTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetTestCaseRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Properties of a TransitionRouteGroupCoverage. */ - interface ITransitionRouteGroupCoverage { + /** Properties of a RunTestCaseRequest. */ + interface IRunTestCaseRequest { - /** TransitionRouteGroupCoverage coverages */ - coverages?: (google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage[]|null); + /** RunTestCaseRequest name */ + name?: (string|null); - /** TransitionRouteGroupCoverage coverageScore */ - coverageScore?: (number|null); + /** RunTestCaseRequest environment */ + environment?: (string|null); } - /** Represents a TransitionRouteGroupCoverage. */ - class TransitionRouteGroupCoverage implements ITransitionRouteGroupCoverage { + /** Represents a RunTestCaseRequest. */ + class RunTestCaseRequest implements IRunTestCaseRequest { /** - * Constructs a new TransitionRouteGroupCoverage. + * Constructs a new RunTestCaseRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage); + constructor(properties?: google.cloud.dialogflow.cx.v3.IRunTestCaseRequest); - /** TransitionRouteGroupCoverage coverages. */ - public coverages: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage[]; + /** RunTestCaseRequest name. */ + public name: string; - /** TransitionRouteGroupCoverage coverageScore. */ - public coverageScore: number; + /** RunTestCaseRequest environment. */ + public environment: string; /** - * Creates a new TransitionRouteGroupCoverage instance using the specified properties. + * Creates a new RunTestCaseRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TransitionRouteGroupCoverage instance + * @returns RunTestCaseRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage; + public static create(properties?: google.cloud.dialogflow.cx.v3.IRunTestCaseRequest): google.cloud.dialogflow.cx.v3.RunTestCaseRequest; /** - * Encodes the specified TransitionRouteGroupCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.verify|verify} messages. - * @param message TransitionRouteGroupCoverage message or plain object to encode + * Encodes the specified RunTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseRequest.verify|verify} messages. + * @param message RunTestCaseRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IRunTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TransitionRouteGroupCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.verify|verify} messages. - * @param message TransitionRouteGroupCoverage message or plain object to encode + * Encodes the specified RunTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseRequest.verify|verify} messages. + * @param message RunTestCaseRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IRunTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer. + * Decodes a RunTestCaseRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TransitionRouteGroupCoverage + * @returns RunTestCaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.RunTestCaseRequest; /** - * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer, length delimited. + * Decodes a RunTestCaseRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TransitionRouteGroupCoverage + * @returns RunTestCaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.RunTestCaseRequest; /** - * Verifies a TransitionRouteGroupCoverage message. + * Verifies a RunTestCaseRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TransitionRouteGroupCoverage message from a plain object. Also converts values to their respective internal types. + * Creates a RunTestCaseRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TransitionRouteGroupCoverage + * @returns RunTestCaseRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.RunTestCaseRequest; /** - * Creates a plain object from a TransitionRouteGroupCoverage message. Also converts values to other types if specified. - * @param message TransitionRouteGroupCoverage + * Creates a plain object from a RunTestCaseRequest message. Also converts values to other types if specified. + * @param message RunTestCaseRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.RunTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TransitionRouteGroupCoverage to JSON. + * Converts this RunTestCaseRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace TransitionRouteGroupCoverage { - - /** Properties of a Coverage. */ - interface ICoverage { + /** Properties of a RunTestCaseResponse. */ + interface IRunTestCaseResponse { - /** Coverage routeGroup */ - routeGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); + /** RunTestCaseResponse result */ + result?: (google.cloud.dialogflow.cx.v3.ITestCaseResult|null); + } - /** Coverage transitions */ - transitions?: (google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition[]|null); + /** Represents a RunTestCaseResponse. */ + class RunTestCaseResponse implements IRunTestCaseResponse { - /** Coverage coverageScore */ - coverageScore?: (number|null); - } + /** + * Constructs a new RunTestCaseResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IRunTestCaseResponse); - /** Represents a Coverage. */ - class Coverage implements ICoverage { + /** RunTestCaseResponse result. */ + public result?: (google.cloud.dialogflow.cx.v3.ITestCaseResult|null); - /** - * Constructs a new Coverage. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage); + /** + * Creates a new RunTestCaseResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RunTestCaseResponse instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IRunTestCaseResponse): google.cloud.dialogflow.cx.v3.RunTestCaseResponse; - /** Coverage routeGroup. */ - public routeGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); + /** + * Encodes the specified RunTestCaseResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseResponse.verify|verify} messages. + * @param message RunTestCaseResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IRunTestCaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Coverage transitions. */ - public transitions: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition[]; - - /** Coverage coverageScore. */ - public coverageScore: number; - - /** - * Creates a new Coverage instance using the specified properties. - * @param [properties] Properties to set - * @returns Coverage instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage; - - /** - * Encodes the specified Coverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.verify|verify} messages. - * @param message Coverage message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Coverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.verify|verify} messages. - * @param message Coverage message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Coverage message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Coverage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage; - - /** - * Decodes a Coverage message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Coverage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage; - - /** - * Verifies a Coverage message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Coverage message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Coverage - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage; - - /** - * Creates a plain object from a Coverage message. Also converts values to other types if specified. - * @param message Coverage - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Coverage to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace Coverage { - - /** Properties of a Transition. */ - interface ITransition { - - /** Transition transitionRoute */ - transitionRoute?: (google.cloud.dialogflow.cx.v3.ITransitionRoute|null); - - /** Transition covered */ - covered?: (boolean|null); - } - - /** Represents a Transition. */ - class Transition implements ITransition { - - /** - * Constructs a new Transition. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition); - - /** Transition transitionRoute. */ - public transitionRoute?: (google.cloud.dialogflow.cx.v3.ITransitionRoute|null); - - /** Transition covered. */ - public covered: boolean; - - /** - * Creates a new Transition instance using the specified properties. - * @param [properties] Properties to set - * @returns Transition instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition; - - /** - * Encodes the specified Transition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.verify|verify} messages. - * @param message Transition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Transition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.verify|verify} messages. - * @param message Transition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Transition message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Transition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition; - - /** - * Decodes a Transition message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Transition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition; - - /** - * Verifies a Transition message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Transition message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Transition - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition; - - /** - * Creates a plain object from a Transition message. Also converts values to other types if specified. - * @param message Transition - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Transition to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - } - - /** Properties of an IntentCoverage. */ - interface IIntentCoverage { - - /** IntentCoverage intents */ - intents?: (google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent[]|null); - - /** IntentCoverage coverageScore */ - coverageScore?: (number|null); - } - - /** Represents an IntentCoverage. */ - class IntentCoverage implements IIntentCoverage { - - /** - * Constructs a new IntentCoverage. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IIntentCoverage); - - /** IntentCoverage intents. */ - public intents: google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent[]; - - /** IntentCoverage coverageScore. */ - public coverageScore: number; - - /** - * Creates a new IntentCoverage instance using the specified properties. - * @param [properties] Properties to set - * @returns IntentCoverage instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IIntentCoverage): google.cloud.dialogflow.cx.v3.IntentCoverage; - - /** - * Encodes the specified IntentCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentCoverage.verify|verify} messages. - * @param message IntentCoverage message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.IIntentCoverage, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified IntentCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentCoverage.verify|verify} messages. - * @param message IntentCoverage message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IIntentCoverage, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified RunTestCaseResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseResponse.verify|verify} messages. + * @param message RunTestCaseResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IRunTestCaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IntentCoverage message from the specified reader or buffer. + * Decodes a RunTestCaseResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns IntentCoverage + * @returns RunTestCaseResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.IntentCoverage; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.RunTestCaseResponse; /** - * Decodes an IntentCoverage message from the specified reader or buffer, length delimited. + * Decodes a RunTestCaseResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns IntentCoverage + * @returns RunTestCaseResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.IntentCoverage; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.RunTestCaseResponse; /** - * Verifies an IntentCoverage message. + * Verifies a RunTestCaseResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an IntentCoverage message from a plain object. Also converts values to their respective internal types. + * Creates a RunTestCaseResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns IntentCoverage + * @returns RunTestCaseResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.IntentCoverage; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.RunTestCaseResponse; /** - * Creates a plain object from an IntentCoverage message. Also converts values to other types if specified. - * @param message IntentCoverage + * Creates a plain object from a RunTestCaseResponse message. Also converts values to other types if specified. + * @param message RunTestCaseResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.IntentCoverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.RunTestCaseResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IntentCoverage to JSON. + * Converts this RunTestCaseResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace IntentCoverage { - - /** Properties of an Intent. */ - interface IIntent { - - /** Intent intent */ - intent?: (string|null); - - /** Intent covered */ - covered?: (boolean|null); - } - - /** Represents an Intent. */ - class Intent implements IIntent { - - /** - * Constructs a new Intent. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent); - - /** Intent intent. */ - public intent: string; - - /** Intent covered. */ - public covered: boolean; - - /** - * Creates a new Intent instance using the specified properties. - * @param [properties] Properties to set - * @returns Intent instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent): google.cloud.dialogflow.cx.v3.IntentCoverage.Intent; - - /** - * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.verify|verify} messages. - * @param message Intent message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.verify|verify} messages. - * @param message Intent message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Intent message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Intent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.IntentCoverage.Intent; - - /** - * Decodes an Intent message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Intent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.IntentCoverage.Intent; - - /** - * Verifies an Intent message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an Intent message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Intent - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.IntentCoverage.Intent; - - /** - * Creates a plain object from an Intent message. Also converts values to other types if specified. - * @param message Intent - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.IntentCoverage.Intent, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Intent to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of a CalculateCoverageRequest. */ - interface ICalculateCoverageRequest { - - /** CalculateCoverageRequest agent */ - agent?: (string|null); - - /** CalculateCoverageRequest type */ - type?: (google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType|keyof typeof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType|null); + /** Properties of a RunTestCaseMetadata. */ + interface IRunTestCaseMetadata { } - /** Represents a CalculateCoverageRequest. */ - class CalculateCoverageRequest implements ICalculateCoverageRequest { + /** Represents a RunTestCaseMetadata. */ + class RunTestCaseMetadata implements IRunTestCaseMetadata { /** - * Constructs a new CalculateCoverageRequest. + * Constructs a new RunTestCaseMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest); - - /** CalculateCoverageRequest agent. */ - public agent: string; - - /** CalculateCoverageRequest type. */ - public type: (google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType|keyof typeof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType); + constructor(properties?: google.cloud.dialogflow.cx.v3.IRunTestCaseMetadata); /** - * Creates a new CalculateCoverageRequest instance using the specified properties. + * Creates a new RunTestCaseMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns CalculateCoverageRequest instance + * @returns RunTestCaseMetadata instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest): google.cloud.dialogflow.cx.v3.CalculateCoverageRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IRunTestCaseMetadata): google.cloud.dialogflow.cx.v3.RunTestCaseMetadata; /** - * Encodes the specified CalculateCoverageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.verify|verify} messages. - * @param message CalculateCoverageRequest message or plain object to encode + * Encodes the specified RunTestCaseMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseMetadata.verify|verify} messages. + * @param message RunTestCaseMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IRunTestCaseMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CalculateCoverageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.verify|verify} messages. - * @param message CalculateCoverageRequest message or plain object to encode + * Encodes the specified RunTestCaseMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseMetadata.verify|verify} messages. + * @param message RunTestCaseMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IRunTestCaseMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CalculateCoverageRequest message from the specified reader or buffer. + * Decodes a RunTestCaseMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CalculateCoverageRequest + * @returns RunTestCaseMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CalculateCoverageRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.RunTestCaseMetadata; /** - * Decodes a CalculateCoverageRequest message from the specified reader or buffer, length delimited. + * Decodes a RunTestCaseMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CalculateCoverageRequest + * @returns RunTestCaseMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CalculateCoverageRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.RunTestCaseMetadata; /** - * Verifies a CalculateCoverageRequest message. + * Verifies a RunTestCaseMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CalculateCoverageRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RunTestCaseMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CalculateCoverageRequest + * @returns RunTestCaseMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CalculateCoverageRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.RunTestCaseMetadata; /** - * Creates a plain object from a CalculateCoverageRequest message. Also converts values to other types if specified. - * @param message CalculateCoverageRequest + * Creates a plain object from a RunTestCaseMetadata message. Also converts values to other types if specified. + * @param message RunTestCaseMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.CalculateCoverageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.RunTestCaseMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CalculateCoverageRequest to JSON. + * Converts this RunTestCaseMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace CalculateCoverageRequest { - - /** CoverageType enum. */ - enum CoverageType { - COVERAGE_TYPE_UNSPECIFIED = 0, - INTENT = 1, - PAGE_TRANSITION = 2, - TRANSITION_ROUTE_GROUP = 3 - } - } - - /** Properties of a CalculateCoverageResponse. */ - interface ICalculateCoverageResponse { - - /** CalculateCoverageResponse agent */ - agent?: (string|null); + /** Properties of a BatchRunTestCasesRequest. */ + interface IBatchRunTestCasesRequest { - /** CalculateCoverageResponse intentCoverage */ - intentCoverage?: (google.cloud.dialogflow.cx.v3.IIntentCoverage|null); + /** BatchRunTestCasesRequest parent */ + parent?: (string|null); - /** CalculateCoverageResponse transitionCoverage */ - transitionCoverage?: (google.cloud.dialogflow.cx.v3.ITransitionCoverage|null); + /** BatchRunTestCasesRequest environment */ + environment?: (string|null); - /** CalculateCoverageResponse routeGroupCoverage */ - routeGroupCoverage?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage|null); + /** BatchRunTestCasesRequest testCases */ + testCases?: (string[]|null); } - /** Represents a CalculateCoverageResponse. */ - class CalculateCoverageResponse implements ICalculateCoverageResponse { + /** Represents a BatchRunTestCasesRequest. */ + class BatchRunTestCasesRequest implements IBatchRunTestCasesRequest { /** - * Constructs a new CalculateCoverageResponse. + * Constructs a new BatchRunTestCasesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICalculateCoverageResponse); - - /** CalculateCoverageResponse agent. */ - public agent: string; - - /** CalculateCoverageResponse intentCoverage. */ - public intentCoverage?: (google.cloud.dialogflow.cx.v3.IIntentCoverage|null); + constructor(properties?: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest); - /** CalculateCoverageResponse transitionCoverage. */ - public transitionCoverage?: (google.cloud.dialogflow.cx.v3.ITransitionCoverage|null); + /** BatchRunTestCasesRequest parent. */ + public parent: string; - /** CalculateCoverageResponse routeGroupCoverage. */ - public routeGroupCoverage?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage|null); + /** BatchRunTestCasesRequest environment. */ + public environment: string; - /** CalculateCoverageResponse coverageType. */ - public coverageType?: ("intentCoverage"|"transitionCoverage"|"routeGroupCoverage"); + /** BatchRunTestCasesRequest testCases. */ + public testCases: string[]; /** - * Creates a new CalculateCoverageResponse instance using the specified properties. + * Creates a new BatchRunTestCasesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CalculateCoverageResponse instance + * @returns BatchRunTestCasesRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICalculateCoverageResponse): google.cloud.dialogflow.cx.v3.CalculateCoverageResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest): google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest; /** - * Encodes the specified CalculateCoverageResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.verify|verify} messages. - * @param message CalculateCoverageResponse message or plain object to encode + * Encodes the specified BatchRunTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest.verify|verify} messages. + * @param message BatchRunTestCasesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ICalculateCoverageResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CalculateCoverageResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.verify|verify} messages. - * @param message CalculateCoverageResponse message or plain object to encode + * Encodes the specified BatchRunTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest.verify|verify} messages. + * @param message BatchRunTestCasesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICalculateCoverageResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CalculateCoverageResponse message from the specified reader or buffer. + * Decodes a BatchRunTestCasesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CalculateCoverageResponse + * @returns BatchRunTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CalculateCoverageResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest; /** - * Decodes a CalculateCoverageResponse message from the specified reader or buffer, length delimited. + * Decodes a BatchRunTestCasesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CalculateCoverageResponse + * @returns BatchRunTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CalculateCoverageResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest; /** - * Verifies a CalculateCoverageResponse message. + * Verifies a BatchRunTestCasesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CalculateCoverageResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BatchRunTestCasesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CalculateCoverageResponse + * @returns BatchRunTestCasesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CalculateCoverageResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest; /** - * Creates a plain object from a CalculateCoverageResponse message. Also converts values to other types if specified. - * @param message CalculateCoverageResponse + * Creates a plain object from a BatchRunTestCasesRequest message. Also converts values to other types if specified. + * @param message BatchRunTestCasesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.CalculateCoverageResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CalculateCoverageResponse to JSON. + * Converts this BatchRunTestCasesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListTestCasesRequest. */ - interface IListTestCasesRequest { - - /** ListTestCasesRequest parent */ - parent?: (string|null); - - /** ListTestCasesRequest pageSize */ - pageSize?: (number|null); - - /** ListTestCasesRequest pageToken */ - pageToken?: (string|null); + /** Properties of a BatchRunTestCasesResponse. */ + interface IBatchRunTestCasesResponse { - /** ListTestCasesRequest view */ - view?: (google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView|keyof typeof google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView|null); + /** BatchRunTestCasesResponse results */ + results?: (google.cloud.dialogflow.cx.v3.ITestCaseResult[]|null); } - /** Represents a ListTestCasesRequest. */ - class ListTestCasesRequest implements IListTestCasesRequest { + /** Represents a BatchRunTestCasesResponse. */ + class BatchRunTestCasesResponse implements IBatchRunTestCasesResponse { /** - * Constructs a new ListTestCasesRequest. + * Constructs a new BatchRunTestCasesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListTestCasesRequest); - - /** ListTestCasesRequest parent. */ - public parent: string; - - /** ListTestCasesRequest pageSize. */ - public pageSize: number; - - /** ListTestCasesRequest pageToken. */ - public pageToken: string; + constructor(properties?: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesResponse); - /** ListTestCasesRequest view. */ - public view: (google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView|keyof typeof google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView); + /** BatchRunTestCasesResponse results. */ + public results: google.cloud.dialogflow.cx.v3.ITestCaseResult[]; /** - * Creates a new ListTestCasesRequest instance using the specified properties. + * Creates a new BatchRunTestCasesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListTestCasesRequest instance + * @returns BatchRunTestCasesResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListTestCasesRequest): google.cloud.dialogflow.cx.v3.ListTestCasesRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesResponse): google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse; /** - * Encodes the specified ListTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCasesRequest.verify|verify} messages. - * @param message ListTestCasesRequest message or plain object to encode + * Encodes the specified BatchRunTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse.verify|verify} messages. + * @param message BatchRunTestCasesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCasesRequest.verify|verify} messages. - * @param message ListTestCasesRequest message or plain object to encode + * Encodes the specified BatchRunTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse.verify|verify} messages. + * @param message BatchRunTestCasesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTestCasesRequest message from the specified reader or buffer. + * Decodes a BatchRunTestCasesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTestCasesRequest + * @returns BatchRunTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListTestCasesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse; /** - * Decodes a ListTestCasesRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchRunTestCasesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTestCasesRequest + * @returns BatchRunTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListTestCasesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse; /** - * Verifies a ListTestCasesRequest message. + * Verifies a BatchRunTestCasesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchRunTestCasesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTestCasesRequest + * @returns BatchRunTestCasesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListTestCasesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse; /** - * Creates a plain object from a ListTestCasesRequest message. Also converts values to other types if specified. - * @param message ListTestCasesRequest + * Creates a plain object from a BatchRunTestCasesResponse message. Also converts values to other types if specified. + * @param message BatchRunTestCasesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTestCasesRequest to JSON. + * Converts this BatchRunTestCasesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace ListTestCasesRequest { - - /** TestCaseView enum. */ - enum TestCaseView { - TEST_CASE_VIEW_UNSPECIFIED = 0, - BASIC = 1, - FULL = 2 - } - } - - /** Properties of a ListTestCasesResponse. */ - interface IListTestCasesResponse { - - /** ListTestCasesResponse testCases */ - testCases?: (google.cloud.dialogflow.cx.v3.ITestCase[]|null); + /** Properties of a BatchRunTestCasesMetadata. */ + interface IBatchRunTestCasesMetadata { - /** ListTestCasesResponse nextPageToken */ - nextPageToken?: (string|null); + /** BatchRunTestCasesMetadata errors */ + errors?: (google.cloud.dialogflow.cx.v3.ITestError[]|null); } - /** Represents a ListTestCasesResponse. */ - class ListTestCasesResponse implements IListTestCasesResponse { + /** Represents a BatchRunTestCasesMetadata. */ + class BatchRunTestCasesMetadata implements IBatchRunTestCasesMetadata { /** - * Constructs a new ListTestCasesResponse. + * Constructs a new BatchRunTestCasesMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListTestCasesResponse); - - /** ListTestCasesResponse testCases. */ - public testCases: google.cloud.dialogflow.cx.v3.ITestCase[]; + constructor(properties?: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesMetadata); - /** ListTestCasesResponse nextPageToken. */ - public nextPageToken: string; + /** BatchRunTestCasesMetadata errors. */ + public errors: google.cloud.dialogflow.cx.v3.ITestError[]; /** - * Creates a new ListTestCasesResponse instance using the specified properties. + * Creates a new BatchRunTestCasesMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ListTestCasesResponse instance + * @returns BatchRunTestCasesMetadata instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListTestCasesResponse): google.cloud.dialogflow.cx.v3.ListTestCasesResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesMetadata): google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata; /** - * Encodes the specified ListTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCasesResponse.verify|verify} messages. - * @param message ListTestCasesResponse message or plain object to encode + * Encodes the specified BatchRunTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata.verify|verify} messages. + * @param message BatchRunTestCasesMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCasesResponse.verify|verify} messages. - * @param message ListTestCasesResponse message or plain object to encode + * Encodes the specified BatchRunTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata.verify|verify} messages. + * @param message BatchRunTestCasesMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTestCasesResponse message from the specified reader or buffer. + * Decodes a BatchRunTestCasesMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTestCasesResponse + * @returns BatchRunTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListTestCasesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata; /** - * Decodes a ListTestCasesResponse message from the specified reader or buffer, length delimited. + * Decodes a BatchRunTestCasesMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTestCasesResponse + * @returns BatchRunTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListTestCasesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata; /** - * Verifies a ListTestCasesResponse message. + * Verifies a BatchRunTestCasesMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListTestCasesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BatchRunTestCasesMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTestCasesResponse + * @returns BatchRunTestCasesMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListTestCasesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata; /** - * Creates a plain object from a ListTestCasesResponse message. Also converts values to other types if specified. - * @param message ListTestCasesResponse + * Creates a plain object from a BatchRunTestCasesMetadata message. Also converts values to other types if specified. + * @param message BatchRunTestCasesMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTestCasesResponse to JSON. + * Converts this BatchRunTestCasesMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BatchDeleteTestCasesRequest. */ - interface IBatchDeleteTestCasesRequest { + /** Properties of a TestError. */ + interface ITestError { - /** BatchDeleteTestCasesRequest parent */ - parent?: (string|null); + /** TestError testCase */ + testCase?: (string|null); - /** BatchDeleteTestCasesRequest names */ - names?: (string[]|null); + /** TestError status */ + status?: (google.rpc.IStatus|null); + + /** TestError testTime */ + testTime?: (google.protobuf.ITimestamp|null); } - /** Represents a BatchDeleteTestCasesRequest. */ - class BatchDeleteTestCasesRequest implements IBatchDeleteTestCasesRequest { + /** Represents a TestError. */ + class TestError implements ITestError { /** - * Constructs a new BatchDeleteTestCasesRequest. + * Constructs a new TestError. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ITestError); - /** BatchDeleteTestCasesRequest parent. */ - public parent: string; + /** TestError testCase. */ + public testCase: string; - /** BatchDeleteTestCasesRequest names. */ - public names: string[]; + /** TestError status. */ + public status?: (google.rpc.IStatus|null); + + /** TestError testTime. */ + public testTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new BatchDeleteTestCasesRequest instance using the specified properties. + * Creates a new TestError instance using the specified properties. * @param [properties] Properties to set - * @returns BatchDeleteTestCasesRequest instance + * @returns TestError instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest): google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ITestError): google.cloud.dialogflow.cx.v3.TestError; /** - * Encodes the specified BatchDeleteTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest.verify|verify} messages. - * @param message BatchDeleteTestCasesRequest message or plain object to encode + * Encodes the specified TestError message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestError.verify|verify} messages. + * @param message TestError message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ITestError, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchDeleteTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest.verify|verify} messages. - * @param message BatchDeleteTestCasesRequest message or plain object to encode + * Encodes the specified TestError message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestError.verify|verify} messages. + * @param message TestError message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITestError, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchDeleteTestCasesRequest message from the specified reader or buffer. + * Decodes a TestError message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchDeleteTestCasesRequest + * @returns TestError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TestError; /** - * Decodes a BatchDeleteTestCasesRequest message from the specified reader or buffer, length delimited. + * Decodes a TestError message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchDeleteTestCasesRequest + * @returns TestError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TestError; /** - * Verifies a BatchDeleteTestCasesRequest message. + * Verifies a TestError message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchDeleteTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestError message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchDeleteTestCasesRequest + * @returns TestError */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TestError; /** - * Creates a plain object from a BatchDeleteTestCasesRequest message. Also converts values to other types if specified. - * @param message BatchDeleteTestCasesRequest + * Creates a plain object from a TestError message. Also converts values to other types if specified. + * @param message TestError * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.TestError, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchDeleteTestCasesRequest to JSON. + * Converts this TestError to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateTestCaseRequest. */ - interface ICreateTestCaseRequest { + /** Properties of an ImportTestCasesRequest. */ + interface IImportTestCasesRequest { - /** CreateTestCaseRequest parent */ + /** ImportTestCasesRequest parent */ parent?: (string|null); - /** CreateTestCaseRequest testCase */ - testCase?: (google.cloud.dialogflow.cx.v3.ITestCase|null); + /** ImportTestCasesRequest gcsUri */ + gcsUri?: (string|null); + + /** ImportTestCasesRequest content */ + content?: (Uint8Array|string|null); } - /** Represents a CreateTestCaseRequest. */ - class CreateTestCaseRequest implements ICreateTestCaseRequest { + /** Represents an ImportTestCasesRequest. */ + class ImportTestCasesRequest implements IImportTestCasesRequest { /** - * Constructs a new CreateTestCaseRequest. + * Constructs a new ImportTestCasesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IImportTestCasesRequest); - /** CreateTestCaseRequest parent. */ + /** ImportTestCasesRequest parent. */ public parent: string; - /** CreateTestCaseRequest testCase. */ - public testCase?: (google.cloud.dialogflow.cx.v3.ITestCase|null); + /** ImportTestCasesRequest gcsUri. */ + public gcsUri?: (string|null); + + /** ImportTestCasesRequest content. */ + public content?: (Uint8Array|string|null); + + /** ImportTestCasesRequest source. */ + public source?: ("gcsUri"|"content"); /** - * Creates a new CreateTestCaseRequest instance using the specified properties. + * Creates a new ImportTestCasesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateTestCaseRequest instance + * @returns ImportTestCasesRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest): google.cloud.dialogflow.cx.v3.CreateTestCaseRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IImportTestCasesRequest): google.cloud.dialogflow.cx.v3.ImportTestCasesRequest; /** - * Encodes the specified CreateTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTestCaseRequest.verify|verify} messages. - * @param message CreateTestCaseRequest message or plain object to encode + * Encodes the specified ImportTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesRequest.verify|verify} messages. + * @param message ImportTestCasesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IImportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTestCaseRequest.verify|verify} messages. - * @param message CreateTestCaseRequest message or plain object to encode + * Encodes the specified ImportTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesRequest.verify|verify} messages. + * @param message ImportTestCasesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IImportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateTestCaseRequest message from the specified reader or buffer. + * Decodes an ImportTestCasesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateTestCaseRequest + * @returns ImportTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateTestCaseRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ImportTestCasesRequest; /** - * Decodes a CreateTestCaseRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportTestCasesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateTestCaseRequest + * @returns ImportTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateTestCaseRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ImportTestCasesRequest; /** - * Verifies a CreateTestCaseRequest message. + * Verifies an ImportTestCasesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ImportTestCasesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateTestCaseRequest + * @returns ImportTestCasesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateTestCaseRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ImportTestCasesRequest; /** - * Creates a plain object from a CreateTestCaseRequest message. Also converts values to other types if specified. - * @param message CreateTestCaseRequest + * Creates a plain object from an ImportTestCasesRequest message. Also converts values to other types if specified. + * @param message ImportTestCasesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.CreateTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ImportTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateTestCaseRequest to JSON. + * Converts this ImportTestCasesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateTestCaseRequest. */ - interface IUpdateTestCaseRequest { - - /** UpdateTestCaseRequest testCase */ - testCase?: (google.cloud.dialogflow.cx.v3.ITestCase|null); + /** Properties of an ImportTestCasesResponse. */ + interface IImportTestCasesResponse { - /** UpdateTestCaseRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** ImportTestCasesResponse names */ + names?: (string[]|null); } - /** Represents an UpdateTestCaseRequest. */ - class UpdateTestCaseRequest implements IUpdateTestCaseRequest { + /** Represents an ImportTestCasesResponse. */ + class ImportTestCasesResponse implements IImportTestCasesResponse { /** - * Constructs a new UpdateTestCaseRequest. + * Constructs a new ImportTestCasesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest); - - /** UpdateTestCaseRequest testCase. */ - public testCase?: (google.cloud.dialogflow.cx.v3.ITestCase|null); + constructor(properties?: google.cloud.dialogflow.cx.v3.IImportTestCasesResponse); - /** UpdateTestCaseRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** ImportTestCasesResponse names. */ + public names: string[]; /** - * Creates a new UpdateTestCaseRequest instance using the specified properties. + * Creates a new ImportTestCasesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateTestCaseRequest instance + * @returns ImportTestCasesResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest): google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IImportTestCasesResponse): google.cloud.dialogflow.cx.v3.ImportTestCasesResponse; /** - * Encodes the specified UpdateTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest.verify|verify} messages. - * @param message UpdateTestCaseRequest message or plain object to encode + * Encodes the specified ImportTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesResponse.verify|verify} messages. + * @param message ImportTestCasesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IImportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest.verify|verify} messages. - * @param message UpdateTestCaseRequest message or plain object to encode + * Encodes the specified ImportTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesResponse.verify|verify} messages. + * @param message ImportTestCasesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IImportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateTestCaseRequest message from the specified reader or buffer. + * Decodes an ImportTestCasesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateTestCaseRequest + * @returns ImportTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ImportTestCasesResponse; /** - * Decodes an UpdateTestCaseRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportTestCasesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateTestCaseRequest + * @returns ImportTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ImportTestCasesResponse; /** - * Verifies an UpdateTestCaseRequest message. + * Verifies an ImportTestCasesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ImportTestCasesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateTestCaseRequest + * @returns ImportTestCasesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ImportTestCasesResponse; /** - * Creates a plain object from an UpdateTestCaseRequest message. Also converts values to other types if specified. - * @param message UpdateTestCaseRequest + * Creates a plain object from an ImportTestCasesResponse message. Also converts values to other types if specified. + * @param message ImportTestCasesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ImportTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateTestCaseRequest to JSON. + * Converts this ImportTestCasesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetTestCaseRequest. */ - interface IGetTestCaseRequest { + /** Properties of an ImportTestCasesMetadata. */ + interface IImportTestCasesMetadata { - /** GetTestCaseRequest name */ - name?: (string|null); + /** ImportTestCasesMetadata errors */ + errors?: (google.cloud.dialogflow.cx.v3.ITestCaseError[]|null); } - /** Represents a GetTestCaseRequest. */ - class GetTestCaseRequest implements IGetTestCaseRequest { + /** Represents an ImportTestCasesMetadata. */ + class ImportTestCasesMetadata implements IImportTestCasesMetadata { /** - * Constructs a new GetTestCaseRequest. + * Constructs a new ImportTestCasesMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetTestCaseRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IImportTestCasesMetadata); - /** GetTestCaseRequest name. */ - public name: string; + /** ImportTestCasesMetadata errors. */ + public errors: google.cloud.dialogflow.cx.v3.ITestCaseError[]; /** - * Creates a new GetTestCaseRequest instance using the specified properties. + * Creates a new ImportTestCasesMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns GetTestCaseRequest instance + * @returns ImportTestCasesMetadata instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IGetTestCaseRequest): google.cloud.dialogflow.cx.v3.GetTestCaseRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IImportTestCasesMetadata): google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata; /** - * Encodes the specified GetTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTestCaseRequest.verify|verify} messages. - * @param message GetTestCaseRequest message or plain object to encode + * Encodes the specified ImportTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata.verify|verify} messages. + * @param message ImportTestCasesMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IGetTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IImportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTestCaseRequest.verify|verify} messages. - * @param message GetTestCaseRequest message or plain object to encode + * Encodes the specified ImportTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata.verify|verify} messages. + * @param message ImportTestCasesMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IImportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTestCaseRequest message from the specified reader or buffer. + * Decodes an ImportTestCasesMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetTestCaseRequest + * @returns ImportTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetTestCaseRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata; /** - * Decodes a GetTestCaseRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportTestCasesMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTestCaseRequest + * @returns ImportTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetTestCaseRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata; /** - * Verifies a GetTestCaseRequest message. + * Verifies an ImportTestCasesMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ImportTestCasesMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTestCaseRequest + * @returns ImportTestCasesMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetTestCaseRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata; /** - * Creates a plain object from a GetTestCaseRequest message. Also converts values to other types if specified. - * @param message GetTestCaseRequest + * Creates a plain object from an ImportTestCasesMetadata message. Also converts values to other types if specified. + * @param message ImportTestCasesMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.GetTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTestCaseRequest to JSON. + * Converts this ImportTestCasesMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RunTestCaseRequest. */ - interface IRunTestCaseRequest { + /** Properties of a TestCaseError. */ + interface ITestCaseError { - /** RunTestCaseRequest name */ - name?: (string|null); + /** TestCaseError testCase */ + testCase?: (google.cloud.dialogflow.cx.v3.ITestCase|null); - /** RunTestCaseRequest environment */ - environment?: (string|null); + /** TestCaseError status */ + status?: (google.rpc.IStatus|null); } - /** Represents a RunTestCaseRequest. */ - class RunTestCaseRequest implements IRunTestCaseRequest { + /** Represents a TestCaseError. */ + class TestCaseError implements ITestCaseError { /** - * Constructs a new RunTestCaseRequest. + * Constructs a new TestCaseError. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IRunTestCaseRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ITestCaseError); - /** RunTestCaseRequest name. */ - public name: string; + /** TestCaseError testCase. */ + public testCase?: (google.cloud.dialogflow.cx.v3.ITestCase|null); - /** RunTestCaseRequest environment. */ - public environment: string; + /** TestCaseError status. */ + public status?: (google.rpc.IStatus|null); /** - * Creates a new RunTestCaseRequest instance using the specified properties. + * Creates a new TestCaseError instance using the specified properties. * @param [properties] Properties to set - * @returns RunTestCaseRequest instance + * @returns TestCaseError instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IRunTestCaseRequest): google.cloud.dialogflow.cx.v3.RunTestCaseRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ITestCaseError): google.cloud.dialogflow.cx.v3.TestCaseError; /** - * Encodes the specified RunTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseRequest.verify|verify} messages. - * @param message RunTestCaseRequest message or plain object to encode + * Encodes the specified TestCaseError message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCaseError.verify|verify} messages. + * @param message TestCaseError message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IRunTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ITestCaseError, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RunTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseRequest.verify|verify} messages. - * @param message RunTestCaseRequest message or plain object to encode + * Encodes the specified TestCaseError message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCaseError.verify|verify} messages. + * @param message TestCaseError message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IRunTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITestCaseError, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RunTestCaseRequest message from the specified reader or buffer. + * Decodes a TestCaseError message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RunTestCaseRequest + * @returns TestCaseError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.RunTestCaseRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TestCaseError; /** - * Decodes a RunTestCaseRequest message from the specified reader or buffer, length delimited. + * Decodes a TestCaseError message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RunTestCaseRequest + * @returns TestCaseError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.RunTestCaseRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TestCaseError; /** - * Verifies a RunTestCaseRequest message. + * Verifies a TestCaseError message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RunTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestCaseError message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RunTestCaseRequest + * @returns TestCaseError */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.RunTestCaseRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TestCaseError; /** - * Creates a plain object from a RunTestCaseRequest message. Also converts values to other types if specified. - * @param message RunTestCaseRequest + * Creates a plain object from a TestCaseError message. Also converts values to other types if specified. + * @param message TestCaseError * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.RunTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.TestCaseError, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RunTestCaseRequest to JSON. + * Converts this TestCaseError to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RunTestCaseResponse. */ - interface IRunTestCaseResponse { + /** Properties of an ExportTestCasesRequest. */ + interface IExportTestCasesRequest { - /** RunTestCaseResponse result */ - result?: (google.cloud.dialogflow.cx.v3.ITestCaseResult|null); + /** ExportTestCasesRequest parent */ + parent?: (string|null); + + /** ExportTestCasesRequest gcsUri */ + gcsUri?: (string|null); + + /** ExportTestCasesRequest dataFormat */ + dataFormat?: (google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat|keyof typeof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat|null); + + /** ExportTestCasesRequest filter */ + filter?: (string|null); } - /** Represents a RunTestCaseResponse. */ - class RunTestCaseResponse implements IRunTestCaseResponse { + /** Represents an ExportTestCasesRequest. */ + class ExportTestCasesRequest implements IExportTestCasesRequest { /** - * Constructs a new RunTestCaseResponse. + * Constructs a new ExportTestCasesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IRunTestCaseResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IExportTestCasesRequest); - /** RunTestCaseResponse result. */ - public result?: (google.cloud.dialogflow.cx.v3.ITestCaseResult|null); + /** ExportTestCasesRequest parent. */ + public parent: string; + + /** ExportTestCasesRequest gcsUri. */ + public gcsUri?: (string|null); + + /** ExportTestCasesRequest dataFormat. */ + public dataFormat: (google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat|keyof typeof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat); + + /** ExportTestCasesRequest filter. */ + public filter: string; + + /** ExportTestCasesRequest destination. */ + public destination?: "gcsUri"; /** - * Creates a new RunTestCaseResponse instance using the specified properties. + * Creates a new ExportTestCasesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RunTestCaseResponse instance + * @returns ExportTestCasesRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IRunTestCaseResponse): google.cloud.dialogflow.cx.v3.RunTestCaseResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IExportTestCasesRequest): google.cloud.dialogflow.cx.v3.ExportTestCasesRequest; /** - * Encodes the specified RunTestCaseResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseResponse.verify|verify} messages. - * @param message RunTestCaseResponse message or plain object to encode + * Encodes the specified ExportTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.verify|verify} messages. + * @param message ExportTestCasesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IRunTestCaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IExportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RunTestCaseResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseResponse.verify|verify} messages. - * @param message RunTestCaseResponse message or plain object to encode + * Encodes the specified ExportTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.verify|verify} messages. + * @param message ExportTestCasesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IRunTestCaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IExportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RunTestCaseResponse message from the specified reader or buffer. + * Decodes an ExportTestCasesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RunTestCaseResponse + * @returns ExportTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.RunTestCaseResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ExportTestCasesRequest; /** - * Decodes a RunTestCaseResponse message from the specified reader or buffer, length delimited. + * Decodes an ExportTestCasesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RunTestCaseResponse + * @returns ExportTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.RunTestCaseResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ExportTestCasesRequest; /** - * Verifies a RunTestCaseResponse message. + * Verifies an ExportTestCasesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RunTestCaseResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExportTestCasesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RunTestCaseResponse + * @returns ExportTestCasesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.RunTestCaseResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ExportTestCasesRequest; /** - * Creates a plain object from a RunTestCaseResponse message. Also converts values to other types if specified. - * @param message RunTestCaseResponse + * Creates a plain object from an ExportTestCasesRequest message. Also converts values to other types if specified. + * @param message ExportTestCasesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.RunTestCaseResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ExportTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RunTestCaseResponse to JSON. + * Converts this ExportTestCasesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RunTestCaseMetadata. */ - interface IRunTestCaseMetadata { + namespace ExportTestCasesRequest { + + /** DataFormat enum. */ + enum DataFormat { + DATA_FORMAT_UNSPECIFIED = 0, + BLOB = 1, + JSON = 2 + } } - /** Represents a RunTestCaseMetadata. */ - class RunTestCaseMetadata implements IRunTestCaseMetadata { + /** Properties of an ExportTestCasesResponse. */ + interface IExportTestCasesResponse { + + /** ExportTestCasesResponse gcsUri */ + gcsUri?: (string|null); + + /** ExportTestCasesResponse content */ + content?: (Uint8Array|string|null); + } + + /** Represents an ExportTestCasesResponse. */ + class ExportTestCasesResponse implements IExportTestCasesResponse { /** - * Constructs a new RunTestCaseMetadata. + * Constructs a new ExportTestCasesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IRunTestCaseMetadata); + constructor(properties?: google.cloud.dialogflow.cx.v3.IExportTestCasesResponse); + + /** ExportTestCasesResponse gcsUri. */ + public gcsUri?: (string|null); + + /** ExportTestCasesResponse content. */ + public content?: (Uint8Array|string|null); + + /** ExportTestCasesResponse destination. */ + public destination?: ("gcsUri"|"content"); /** - * Creates a new RunTestCaseMetadata instance using the specified properties. + * Creates a new ExportTestCasesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RunTestCaseMetadata instance + * @returns ExportTestCasesResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IRunTestCaseMetadata): google.cloud.dialogflow.cx.v3.RunTestCaseMetadata; + public static create(properties?: google.cloud.dialogflow.cx.v3.IExportTestCasesResponse): google.cloud.dialogflow.cx.v3.ExportTestCasesResponse; /** - * Encodes the specified RunTestCaseMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseMetadata.verify|verify} messages. - * @param message RunTestCaseMetadata message or plain object to encode + * Encodes the specified ExportTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesResponse.verify|verify} messages. + * @param message ExportTestCasesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IRunTestCaseMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IExportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RunTestCaseMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseMetadata.verify|verify} messages. - * @param message RunTestCaseMetadata message or plain object to encode + * Encodes the specified ExportTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesResponse.verify|verify} messages. + * @param message ExportTestCasesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IRunTestCaseMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IExportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RunTestCaseMetadata message from the specified reader or buffer. + * Decodes an ExportTestCasesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RunTestCaseMetadata + * @returns ExportTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.RunTestCaseMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ExportTestCasesResponse; /** - * Decodes a RunTestCaseMetadata message from the specified reader or buffer, length delimited. + * Decodes an ExportTestCasesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RunTestCaseMetadata + * @returns ExportTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.RunTestCaseMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ExportTestCasesResponse; /** - * Verifies a RunTestCaseMetadata message. + * Verifies an ExportTestCasesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RunTestCaseMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an ExportTestCasesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RunTestCaseMetadata + * @returns ExportTestCasesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.RunTestCaseMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ExportTestCasesResponse; /** - * Creates a plain object from a RunTestCaseMetadata message. Also converts values to other types if specified. - * @param message RunTestCaseMetadata + * Creates a plain object from an ExportTestCasesResponse message. Also converts values to other types if specified. + * @param message ExportTestCasesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.RunTestCaseMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ExportTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RunTestCaseMetadata to JSON. + * Converts this ExportTestCasesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BatchRunTestCasesRequest. */ - interface IBatchRunTestCasesRequest { - - /** BatchRunTestCasesRequest parent */ - parent?: (string|null); - - /** BatchRunTestCasesRequest environment */ - environment?: (string|null); - - /** BatchRunTestCasesRequest testCases */ - testCases?: (string[]|null); + /** Properties of an ExportTestCasesMetadata. */ + interface IExportTestCasesMetadata { } - /** Represents a BatchRunTestCasesRequest. */ - class BatchRunTestCasesRequest implements IBatchRunTestCasesRequest { + /** Represents an ExportTestCasesMetadata. */ + class ExportTestCasesMetadata implements IExportTestCasesMetadata { /** - * Constructs a new BatchRunTestCasesRequest. + * Constructs a new ExportTestCasesMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest); - - /** BatchRunTestCasesRequest parent. */ - public parent: string; - - /** BatchRunTestCasesRequest environment. */ - public environment: string; - - /** BatchRunTestCasesRequest testCases. */ - public testCases: string[]; + constructor(properties?: google.cloud.dialogflow.cx.v3.IExportTestCasesMetadata); /** - * Creates a new BatchRunTestCasesRequest instance using the specified properties. + * Creates a new ExportTestCasesMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns BatchRunTestCasesRequest instance + * @returns ExportTestCasesMetadata instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest): google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IExportTestCasesMetadata): google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata; /** - * Encodes the specified BatchRunTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest.verify|verify} messages. - * @param message BatchRunTestCasesRequest message or plain object to encode + * Encodes the specified ExportTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata.verify|verify} messages. + * @param message ExportTestCasesMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IExportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchRunTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest.verify|verify} messages. - * @param message BatchRunTestCasesRequest message or plain object to encode + * Encodes the specified ExportTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata.verify|verify} messages. + * @param message ExportTestCasesMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IExportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchRunTestCasesRequest message from the specified reader or buffer. + * Decodes an ExportTestCasesMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchRunTestCasesRequest + * @returns ExportTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata; /** - * Decodes a BatchRunTestCasesRequest message from the specified reader or buffer, length delimited. + * Decodes an ExportTestCasesMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchRunTestCasesRequest + * @returns ExportTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata; /** - * Verifies a BatchRunTestCasesRequest message. + * Verifies an ExportTestCasesMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchRunTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExportTestCasesMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchRunTestCasesRequest + * @returns ExportTestCasesMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata; /** - * Creates a plain object from a BatchRunTestCasesRequest message. Also converts values to other types if specified. - * @param message BatchRunTestCasesRequest + * Creates a plain object from an ExportTestCasesMetadata message. Also converts values to other types if specified. + * @param message ExportTestCasesMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchRunTestCasesRequest to JSON. + * Converts this ExportTestCasesMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BatchRunTestCasesResponse. */ - interface IBatchRunTestCasesResponse { + /** Properties of a ListTestCaseResultsRequest. */ + interface IListTestCaseResultsRequest { - /** BatchRunTestCasesResponse results */ - results?: (google.cloud.dialogflow.cx.v3.ITestCaseResult[]|null); + /** ListTestCaseResultsRequest parent */ + parent?: (string|null); + + /** ListTestCaseResultsRequest pageSize */ + pageSize?: (number|null); + + /** ListTestCaseResultsRequest pageToken */ + pageToken?: (string|null); + + /** ListTestCaseResultsRequest filter */ + filter?: (string|null); } - /** Represents a BatchRunTestCasesResponse. */ - class BatchRunTestCasesResponse implements IBatchRunTestCasesResponse { + /** Represents a ListTestCaseResultsRequest. */ + class ListTestCaseResultsRequest implements IListTestCaseResultsRequest { /** - * Constructs a new BatchRunTestCasesResponse. + * Constructs a new ListTestCaseResultsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest); - /** BatchRunTestCasesResponse results. */ - public results: google.cloud.dialogflow.cx.v3.ITestCaseResult[]; + /** ListTestCaseResultsRequest parent. */ + public parent: string; + + /** ListTestCaseResultsRequest pageSize. */ + public pageSize: number; + + /** ListTestCaseResultsRequest pageToken. */ + public pageToken: string; + + /** ListTestCaseResultsRequest filter. */ + public filter: string; /** - * Creates a new BatchRunTestCasesResponse instance using the specified properties. + * Creates a new ListTestCaseResultsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BatchRunTestCasesResponse instance + * @returns ListTestCaseResultsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesResponse): google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest): google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest; /** - * Encodes the specified BatchRunTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse.verify|verify} messages. - * @param message BatchRunTestCasesResponse message or plain object to encode + * Encodes the specified ListTestCaseResultsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest.verify|verify} messages. + * @param message ListTestCaseResultsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchRunTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse.verify|verify} messages. - * @param message BatchRunTestCasesResponse message or plain object to encode + * Encodes the specified ListTestCaseResultsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest.verify|verify} messages. + * @param message ListTestCaseResultsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchRunTestCasesResponse message from the specified reader or buffer. + * Decodes a ListTestCaseResultsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchRunTestCasesResponse + * @returns ListTestCaseResultsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest; /** - * Decodes a BatchRunTestCasesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListTestCaseResultsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchRunTestCasesResponse + * @returns ListTestCaseResultsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest; /** - * Verifies a BatchRunTestCasesResponse message. + * Verifies a ListTestCaseResultsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchRunTestCasesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListTestCaseResultsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchRunTestCasesResponse + * @returns ListTestCaseResultsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest; /** - * Creates a plain object from a BatchRunTestCasesResponse message. Also converts values to other types if specified. - * @param message BatchRunTestCasesResponse + * Creates a plain object from a ListTestCaseResultsRequest message. Also converts values to other types if specified. + * @param message ListTestCaseResultsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchRunTestCasesResponse to JSON. + * Converts this ListTestCaseResultsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BatchRunTestCasesMetadata. */ - interface IBatchRunTestCasesMetadata { + /** Properties of a ListTestCaseResultsResponse. */ + interface IListTestCaseResultsResponse { - /** BatchRunTestCasesMetadata errors */ - errors?: (google.cloud.dialogflow.cx.v3.ITestError[]|null); + /** ListTestCaseResultsResponse testCaseResults */ + testCaseResults?: (google.cloud.dialogflow.cx.v3.ITestCaseResult[]|null); + + /** ListTestCaseResultsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a BatchRunTestCasesMetadata. */ - class BatchRunTestCasesMetadata implements IBatchRunTestCasesMetadata { + /** Represents a ListTestCaseResultsResponse. */ + class ListTestCaseResultsResponse implements IListTestCaseResultsResponse { /** - * Constructs a new BatchRunTestCasesMetadata. + * Constructs a new ListTestCaseResultsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesMetadata); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListTestCaseResultsResponse); - /** BatchRunTestCasesMetadata errors. */ - public errors: google.cloud.dialogflow.cx.v3.ITestError[]; + /** ListTestCaseResultsResponse testCaseResults. */ + public testCaseResults: google.cloud.dialogflow.cx.v3.ITestCaseResult[]; + + /** ListTestCaseResultsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new BatchRunTestCasesMetadata instance using the specified properties. + * Creates a new ListTestCaseResultsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns BatchRunTestCasesMetadata instance + * @returns ListTestCaseResultsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesMetadata): google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListTestCaseResultsResponse): google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse; /** - * Encodes the specified BatchRunTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata.verify|verify} messages. - * @param message BatchRunTestCasesMetadata message or plain object to encode + * Encodes the specified ListTestCaseResultsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse.verify|verify} messages. + * @param message ListTestCaseResultsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListTestCaseResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchRunTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata.verify|verify} messages. - * @param message BatchRunTestCasesMetadata message or plain object to encode + * Encodes the specified ListTestCaseResultsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse.verify|verify} messages. + * @param message ListTestCaseResultsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListTestCaseResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchRunTestCasesMetadata message from the specified reader or buffer. + * Decodes a ListTestCaseResultsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchRunTestCasesMetadata + * @returns ListTestCaseResultsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse; /** - * Decodes a BatchRunTestCasesMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListTestCaseResultsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchRunTestCasesMetadata + * @returns ListTestCaseResultsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse; /** - * Verifies a BatchRunTestCasesMetadata message. + * Verifies a ListTestCaseResultsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchRunTestCasesMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListTestCaseResultsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchRunTestCasesMetadata + * @returns ListTestCaseResultsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse; /** - * Creates a plain object from a BatchRunTestCasesMetadata message. Also converts values to other types if specified. - * @param message BatchRunTestCasesMetadata + * Creates a plain object from a ListTestCaseResultsResponse message. Also converts values to other types if specified. + * @param message ListTestCaseResultsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchRunTestCasesMetadata to JSON. + * Converts this ListTestCaseResultsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TestError. */ - interface ITestError { - - /** TestError testCase */ - testCase?: (string|null); - - /** TestError status */ - status?: (google.rpc.IStatus|null); + /** Properties of a GetTestCaseResultRequest. */ + interface IGetTestCaseResultRequest { - /** TestError testTime */ - testTime?: (google.protobuf.ITimestamp|null); + /** GetTestCaseResultRequest name */ + name?: (string|null); } - /** Represents a TestError. */ - class TestError implements ITestError { + /** Represents a GetTestCaseResultRequest. */ + class GetTestCaseResultRequest implements IGetTestCaseResultRequest { /** - * Constructs a new TestError. + * Constructs a new GetTestCaseResultRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ITestError); - - /** TestError testCase. */ - public testCase: string; - - /** TestError status. */ - public status?: (google.rpc.IStatus|null); + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetTestCaseResultRequest); - /** TestError testTime. */ - public testTime?: (google.protobuf.ITimestamp|null); + /** GetTestCaseResultRequest name. */ + public name: string; /** - * Creates a new TestError instance using the specified properties. + * Creates a new GetTestCaseResultRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TestError instance + * @returns GetTestCaseResultRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ITestError): google.cloud.dialogflow.cx.v3.TestError; + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetTestCaseResultRequest): google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest; /** - * Encodes the specified TestError message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestError.verify|verify} messages. - * @param message TestError message or plain object to encode + * Encodes the specified GetTestCaseResultRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest.verify|verify} messages. + * @param message GetTestCaseResultRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ITestError, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetTestCaseResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TestError message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestError.verify|verify} messages. - * @param message TestError message or plain object to encode + * Encodes the specified GetTestCaseResultRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest.verify|verify} messages. + * @param message GetTestCaseResultRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITestError, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetTestCaseResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TestError message from the specified reader or buffer. + * Decodes a GetTestCaseResultRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TestError + * @returns GetTestCaseResultRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TestError; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest; /** - * Decodes a TestError message from the specified reader or buffer, length delimited. + * Decodes a GetTestCaseResultRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TestError + * @returns GetTestCaseResultRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TestError; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest; /** - * Verifies a TestError message. + * Verifies a GetTestCaseResultRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TestError message from a plain object. Also converts values to their respective internal types. + * Creates a GetTestCaseResultRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TestError + * @returns GetTestCaseResultRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TestError; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest; /** - * Creates a plain object from a TestError message. Also converts values to other types if specified. - * @param message TestError + * Creates a plain object from a GetTestCaseResultRequest message. Also converts values to other types if specified. + * @param message GetTestCaseResultRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.TestError, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TestError to JSON. + * Converts this GetTestCaseResultRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ImportTestCasesRequest. */ - interface IImportTestCasesRequest { - - /** ImportTestCasesRequest parent */ - parent?: (string|null); - - /** ImportTestCasesRequest gcsUri */ - gcsUri?: (string|null); - - /** ImportTestCasesRequest content */ - content?: (Uint8Array|string|null); + /** TestResult enum. */ + enum TestResult { + TEST_RESULT_UNSPECIFIED = 0, + PASSED = 1, + FAILED = 2 } - /** Represents an ImportTestCasesRequest. */ - class ImportTestCasesRequest implements IImportTestCasesRequest { - - /** - * Constructs a new ImportTestCasesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IImportTestCasesRequest); - - /** ImportTestCasesRequest parent. */ - public parent: string; - - /** ImportTestCasesRequest gcsUri. */ - public gcsUri?: (string|null); - - /** ImportTestCasesRequest content. */ - public content?: (Uint8Array|string|null); - - /** ImportTestCasesRequest source. */ - public source?: ("gcsUri"|"content"); - - /** - * Creates a new ImportTestCasesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ImportTestCasesRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IImportTestCasesRequest): google.cloud.dialogflow.cx.v3.ImportTestCasesRequest; + /** Represents an Intents */ + class Intents extends $protobuf.rpc.Service { /** - * Encodes the specified ImportTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesRequest.verify|verify} messages. - * @param message ImportTestCasesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Constructs a new Intents service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - public static encode(message: google.cloud.dialogflow.cx.v3.IImportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Encodes the specified ImportTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesRequest.verify|verify} messages. - * @param message ImportTestCasesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Creates new Intents service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IImportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Intents; /** - * Decodes an ImportTestCasesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImportTestCasesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListIntents. + * @param request ListIntentsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListIntentsResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ImportTestCasesRequest; + public listIntents(request: google.cloud.dialogflow.cx.v3.IListIntentsRequest, callback: google.cloud.dialogflow.cx.v3.Intents.ListIntentsCallback): void; /** - * Decodes an ImportTestCasesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImportTestCasesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListIntents. + * @param request ListIntentsRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ImportTestCasesRequest; + public listIntents(request: google.cloud.dialogflow.cx.v3.IListIntentsRequest): Promise; /** - * Verifies an ImportTestCasesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls GetIntent. + * @param request GetIntentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Intent */ - public static verify(message: { [k: string]: any }): (string|null); + public getIntent(request: google.cloud.dialogflow.cx.v3.IGetIntentRequest, callback: google.cloud.dialogflow.cx.v3.Intents.GetIntentCallback): void; /** - * Creates an ImportTestCasesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImportTestCasesRequest + * Calls GetIntent. + * @param request GetIntentRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ImportTestCasesRequest; + public getIntent(request: google.cloud.dialogflow.cx.v3.IGetIntentRequest): Promise; /** - * Creates a plain object from an ImportTestCasesRequest message. Also converts values to other types if specified. - * @param message ImportTestCasesRequest - * @param [options] Conversion options - * @returns Plain object + * Calls CreateIntent. + * @param request CreateIntentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Intent */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ImportTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public createIntent(request: google.cloud.dialogflow.cx.v3.ICreateIntentRequest, callback: google.cloud.dialogflow.cx.v3.Intents.CreateIntentCallback): void; /** - * Converts this ImportTestCasesRequest to JSON. - * @returns JSON object + * Calls CreateIntent. + * @param request CreateIntentRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an ImportTestCasesResponse. */ - interface IImportTestCasesResponse { - - /** ImportTestCasesResponse names */ - names?: (string[]|null); - } - - /** Represents an ImportTestCasesResponse. */ - class ImportTestCasesResponse implements IImportTestCasesResponse { + public createIntent(request: google.cloud.dialogflow.cx.v3.ICreateIntentRequest): Promise; /** - * Constructs a new ImportTestCasesResponse. - * @param [properties] Properties to set + * Calls UpdateIntent. + * @param request UpdateIntentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Intent */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IImportTestCasesResponse); - - /** ImportTestCasesResponse names. */ - public names: string[]; + public updateIntent(request: google.cloud.dialogflow.cx.v3.IUpdateIntentRequest, callback: google.cloud.dialogflow.cx.v3.Intents.UpdateIntentCallback): void; /** - * Creates a new ImportTestCasesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ImportTestCasesResponse instance + * Calls UpdateIntent. + * @param request UpdateIntentRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IImportTestCasesResponse): google.cloud.dialogflow.cx.v3.ImportTestCasesResponse; + public updateIntent(request: google.cloud.dialogflow.cx.v3.IUpdateIntentRequest): Promise; /** - * Encodes the specified ImportTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesResponse.verify|verify} messages. - * @param message ImportTestCasesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls DeleteIntent. + * @param request DeleteIntentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static encode(message: google.cloud.dialogflow.cx.v3.IImportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public deleteIntent(request: google.cloud.dialogflow.cx.v3.IDeleteIntentRequest, callback: google.cloud.dialogflow.cx.v3.Intents.DeleteIntentCallback): void; /** - * Encodes the specified ImportTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesResponse.verify|verify} messages. - * @param message ImportTestCasesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls DeleteIntent. + * @param request DeleteIntentRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IImportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public deleteIntent(request: google.cloud.dialogflow.cx.v3.IDeleteIntentRequest): Promise; + } - /** - * Decodes an ImportTestCasesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImportTestCasesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ImportTestCasesResponse; + namespace Intents { /** - * Decodes an ImportTestCasesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImportTestCasesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#listIntents}. + * @param error Error, if any + * @param [response] ListIntentsResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ImportTestCasesResponse; + type ListIntentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListIntentsResponse) => void; /** - * Verifies an ImportTestCasesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#getIntent}. + * @param error Error, if any + * @param [response] Intent */ - public static verify(message: { [k: string]: any }): (string|null); + type GetIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Intent) => void; /** - * Creates an ImportTestCasesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImportTestCasesResponse + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#createIntent}. + * @param error Error, if any + * @param [response] Intent */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ImportTestCasesResponse; + type CreateIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Intent) => void; /** - * Creates a plain object from an ImportTestCasesResponse message. Also converts values to other types if specified. - * @param message ImportTestCasesResponse - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#updateIntent}. + * @param error Error, if any + * @param [response] Intent */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ImportTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type UpdateIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Intent) => void; /** - * Converts this ImportTestCasesResponse to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#deleteIntent}. + * @param error Error, if any + * @param [response] Empty */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an ImportTestCasesMetadata. */ - interface IImportTestCasesMetadata { - - /** ImportTestCasesMetadata errors */ - errors?: (google.cloud.dialogflow.cx.v3.ITestCaseError[]|null); + type DeleteIntentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } - /** Represents an ImportTestCasesMetadata. */ - class ImportTestCasesMetadata implements IImportTestCasesMetadata { + /** Properties of an Intent. */ + interface IIntent { - /** - * Constructs a new ImportTestCasesMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IImportTestCasesMetadata); + /** Intent name */ + name?: (string|null); - /** ImportTestCasesMetadata errors. */ - public errors: google.cloud.dialogflow.cx.v3.ITestCaseError[]; + /** Intent displayName */ + displayName?: (string|null); - /** - * Creates a new ImportTestCasesMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns ImportTestCasesMetadata instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IImportTestCasesMetadata): google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata; + /** Intent trainingPhrases */ + trainingPhrases?: (google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase[]|null); - /** - * Encodes the specified ImportTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata.verify|verify} messages. - * @param message ImportTestCasesMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.IImportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** Intent parameters */ + parameters?: (google.cloud.dialogflow.cx.v3.Intent.IParameter[]|null); - /** - * Encodes the specified ImportTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata.verify|verify} messages. - * @param message ImportTestCasesMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IImportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** Intent priority */ + priority?: (number|null); - /** - * Decodes an ImportTestCasesMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImportTestCasesMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata; + /** Intent isFallback */ + isFallback?: (boolean|null); - /** - * Decodes an ImportTestCasesMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImportTestCasesMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata; + /** Intent labels */ + labels?: ({ [k: string]: string }|null); - /** - * Verifies an ImportTestCasesMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Intent description */ + description?: (string|null); + } - /** - * Creates an ImportTestCasesMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImportTestCasesMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata; + /** Represents an Intent. */ + class Intent implements IIntent { /** - * Creates a plain object from an ImportTestCasesMetadata message. Also converts values to other types if specified. - * @param message ImportTestCasesMetadata - * @param [options] Conversion options - * @returns Plain object + * Constructs a new Intent. + * @param [properties] Properties to set */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + constructor(properties?: google.cloud.dialogflow.cx.v3.IIntent); - /** - * Converts this ImportTestCasesMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Intent name. */ + public name: string; - /** Properties of a TestCaseError. */ - interface ITestCaseError { + /** Intent displayName. */ + public displayName: string; - /** TestCaseError testCase */ - testCase?: (google.cloud.dialogflow.cx.v3.ITestCase|null); + /** Intent trainingPhrases. */ + public trainingPhrases: google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase[]; - /** TestCaseError status */ - status?: (google.rpc.IStatus|null); - } + /** Intent parameters. */ + public parameters: google.cloud.dialogflow.cx.v3.Intent.IParameter[]; - /** Represents a TestCaseError. */ - class TestCaseError implements ITestCaseError { + /** Intent priority. */ + public priority: number; - /** - * Constructs a new TestCaseError. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ITestCaseError); + /** Intent isFallback. */ + public isFallback: boolean; - /** TestCaseError testCase. */ - public testCase?: (google.cloud.dialogflow.cx.v3.ITestCase|null); + /** Intent labels. */ + public labels: { [k: string]: string }; - /** TestCaseError status. */ - public status?: (google.rpc.IStatus|null); + /** Intent description. */ + public description: string; /** - * Creates a new TestCaseError instance using the specified properties. + * Creates a new Intent instance using the specified properties. * @param [properties] Properties to set - * @returns TestCaseError instance + * @returns Intent instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ITestCaseError): google.cloud.dialogflow.cx.v3.TestCaseError; + public static create(properties?: google.cloud.dialogflow.cx.v3.IIntent): google.cloud.dialogflow.cx.v3.Intent; /** - * Encodes the specified TestCaseError message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCaseError.verify|verify} messages. - * @param message TestCaseError message or plain object to encode + * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.verify|verify} messages. + * @param message Intent message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ITestCaseError, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TestCaseError message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCaseError.verify|verify} messages. - * @param message TestCaseError message or plain object to encode + * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.verify|verify} messages. + * @param message Intent message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITestCaseError, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TestCaseError message from the specified reader or buffer. + * Decodes an Intent message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TestCaseError + * @returns Intent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TestCaseError; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Intent; /** - * Decodes a TestCaseError message from the specified reader or buffer, length delimited. + * Decodes an Intent message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TestCaseError + * @returns Intent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TestCaseError; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Intent; /** - * Verifies a TestCaseError message. + * Verifies an Intent message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TestCaseError message from a plain object. Also converts values to their respective internal types. + * Creates an Intent message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TestCaseError + * @returns Intent */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TestCaseError; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Intent; /** - * Creates a plain object from a TestCaseError message. Also converts values to other types if specified. - * @param message TestCaseError + * Creates a plain object from an Intent message. Also converts values to other types if specified. + * @param message Intent * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.TestCaseError, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Intent, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TestCaseError to JSON. + * Converts this Intent to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ExportTestCasesRequest. */ - interface IExportTestCasesRequest { + namespace Intent { - /** ExportTestCasesRequest parent */ - parent?: (string|null); + /** Properties of a TrainingPhrase. */ + interface ITrainingPhrase { - /** ExportTestCasesRequest gcsUri */ - gcsUri?: (string|null); + /** TrainingPhrase id */ + id?: (string|null); - /** ExportTestCasesRequest dataFormat */ - dataFormat?: (google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat|keyof typeof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat|null); + /** TrainingPhrase parts */ + parts?: (google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart[]|null); - /** ExportTestCasesRequest filter */ - filter?: (string|null); - } + /** TrainingPhrase repeatCount */ + repeatCount?: (number|null); + } - /** Represents an ExportTestCasesRequest. */ - class ExportTestCasesRequest implements IExportTestCasesRequest { + /** Represents a TrainingPhrase. */ + class TrainingPhrase implements ITrainingPhrase { - /** - * Constructs a new ExportTestCasesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IExportTestCasesRequest); + /** + * Constructs a new TrainingPhrase. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase); - /** ExportTestCasesRequest parent. */ - public parent: string; + /** TrainingPhrase id. */ + public id: string; - /** ExportTestCasesRequest gcsUri. */ - public gcsUri?: (string|null); + /** TrainingPhrase parts. */ + public parts: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart[]; - /** ExportTestCasesRequest dataFormat. */ - public dataFormat: (google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat|keyof typeof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat); + /** TrainingPhrase repeatCount. */ + public repeatCount: number; - /** ExportTestCasesRequest filter. */ - public filter: string; + /** + * Creates a new TrainingPhrase instance using the specified properties. + * @param [properties] Properties to set + * @returns TrainingPhrase instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase; - /** ExportTestCasesRequest destination. */ - public destination?: "gcsUri"; + /** + * Encodes the specified TrainingPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.verify|verify} messages. + * @param message TrainingPhrase message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new ExportTestCasesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExportTestCasesRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IExportTestCasesRequest): google.cloud.dialogflow.cx.v3.ExportTestCasesRequest; + /** + * Encodes the specified TrainingPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.verify|verify} messages. + * @param message TrainingPhrase message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ExportTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.verify|verify} messages. - * @param message ExportTestCasesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.IExportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a TrainingPhrase message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TrainingPhrase + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase; - /** - * Encodes the specified ExportTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.verify|verify} messages. - * @param message ExportTestCasesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IExportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a TrainingPhrase message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TrainingPhrase + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase; - /** - * Decodes an ExportTestCasesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExportTestCasesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ExportTestCasesRequest; + /** + * Verifies a TrainingPhrase message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes an ExportTestCasesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExportTestCasesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ExportTestCasesRequest; + /** + * Creates a TrainingPhrase message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TrainingPhrase + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase; - /** - * Verifies an ExportTestCasesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a plain object from a TrainingPhrase message. Also converts values to other types if specified. + * @param message TrainingPhrase + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates an ExportTestCasesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExportTestCasesRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ExportTestCasesRequest; + /** + * Converts this TrainingPhrase to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Creates a plain object from an ExportTestCasesRequest message. Also converts values to other types if specified. - * @param message ExportTestCasesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ExportTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + namespace TrainingPhrase { - /** - * Converts this ExportTestCasesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Properties of a Part. */ + interface IPart { - namespace ExportTestCasesRequest { + /** Part text */ + text?: (string|null); - /** DataFormat enum. */ - enum DataFormat { - DATA_FORMAT_UNSPECIFIED = 0, - BLOB = 1, - JSON = 2 + /** Part parameterId */ + parameterId?: (string|null); + } + + /** Represents a Part. */ + class Part implements IPart { + + /** + * Constructs a new Part. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart); + + /** Part text. */ + public text: string; + + /** Part parameterId. */ + public parameterId: string; + + /** + * Creates a new Part instance using the specified properties. + * @param [properties] Properties to set + * @returns Part instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part; + + /** + * Encodes the specified Part message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.verify|verify} messages. + * @param message Part message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Part message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.verify|verify} messages. + * @param message Part message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Part message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Part + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part; + + /** + * Decodes a Part message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Part + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part; + + /** + * Verifies a Part message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Part message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Part + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part; + + /** + * Creates a plain object from a Part message. Also converts values to other types if specified. + * @param message Part + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Part to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a Parameter. */ + interface IParameter { + + /** Parameter id */ + id?: (string|null); + + /** Parameter entityType */ + entityType?: (string|null); + + /** Parameter isList */ + isList?: (boolean|null); + + /** Parameter redact */ + redact?: (boolean|null); + } + + /** Represents a Parameter. */ + class Parameter implements IParameter { + + /** + * Constructs a new Parameter. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.Intent.IParameter); + + /** Parameter id. */ + public id: string; + + /** Parameter entityType. */ + public entityType: string; + + /** Parameter isList. */ + public isList: boolean; + + /** Parameter redact. */ + public redact: boolean; + + /** + * Creates a new Parameter instance using the specified properties. + * @param [properties] Properties to set + * @returns Parameter instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.Intent.IParameter): google.cloud.dialogflow.cx.v3.Intent.Parameter; + + /** + * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.Parameter.verify|verify} messages. + * @param message Parameter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.Intent.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.Parameter.verify|verify} messages. + * @param message Parameter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Intent.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Parameter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Parameter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Intent.Parameter; + + /** + * Decodes a Parameter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Parameter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Intent.Parameter; + + /** + * Verifies a Parameter message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Parameter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Parameter + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Intent.Parameter; + + /** + * Creates a plain object from a Parameter message. Also converts values to other types if specified. + * @param message Parameter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.Intent.Parameter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Parameter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } } - /** Properties of an ExportTestCasesResponse. */ - interface IExportTestCasesResponse { + /** Properties of a ListIntentsRequest. */ + interface IListIntentsRequest { - /** ExportTestCasesResponse gcsUri */ - gcsUri?: (string|null); + /** ListIntentsRequest parent */ + parent?: (string|null); - /** ExportTestCasesResponse content */ - content?: (Uint8Array|string|null); + /** ListIntentsRequest languageCode */ + languageCode?: (string|null); + + /** ListIntentsRequest intentView */ + intentView?: (google.cloud.dialogflow.cx.v3.IntentView|keyof typeof google.cloud.dialogflow.cx.v3.IntentView|null); + + /** ListIntentsRequest pageSize */ + pageSize?: (number|null); + + /** ListIntentsRequest pageToken */ + pageToken?: (string|null); } - /** Represents an ExportTestCasesResponse. */ - class ExportTestCasesResponse implements IExportTestCasesResponse { + /** Represents a ListIntentsRequest. */ + class ListIntentsRequest implements IListIntentsRequest { /** - * Constructs a new ExportTestCasesResponse. + * Constructs a new ListIntentsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IExportTestCasesResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListIntentsRequest); - /** ExportTestCasesResponse gcsUri. */ - public gcsUri?: (string|null); + /** ListIntentsRequest parent. */ + public parent: string; - /** ExportTestCasesResponse content. */ - public content?: (Uint8Array|string|null); + /** ListIntentsRequest languageCode. */ + public languageCode: string; - /** ExportTestCasesResponse destination. */ - public destination?: ("gcsUri"|"content"); + /** ListIntentsRequest intentView. */ + public intentView: (google.cloud.dialogflow.cx.v3.IntentView|keyof typeof google.cloud.dialogflow.cx.v3.IntentView); + + /** ListIntentsRequest pageSize. */ + public pageSize: number; + + /** ListIntentsRequest pageToken. */ + public pageToken: string; /** - * Creates a new ExportTestCasesResponse instance using the specified properties. + * Creates a new ListIntentsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExportTestCasesResponse instance + * @returns ListIntentsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IExportTestCasesResponse): google.cloud.dialogflow.cx.v3.ExportTestCasesResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListIntentsRequest): google.cloud.dialogflow.cx.v3.ListIntentsRequest; /** - * Encodes the specified ExportTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesResponse.verify|verify} messages. - * @param message ExportTestCasesResponse message or plain object to encode + * Encodes the specified ListIntentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsRequest.verify|verify} messages. + * @param message ListIntentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IExportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListIntentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesResponse.verify|verify} messages. - * @param message ExportTestCasesResponse message or plain object to encode + * Encodes the specified ListIntentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsRequest.verify|verify} messages. + * @param message ListIntentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IExportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListIntentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportTestCasesResponse message from the specified reader or buffer. + * Decodes a ListIntentsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportTestCasesResponse + * @returns ListIntentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ExportTestCasesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListIntentsRequest; /** - * Decodes an ExportTestCasesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListIntentsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportTestCasesResponse + * @returns ListIntentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ExportTestCasesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListIntentsRequest; /** - * Verifies an ExportTestCasesResponse message. + * Verifies a ListIntentsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ExportTestCasesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListIntentsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportTestCasesResponse + * @returns ListIntentsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ExportTestCasesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListIntentsRequest; /** - * Creates a plain object from an ExportTestCasesResponse message. Also converts values to other types if specified. - * @param message ExportTestCasesResponse + * Creates a plain object from a ListIntentsRequest message. Also converts values to other types if specified. + * @param message ListIntentsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ExportTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListIntentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportTestCasesResponse to JSON. + * Converts this ListIntentsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ExportTestCasesMetadata. */ - interface IExportTestCasesMetadata { + /** Properties of a ListIntentsResponse. */ + interface IListIntentsResponse { + + /** ListIntentsResponse intents */ + intents?: (google.cloud.dialogflow.cx.v3.IIntent[]|null); + + /** ListIntentsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an ExportTestCasesMetadata. */ - class ExportTestCasesMetadata implements IExportTestCasesMetadata { + /** Represents a ListIntentsResponse. */ + class ListIntentsResponse implements IListIntentsResponse { /** - * Constructs a new ExportTestCasesMetadata. + * Constructs a new ListIntentsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IExportTestCasesMetadata); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListIntentsResponse); + + /** ListIntentsResponse intents. */ + public intents: google.cloud.dialogflow.cx.v3.IIntent[]; + + /** ListIntentsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ExportTestCasesMetadata instance using the specified properties. + * Creates a new ListIntentsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ExportTestCasesMetadata instance + * @returns ListIntentsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IExportTestCasesMetadata): google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListIntentsResponse): google.cloud.dialogflow.cx.v3.ListIntentsResponse; /** - * Encodes the specified ExportTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata.verify|verify} messages. - * @param message ExportTestCasesMetadata message or plain object to encode + * Encodes the specified ListIntentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsResponse.verify|verify} messages. + * @param message ListIntentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IExportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListIntentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata.verify|verify} messages. - * @param message ExportTestCasesMetadata message or plain object to encode + * Encodes the specified ListIntentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsResponse.verify|verify} messages. + * @param message ListIntentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IExportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListIntentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportTestCasesMetadata message from the specified reader or buffer. + * Decodes a ListIntentsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportTestCasesMetadata + * @returns ListIntentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListIntentsResponse; /** - * Decodes an ExportTestCasesMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListIntentsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportTestCasesMetadata + * @returns ListIntentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListIntentsResponse; /** - * Verifies an ExportTestCasesMetadata message. + * Verifies a ListIntentsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ExportTestCasesMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListIntentsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportTestCasesMetadata + * @returns ListIntentsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListIntentsResponse; /** - * Creates a plain object from an ExportTestCasesMetadata message. Also converts values to other types if specified. - * @param message ExportTestCasesMetadata + * Creates a plain object from a ListIntentsResponse message. Also converts values to other types if specified. + * @param message ListIntentsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListIntentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportTestCasesMetadata to JSON. + * Converts this ListIntentsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListTestCaseResultsRequest. */ - interface IListTestCaseResultsRequest { - - /** ListTestCaseResultsRequest parent */ - parent?: (string|null); - - /** ListTestCaseResultsRequest pageSize */ - pageSize?: (number|null); + /** Properties of a GetIntentRequest. */ + interface IGetIntentRequest { - /** ListTestCaseResultsRequest pageToken */ - pageToken?: (string|null); + /** GetIntentRequest name */ + name?: (string|null); - /** ListTestCaseResultsRequest filter */ - filter?: (string|null); + /** GetIntentRequest languageCode */ + languageCode?: (string|null); } - /** Represents a ListTestCaseResultsRequest. */ - class ListTestCaseResultsRequest implements IListTestCaseResultsRequest { + /** Represents a GetIntentRequest. */ + class GetIntentRequest implements IGetIntentRequest { /** - * Constructs a new ListTestCaseResultsRequest. + * Constructs a new GetIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest); - - /** ListTestCaseResultsRequest parent. */ - public parent: string; - - /** ListTestCaseResultsRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetIntentRequest); - /** ListTestCaseResultsRequest pageToken. */ - public pageToken: string; + /** GetIntentRequest name. */ + public name: string; - /** ListTestCaseResultsRequest filter. */ - public filter: string; + /** GetIntentRequest languageCode. */ + public languageCode: string; /** - * Creates a new ListTestCaseResultsRequest instance using the specified properties. + * Creates a new GetIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListTestCaseResultsRequest instance + * @returns GetIntentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest): google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetIntentRequest): google.cloud.dialogflow.cx.v3.GetIntentRequest; /** - * Encodes the specified ListTestCaseResultsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest.verify|verify} messages. - * @param message ListTestCaseResultsRequest message or plain object to encode + * Encodes the specified GetIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetIntentRequest.verify|verify} messages. + * @param message GetIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTestCaseResultsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest.verify|verify} messages. - * @param message ListTestCaseResultsRequest message or plain object to encode + * Encodes the specified GetIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetIntentRequest.verify|verify} messages. + * @param message GetIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTestCaseResultsRequest message from the specified reader or buffer. + * Decodes a GetIntentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTestCaseResultsRequest + * @returns GetIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetIntentRequest; /** - * Decodes a ListTestCaseResultsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetIntentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTestCaseResultsRequest + * @returns GetIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetIntentRequest; /** - * Verifies a ListTestCaseResultsRequest message. + * Verifies a GetIntentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListTestCaseResultsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetIntentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTestCaseResultsRequest + * @returns GetIntentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetIntentRequest; /** - * Creates a plain object from a ListTestCaseResultsRequest message. Also converts values to other types if specified. - * @param message ListTestCaseResultsRequest + * Creates a plain object from a GetIntentRequest message. Also converts values to other types if specified. + * @param message GetIntentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.GetIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTestCaseResultsRequest to JSON. + * Converts this GetIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListTestCaseResultsResponse. */ - interface IListTestCaseResultsResponse { + /** Properties of a CreateIntentRequest. */ + interface ICreateIntentRequest { - /** ListTestCaseResultsResponse testCaseResults */ - testCaseResults?: (google.cloud.dialogflow.cx.v3.ITestCaseResult[]|null); + /** CreateIntentRequest parent */ + parent?: (string|null); - /** ListTestCaseResultsResponse nextPageToken */ - nextPageToken?: (string|null); + /** CreateIntentRequest intent */ + intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); + + /** CreateIntentRequest languageCode */ + languageCode?: (string|null); } - /** Represents a ListTestCaseResultsResponse. */ - class ListTestCaseResultsResponse implements IListTestCaseResultsResponse { + /** Represents a CreateIntentRequest. */ + class CreateIntentRequest implements ICreateIntentRequest { /** - * Constructs a new ListTestCaseResultsResponse. + * Constructs a new CreateIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListTestCaseResultsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateIntentRequest); - /** ListTestCaseResultsResponse testCaseResults. */ - public testCaseResults: google.cloud.dialogflow.cx.v3.ITestCaseResult[]; + /** CreateIntentRequest parent. */ + public parent: string; - /** ListTestCaseResultsResponse nextPageToken. */ - public nextPageToken: string; + /** CreateIntentRequest intent. */ + public intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); + + /** CreateIntentRequest languageCode. */ + public languageCode: string; /** - * Creates a new ListTestCaseResultsResponse instance using the specified properties. + * Creates a new CreateIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListTestCaseResultsResponse instance + * @returns CreateIntentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListTestCaseResultsResponse): google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateIntentRequest): google.cloud.dialogflow.cx.v3.CreateIntentRequest; /** - * Encodes the specified ListTestCaseResultsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse.verify|verify} messages. - * @param message ListTestCaseResultsResponse message or plain object to encode + * Encodes the specified CreateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateIntentRequest.verify|verify} messages. + * @param message CreateIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListTestCaseResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTestCaseResultsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse.verify|verify} messages. - * @param message ListTestCaseResultsResponse message or plain object to encode + * Encodes the specified CreateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateIntentRequest.verify|verify} messages. + * @param message CreateIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListTestCaseResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTestCaseResultsResponse message from the specified reader or buffer. + * Decodes a CreateIntentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTestCaseResultsResponse + * @returns CreateIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateIntentRequest; /** - * Decodes a ListTestCaseResultsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateIntentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTestCaseResultsResponse + * @returns CreateIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateIntentRequest; /** - * Verifies a ListTestCaseResultsResponse message. + * Verifies a CreateIntentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListTestCaseResultsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateIntentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTestCaseResultsResponse + * @returns CreateIntentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateIntentRequest; /** - * Creates a plain object from a ListTestCaseResultsResponse message. Also converts values to other types if specified. - * @param message ListTestCaseResultsResponse + * Creates a plain object from a CreateIntentRequest message. Also converts values to other types if specified. + * @param message CreateIntentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTestCaseResultsResponse to JSON. + * Converts this CreateIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetTestCaseResultRequest. */ - interface IGetTestCaseResultRequest { + /** Properties of an UpdateIntentRequest. */ + interface IUpdateIntentRequest { - /** GetTestCaseResultRequest name */ + /** UpdateIntentRequest intent */ + intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); + + /** UpdateIntentRequest languageCode */ + languageCode?: (string|null); + + /** UpdateIntentRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateIntentRequest. */ + class UpdateIntentRequest implements IUpdateIntentRequest { + + /** + * Constructs a new UpdateIntentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateIntentRequest); + + /** UpdateIntentRequest intent. */ + public intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); + + /** UpdateIntentRequest languageCode. */ + public languageCode: string; + + /** UpdateIntentRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdateIntentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateIntentRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateIntentRequest): google.cloud.dialogflow.cx.v3.UpdateIntentRequest; + + /** + * Encodes the specified UpdateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateIntentRequest.verify|verify} messages. + * @param message UpdateIntentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateIntentRequest.verify|verify} messages. + * @param message UpdateIntentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateIntentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateIntentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateIntentRequest; + + /** + * Decodes an UpdateIntentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateIntentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateIntentRequest; + + /** + * Verifies an UpdateIntentRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UpdateIntentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateIntentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateIntentRequest; + + /** + * Creates a plain object from an UpdateIntentRequest message. Also converts values to other types if specified. + * @param message UpdateIntentRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateIntentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeleteIntentRequest. */ + interface IDeleteIntentRequest { + + /** DeleteIntentRequest name */ name?: (string|null); } - /** Represents a GetTestCaseResultRequest. */ - class GetTestCaseResultRequest implements IGetTestCaseResultRequest { + /** Represents a DeleteIntentRequest. */ + class DeleteIntentRequest implements IDeleteIntentRequest { /** - * Constructs a new GetTestCaseResultRequest. + * Constructs a new DeleteIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetTestCaseResultRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteIntentRequest); - /** GetTestCaseResultRequest name. */ + /** DeleteIntentRequest name. */ public name: string; /** - * Creates a new GetTestCaseResultRequest instance using the specified properties. + * Creates a new DeleteIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetTestCaseResultRequest instance + * @returns DeleteIntentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IGetTestCaseResultRequest): google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteIntentRequest): google.cloud.dialogflow.cx.v3.DeleteIntentRequest; /** - * Encodes the specified GetTestCaseResultRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest.verify|verify} messages. - * @param message GetTestCaseResultRequest message or plain object to encode + * Encodes the specified DeleteIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteIntentRequest.verify|verify} messages. + * @param message DeleteIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IGetTestCaseResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTestCaseResultRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest.verify|verify} messages. - * @param message GetTestCaseResultRequest message or plain object to encode + * Encodes the specified DeleteIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteIntentRequest.verify|verify} messages. + * @param message DeleteIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetTestCaseResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTestCaseResultRequest message from the specified reader or buffer. + * Decodes a DeleteIntentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetTestCaseResultRequest + * @returns DeleteIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteIntentRequest; /** - * Decodes a GetTestCaseResultRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteIntentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTestCaseResultRequest + * @returns DeleteIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteIntentRequest; /** - * Verifies a GetTestCaseResultRequest message. + * Verifies a DeleteIntentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetTestCaseResultRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteIntentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTestCaseResultRequest + * @returns DeleteIntentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteIntentRequest; /** - * Creates a plain object from a GetTestCaseResultRequest message. Also converts values to other types if specified. - * @param message GetTestCaseResultRequest + * Creates a plain object from a DeleteIntentRequest message. Also converts values to other types if specified. + * @param message DeleteIntentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTestCaseResultRequest to JSON. + * Converts this DeleteIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** TestResult enum. */ - enum TestResult { - TEST_RESULT_UNSPECIFIED = 0, - PASSED = 1, - FAILED = 2 + /** IntentView enum. */ + enum IntentView { + INTENT_VIEW_UNSPECIFIED = 0, + INTENT_VIEW_PARTIAL = 1, + INTENT_VIEW_FULL = 2 } - /** Represents an Intents */ - class Intents extends $protobuf.rpc.Service { + /** Represents a Sessions */ + class Sessions extends $protobuf.rpc.Service { /** - * Constructs a new Intents service. + * Constructs a new Sessions service. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited @@ -17063,4268 +17292,3919 @@ export namespace google { constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates new Intents service using the specified rpc implementation. + * Creates new Sessions service using the specified rpc implementation. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Intents; - - /** - * Calls ListIntents. - * @param request ListIntentsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListIntentsResponse - */ - public listIntents(request: google.cloud.dialogflow.cx.v3.IListIntentsRequest, callback: google.cloud.dialogflow.cx.v3.Intents.ListIntentsCallback): void; - - /** - * Calls ListIntents. - * @param request ListIntentsRequest message or plain object - * @returns Promise - */ - public listIntents(request: google.cloud.dialogflow.cx.v3.IListIntentsRequest): Promise; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Sessions; /** - * Calls GetIntent. - * @param request GetIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Intent + * Calls DetectIntent. + * @param request DetectIntentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DetectIntentResponse */ - public getIntent(request: google.cloud.dialogflow.cx.v3.IGetIntentRequest, callback: google.cloud.dialogflow.cx.v3.Intents.GetIntentCallback): void; + public detectIntent(request: google.cloud.dialogflow.cx.v3.IDetectIntentRequest, callback: google.cloud.dialogflow.cx.v3.Sessions.DetectIntentCallback): void; /** - * Calls GetIntent. - * @param request GetIntentRequest message or plain object + * Calls DetectIntent. + * @param request DetectIntentRequest message or plain object * @returns Promise */ - public getIntent(request: google.cloud.dialogflow.cx.v3.IGetIntentRequest): Promise; + public detectIntent(request: google.cloud.dialogflow.cx.v3.IDetectIntentRequest): Promise; /** - * Calls CreateIntent. - * @param request CreateIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Intent + * Calls StreamingDetectIntent. + * @param request StreamingDetectIntentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and StreamingDetectIntentResponse */ - public createIntent(request: google.cloud.dialogflow.cx.v3.ICreateIntentRequest, callback: google.cloud.dialogflow.cx.v3.Intents.CreateIntentCallback): void; + public streamingDetectIntent(request: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest, callback: google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntentCallback): void; /** - * Calls CreateIntent. - * @param request CreateIntentRequest message or plain object + * Calls StreamingDetectIntent. + * @param request StreamingDetectIntentRequest message or plain object * @returns Promise */ - public createIntent(request: google.cloud.dialogflow.cx.v3.ICreateIntentRequest): Promise; + public streamingDetectIntent(request: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest): Promise; /** - * Calls UpdateIntent. - * @param request UpdateIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Intent + * Calls MatchIntent. + * @param request MatchIntentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MatchIntentResponse */ - public updateIntent(request: google.cloud.dialogflow.cx.v3.IUpdateIntentRequest, callback: google.cloud.dialogflow.cx.v3.Intents.UpdateIntentCallback): void; + public matchIntent(request: google.cloud.dialogflow.cx.v3.IMatchIntentRequest, callback: google.cloud.dialogflow.cx.v3.Sessions.MatchIntentCallback): void; /** - * Calls UpdateIntent. - * @param request UpdateIntentRequest message or plain object + * Calls MatchIntent. + * @param request MatchIntentRequest message or plain object * @returns Promise */ - public updateIntent(request: google.cloud.dialogflow.cx.v3.IUpdateIntentRequest): Promise; + public matchIntent(request: google.cloud.dialogflow.cx.v3.IMatchIntentRequest): Promise; /** - * Calls DeleteIntent. - * @param request DeleteIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Calls FulfillIntent. + * @param request FulfillIntentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and FulfillIntentResponse */ - public deleteIntent(request: google.cloud.dialogflow.cx.v3.IDeleteIntentRequest, callback: google.cloud.dialogflow.cx.v3.Intents.DeleteIntentCallback): void; + public fulfillIntent(request: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest, callback: google.cloud.dialogflow.cx.v3.Sessions.FulfillIntentCallback): void; /** - * Calls DeleteIntent. - * @param request DeleteIntentRequest message or plain object + * Calls FulfillIntent. + * @param request FulfillIntentRequest message or plain object * @returns Promise */ - public deleteIntent(request: google.cloud.dialogflow.cx.v3.IDeleteIntentRequest): Promise; + public fulfillIntent(request: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest): Promise; } - namespace Intents { - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#listIntents}. - * @param error Error, if any - * @param [response] ListIntentsResponse - */ - type ListIntentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListIntentsResponse) => void; + namespace Sessions { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#getIntent}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#detectIntent}. * @param error Error, if any - * @param [response] Intent + * @param [response] DetectIntentResponse */ - type GetIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Intent) => void; + type DetectIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.DetectIntentResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#createIntent}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#streamingDetectIntent}. * @param error Error, if any - * @param [response] Intent + * @param [response] StreamingDetectIntentResponse */ - type CreateIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Intent) => void; + type StreamingDetectIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#updateIntent}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#matchIntent}. * @param error Error, if any - * @param [response] Intent + * @param [response] MatchIntentResponse */ - type UpdateIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Intent) => void; + type MatchIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.MatchIntentResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#deleteIntent}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#fulfillIntent}. * @param error Error, if any - * @param [response] Empty + * @param [response] FulfillIntentResponse */ - type DeleteIntentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + type FulfillIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.FulfillIntentResponse) => void; } - /** Properties of an Intent. */ - interface IIntent { - - /** Intent name */ - name?: (string|null); - - /** Intent displayName */ - displayName?: (string|null); - - /** Intent trainingPhrases */ - trainingPhrases?: (google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase[]|null); - - /** Intent parameters */ - parameters?: (google.cloud.dialogflow.cx.v3.Intent.IParameter[]|null); + /** Properties of a DetectIntentRequest. */ + interface IDetectIntentRequest { - /** Intent priority */ - priority?: (number|null); + /** DetectIntentRequest session */ + session?: (string|null); - /** Intent isFallback */ - isFallback?: (boolean|null); + /** DetectIntentRequest queryParams */ + queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); - /** Intent labels */ - labels?: ({ [k: string]: string }|null); + /** DetectIntentRequest queryInput */ + queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); - /** Intent description */ - description?: (string|null); + /** DetectIntentRequest outputAudioConfig */ + outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); } - /** Represents an Intent. */ - class Intent implements IIntent { + /** Represents a DetectIntentRequest. */ + class DetectIntentRequest implements IDetectIntentRequest { /** - * Constructs a new Intent. + * Constructs a new DetectIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IIntent); - - /** Intent name. */ - public name: string; - - /** Intent displayName. */ - public displayName: string; - - /** Intent trainingPhrases. */ - public trainingPhrases: google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase[]; - - /** Intent parameters. */ - public parameters: google.cloud.dialogflow.cx.v3.Intent.IParameter[]; + constructor(properties?: google.cloud.dialogflow.cx.v3.IDetectIntentRequest); - /** Intent priority. */ - public priority: number; + /** DetectIntentRequest session. */ + public session: string; - /** Intent isFallback. */ - public isFallback: boolean; + /** DetectIntentRequest queryParams. */ + public queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); - /** Intent labels. */ - public labels: { [k: string]: string }; + /** DetectIntentRequest queryInput. */ + public queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); - /** Intent description. */ - public description: string; + /** DetectIntentRequest outputAudioConfig. */ + public outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); /** - * Creates a new Intent instance using the specified properties. + * Creates a new DetectIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Intent instance + * @returns DetectIntentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IIntent): google.cloud.dialogflow.cx.v3.Intent; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDetectIntentRequest): google.cloud.dialogflow.cx.v3.DetectIntentRequest; /** - * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.verify|verify} messages. - * @param message Intent message or plain object to encode + * Encodes the specified DetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentRequest.verify|verify} messages. + * @param message DetectIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.verify|verify} messages. - * @param message Intent message or plain object to encode + * Encodes the specified DetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentRequest.verify|verify} messages. + * @param message DetectIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Intent message from the specified reader or buffer. + * Decodes a DetectIntentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Intent + * @returns DetectIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Intent; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DetectIntentRequest; /** - * Decodes an Intent message from the specified reader or buffer, length delimited. + * Decodes a DetectIntentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Intent + * @returns DetectIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Intent; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DetectIntentRequest; /** - * Verifies an Intent message. + * Verifies a DetectIntentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an Intent message from a plain object. Also converts values to their respective internal types. + * Creates a DetectIntentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Intent + * @returns DetectIntentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Intent; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DetectIntentRequest; /** - * Creates a plain object from an Intent message. Also converts values to other types if specified. - * @param message Intent + * Creates a plain object from a DetectIntentRequest message. Also converts values to other types if specified. + * @param message DetectIntentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Intent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DetectIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Intent to JSON. + * Converts this DetectIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Intent { + /** Properties of a DetectIntentResponse. */ + interface IDetectIntentResponse { - /** Properties of a TrainingPhrase. */ - interface ITrainingPhrase { + /** DetectIntentResponse responseId */ + responseId?: (string|null); - /** TrainingPhrase id */ - id?: (string|null); + /** DetectIntentResponse queryResult */ + queryResult?: (google.cloud.dialogflow.cx.v3.IQueryResult|null); - /** TrainingPhrase parts */ - parts?: (google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart[]|null); + /** DetectIntentResponse outputAudio */ + outputAudio?: (Uint8Array|string|null); - /** TrainingPhrase repeatCount */ - repeatCount?: (number|null); - } + /** DetectIntentResponse outputAudioConfig */ + outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); - /** Represents a TrainingPhrase. */ - class TrainingPhrase implements ITrainingPhrase { - - /** - * Constructs a new TrainingPhrase. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase); - - /** TrainingPhrase id. */ - public id: string; - - /** TrainingPhrase parts. */ - public parts: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart[]; - - /** TrainingPhrase repeatCount. */ - public repeatCount: number; - - /** - * Creates a new TrainingPhrase instance using the specified properties. - * @param [properties] Properties to set - * @returns TrainingPhrase instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase; - - /** - * Encodes the specified TrainingPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.verify|verify} messages. - * @param message TrainingPhrase message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TrainingPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.verify|verify} messages. - * @param message TrainingPhrase message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TrainingPhrase message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TrainingPhrase - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase; - - /** - * Decodes a TrainingPhrase message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TrainingPhrase - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase; - - /** - * Verifies a TrainingPhrase message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a TrainingPhrase message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TrainingPhrase - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase; - - /** - * Creates a plain object from a TrainingPhrase message. Also converts values to other types if specified. - * @param message TrainingPhrase - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this TrainingPhrase to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace TrainingPhrase { - - /** Properties of a Part. */ - interface IPart { - - /** Part text */ - text?: (string|null); - - /** Part parameterId */ - parameterId?: (string|null); - } - - /** Represents a Part. */ - class Part implements IPart { - - /** - * Constructs a new Part. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart); - - /** Part text. */ - public text: string; - - /** Part parameterId. */ - public parameterId: string; - - /** - * Creates a new Part instance using the specified properties. - * @param [properties] Properties to set - * @returns Part instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part; - - /** - * Encodes the specified Part message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.verify|verify} messages. - * @param message Part message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Part message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.verify|verify} messages. - * @param message Part message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Part message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Part - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part; - - /** - * Decodes a Part message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Part - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part; - - /** - * Verifies a Part message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Part message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Part - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part; - - /** - * Creates a plain object from a Part message. Also converts values to other types if specified. - * @param message Part - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Part to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of a Parameter. */ - interface IParameter { - - /** Parameter id */ - id?: (string|null); - - /** Parameter entityType */ - entityType?: (string|null); - - /** Parameter isList */ - isList?: (boolean|null); - - /** Parameter redact */ - redact?: (boolean|null); - } - - /** Represents a Parameter. */ - class Parameter implements IParameter { - - /** - * Constructs a new Parameter. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Intent.IParameter); - - /** Parameter id. */ - public id: string; - - /** Parameter entityType. */ - public entityType: string; - - /** Parameter isList. */ - public isList: boolean; - - /** Parameter redact. */ - public redact: boolean; - - /** - * Creates a new Parameter instance using the specified properties. - * @param [properties] Properties to set - * @returns Parameter instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.Intent.IParameter): google.cloud.dialogflow.cx.v3.Intent.Parameter; - - /** - * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.Parameter.verify|verify} messages. - * @param message Parameter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.Intent.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.Parameter.verify|verify} messages. - * @param message Parameter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Intent.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Parameter message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Parameter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Intent.Parameter; - - /** - * Decodes a Parameter message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Parameter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Intent.Parameter; - - /** - * Verifies a Parameter message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Parameter message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Parameter - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Intent.Parameter; - - /** - * Creates a plain object from a Parameter message. Also converts values to other types if specified. - * @param message Parameter - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Intent.Parameter, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Parameter to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of a ListIntentsRequest. */ - interface IListIntentsRequest { - - /** ListIntentsRequest parent */ - parent?: (string|null); - - /** ListIntentsRequest languageCode */ - languageCode?: (string|null); - - /** ListIntentsRequest intentView */ - intentView?: (google.cloud.dialogflow.cx.v3.IntentView|keyof typeof google.cloud.dialogflow.cx.v3.IntentView|null); - - /** ListIntentsRequest pageSize */ - pageSize?: (number|null); + /** DetectIntentResponse responseType */ + responseType?: (google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType|keyof typeof google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType|null); - /** ListIntentsRequest pageToken */ - pageToken?: (string|null); + /** DetectIntentResponse allowCancellation */ + allowCancellation?: (boolean|null); } - /** Represents a ListIntentsRequest. */ - class ListIntentsRequest implements IListIntentsRequest { + /** Represents a DetectIntentResponse. */ + class DetectIntentResponse implements IDetectIntentResponse { /** - * Constructs a new ListIntentsRequest. + * Constructs a new DetectIntentResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListIntentsRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDetectIntentResponse); - /** ListIntentsRequest parent. */ - public parent: string; + /** DetectIntentResponse responseId. */ + public responseId: string; - /** ListIntentsRequest languageCode. */ - public languageCode: string; + /** DetectIntentResponse queryResult. */ + public queryResult?: (google.cloud.dialogflow.cx.v3.IQueryResult|null); - /** ListIntentsRequest intentView. */ - public intentView: (google.cloud.dialogflow.cx.v3.IntentView|keyof typeof google.cloud.dialogflow.cx.v3.IntentView); + /** DetectIntentResponse outputAudio. */ + public outputAudio: (Uint8Array|string); - /** ListIntentsRequest pageSize. */ - public pageSize: number; + /** DetectIntentResponse outputAudioConfig. */ + public outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); - /** ListIntentsRequest pageToken. */ - public pageToken: string; + /** DetectIntentResponse responseType. */ + public responseType: (google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType|keyof typeof google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType); + + /** DetectIntentResponse allowCancellation. */ + public allowCancellation: boolean; /** - * Creates a new ListIntentsRequest instance using the specified properties. + * Creates a new DetectIntentResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListIntentsRequest instance + * @returns DetectIntentResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListIntentsRequest): google.cloud.dialogflow.cx.v3.ListIntentsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDetectIntentResponse): google.cloud.dialogflow.cx.v3.DetectIntentResponse; /** - * Encodes the specified ListIntentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsRequest.verify|verify} messages. - * @param message ListIntentsRequest message or plain object to encode + * Encodes the specified DetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentResponse.verify|verify} messages. + * @param message DetectIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListIntentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListIntentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsRequest.verify|verify} messages. - * @param message ListIntentsRequest message or plain object to encode + * Encodes the specified DetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentResponse.verify|verify} messages. + * @param message DetectIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListIntentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListIntentsRequest message from the specified reader or buffer. + * Decodes a DetectIntentResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListIntentsRequest + * @returns DetectIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListIntentsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DetectIntentResponse; /** - * Decodes a ListIntentsRequest message from the specified reader or buffer, length delimited. + * Decodes a DetectIntentResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListIntentsRequest + * @returns DetectIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListIntentsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DetectIntentResponse; /** - * Verifies a ListIntentsRequest message. + * Verifies a DetectIntentResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListIntentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DetectIntentResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListIntentsRequest + * @returns DetectIntentResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListIntentsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DetectIntentResponse; /** - * Creates a plain object from a ListIntentsRequest message. Also converts values to other types if specified. - * @param message ListIntentsRequest + * Creates a plain object from a DetectIntentResponse message. Also converts values to other types if specified. + * @param message DetectIntentResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListIntentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DetectIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListIntentsRequest to JSON. + * Converts this DetectIntentResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListIntentsResponse. */ - interface IListIntentsResponse { + namespace DetectIntentResponse { - /** ListIntentsResponse intents */ - intents?: (google.cloud.dialogflow.cx.v3.IIntent[]|null); + /** ResponseType enum. */ + enum ResponseType { + RESPONSE_TYPE_UNSPECIFIED = 0, + PARTIAL = 1, + FINAL = 2 + } + } - /** ListIntentsResponse nextPageToken */ - nextPageToken?: (string|null); + /** Properties of a StreamingDetectIntentRequest. */ + interface IStreamingDetectIntentRequest { + + /** StreamingDetectIntentRequest session */ + session?: (string|null); + + /** StreamingDetectIntentRequest queryParams */ + queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); + + /** StreamingDetectIntentRequest queryInput */ + queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); + + /** StreamingDetectIntentRequest outputAudioConfig */ + outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); + + /** StreamingDetectIntentRequest enablePartialResponse */ + enablePartialResponse?: (boolean|null); } - /** Represents a ListIntentsResponse. */ - class ListIntentsResponse implements IListIntentsResponse { + /** Represents a StreamingDetectIntentRequest. */ + class StreamingDetectIntentRequest implements IStreamingDetectIntentRequest { /** - * Constructs a new ListIntentsResponse. + * Constructs a new StreamingDetectIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListIntentsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest); - /** ListIntentsResponse intents. */ - public intents: google.cloud.dialogflow.cx.v3.IIntent[]; + /** StreamingDetectIntentRequest session. */ + public session: string; - /** ListIntentsResponse nextPageToken. */ - public nextPageToken: string; + /** StreamingDetectIntentRequest queryParams. */ + public queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); + + /** StreamingDetectIntentRequest queryInput. */ + public queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); + + /** StreamingDetectIntentRequest outputAudioConfig. */ + public outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); + + /** StreamingDetectIntentRequest enablePartialResponse. */ + public enablePartialResponse: boolean; /** - * Creates a new ListIntentsResponse instance using the specified properties. + * Creates a new StreamingDetectIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListIntentsResponse instance + * @returns StreamingDetectIntentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListIntentsResponse): google.cloud.dialogflow.cx.v3.ListIntentsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest): google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest; /** - * Encodes the specified ListIntentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsResponse.verify|verify} messages. - * @param message ListIntentsResponse message or plain object to encode + * Encodes the specified StreamingDetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.verify|verify} messages. + * @param message StreamingDetectIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListIntentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListIntentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsResponse.verify|verify} messages. - * @param message ListIntentsResponse message or plain object to encode + * Encodes the specified StreamingDetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.verify|verify} messages. + * @param message StreamingDetectIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListIntentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListIntentsResponse message from the specified reader or buffer. + * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListIntentsResponse + * @returns StreamingDetectIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListIntentsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest; /** - * Decodes a ListIntentsResponse message from the specified reader or buffer, length delimited. + * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListIntentsResponse + * @returns StreamingDetectIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListIntentsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest; /** - * Verifies a ListIntentsResponse message. + * Verifies a StreamingDetectIntentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListIntentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingDetectIntentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListIntentsResponse + * @returns StreamingDetectIntentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListIntentsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest; /** - * Creates a plain object from a ListIntentsResponse message. Also converts values to other types if specified. - * @param message ListIntentsResponse + * Creates a plain object from a StreamingDetectIntentRequest message. Also converts values to other types if specified. + * @param message StreamingDetectIntentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListIntentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListIntentsResponse to JSON. + * Converts this StreamingDetectIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetIntentRequest. */ - interface IGetIntentRequest { + /** Properties of a StreamingDetectIntentResponse. */ + interface IStreamingDetectIntentResponse { - /** GetIntentRequest name */ - name?: (string|null); + /** StreamingDetectIntentResponse recognitionResult */ + recognitionResult?: (google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult|null); - /** GetIntentRequest languageCode */ - languageCode?: (string|null); + /** StreamingDetectIntentResponse detectIntentResponse */ + detectIntentResponse?: (google.cloud.dialogflow.cx.v3.IDetectIntentResponse|null); } - /** Represents a GetIntentRequest. */ - class GetIntentRequest implements IGetIntentRequest { + /** Represents a StreamingDetectIntentResponse. */ + class StreamingDetectIntentResponse implements IStreamingDetectIntentResponse { /** - * Constructs a new GetIntentRequest. + * Constructs a new StreamingDetectIntentResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetIntentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse); - /** GetIntentRequest name. */ - public name: string; + /** StreamingDetectIntentResponse recognitionResult. */ + public recognitionResult?: (google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult|null); - /** GetIntentRequest languageCode. */ - public languageCode: string; + /** StreamingDetectIntentResponse detectIntentResponse. */ + public detectIntentResponse?: (google.cloud.dialogflow.cx.v3.IDetectIntentResponse|null); + + /** StreamingDetectIntentResponse response. */ + public response?: ("recognitionResult"|"detectIntentResponse"); /** - * Creates a new GetIntentRequest instance using the specified properties. + * Creates a new StreamingDetectIntentResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetIntentRequest instance + * @returns StreamingDetectIntentResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IGetIntentRequest): google.cloud.dialogflow.cx.v3.GetIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse): google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse; /** - * Encodes the specified GetIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetIntentRequest.verify|verify} messages. - * @param message GetIntentRequest message or plain object to encode + * Encodes the specified StreamingDetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse.verify|verify} messages. + * @param message StreamingDetectIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IGetIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetIntentRequest.verify|verify} messages. - * @param message GetIntentRequest message or plain object to encode + * Encodes the specified StreamingDetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse.verify|verify} messages. + * @param message StreamingDetectIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetIntentRequest message from the specified reader or buffer. + * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetIntentRequest + * @returns StreamingDetectIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse; /** - * Decodes a GetIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetIntentRequest + * @returns StreamingDetectIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse; /** - * Verifies a GetIntentRequest message. + * Verifies a StreamingDetectIntentResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingDetectIntentResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetIntentRequest + * @returns StreamingDetectIntentResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse; /** - * Creates a plain object from a GetIntentRequest message. Also converts values to other types if specified. - * @param message GetIntentRequest + * Creates a plain object from a StreamingDetectIntentResponse message. Also converts values to other types if specified. + * @param message StreamingDetectIntentResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.GetIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetIntentRequest to JSON. + * Converts this StreamingDetectIntentResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateIntentRequest. */ - interface ICreateIntentRequest { + /** Properties of a StreamingRecognitionResult. */ + interface IStreamingRecognitionResult { - /** CreateIntentRequest parent */ - parent?: (string|null); + /** StreamingRecognitionResult messageType */ + messageType?: (google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType|keyof typeof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType|null); - /** CreateIntentRequest intent */ - intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); + /** StreamingRecognitionResult transcript */ + transcript?: (string|null); - /** CreateIntentRequest languageCode */ + /** StreamingRecognitionResult isFinal */ + isFinal?: (boolean|null); + + /** StreamingRecognitionResult confidence */ + confidence?: (number|null); + + /** StreamingRecognitionResult stability */ + stability?: (number|null); + + /** StreamingRecognitionResult speechWordInfo */ + speechWordInfo?: (google.cloud.dialogflow.cx.v3.ISpeechWordInfo[]|null); + + /** StreamingRecognitionResult speechEndOffset */ + speechEndOffset?: (google.protobuf.IDuration|null); + + /** StreamingRecognitionResult languageCode */ languageCode?: (string|null); } - /** Represents a CreateIntentRequest. */ - class CreateIntentRequest implements ICreateIntentRequest { + /** Represents a StreamingRecognitionResult. */ + class StreamingRecognitionResult implements IStreamingRecognitionResult { /** - * Constructs a new CreateIntentRequest. + * Constructs a new StreamingRecognitionResult. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateIntentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult); - /** CreateIntentRequest parent. */ - public parent: string; + /** StreamingRecognitionResult messageType. */ + public messageType: (google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType|keyof typeof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType); - /** CreateIntentRequest intent. */ - public intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); + /** StreamingRecognitionResult transcript. */ + public transcript: string; - /** CreateIntentRequest languageCode. */ + /** StreamingRecognitionResult isFinal. */ + public isFinal: boolean; + + /** StreamingRecognitionResult confidence. */ + public confidence: number; + + /** StreamingRecognitionResult stability. */ + public stability: number; + + /** StreamingRecognitionResult speechWordInfo. */ + public speechWordInfo: google.cloud.dialogflow.cx.v3.ISpeechWordInfo[]; + + /** StreamingRecognitionResult speechEndOffset. */ + public speechEndOffset?: (google.protobuf.IDuration|null); + + /** StreamingRecognitionResult languageCode. */ public languageCode: string; /** - * Creates a new CreateIntentRequest instance using the specified properties. + * Creates a new StreamingRecognitionResult instance using the specified properties. * @param [properties] Properties to set - * @returns CreateIntentRequest instance + * @returns StreamingRecognitionResult instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateIntentRequest): google.cloud.dialogflow.cx.v3.CreateIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult): google.cloud.dialogflow.cx.v3.StreamingRecognitionResult; /** - * Encodes the specified CreateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateIntentRequest.verify|verify} messages. - * @param message CreateIntentRequest message or plain object to encode + * Encodes the specified StreamingRecognitionResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.verify|verify} messages. + * @param message StreamingRecognitionResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ICreateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateIntentRequest.verify|verify} messages. - * @param message CreateIntentRequest message or plain object to encode + * Encodes the specified StreamingRecognitionResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.verify|verify} messages. + * @param message StreamingRecognitionResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateIntentRequest message from the specified reader or buffer. + * Decodes a StreamingRecognitionResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateIntentRequest + * @returns StreamingRecognitionResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.StreamingRecognitionResult; /** - * Decodes a CreateIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a StreamingRecognitionResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateIntentRequest + * @returns StreamingRecognitionResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.StreamingRecognitionResult; /** - * Verifies a CreateIntentRequest message. + * Verifies a StreamingRecognitionResult message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingRecognitionResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateIntentRequest + * @returns StreamingRecognitionResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.StreamingRecognitionResult; /** - * Creates a plain object from a CreateIntentRequest message. Also converts values to other types if specified. - * @param message CreateIntentRequest + * Creates a plain object from a StreamingRecognitionResult message. Also converts values to other types if specified. + * @param message StreamingRecognitionResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.CreateIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.StreamingRecognitionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateIntentRequest to JSON. + * Converts this StreamingRecognitionResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateIntentRequest. */ - interface IUpdateIntentRequest { + namespace StreamingRecognitionResult { - /** UpdateIntentRequest intent */ - intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); + /** MessageType enum. */ + enum MessageType { + MESSAGE_TYPE_UNSPECIFIED = 0, + TRANSCRIPT = 1, + END_OF_SINGLE_UTTERANCE = 2 + } + } - /** UpdateIntentRequest languageCode */ - languageCode?: (string|null); + /** Properties of a QueryParameters. */ + interface IQueryParameters { - /** UpdateIntentRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** QueryParameters timeZone */ + timeZone?: (string|null); + + /** QueryParameters geoLocation */ + geoLocation?: (google.type.ILatLng|null); + + /** QueryParameters sessionEntityTypes */ + sessionEntityTypes?: (google.cloud.dialogflow.cx.v3.ISessionEntityType[]|null); + + /** QueryParameters payload */ + payload?: (google.protobuf.IStruct|null); + + /** QueryParameters parameters */ + parameters?: (google.protobuf.IStruct|null); + + /** QueryParameters currentPage */ + currentPage?: (string|null); + + /** QueryParameters disableWebhook */ + disableWebhook?: (boolean|null); + + /** QueryParameters analyzeQueryTextSentiment */ + analyzeQueryTextSentiment?: (boolean|null); + + /** QueryParameters webhookHeaders */ + webhookHeaders?: ({ [k: string]: string }|null); + + /** QueryParameters flowVersions */ + flowVersions?: (string[]|null); } - /** Represents an UpdateIntentRequest. */ - class UpdateIntentRequest implements IUpdateIntentRequest { + /** Represents a QueryParameters. */ + class QueryParameters implements IQueryParameters { /** - * Constructs a new UpdateIntentRequest. + * Constructs a new QueryParameters. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateIntentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IQueryParameters); - /** UpdateIntentRequest intent. */ - public intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); + /** QueryParameters timeZone. */ + public timeZone: string; - /** UpdateIntentRequest languageCode. */ - public languageCode: string; + /** QueryParameters geoLocation. */ + public geoLocation?: (google.type.ILatLng|null); - /** UpdateIntentRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** QueryParameters sessionEntityTypes. */ + public sessionEntityTypes: google.cloud.dialogflow.cx.v3.ISessionEntityType[]; + + /** QueryParameters payload. */ + public payload?: (google.protobuf.IStruct|null); + + /** QueryParameters parameters. */ + public parameters?: (google.protobuf.IStruct|null); + + /** QueryParameters currentPage. */ + public currentPage: string; + + /** QueryParameters disableWebhook. */ + public disableWebhook: boolean; + + /** QueryParameters analyzeQueryTextSentiment. */ + public analyzeQueryTextSentiment: boolean; + + /** QueryParameters webhookHeaders. */ + public webhookHeaders: { [k: string]: string }; + + /** QueryParameters flowVersions. */ + public flowVersions: string[]; /** - * Creates a new UpdateIntentRequest instance using the specified properties. + * Creates a new QueryParameters instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateIntentRequest instance + * @returns QueryParameters instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateIntentRequest): google.cloud.dialogflow.cx.v3.UpdateIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IQueryParameters): google.cloud.dialogflow.cx.v3.QueryParameters; /** - * Encodes the specified UpdateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateIntentRequest.verify|verify} messages. - * @param message UpdateIntentRequest message or plain object to encode + * Encodes the specified QueryParameters message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryParameters.verify|verify} messages. + * @param message QueryParameters message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IQueryParameters, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateIntentRequest.verify|verify} messages. - * @param message UpdateIntentRequest message or plain object to encode + * Encodes the specified QueryParameters message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryParameters.verify|verify} messages. + * @param message QueryParameters message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IQueryParameters, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateIntentRequest message from the specified reader or buffer. + * Decodes a QueryParameters message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateIntentRequest + * @returns QueryParameters * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.QueryParameters; /** - * Decodes an UpdateIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryParameters message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateIntentRequest + * @returns QueryParameters * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.QueryParameters; /** - * Verifies an UpdateIntentRequest message. + * Verifies a QueryParameters message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryParameters message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateIntentRequest + * @returns QueryParameters */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.QueryParameters; /** - * Creates a plain object from an UpdateIntentRequest message. Also converts values to other types if specified. - * @param message UpdateIntentRequest + * Creates a plain object from a QueryParameters message. Also converts values to other types if specified. + * @param message QueryParameters * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.QueryParameters, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateIntentRequest to JSON. + * Converts this QueryParameters to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteIntentRequest. */ - interface IDeleteIntentRequest { + /** Properties of a QueryInput. */ + interface IQueryInput { - /** DeleteIntentRequest name */ - name?: (string|null); + /** QueryInput text */ + text?: (google.cloud.dialogflow.cx.v3.ITextInput|null); + + /** QueryInput intent */ + intent?: (google.cloud.dialogflow.cx.v3.IIntentInput|null); + + /** QueryInput audio */ + audio?: (google.cloud.dialogflow.cx.v3.IAudioInput|null); + + /** QueryInput event */ + event?: (google.cloud.dialogflow.cx.v3.IEventInput|null); + + /** QueryInput dtmf */ + dtmf?: (google.cloud.dialogflow.cx.v3.IDtmfInput|null); + + /** QueryInput languageCode */ + languageCode?: (string|null); } - /** Represents a DeleteIntentRequest. */ - class DeleteIntentRequest implements IDeleteIntentRequest { + /** Represents a QueryInput. */ + class QueryInput implements IQueryInput { /** - * Constructs a new DeleteIntentRequest. + * Constructs a new QueryInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteIntentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IQueryInput); - /** DeleteIntentRequest name. */ - public name: string; + /** QueryInput text. */ + public text?: (google.cloud.dialogflow.cx.v3.ITextInput|null); + + /** QueryInput intent. */ + public intent?: (google.cloud.dialogflow.cx.v3.IIntentInput|null); + + /** QueryInput audio. */ + public audio?: (google.cloud.dialogflow.cx.v3.IAudioInput|null); + + /** QueryInput event. */ + public event?: (google.cloud.dialogflow.cx.v3.IEventInput|null); + + /** QueryInput dtmf. */ + public dtmf?: (google.cloud.dialogflow.cx.v3.IDtmfInput|null); + + /** QueryInput languageCode. */ + public languageCode: string; + + /** QueryInput input. */ + public input?: ("text"|"intent"|"audio"|"event"|"dtmf"); /** - * Creates a new DeleteIntentRequest instance using the specified properties. + * Creates a new QueryInput instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteIntentRequest instance + * @returns QueryInput instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteIntentRequest): google.cloud.dialogflow.cx.v3.DeleteIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IQueryInput): google.cloud.dialogflow.cx.v3.QueryInput; /** - * Encodes the specified DeleteIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteIntentRequest.verify|verify} messages. - * @param message DeleteIntentRequest message or plain object to encode + * Encodes the specified QueryInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryInput.verify|verify} messages. + * @param message QueryInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IQueryInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteIntentRequest.verify|verify} messages. - * @param message DeleteIntentRequest message or plain object to encode + * Encodes the specified QueryInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryInput.verify|verify} messages. + * @param message QueryInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IQueryInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteIntentRequest message from the specified reader or buffer. + * Decodes a QueryInput message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteIntentRequest + * @returns QueryInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.QueryInput; /** - * Decodes a DeleteIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryInput message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteIntentRequest + * @returns QueryInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.QueryInput; /** - * Verifies a DeleteIntentRequest message. + * Verifies a QueryInput message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryInput message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteIntentRequest + * @returns QueryInput */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.QueryInput; /** - * Creates a plain object from a DeleteIntentRequest message. Also converts values to other types if specified. - * @param message DeleteIntentRequest + * Creates a plain object from a QueryInput message. Also converts values to other types if specified. + * @param message QueryInput * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.QueryInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteIntentRequest to JSON. + * Converts this QueryInput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** IntentView enum. */ - enum IntentView { - INTENT_VIEW_UNSPECIFIED = 0, - INTENT_VIEW_PARTIAL = 1, - INTENT_VIEW_FULL = 2 - } + /** Properties of a QueryResult. */ + interface IQueryResult { - /** Represents a Sessions */ - class Sessions extends $protobuf.rpc.Service { + /** QueryResult text */ + text?: (string|null); - /** - * Constructs a new Sessions service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** QueryResult triggerIntent */ + triggerIntent?: (string|null); - /** - * Creates new Sessions service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Sessions; + /** QueryResult transcript */ + transcript?: (string|null); - /** - * Calls DetectIntent. - * @param request DetectIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DetectIntentResponse - */ - public detectIntent(request: google.cloud.dialogflow.cx.v3.IDetectIntentRequest, callback: google.cloud.dialogflow.cx.v3.Sessions.DetectIntentCallback): void; + /** QueryResult triggerEvent */ + triggerEvent?: (string|null); - /** - * Calls DetectIntent. - * @param request DetectIntentRequest message or plain object - * @returns Promise - */ - public detectIntent(request: google.cloud.dialogflow.cx.v3.IDetectIntentRequest): Promise; + /** QueryResult dtmf */ + dtmf?: (google.cloud.dialogflow.cx.v3.IDtmfInput|null); - /** - * Calls StreamingDetectIntent. - * @param request StreamingDetectIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and StreamingDetectIntentResponse - */ - public streamingDetectIntent(request: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest, callback: google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntentCallback): void; + /** QueryResult languageCode */ + languageCode?: (string|null); - /** - * Calls StreamingDetectIntent. - * @param request StreamingDetectIntentRequest message or plain object - * @returns Promise - */ - public streamingDetectIntent(request: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest): Promise; + /** QueryResult parameters */ + parameters?: (google.protobuf.IStruct|null); - /** - * Calls MatchIntent. - * @param request MatchIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and MatchIntentResponse - */ - public matchIntent(request: google.cloud.dialogflow.cx.v3.IMatchIntentRequest, callback: google.cloud.dialogflow.cx.v3.Sessions.MatchIntentCallback): void; + /** QueryResult responseMessages */ + responseMessages?: (google.cloud.dialogflow.cx.v3.IResponseMessage[]|null); - /** - * Calls MatchIntent. - * @param request MatchIntentRequest message or plain object - * @returns Promise - */ - public matchIntent(request: google.cloud.dialogflow.cx.v3.IMatchIntentRequest): Promise; + /** QueryResult webhookStatuses */ + webhookStatuses?: (google.rpc.IStatus[]|null); - /** - * Calls FulfillIntent. - * @param request FulfillIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and FulfillIntentResponse - */ - public fulfillIntent(request: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest, callback: google.cloud.dialogflow.cx.v3.Sessions.FulfillIntentCallback): void; + /** QueryResult webhookPayloads */ + webhookPayloads?: (google.protobuf.IStruct[]|null); - /** - * Calls FulfillIntent. - * @param request FulfillIntentRequest message or plain object - * @returns Promise - */ - public fulfillIntent(request: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest): Promise; - } + /** QueryResult currentPage */ + currentPage?: (google.cloud.dialogflow.cx.v3.IPage|null); - namespace Sessions { + /** QueryResult intent */ + intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#detectIntent}. - * @param error Error, if any - * @param [response] DetectIntentResponse - */ - type DetectIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.DetectIntentResponse) => void; + /** QueryResult intentDetectionConfidence */ + intentDetectionConfidence?: (number|null); - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#streamingDetectIntent}. - * @param error Error, if any - * @param [response] StreamingDetectIntentResponse - */ - type StreamingDetectIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse) => void; + /** QueryResult match */ + match?: (google.cloud.dialogflow.cx.v3.IMatch|null); - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#matchIntent}. - * @param error Error, if any - * @param [response] MatchIntentResponse - */ - type MatchIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.MatchIntentResponse) => void; + /** QueryResult diagnosticInfo */ + diagnosticInfo?: (google.protobuf.IStruct|null); + + /** QueryResult sentimentAnalysisResult */ + sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult|null); + } + + /** Represents a QueryResult. */ + class QueryResult implements IQueryResult { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#fulfillIntent}. - * @param error Error, if any - * @param [response] FulfillIntentResponse + * Constructs a new QueryResult. + * @param [properties] Properties to set */ - type FulfillIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.FulfillIntentResponse) => void; - } + constructor(properties?: google.cloud.dialogflow.cx.v3.IQueryResult); - /** Properties of a DetectIntentRequest. */ - interface IDetectIntentRequest { + /** QueryResult text. */ + public text?: (string|null); - /** DetectIntentRequest session */ - session?: (string|null); + /** QueryResult triggerIntent. */ + public triggerIntent?: (string|null); - /** DetectIntentRequest queryParams */ - queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); + /** QueryResult transcript. */ + public transcript?: (string|null); - /** DetectIntentRequest queryInput */ - queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); + /** QueryResult triggerEvent. */ + public triggerEvent?: (string|null); - /** DetectIntentRequest outputAudioConfig */ - outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); - } + /** QueryResult dtmf. */ + public dtmf?: (google.cloud.dialogflow.cx.v3.IDtmfInput|null); - /** Represents a DetectIntentRequest. */ - class DetectIntentRequest implements IDetectIntentRequest { + /** QueryResult languageCode. */ + public languageCode: string; - /** - * Constructs a new DetectIntentRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDetectIntentRequest); + /** QueryResult parameters. */ + public parameters?: (google.protobuf.IStruct|null); - /** DetectIntentRequest session. */ - public session: string; + /** QueryResult responseMessages. */ + public responseMessages: google.cloud.dialogflow.cx.v3.IResponseMessage[]; - /** DetectIntentRequest queryParams. */ - public queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); + /** QueryResult webhookStatuses. */ + public webhookStatuses: google.rpc.IStatus[]; - /** DetectIntentRequest queryInput. */ - public queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); + /** QueryResult webhookPayloads. */ + public webhookPayloads: google.protobuf.IStruct[]; - /** DetectIntentRequest outputAudioConfig. */ - public outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); + /** QueryResult currentPage. */ + public currentPage?: (google.cloud.dialogflow.cx.v3.IPage|null); + + /** QueryResult intent. */ + public intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); + + /** QueryResult intentDetectionConfidence. */ + public intentDetectionConfidence: number; + + /** QueryResult match. */ + public match?: (google.cloud.dialogflow.cx.v3.IMatch|null); + + /** QueryResult diagnosticInfo. */ + public diagnosticInfo?: (google.protobuf.IStruct|null); + + /** QueryResult sentimentAnalysisResult. */ + public sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult|null); + + /** QueryResult query. */ + public query?: ("text"|"triggerIntent"|"transcript"|"triggerEvent"|"dtmf"); /** - * Creates a new DetectIntentRequest instance using the specified properties. + * Creates a new QueryResult instance using the specified properties. * @param [properties] Properties to set - * @returns DetectIntentRequest instance + * @returns QueryResult instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IDetectIntentRequest): google.cloud.dialogflow.cx.v3.DetectIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IQueryResult): google.cloud.dialogflow.cx.v3.QueryResult; /** - * Encodes the specified DetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentRequest.verify|verify} messages. - * @param message DetectIntentRequest message or plain object to encode + * Encodes the specified QueryResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryResult.verify|verify} messages. + * @param message QueryResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentRequest.verify|verify} messages. - * @param message DetectIntentRequest message or plain object to encode + * Encodes the specified QueryResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryResult.verify|verify} messages. + * @param message QueryResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DetectIntentRequest message from the specified reader or buffer. + * Decodes a QueryResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DetectIntentRequest + * @returns QueryResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DetectIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.QueryResult; /** - * Decodes a DetectIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DetectIntentRequest + * @returns QueryResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DetectIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.QueryResult; /** - * Verifies a DetectIntentRequest message. + * Verifies a QueryResult message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DetectIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DetectIntentRequest + * @returns QueryResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DetectIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.QueryResult; /** - * Creates a plain object from a DetectIntentRequest message. Also converts values to other types if specified. - * @param message DetectIntentRequest + * Creates a plain object from a QueryResult message. Also converts values to other types if specified. + * @param message QueryResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.DetectIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.QueryResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DetectIntentRequest to JSON. + * Converts this QueryResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DetectIntentResponse. */ - interface IDetectIntentResponse { - - /** DetectIntentResponse responseId */ - responseId?: (string|null); - - /** DetectIntentResponse queryResult */ - queryResult?: (google.cloud.dialogflow.cx.v3.IQueryResult|null); - - /** DetectIntentResponse outputAudio */ - outputAudio?: (Uint8Array|string|null); - - /** DetectIntentResponse outputAudioConfig */ - outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); - - /** DetectIntentResponse responseType */ - responseType?: (google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType|keyof typeof google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType|null); + /** Properties of a TextInput. */ + interface ITextInput { - /** DetectIntentResponse allowCancellation */ - allowCancellation?: (boolean|null); + /** TextInput text */ + text?: (string|null); } - /** Represents a DetectIntentResponse. */ - class DetectIntentResponse implements IDetectIntentResponse { + /** Represents a TextInput. */ + class TextInput implements ITextInput { /** - * Constructs a new DetectIntentResponse. + * Constructs a new TextInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDetectIntentResponse); - - /** DetectIntentResponse responseId. */ - public responseId: string; - - /** DetectIntentResponse queryResult. */ - public queryResult?: (google.cloud.dialogflow.cx.v3.IQueryResult|null); - - /** DetectIntentResponse outputAudio. */ - public outputAudio: (Uint8Array|string); - - /** DetectIntentResponse outputAudioConfig. */ - public outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); - - /** DetectIntentResponse responseType. */ - public responseType: (google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType|keyof typeof google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType); + constructor(properties?: google.cloud.dialogflow.cx.v3.ITextInput); - /** DetectIntentResponse allowCancellation. */ - public allowCancellation: boolean; + /** TextInput text. */ + public text: string; /** - * Creates a new DetectIntentResponse instance using the specified properties. + * Creates a new TextInput instance using the specified properties. * @param [properties] Properties to set - * @returns DetectIntentResponse instance + * @returns TextInput instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IDetectIntentResponse): google.cloud.dialogflow.cx.v3.DetectIntentResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.ITextInput): google.cloud.dialogflow.cx.v3.TextInput; /** - * Encodes the specified DetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentResponse.verify|verify} messages. - * @param message DetectIntentResponse message or plain object to encode + * Encodes the specified TextInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TextInput.verify|verify} messages. + * @param message TextInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ITextInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentResponse.verify|verify} messages. - * @param message DetectIntentResponse message or plain object to encode + * Encodes the specified TextInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TextInput.verify|verify} messages. + * @param message TextInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITextInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DetectIntentResponse message from the specified reader or buffer. + * Decodes a TextInput message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DetectIntentResponse + * @returns TextInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DetectIntentResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TextInput; /** - * Decodes a DetectIntentResponse message from the specified reader or buffer, length delimited. + * Decodes a TextInput message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DetectIntentResponse + * @returns TextInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DetectIntentResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TextInput; /** - * Verifies a DetectIntentResponse message. + * Verifies a TextInput message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DetectIntentResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TextInput message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DetectIntentResponse + * @returns TextInput */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DetectIntentResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TextInput; /** - * Creates a plain object from a DetectIntentResponse message. Also converts values to other types if specified. - * @param message DetectIntentResponse + * Creates a plain object from a TextInput message. Also converts values to other types if specified. + * @param message TextInput * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.DetectIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.TextInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DetectIntentResponse to JSON. + * Converts this TextInput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace DetectIntentResponse { - - /** ResponseType enum. */ - enum ResponseType { - RESPONSE_TYPE_UNSPECIFIED = 0, - PARTIAL = 1, - FINAL = 2 - } - } - - /** Properties of a StreamingDetectIntentRequest. */ - interface IStreamingDetectIntentRequest { - - /** StreamingDetectIntentRequest session */ - session?: (string|null); - - /** StreamingDetectIntentRequest queryParams */ - queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); - - /** StreamingDetectIntentRequest queryInput */ - queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); - - /** StreamingDetectIntentRequest outputAudioConfig */ - outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); + /** Properties of an IntentInput. */ + interface IIntentInput { - /** StreamingDetectIntentRequest enablePartialResponse */ - enablePartialResponse?: (boolean|null); + /** IntentInput intent */ + intent?: (string|null); } - /** Represents a StreamingDetectIntentRequest. */ - class StreamingDetectIntentRequest implements IStreamingDetectIntentRequest { + /** Represents an IntentInput. */ + class IntentInput implements IIntentInput { /** - * Constructs a new StreamingDetectIntentRequest. + * Constructs a new IntentInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest); - - /** StreamingDetectIntentRequest session. */ - public session: string; - - /** StreamingDetectIntentRequest queryParams. */ - public queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); - - /** StreamingDetectIntentRequest queryInput. */ - public queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); - - /** StreamingDetectIntentRequest outputAudioConfig. */ - public outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); + constructor(properties?: google.cloud.dialogflow.cx.v3.IIntentInput); - /** StreamingDetectIntentRequest enablePartialResponse. */ - public enablePartialResponse: boolean; + /** IntentInput intent. */ + public intent: string; /** - * Creates a new StreamingDetectIntentRequest instance using the specified properties. + * Creates a new IntentInput instance using the specified properties. * @param [properties] Properties to set - * @returns StreamingDetectIntentRequest instance + * @returns IntentInput instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest): google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IIntentInput): google.cloud.dialogflow.cx.v3.IntentInput; /** - * Encodes the specified StreamingDetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.verify|verify} messages. - * @param message StreamingDetectIntentRequest message or plain object to encode + * Encodes the specified IntentInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentInput.verify|verify} messages. + * @param message IntentInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IIntentInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StreamingDetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.verify|verify} messages. - * @param message StreamingDetectIntentRequest message or plain object to encode + * Encodes the specified IntentInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentInput.verify|verify} messages. + * @param message IntentInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IIntentInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer. + * Decodes an IntentInput message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StreamingDetectIntentRequest + * @returns IntentInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.IntentInput; /** - * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer, length delimited. + * Decodes an IntentInput message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StreamingDetectIntentRequest + * @returns IntentInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.IntentInput; /** - * Verifies a StreamingDetectIntentRequest message. + * Verifies an IntentInput message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StreamingDetectIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates an IntentInput message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StreamingDetectIntentRequest + * @returns IntentInput */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.IntentInput; /** - * Creates a plain object from a StreamingDetectIntentRequest message. Also converts values to other types if specified. - * @param message StreamingDetectIntentRequest + * Creates a plain object from an IntentInput message. Also converts values to other types if specified. + * @param message IntentInput * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.IntentInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StreamingDetectIntentRequest to JSON. + * Converts this IntentInput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a StreamingDetectIntentResponse. */ - interface IStreamingDetectIntentResponse { + /** Properties of an AudioInput. */ + interface IAudioInput { - /** StreamingDetectIntentResponse recognitionResult */ - recognitionResult?: (google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult|null); + /** AudioInput config */ + config?: (google.cloud.dialogflow.cx.v3.IInputAudioConfig|null); - /** StreamingDetectIntentResponse detectIntentResponse */ - detectIntentResponse?: (google.cloud.dialogflow.cx.v3.IDetectIntentResponse|null); + /** AudioInput audio */ + audio?: (Uint8Array|string|null); } - /** Represents a StreamingDetectIntentResponse. */ - class StreamingDetectIntentResponse implements IStreamingDetectIntentResponse { + /** Represents an AudioInput. */ + class AudioInput implements IAudioInput { /** - * Constructs a new StreamingDetectIntentResponse. + * Constructs a new AudioInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse); - - /** StreamingDetectIntentResponse recognitionResult. */ - public recognitionResult?: (google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult|null); + constructor(properties?: google.cloud.dialogflow.cx.v3.IAudioInput); - /** StreamingDetectIntentResponse detectIntentResponse. */ - public detectIntentResponse?: (google.cloud.dialogflow.cx.v3.IDetectIntentResponse|null); + /** AudioInput config. */ + public config?: (google.cloud.dialogflow.cx.v3.IInputAudioConfig|null); - /** StreamingDetectIntentResponse response. */ - public response?: ("recognitionResult"|"detectIntentResponse"); + /** AudioInput audio. */ + public audio: (Uint8Array|string); /** - * Creates a new StreamingDetectIntentResponse instance using the specified properties. + * Creates a new AudioInput instance using the specified properties. * @param [properties] Properties to set - * @returns StreamingDetectIntentResponse instance + * @returns AudioInput instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse): google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IAudioInput): google.cloud.dialogflow.cx.v3.AudioInput; /** - * Encodes the specified StreamingDetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse.verify|verify} messages. - * @param message StreamingDetectIntentResponse message or plain object to encode + * Encodes the specified AudioInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.AudioInput.verify|verify} messages. + * @param message AudioInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IAudioInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StreamingDetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse.verify|verify} messages. - * @param message StreamingDetectIntentResponse message or plain object to encode + * Encodes the specified AudioInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.AudioInput.verify|verify} messages. + * @param message AudioInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IAudioInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer. + * Decodes an AudioInput message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StreamingDetectIntentResponse + * @returns AudioInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.AudioInput; /** - * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer, length delimited. + * Decodes an AudioInput message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StreamingDetectIntentResponse + * @returns AudioInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.AudioInput; /** - * Verifies a StreamingDetectIntentResponse message. + * Verifies an AudioInput message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StreamingDetectIntentResponse message from a plain object. Also converts values to their respective internal types. + * Creates an AudioInput message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StreamingDetectIntentResponse + * @returns AudioInput */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.AudioInput; /** - * Creates a plain object from a StreamingDetectIntentResponse message. Also converts values to other types if specified. - * @param message StreamingDetectIntentResponse + * Creates a plain object from an AudioInput message. Also converts values to other types if specified. + * @param message AudioInput * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.AudioInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StreamingDetectIntentResponse to JSON. + * Converts this AudioInput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a StreamingRecognitionResult. */ - interface IStreamingRecognitionResult { - - /** StreamingRecognitionResult messageType */ - messageType?: (google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType|keyof typeof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType|null); - - /** StreamingRecognitionResult transcript */ - transcript?: (string|null); - - /** StreamingRecognitionResult isFinal */ - isFinal?: (boolean|null); - - /** StreamingRecognitionResult confidence */ - confidence?: (number|null); - - /** StreamingRecognitionResult stability */ - stability?: (number|null); - - /** StreamingRecognitionResult speechWordInfo */ - speechWordInfo?: (google.cloud.dialogflow.cx.v3.ISpeechWordInfo[]|null); - - /** StreamingRecognitionResult speechEndOffset */ - speechEndOffset?: (google.protobuf.IDuration|null); + /** Properties of an EventInput. */ + interface IEventInput { - /** StreamingRecognitionResult languageCode */ - languageCode?: (string|null); + /** EventInput event */ + event?: (string|null); } - /** Represents a StreamingRecognitionResult. */ - class StreamingRecognitionResult implements IStreamingRecognitionResult { + /** Represents an EventInput. */ + class EventInput implements IEventInput { /** - * Constructs a new StreamingRecognitionResult. + * Constructs a new EventInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult); - - /** StreamingRecognitionResult messageType. */ - public messageType: (google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType|keyof typeof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType); - - /** StreamingRecognitionResult transcript. */ - public transcript: string; - - /** StreamingRecognitionResult isFinal. */ - public isFinal: boolean; - - /** StreamingRecognitionResult confidence. */ - public confidence: number; - - /** StreamingRecognitionResult stability. */ - public stability: number; - - /** StreamingRecognitionResult speechWordInfo. */ - public speechWordInfo: google.cloud.dialogflow.cx.v3.ISpeechWordInfo[]; - - /** StreamingRecognitionResult speechEndOffset. */ - public speechEndOffset?: (google.protobuf.IDuration|null); + constructor(properties?: google.cloud.dialogflow.cx.v3.IEventInput); - /** StreamingRecognitionResult languageCode. */ - public languageCode: string; + /** EventInput event. */ + public event: string; /** - * Creates a new StreamingRecognitionResult instance using the specified properties. + * Creates a new EventInput instance using the specified properties. * @param [properties] Properties to set - * @returns StreamingRecognitionResult instance + * @returns EventInput instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult): google.cloud.dialogflow.cx.v3.StreamingRecognitionResult; + public static create(properties?: google.cloud.dialogflow.cx.v3.IEventInput): google.cloud.dialogflow.cx.v3.EventInput; /** - * Encodes the specified StreamingRecognitionResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.verify|verify} messages. - * @param message StreamingRecognitionResult message or plain object to encode + * Encodes the specified EventInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EventInput.verify|verify} messages. + * @param message EventInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IEventInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StreamingRecognitionResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.verify|verify} messages. - * @param message StreamingRecognitionResult message or plain object to encode + * Encodes the specified EventInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EventInput.verify|verify} messages. + * @param message EventInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IEventInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StreamingRecognitionResult message from the specified reader or buffer. + * Decodes an EventInput message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StreamingRecognitionResult + * @returns EventInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.StreamingRecognitionResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.EventInput; /** - * Decodes a StreamingRecognitionResult message from the specified reader or buffer, length delimited. + * Decodes an EventInput message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StreamingRecognitionResult + * @returns EventInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.StreamingRecognitionResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.EventInput; /** - * Verifies a StreamingRecognitionResult message. + * Verifies an EventInput message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StreamingRecognitionResult message from a plain object. Also converts values to their respective internal types. + * Creates an EventInput message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StreamingRecognitionResult + * @returns EventInput */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.StreamingRecognitionResult; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.EventInput; /** - * Creates a plain object from a StreamingRecognitionResult message. Also converts values to other types if specified. - * @param message StreamingRecognitionResult + * Creates a plain object from an EventInput message. Also converts values to other types if specified. + * @param message EventInput * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.StreamingRecognitionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.EventInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StreamingRecognitionResult to JSON. + * Converts this EventInput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace StreamingRecognitionResult { - - /** MessageType enum. */ - enum MessageType { - MESSAGE_TYPE_UNSPECIFIED = 0, - TRANSCRIPT = 1, - END_OF_SINGLE_UTTERANCE = 2 - } - } - - /** Properties of a QueryParameters. */ - interface IQueryParameters { - - /** QueryParameters timeZone */ - timeZone?: (string|null); - - /** QueryParameters geoLocation */ - geoLocation?: (google.type.ILatLng|null); - - /** QueryParameters sessionEntityTypes */ - sessionEntityTypes?: (google.cloud.dialogflow.cx.v3.ISessionEntityType[]|null); - - /** QueryParameters payload */ - payload?: (google.protobuf.IStruct|null); - - /** QueryParameters parameters */ - parameters?: (google.protobuf.IStruct|null); - - /** QueryParameters currentPage */ - currentPage?: (string|null); - - /** QueryParameters disableWebhook */ - disableWebhook?: (boolean|null); - - /** QueryParameters analyzeQueryTextSentiment */ - analyzeQueryTextSentiment?: (boolean|null); + /** Properties of a DtmfInput. */ + interface IDtmfInput { - /** QueryParameters webhookHeaders */ - webhookHeaders?: ({ [k: string]: string }|null); + /** DtmfInput digits */ + digits?: (string|null); - /** QueryParameters flowVersions */ - flowVersions?: (string[]|null); + /** DtmfInput finishDigit */ + finishDigit?: (string|null); } - /** Represents a QueryParameters. */ - class QueryParameters implements IQueryParameters { + /** Represents a DtmfInput. */ + class DtmfInput implements IDtmfInput { /** - * Constructs a new QueryParameters. + * Constructs a new DtmfInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IQueryParameters); - - /** QueryParameters timeZone. */ - public timeZone: string; - - /** QueryParameters geoLocation. */ - public geoLocation?: (google.type.ILatLng|null); - - /** QueryParameters sessionEntityTypes. */ - public sessionEntityTypes: google.cloud.dialogflow.cx.v3.ISessionEntityType[]; - - /** QueryParameters payload. */ - public payload?: (google.protobuf.IStruct|null); - - /** QueryParameters parameters. */ - public parameters?: (google.protobuf.IStruct|null); - - /** QueryParameters currentPage. */ - public currentPage: string; - - /** QueryParameters disableWebhook. */ - public disableWebhook: boolean; - - /** QueryParameters analyzeQueryTextSentiment. */ - public analyzeQueryTextSentiment: boolean; + constructor(properties?: google.cloud.dialogflow.cx.v3.IDtmfInput); - /** QueryParameters webhookHeaders. */ - public webhookHeaders: { [k: string]: string }; + /** DtmfInput digits. */ + public digits: string; - /** QueryParameters flowVersions. */ - public flowVersions: string[]; + /** DtmfInput finishDigit. */ + public finishDigit: string; /** - * Creates a new QueryParameters instance using the specified properties. + * Creates a new DtmfInput instance using the specified properties. * @param [properties] Properties to set - * @returns QueryParameters instance + * @returns DtmfInput instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IQueryParameters): google.cloud.dialogflow.cx.v3.QueryParameters; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDtmfInput): google.cloud.dialogflow.cx.v3.DtmfInput; /** - * Encodes the specified QueryParameters message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryParameters.verify|verify} messages. - * @param message QueryParameters message or plain object to encode + * Encodes the specified DtmfInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DtmfInput.verify|verify} messages. + * @param message DtmfInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IQueryParameters, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDtmfInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryParameters message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryParameters.verify|verify} messages. - * @param message QueryParameters message or plain object to encode + * Encodes the specified DtmfInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DtmfInput.verify|verify} messages. + * @param message DtmfInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IQueryParameters, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDtmfInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryParameters message from the specified reader or buffer. + * Decodes a DtmfInput message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryParameters + * @returns DtmfInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.QueryParameters; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DtmfInput; /** - * Decodes a QueryParameters message from the specified reader or buffer, length delimited. + * Decodes a DtmfInput message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryParameters + * @returns DtmfInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.QueryParameters; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DtmfInput; /** - * Verifies a QueryParameters message. + * Verifies a DtmfInput message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryParameters message from a plain object. Also converts values to their respective internal types. + * Creates a DtmfInput message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryParameters + * @returns DtmfInput */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.QueryParameters; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DtmfInput; /** - * Creates a plain object from a QueryParameters message. Also converts values to other types if specified. - * @param message QueryParameters + * Creates a plain object from a DtmfInput message. Also converts values to other types if specified. + * @param message DtmfInput * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.QueryParameters, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DtmfInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryParameters to JSON. + * Converts this DtmfInput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryInput. */ - interface IQueryInput { + /** Properties of a Match. */ + interface IMatch { - /** QueryInput text */ - text?: (google.cloud.dialogflow.cx.v3.ITextInput|null); + /** Match intent */ + intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); - /** QueryInput intent */ - intent?: (google.cloud.dialogflow.cx.v3.IIntentInput|null); + /** Match event */ + event?: (string|null); - /** QueryInput audio */ - audio?: (google.cloud.dialogflow.cx.v3.IAudioInput|null); + /** Match parameters */ + parameters?: (google.protobuf.IStruct|null); - /** QueryInput event */ - event?: (google.cloud.dialogflow.cx.v3.IEventInput|null); + /** Match resolvedInput */ + resolvedInput?: (string|null); - /** QueryInput dtmf */ - dtmf?: (google.cloud.dialogflow.cx.v3.IDtmfInput|null); + /** Match matchType */ + matchType?: (google.cloud.dialogflow.cx.v3.Match.MatchType|keyof typeof google.cloud.dialogflow.cx.v3.Match.MatchType|null); - /** QueryInput languageCode */ - languageCode?: (string|null); + /** Match confidence */ + confidence?: (number|null); } - /** Represents a QueryInput. */ - class QueryInput implements IQueryInput { + /** Represents a Match. */ + class Match implements IMatch { /** - * Constructs a new QueryInput. + * Constructs a new Match. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IQueryInput); - - /** QueryInput text. */ - public text?: (google.cloud.dialogflow.cx.v3.ITextInput|null); + constructor(properties?: google.cloud.dialogflow.cx.v3.IMatch); - /** QueryInput intent. */ - public intent?: (google.cloud.dialogflow.cx.v3.IIntentInput|null); + /** Match intent. */ + public intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); - /** QueryInput audio. */ - public audio?: (google.cloud.dialogflow.cx.v3.IAudioInput|null); + /** Match event. */ + public event: string; - /** QueryInput event. */ - public event?: (google.cloud.dialogflow.cx.v3.IEventInput|null); + /** Match parameters. */ + public parameters?: (google.protobuf.IStruct|null); - /** QueryInput dtmf. */ - public dtmf?: (google.cloud.dialogflow.cx.v3.IDtmfInput|null); + /** Match resolvedInput. */ + public resolvedInput: string; - /** QueryInput languageCode. */ - public languageCode: string; + /** Match matchType. */ + public matchType: (google.cloud.dialogflow.cx.v3.Match.MatchType|keyof typeof google.cloud.dialogflow.cx.v3.Match.MatchType); - /** QueryInput input. */ - public input?: ("text"|"intent"|"audio"|"event"|"dtmf"); + /** Match confidence. */ + public confidence: number; /** - * Creates a new QueryInput instance using the specified properties. + * Creates a new Match instance using the specified properties. * @param [properties] Properties to set - * @returns QueryInput instance + * @returns Match instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IQueryInput): google.cloud.dialogflow.cx.v3.QueryInput; + public static create(properties?: google.cloud.dialogflow.cx.v3.IMatch): google.cloud.dialogflow.cx.v3.Match; /** - * Encodes the specified QueryInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryInput.verify|verify} messages. - * @param message QueryInput message or plain object to encode + * Encodes the specified Match message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Match.verify|verify} messages. + * @param message Match message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IQueryInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IMatch, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryInput.verify|verify} messages. - * @param message QueryInput message or plain object to encode + * Encodes the specified Match message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Match.verify|verify} messages. + * @param message Match message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IQueryInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IMatch, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryInput message from the specified reader or buffer. + * Decodes a Match message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryInput + * @returns Match * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.QueryInput; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Match; /** - * Decodes a QueryInput message from the specified reader or buffer, length delimited. + * Decodes a Match message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryInput + * @returns Match * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.QueryInput; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Match; /** - * Verifies a QueryInput message. + * Verifies a Match message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryInput message from a plain object. Also converts values to their respective internal types. + * Creates a Match message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryInput + * @returns Match */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.QueryInput; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Match; /** - * Creates a plain object from a QueryInput message. Also converts values to other types if specified. - * @param message QueryInput + * Creates a plain object from a Match message. Also converts values to other types if specified. + * @param message Match * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.QueryInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Match, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryInput to JSON. + * Converts this Match to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryResult. */ - interface IQueryResult { - - /** QueryResult text */ - text?: (string|null); - - /** QueryResult triggerIntent */ - triggerIntent?: (string|null); - - /** QueryResult transcript */ - transcript?: (string|null); - - /** QueryResult triggerEvent */ - triggerEvent?: (string|null); - - /** QueryResult dtmf */ - dtmf?: (google.cloud.dialogflow.cx.v3.IDtmfInput|null); - - /** QueryResult languageCode */ - languageCode?: (string|null); - - /** QueryResult parameters */ - parameters?: (google.protobuf.IStruct|null); - - /** QueryResult responseMessages */ - responseMessages?: (google.cloud.dialogflow.cx.v3.IResponseMessage[]|null); - - /** QueryResult webhookStatuses */ - webhookStatuses?: (google.rpc.IStatus[]|null); - - /** QueryResult webhookPayloads */ - webhookPayloads?: (google.protobuf.IStruct[]|null); - - /** QueryResult currentPage */ - currentPage?: (google.cloud.dialogflow.cx.v3.IPage|null); + namespace Match { - /** QueryResult intent */ - intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); + /** MatchType enum. */ + enum MatchType { + MATCH_TYPE_UNSPECIFIED = 0, + INTENT = 1, + DIRECT_INTENT = 2, + PARAMETER_FILLING = 3, + NO_MATCH = 4, + NO_INPUT = 5, + EVENT = 6 + } + } - /** QueryResult intentDetectionConfidence */ - intentDetectionConfidence?: (number|null); + /** Properties of a MatchIntentRequest. */ + interface IMatchIntentRequest { - /** QueryResult match */ - match?: (google.cloud.dialogflow.cx.v3.IMatch|null); + /** MatchIntentRequest session */ + session?: (string|null); - /** QueryResult diagnosticInfo */ - diagnosticInfo?: (google.protobuf.IStruct|null); + /** MatchIntentRequest queryParams */ + queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); - /** QueryResult sentimentAnalysisResult */ - sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult|null); + /** MatchIntentRequest queryInput */ + queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); } - /** Represents a QueryResult. */ - class QueryResult implements IQueryResult { + /** Represents a MatchIntentRequest. */ + class MatchIntentRequest implements IMatchIntentRequest { /** - * Constructs a new QueryResult. + * Constructs a new MatchIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IQueryResult); - - /** QueryResult text. */ - public text?: (string|null); - - /** QueryResult triggerIntent. */ - public triggerIntent?: (string|null); - - /** QueryResult transcript. */ - public transcript?: (string|null); - - /** QueryResult triggerEvent. */ - public triggerEvent?: (string|null); - - /** QueryResult dtmf. */ - public dtmf?: (google.cloud.dialogflow.cx.v3.IDtmfInput|null); - - /** QueryResult languageCode. */ - public languageCode: string; - - /** QueryResult parameters. */ - public parameters?: (google.protobuf.IStruct|null); - - /** QueryResult responseMessages. */ - public responseMessages: google.cloud.dialogflow.cx.v3.IResponseMessage[]; - - /** QueryResult webhookStatuses. */ - public webhookStatuses: google.rpc.IStatus[]; - - /** QueryResult webhookPayloads. */ - public webhookPayloads: google.protobuf.IStruct[]; - - /** QueryResult currentPage. */ - public currentPage?: (google.cloud.dialogflow.cx.v3.IPage|null); - - /** QueryResult intent. */ - public intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); - - /** QueryResult intentDetectionConfidence. */ - public intentDetectionConfidence: number; - - /** QueryResult match. */ - public match?: (google.cloud.dialogflow.cx.v3.IMatch|null); + constructor(properties?: google.cloud.dialogflow.cx.v3.IMatchIntentRequest); - /** QueryResult diagnosticInfo. */ - public diagnosticInfo?: (google.protobuf.IStruct|null); + /** MatchIntentRequest session. */ + public session: string; - /** QueryResult sentimentAnalysisResult. */ - public sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult|null); + /** MatchIntentRequest queryParams. */ + public queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); - /** QueryResult query. */ - public query?: ("text"|"triggerIntent"|"transcript"|"triggerEvent"|"dtmf"); + /** MatchIntentRequest queryInput. */ + public queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); /** - * Creates a new QueryResult instance using the specified properties. + * Creates a new MatchIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns QueryResult instance + * @returns MatchIntentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IQueryResult): google.cloud.dialogflow.cx.v3.QueryResult; + public static create(properties?: google.cloud.dialogflow.cx.v3.IMatchIntentRequest): google.cloud.dialogflow.cx.v3.MatchIntentRequest; /** - * Encodes the specified QueryResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryResult.verify|verify} messages. - * @param message QueryResult message or plain object to encode + * Encodes the specified MatchIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentRequest.verify|verify} messages. + * @param message MatchIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IMatchIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryResult.verify|verify} messages. - * @param message QueryResult message or plain object to encode + * Encodes the specified MatchIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentRequest.verify|verify} messages. + * @param message MatchIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IMatchIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryResult message from the specified reader or buffer. + * Decodes a MatchIntentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryResult + * @returns MatchIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.QueryResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.MatchIntentRequest; /** - * Decodes a QueryResult message from the specified reader or buffer, length delimited. + * Decodes a MatchIntentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryResult + * @returns MatchIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.QueryResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.MatchIntentRequest; /** - * Verifies a QueryResult message. + * Verifies a MatchIntentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryResult message from a plain object. Also converts values to their respective internal types. + * Creates a MatchIntentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryResult + * @returns MatchIntentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.QueryResult; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.MatchIntentRequest; /** - * Creates a plain object from a QueryResult message. Also converts values to other types if specified. - * @param message QueryResult + * Creates a plain object from a MatchIntentRequest message. Also converts values to other types if specified. + * @param message MatchIntentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.QueryResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.MatchIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryResult to JSON. + * Converts this MatchIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TextInput. */ - interface ITextInput { + /** Properties of a MatchIntentResponse. */ + interface IMatchIntentResponse { - /** TextInput text */ + /** MatchIntentResponse text */ text?: (string|null); + + /** MatchIntentResponse triggerIntent */ + triggerIntent?: (string|null); + + /** MatchIntentResponse transcript */ + transcript?: (string|null); + + /** MatchIntentResponse triggerEvent */ + triggerEvent?: (string|null); + + /** MatchIntentResponse matches */ + matches?: (google.cloud.dialogflow.cx.v3.IMatch[]|null); + + /** MatchIntentResponse currentPage */ + currentPage?: (google.cloud.dialogflow.cx.v3.IPage|null); } - /** Represents a TextInput. */ - class TextInput implements ITextInput { + /** Represents a MatchIntentResponse. */ + class MatchIntentResponse implements IMatchIntentResponse { /** - * Constructs a new TextInput. + * Constructs a new MatchIntentResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ITextInput); + constructor(properties?: google.cloud.dialogflow.cx.v3.IMatchIntentResponse); - /** TextInput text. */ - public text: string; + /** MatchIntentResponse text. */ + public text?: (string|null); + + /** MatchIntentResponse triggerIntent. */ + public triggerIntent?: (string|null); + + /** MatchIntentResponse transcript. */ + public transcript?: (string|null); + + /** MatchIntentResponse triggerEvent. */ + public triggerEvent?: (string|null); + + /** MatchIntentResponse matches. */ + public matches: google.cloud.dialogflow.cx.v3.IMatch[]; + + /** MatchIntentResponse currentPage. */ + public currentPage?: (google.cloud.dialogflow.cx.v3.IPage|null); + + /** MatchIntentResponse query. */ + public query?: ("text"|"triggerIntent"|"transcript"|"triggerEvent"); /** - * Creates a new TextInput instance using the specified properties. + * Creates a new MatchIntentResponse instance using the specified properties. * @param [properties] Properties to set - * @returns TextInput instance + * @returns MatchIntentResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ITextInput): google.cloud.dialogflow.cx.v3.TextInput; + public static create(properties?: google.cloud.dialogflow.cx.v3.IMatchIntentResponse): google.cloud.dialogflow.cx.v3.MatchIntentResponse; /** - * Encodes the specified TextInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TextInput.verify|verify} messages. - * @param message TextInput message or plain object to encode + * Encodes the specified MatchIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentResponse.verify|verify} messages. + * @param message MatchIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ITextInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IMatchIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TextInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TextInput.verify|verify} messages. - * @param message TextInput message or plain object to encode + * Encodes the specified MatchIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentResponse.verify|verify} messages. + * @param message MatchIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITextInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IMatchIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TextInput message from the specified reader or buffer. + * Decodes a MatchIntentResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TextInput + * @returns MatchIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TextInput; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.MatchIntentResponse; /** - * Decodes a TextInput message from the specified reader or buffer, length delimited. + * Decodes a MatchIntentResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TextInput + * @returns MatchIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TextInput; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.MatchIntentResponse; /** - * Verifies a TextInput message. + * Verifies a MatchIntentResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TextInput message from a plain object. Also converts values to their respective internal types. + * Creates a MatchIntentResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TextInput + * @returns MatchIntentResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TextInput; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.MatchIntentResponse; /** - * Creates a plain object from a TextInput message. Also converts values to other types if specified. - * @param message TextInput + * Creates a plain object from a MatchIntentResponse message. Also converts values to other types if specified. + * @param message MatchIntentResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.TextInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.MatchIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TextInput to JSON. + * Converts this MatchIntentResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an IntentInput. */ - interface IIntentInput { + /** Properties of a FulfillIntentRequest. */ + interface IFulfillIntentRequest { - /** IntentInput intent */ - intent?: (string|null); + /** FulfillIntentRequest matchIntentRequest */ + matchIntentRequest?: (google.cloud.dialogflow.cx.v3.IMatchIntentRequest|null); + + /** FulfillIntentRequest match */ + match?: (google.cloud.dialogflow.cx.v3.IMatch|null); + + /** FulfillIntentRequest outputAudioConfig */ + outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); } - /** Represents an IntentInput. */ - class IntentInput implements IIntentInput { + /** Represents a FulfillIntentRequest. */ + class FulfillIntentRequest implements IFulfillIntentRequest { /** - * Constructs a new IntentInput. + * Constructs a new FulfillIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IIntentInput); + constructor(properties?: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest); - /** IntentInput intent. */ - public intent: string; + /** FulfillIntentRequest matchIntentRequest. */ + public matchIntentRequest?: (google.cloud.dialogflow.cx.v3.IMatchIntentRequest|null); + + /** FulfillIntentRequest match. */ + public match?: (google.cloud.dialogflow.cx.v3.IMatch|null); + + /** FulfillIntentRequest outputAudioConfig. */ + public outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); /** - * Creates a new IntentInput instance using the specified properties. + * Creates a new FulfillIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns IntentInput instance + * @returns FulfillIntentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IIntentInput): google.cloud.dialogflow.cx.v3.IntentInput; + public static create(properties?: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest): google.cloud.dialogflow.cx.v3.FulfillIntentRequest; /** - * Encodes the specified IntentInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentInput.verify|verify} messages. - * @param message IntentInput message or plain object to encode + * Encodes the specified FulfillIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentRequest.verify|verify} messages. + * @param message FulfillIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IIntentInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified IntentInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentInput.verify|verify} messages. - * @param message IntentInput message or plain object to encode + * Encodes the specified FulfillIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentRequest.verify|verify} messages. + * @param message FulfillIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IIntentInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IntentInput message from the specified reader or buffer. + * Decodes a FulfillIntentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns IntentInput + * @returns FulfillIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.IntentInput; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.FulfillIntentRequest; /** - * Decodes an IntentInput message from the specified reader or buffer, length delimited. + * Decodes a FulfillIntentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns IntentInput + * @returns FulfillIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.IntentInput; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.FulfillIntentRequest; /** - * Verifies an IntentInput message. + * Verifies a FulfillIntentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an IntentInput message from a plain object. Also converts values to their respective internal types. + * Creates a FulfillIntentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns IntentInput + * @returns FulfillIntentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.IntentInput; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.FulfillIntentRequest; /** - * Creates a plain object from an IntentInput message. Also converts values to other types if specified. - * @param message IntentInput + * Creates a plain object from a FulfillIntentRequest message. Also converts values to other types if specified. + * @param message FulfillIntentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.IntentInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.FulfillIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IntentInput to JSON. + * Converts this FulfillIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an AudioInput. */ - interface IAudioInput { + /** Properties of a FulfillIntentResponse. */ + interface IFulfillIntentResponse { - /** AudioInput config */ - config?: (google.cloud.dialogflow.cx.v3.IInputAudioConfig|null); + /** FulfillIntentResponse responseId */ + responseId?: (string|null); - /** AudioInput audio */ - audio?: (Uint8Array|string|null); + /** FulfillIntentResponse queryResult */ + queryResult?: (google.cloud.dialogflow.cx.v3.IQueryResult|null); + + /** FulfillIntentResponse outputAudio */ + outputAudio?: (Uint8Array|string|null); + + /** FulfillIntentResponse outputAudioConfig */ + outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); } - /** Represents an AudioInput. */ - class AudioInput implements IAudioInput { + /** Represents a FulfillIntentResponse. */ + class FulfillIntentResponse implements IFulfillIntentResponse { /** - * Constructs a new AudioInput. + * Constructs a new FulfillIntentResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IAudioInput); + constructor(properties?: google.cloud.dialogflow.cx.v3.IFulfillIntentResponse); - /** AudioInput config. */ - public config?: (google.cloud.dialogflow.cx.v3.IInputAudioConfig|null); + /** FulfillIntentResponse responseId. */ + public responseId: string; - /** AudioInput audio. */ - public audio: (Uint8Array|string); + /** FulfillIntentResponse queryResult. */ + public queryResult?: (google.cloud.dialogflow.cx.v3.IQueryResult|null); + + /** FulfillIntentResponse outputAudio. */ + public outputAudio: (Uint8Array|string); + + /** FulfillIntentResponse outputAudioConfig. */ + public outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); /** - * Creates a new AudioInput instance using the specified properties. + * Creates a new FulfillIntentResponse instance using the specified properties. * @param [properties] Properties to set - * @returns AudioInput instance + * @returns FulfillIntentResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IAudioInput): google.cloud.dialogflow.cx.v3.AudioInput; + public static create(properties?: google.cloud.dialogflow.cx.v3.IFulfillIntentResponse): google.cloud.dialogflow.cx.v3.FulfillIntentResponse; /** - * Encodes the specified AudioInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.AudioInput.verify|verify} messages. - * @param message AudioInput message or plain object to encode + * Encodes the specified FulfillIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentResponse.verify|verify} messages. + * @param message FulfillIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IAudioInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IFulfillIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AudioInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.AudioInput.verify|verify} messages. - * @param message AudioInput message or plain object to encode + * Encodes the specified FulfillIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentResponse.verify|verify} messages. + * @param message FulfillIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IAudioInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IFulfillIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AudioInput message from the specified reader or buffer. + * Decodes a FulfillIntentResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AudioInput + * @returns FulfillIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.AudioInput; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.FulfillIntentResponse; /** - * Decodes an AudioInput message from the specified reader or buffer, length delimited. + * Decodes a FulfillIntentResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AudioInput + * @returns FulfillIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.AudioInput; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.FulfillIntentResponse; /** - * Verifies an AudioInput message. + * Verifies a FulfillIntentResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an AudioInput message from a plain object. Also converts values to their respective internal types. + * Creates a FulfillIntentResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AudioInput + * @returns FulfillIntentResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.AudioInput; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.FulfillIntentResponse; /** - * Creates a plain object from an AudioInput message. Also converts values to other types if specified. - * @param message AudioInput + * Creates a plain object from a FulfillIntentResponse message. Also converts values to other types if specified. + * @param message FulfillIntentResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.AudioInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.FulfillIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AudioInput to JSON. + * Converts this FulfillIntentResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an EventInput. */ - interface IEventInput { + /** Properties of a SentimentAnalysisResult. */ + interface ISentimentAnalysisResult { - /** EventInput event */ - event?: (string|null); + /** SentimentAnalysisResult score */ + score?: (number|null); + + /** SentimentAnalysisResult magnitude */ + magnitude?: (number|null); } - /** Represents an EventInput. */ - class EventInput implements IEventInput { + /** Represents a SentimentAnalysisResult. */ + class SentimentAnalysisResult implements ISentimentAnalysisResult { /** - * Constructs a new EventInput. + * Constructs a new SentimentAnalysisResult. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IEventInput); + constructor(properties?: google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult); - /** EventInput event. */ - public event: string; + /** SentimentAnalysisResult score. */ + public score: number; + + /** SentimentAnalysisResult magnitude. */ + public magnitude: number; /** - * Creates a new EventInput instance using the specified properties. + * Creates a new SentimentAnalysisResult instance using the specified properties. * @param [properties] Properties to set - * @returns EventInput instance + * @returns SentimentAnalysisResult instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IEventInput): google.cloud.dialogflow.cx.v3.EventInput; + public static create(properties?: google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult): google.cloud.dialogflow.cx.v3.SentimentAnalysisResult; /** - * Encodes the specified EventInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EventInput.verify|verify} messages. - * @param message EventInput message or plain object to encode + * Encodes the specified SentimentAnalysisResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.verify|verify} messages. + * @param message SentimentAnalysisResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IEventInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EventInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EventInput.verify|verify} messages. - * @param message EventInput message or plain object to encode + * Encodes the specified SentimentAnalysisResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.verify|verify} messages. + * @param message SentimentAnalysisResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IEventInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EventInput message from the specified reader or buffer. + * Decodes a SentimentAnalysisResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EventInput + * @returns SentimentAnalysisResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.EventInput; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SentimentAnalysisResult; /** - * Decodes an EventInput message from the specified reader or buffer, length delimited. + * Decodes a SentimentAnalysisResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EventInput + * @returns SentimentAnalysisResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.EventInput; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SentimentAnalysisResult; /** - * Verifies an EventInput message. + * Verifies a SentimentAnalysisResult message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an EventInput message from a plain object. Also converts values to their respective internal types. + * Creates a SentimentAnalysisResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EventInput + * @returns SentimentAnalysisResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.EventInput; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SentimentAnalysisResult; /** - * Creates a plain object from an EventInput message. Also converts values to other types if specified. - * @param message EventInput + * Creates a plain object from a SentimentAnalysisResult message. Also converts values to other types if specified. + * @param message SentimentAnalysisResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.EventInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.SentimentAnalysisResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EventInput to JSON. + * Converts this SentimentAnalysisResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DtmfInput. */ - interface IDtmfInput { - - /** DtmfInput digits */ - digits?: (string|null); + /** Represents a SessionEntityTypes */ + class SessionEntityTypes extends $protobuf.rpc.Service { - /** DtmfInput finishDigit */ - finishDigit?: (string|null); - } + /** + * Constructs a new SessionEntityTypes service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** Represents a DtmfInput. */ - class DtmfInput implements IDtmfInput { + /** + * Creates new SessionEntityTypes service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SessionEntityTypes; /** - * Constructs a new DtmfInput. - * @param [properties] Properties to set + * Calls ListSessionEntityTypes. + * @param request ListSessionEntityTypesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListSessionEntityTypesResponse */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDtmfInput); + public listSessionEntityTypes(request: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypesCallback): void; - /** DtmfInput digits. */ - public digits: string; + /** + * Calls ListSessionEntityTypes. + * @param request ListSessionEntityTypesRequest message or plain object + * @returns Promise + */ + public listSessionEntityTypes(request: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest): Promise; - /** DtmfInput finishDigit. */ - public finishDigit: string; + /** + * Calls GetSessionEntityType. + * @param request GetSessionEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SessionEntityType + */ + public getSessionEntityType(request: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.GetSessionEntityTypeCallback): void; /** - * Creates a new DtmfInput instance using the specified properties. - * @param [properties] Properties to set - * @returns DtmfInput instance + * Calls GetSessionEntityType. + * @param request GetSessionEntityTypeRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IDtmfInput): google.cloud.dialogflow.cx.v3.DtmfInput; + public getSessionEntityType(request: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest): Promise; /** - * Encodes the specified DtmfInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DtmfInput.verify|verify} messages. - * @param message DtmfInput message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreateSessionEntityType. + * @param request CreateSessionEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SessionEntityType */ - public static encode(message: google.cloud.dialogflow.cx.v3.IDtmfInput, writer?: $protobuf.Writer): $protobuf.Writer; + public createSessionEntityType(request: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.CreateSessionEntityTypeCallback): void; /** - * Encodes the specified DtmfInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DtmfInput.verify|verify} messages. - * @param message DtmfInput message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreateSessionEntityType. + * @param request CreateSessionEntityTypeRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDtmfInput, writer?: $protobuf.Writer): $protobuf.Writer; + public createSessionEntityType(request: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest): Promise; /** - * Decodes a DtmfInput message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DtmfInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls UpdateSessionEntityType. + * @param request UpdateSessionEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SessionEntityType */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DtmfInput; + public updateSessionEntityType(request: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.UpdateSessionEntityTypeCallback): void; /** - * Decodes a DtmfInput message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DtmfInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls UpdateSessionEntityType. + * @param request UpdateSessionEntityTypeRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DtmfInput; + public updateSessionEntityType(request: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest): Promise; /** - * Verifies a DtmfInput message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls DeleteSessionEntityType. + * @param request DeleteSessionEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static verify(message: { [k: string]: any }): (string|null); + public deleteSessionEntityType(request: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.DeleteSessionEntityTypeCallback): void; /** - * Creates a DtmfInput message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DtmfInput + * Calls DeleteSessionEntityType. + * @param request DeleteSessionEntityTypeRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DtmfInput; + public deleteSessionEntityType(request: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest): Promise; + } + + namespace SessionEntityTypes { /** - * Creates a plain object from a DtmfInput message. Also converts values to other types if specified. - * @param message DtmfInput - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#listSessionEntityTypes}. + * @param error Error, if any + * @param [response] ListSessionEntityTypesResponse */ - public static toObject(message: google.cloud.dialogflow.cx.v3.DtmfInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type ListSessionEntityTypesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse) => void; /** - * Converts this DtmfInput to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#getSessionEntityType}. + * @param error Error, if any + * @param [response] SessionEntityType */ - public toJSON(): { [k: string]: any }; - } + type GetSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SessionEntityType) => void; - /** Properties of a Match. */ - interface IMatch { + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#createSessionEntityType}. + * @param error Error, if any + * @param [response] SessionEntityType + */ + type CreateSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SessionEntityType) => void; - /** Match intent */ - intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#updateSessionEntityType}. + * @param error Error, if any + * @param [response] SessionEntityType + */ + type UpdateSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SessionEntityType) => void; - /** Match event */ - event?: (string|null); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#deleteSessionEntityType}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteSessionEntityTypeCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + } - /** Match parameters */ - parameters?: (google.protobuf.IStruct|null); + /** Properties of a SessionEntityType. */ + interface ISessionEntityType { - /** Match resolvedInput */ - resolvedInput?: (string|null); + /** SessionEntityType name */ + name?: (string|null); - /** Match matchType */ - matchType?: (google.cloud.dialogflow.cx.v3.Match.MatchType|keyof typeof google.cloud.dialogflow.cx.v3.Match.MatchType|null); + /** SessionEntityType entityOverrideMode */ + entityOverrideMode?: (google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode|keyof typeof google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode|null); - /** Match confidence */ - confidence?: (number|null); + /** SessionEntityType entities */ + entities?: (google.cloud.dialogflow.cx.v3.EntityType.IEntity[]|null); } - /** Represents a Match. */ - class Match implements IMatch { + /** Represents a SessionEntityType. */ + class SessionEntityType implements ISessionEntityType { /** - * Constructs a new Match. + * Constructs a new SessionEntityType. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IMatch); - - /** Match intent. */ - public intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); - - /** Match event. */ - public event: string; - - /** Match parameters. */ - public parameters?: (google.protobuf.IStruct|null); + constructor(properties?: google.cloud.dialogflow.cx.v3.ISessionEntityType); - /** Match resolvedInput. */ - public resolvedInput: string; + /** SessionEntityType name. */ + public name: string; - /** Match matchType. */ - public matchType: (google.cloud.dialogflow.cx.v3.Match.MatchType|keyof typeof google.cloud.dialogflow.cx.v3.Match.MatchType); + /** SessionEntityType entityOverrideMode. */ + public entityOverrideMode: (google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode|keyof typeof google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode); - /** Match confidence. */ - public confidence: number; + /** SessionEntityType entities. */ + public entities: google.cloud.dialogflow.cx.v3.EntityType.IEntity[]; /** - * Creates a new Match instance using the specified properties. + * Creates a new SessionEntityType instance using the specified properties. * @param [properties] Properties to set - * @returns Match instance + * @returns SessionEntityType instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IMatch): google.cloud.dialogflow.cx.v3.Match; + public static create(properties?: google.cloud.dialogflow.cx.v3.ISessionEntityType): google.cloud.dialogflow.cx.v3.SessionEntityType; /** - * Encodes the specified Match message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Match.verify|verify} messages. - * @param message Match message or plain object to encode + * Encodes the specified SessionEntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionEntityType.verify|verify} messages. + * @param message SessionEntityType message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IMatch, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ISessionEntityType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Match message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Match.verify|verify} messages. - * @param message Match message or plain object to encode + * Encodes the specified SessionEntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionEntityType.verify|verify} messages. + * @param message SessionEntityType message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IMatch, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ISessionEntityType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Match message from the specified reader or buffer. + * Decodes a SessionEntityType message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Match + * @returns SessionEntityType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Match; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SessionEntityType; /** - * Decodes a Match message from the specified reader or buffer, length delimited. + * Decodes a SessionEntityType message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Match + * @returns SessionEntityType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Match; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SessionEntityType; /** - * Verifies a Match message. + * Verifies a SessionEntityType message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Match message from a plain object. Also converts values to their respective internal types. + * Creates a SessionEntityType message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Match + * @returns SessionEntityType */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Match; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SessionEntityType; /** - * Creates a plain object from a Match message. Also converts values to other types if specified. - * @param message Match + * Creates a plain object from a SessionEntityType message. Also converts values to other types if specified. + * @param message SessionEntityType * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Match, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.SessionEntityType, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Match to JSON. + * Converts this SessionEntityType to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Match { + namespace SessionEntityType { - /** MatchType enum. */ - enum MatchType { - MATCH_TYPE_UNSPECIFIED = 0, - INTENT = 1, - DIRECT_INTENT = 2, - PARAMETER_FILLING = 3, - NO_MATCH = 4, - NO_INPUT = 5, - EVENT = 6 + /** EntityOverrideMode enum. */ + enum EntityOverrideMode { + ENTITY_OVERRIDE_MODE_UNSPECIFIED = 0, + ENTITY_OVERRIDE_MODE_OVERRIDE = 1, + ENTITY_OVERRIDE_MODE_SUPPLEMENT = 2 } } - /** Properties of a MatchIntentRequest. */ - interface IMatchIntentRequest { + /** Properties of a ListSessionEntityTypesRequest. */ + interface IListSessionEntityTypesRequest { - /** MatchIntentRequest session */ - session?: (string|null); + /** ListSessionEntityTypesRequest parent */ + parent?: (string|null); - /** MatchIntentRequest queryParams */ - queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); + /** ListSessionEntityTypesRequest pageSize */ + pageSize?: (number|null); - /** MatchIntentRequest queryInput */ - queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); + /** ListSessionEntityTypesRequest pageToken */ + pageToken?: (string|null); } - /** Represents a MatchIntentRequest. */ - class MatchIntentRequest implements IMatchIntentRequest { + /** Represents a ListSessionEntityTypesRequest. */ + class ListSessionEntityTypesRequest implements IListSessionEntityTypesRequest { /** - * Constructs a new MatchIntentRequest. + * Constructs a new ListSessionEntityTypesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IMatchIntentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest); - /** MatchIntentRequest session. */ - public session: string; + /** ListSessionEntityTypesRequest parent. */ + public parent: string; - /** MatchIntentRequest queryParams. */ - public queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); + /** ListSessionEntityTypesRequest pageSize. */ + public pageSize: number; - /** MatchIntentRequest queryInput. */ - public queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); + /** ListSessionEntityTypesRequest pageToken. */ + public pageToken: string; /** - * Creates a new MatchIntentRequest instance using the specified properties. + * Creates a new ListSessionEntityTypesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MatchIntentRequest instance + * @returns ListSessionEntityTypesRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IMatchIntentRequest): google.cloud.dialogflow.cx.v3.MatchIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest; /** - * Encodes the specified MatchIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentRequest.verify|verify} messages. - * @param message MatchIntentRequest message or plain object to encode + * Encodes the specified ListSessionEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest.verify|verify} messages. + * @param message ListSessionEntityTypesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IMatchIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MatchIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentRequest.verify|verify} messages. - * @param message MatchIntentRequest message or plain object to encode + * Encodes the specified ListSessionEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest.verify|verify} messages. + * @param message ListSessionEntityTypesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IMatchIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MatchIntentRequest message from the specified reader or buffer. + * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MatchIntentRequest + * @returns ListSessionEntityTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.MatchIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest; /** - * Decodes a MatchIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MatchIntentRequest + * @returns ListSessionEntityTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.MatchIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest; /** - * Verifies a MatchIntentRequest message. + * Verifies a ListSessionEntityTypesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MatchIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListSessionEntityTypesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MatchIntentRequest + * @returns ListSessionEntityTypesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.MatchIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest; /** - * Creates a plain object from a MatchIntentRequest message. Also converts values to other types if specified. - * @param message MatchIntentRequest + * Creates a plain object from a ListSessionEntityTypesRequest message. Also converts values to other types if specified. + * @param message ListSessionEntityTypesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.MatchIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MatchIntentRequest to JSON. + * Converts this ListSessionEntityTypesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MatchIntentResponse. */ - interface IMatchIntentResponse { - - /** MatchIntentResponse text */ - text?: (string|null); - - /** MatchIntentResponse triggerIntent */ - triggerIntent?: (string|null); - - /** MatchIntentResponse transcript */ - transcript?: (string|null); - - /** MatchIntentResponse triggerEvent */ - triggerEvent?: (string|null); + /** Properties of a ListSessionEntityTypesResponse. */ + interface IListSessionEntityTypesResponse { - /** MatchIntentResponse matches */ - matches?: (google.cloud.dialogflow.cx.v3.IMatch[]|null); + /** ListSessionEntityTypesResponse sessionEntityTypes */ + sessionEntityTypes?: (google.cloud.dialogflow.cx.v3.ISessionEntityType[]|null); - /** MatchIntentResponse currentPage */ - currentPage?: (google.cloud.dialogflow.cx.v3.IPage|null); + /** ListSessionEntityTypesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a MatchIntentResponse. */ - class MatchIntentResponse implements IMatchIntentResponse { + /** Represents a ListSessionEntityTypesResponse. */ + class ListSessionEntityTypesResponse implements IListSessionEntityTypesResponse { /** - * Constructs a new MatchIntentResponse. + * Constructs a new ListSessionEntityTypesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IMatchIntentResponse); - - /** MatchIntentResponse text. */ - public text?: (string|null); - - /** MatchIntentResponse triggerIntent. */ - public triggerIntent?: (string|null); - - /** MatchIntentResponse transcript. */ - public transcript?: (string|null); - - /** MatchIntentResponse triggerEvent. */ - public triggerEvent?: (string|null); - - /** MatchIntentResponse matches. */ - public matches: google.cloud.dialogflow.cx.v3.IMatch[]; + constructor(properties?: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse); - /** MatchIntentResponse currentPage. */ - public currentPage?: (google.cloud.dialogflow.cx.v3.IPage|null); + /** ListSessionEntityTypesResponse sessionEntityTypes. */ + public sessionEntityTypes: google.cloud.dialogflow.cx.v3.ISessionEntityType[]; - /** MatchIntentResponse query. */ - public query?: ("text"|"triggerIntent"|"transcript"|"triggerEvent"); + /** ListSessionEntityTypesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new MatchIntentResponse instance using the specified properties. + * Creates a new ListSessionEntityTypesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns MatchIntentResponse instance + * @returns ListSessionEntityTypesResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IMatchIntentResponse): google.cloud.dialogflow.cx.v3.MatchIntentResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse; /** - * Encodes the specified MatchIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentResponse.verify|verify} messages. - * @param message MatchIntentResponse message or plain object to encode + * Encodes the specified ListSessionEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse.verify|verify} messages. + * @param message ListSessionEntityTypesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IMatchIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MatchIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentResponse.verify|verify} messages. - * @param message MatchIntentResponse message or plain object to encode + * Encodes the specified ListSessionEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse.verify|verify} messages. + * @param message ListSessionEntityTypesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IMatchIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MatchIntentResponse message from the specified reader or buffer. + * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MatchIntentResponse + * @returns ListSessionEntityTypesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.MatchIntentResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse; /** - * Decodes a MatchIntentResponse message from the specified reader or buffer, length delimited. + * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MatchIntentResponse + * @returns ListSessionEntityTypesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.MatchIntentResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse; /** - * Verifies a MatchIntentResponse message. + * Verifies a ListSessionEntityTypesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MatchIntentResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListSessionEntityTypesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MatchIntentResponse + * @returns ListSessionEntityTypesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.MatchIntentResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse; /** - * Creates a plain object from a MatchIntentResponse message. Also converts values to other types if specified. - * @param message MatchIntentResponse + * Creates a plain object from a ListSessionEntityTypesResponse message. Also converts values to other types if specified. + * @param message ListSessionEntityTypesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.MatchIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MatchIntentResponse to JSON. + * Converts this ListSessionEntityTypesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a FulfillIntentRequest. */ - interface IFulfillIntentRequest { - - /** FulfillIntentRequest matchIntentRequest */ - matchIntentRequest?: (google.cloud.dialogflow.cx.v3.IMatchIntentRequest|null); - - /** FulfillIntentRequest match */ - match?: (google.cloud.dialogflow.cx.v3.IMatch|null); + /** Properties of a GetSessionEntityTypeRequest. */ + interface IGetSessionEntityTypeRequest { - /** FulfillIntentRequest outputAudioConfig */ - outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); + /** GetSessionEntityTypeRequest name */ + name?: (string|null); } - /** Represents a FulfillIntentRequest. */ - class FulfillIntentRequest implements IFulfillIntentRequest { + /** Represents a GetSessionEntityTypeRequest. */ + class GetSessionEntityTypeRequest implements IGetSessionEntityTypeRequest { /** - * Constructs a new FulfillIntentRequest. + * Constructs a new GetSessionEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest); - - /** FulfillIntentRequest matchIntentRequest. */ - public matchIntentRequest?: (google.cloud.dialogflow.cx.v3.IMatchIntentRequest|null); - - /** FulfillIntentRequest match. */ - public match?: (google.cloud.dialogflow.cx.v3.IMatch|null); + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest); - /** FulfillIntentRequest outputAudioConfig. */ - public outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); + /** GetSessionEntityTypeRequest name. */ + public name: string; /** - * Creates a new FulfillIntentRequest instance using the specified properties. + * Creates a new GetSessionEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FulfillIntentRequest instance + * @returns GetSessionEntityTypeRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest): google.cloud.dialogflow.cx.v3.FulfillIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest; /** - * Encodes the specified FulfillIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentRequest.verify|verify} messages. - * @param message FulfillIntentRequest message or plain object to encode + * Encodes the specified GetSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest.verify|verify} messages. + * @param message GetSessionEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FulfillIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentRequest.verify|verify} messages. - * @param message FulfillIntentRequest message or plain object to encode + * Encodes the specified GetSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest.verify|verify} messages. + * @param message GetSessionEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FulfillIntentRequest message from the specified reader or buffer. + * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FulfillIntentRequest + * @returns GetSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.FulfillIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest; /** - * Decodes a FulfillIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FulfillIntentRequest + * @returns GetSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.FulfillIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest; /** - * Verifies a FulfillIntentRequest message. + * Verifies a GetSessionEntityTypeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FulfillIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FulfillIntentRequest + * @returns GetSessionEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.FulfillIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest; /** - * Creates a plain object from a FulfillIntentRequest message. Also converts values to other types if specified. - * @param message FulfillIntentRequest + * Creates a plain object from a GetSessionEntityTypeRequest message. Also converts values to other types if specified. + * @param message GetSessionEntityTypeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.FulfillIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FulfillIntentRequest to JSON. + * Converts this GetSessionEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a FulfillIntentResponse. */ - interface IFulfillIntentResponse { - - /** FulfillIntentResponse responseId */ - responseId?: (string|null); - - /** FulfillIntentResponse queryResult */ - queryResult?: (google.cloud.dialogflow.cx.v3.IQueryResult|null); + /** Properties of a CreateSessionEntityTypeRequest. */ + interface ICreateSessionEntityTypeRequest { - /** FulfillIntentResponse outputAudio */ - outputAudio?: (Uint8Array|string|null); + /** CreateSessionEntityTypeRequest parent */ + parent?: (string|null); - /** FulfillIntentResponse outputAudioConfig */ - outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); + /** CreateSessionEntityTypeRequest sessionEntityType */ + sessionEntityType?: (google.cloud.dialogflow.cx.v3.ISessionEntityType|null); } - /** Represents a FulfillIntentResponse. */ - class FulfillIntentResponse implements IFulfillIntentResponse { + /** Represents a CreateSessionEntityTypeRequest. */ + class CreateSessionEntityTypeRequest implements ICreateSessionEntityTypeRequest { /** - * Constructs a new FulfillIntentResponse. + * Constructs a new CreateSessionEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IFulfillIntentResponse); - - /** FulfillIntentResponse responseId. */ - public responseId: string; - - /** FulfillIntentResponse queryResult. */ - public queryResult?: (google.cloud.dialogflow.cx.v3.IQueryResult|null); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest); - /** FulfillIntentResponse outputAudio. */ - public outputAudio: (Uint8Array|string); + /** CreateSessionEntityTypeRequest parent. */ + public parent: string; - /** FulfillIntentResponse outputAudioConfig. */ - public outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); + /** CreateSessionEntityTypeRequest sessionEntityType. */ + public sessionEntityType?: (google.cloud.dialogflow.cx.v3.ISessionEntityType|null); /** - * Creates a new FulfillIntentResponse instance using the specified properties. + * Creates a new CreateSessionEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FulfillIntentResponse instance + * @returns CreateSessionEntityTypeRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IFulfillIntentResponse): google.cloud.dialogflow.cx.v3.FulfillIntentResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest; /** - * Encodes the specified FulfillIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentResponse.verify|verify} messages. - * @param message FulfillIntentResponse message or plain object to encode + * Encodes the specified CreateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest.verify|verify} messages. + * @param message CreateSessionEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IFulfillIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FulfillIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentResponse.verify|verify} messages. - * @param message FulfillIntentResponse message or plain object to encode + * Encodes the specified CreateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest.verify|verify} messages. + * @param message CreateSessionEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IFulfillIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FulfillIntentResponse message from the specified reader or buffer. + * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FulfillIntentResponse + * @returns CreateSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.FulfillIntentResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest; /** - * Decodes a FulfillIntentResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FulfillIntentResponse + * @returns CreateSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.FulfillIntentResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest; /** - * Verifies a FulfillIntentResponse message. + * Verifies a CreateSessionEntityTypeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FulfillIntentResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FulfillIntentResponse + * @returns CreateSessionEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.FulfillIntentResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest; /** - * Creates a plain object from a FulfillIntentResponse message. Also converts values to other types if specified. - * @param message FulfillIntentResponse + * Creates a plain object from a CreateSessionEntityTypeRequest message. Also converts values to other types if specified. + * @param message CreateSessionEntityTypeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.FulfillIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FulfillIntentResponse to JSON. + * Converts this CreateSessionEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SentimentAnalysisResult. */ - interface ISentimentAnalysisResult { + /** Properties of an UpdateSessionEntityTypeRequest. */ + interface IUpdateSessionEntityTypeRequest { - /** SentimentAnalysisResult score */ - score?: (number|null); + /** UpdateSessionEntityTypeRequest sessionEntityType */ + sessionEntityType?: (google.cloud.dialogflow.cx.v3.ISessionEntityType|null); - /** SentimentAnalysisResult magnitude */ - magnitude?: (number|null); + /** UpdateSessionEntityTypeRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a SentimentAnalysisResult. */ - class SentimentAnalysisResult implements ISentimentAnalysisResult { + /** Represents an UpdateSessionEntityTypeRequest. */ + class UpdateSessionEntityTypeRequest implements IUpdateSessionEntityTypeRequest { /** - * Constructs a new SentimentAnalysisResult. + * Constructs a new UpdateSessionEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult); + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest); - /** SentimentAnalysisResult score. */ - public score: number; + /** UpdateSessionEntityTypeRequest sessionEntityType. */ + public sessionEntityType?: (google.cloud.dialogflow.cx.v3.ISessionEntityType|null); - /** SentimentAnalysisResult magnitude. */ - public magnitude: number; + /** UpdateSessionEntityTypeRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new SentimentAnalysisResult instance using the specified properties. + * Creates a new UpdateSessionEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SentimentAnalysisResult instance + * @returns UpdateSessionEntityTypeRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult): google.cloud.dialogflow.cx.v3.SentimentAnalysisResult; + public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest; /** - * Encodes the specified SentimentAnalysisResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.verify|verify} messages. - * @param message SentimentAnalysisResult message or plain object to encode + * Encodes the specified UpdateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest.verify|verify} messages. + * @param message UpdateSessionEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SentimentAnalysisResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.verify|verify} messages. - * @param message SentimentAnalysisResult message or plain object to encode + * Encodes the specified UpdateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest.verify|verify} messages. + * @param message UpdateSessionEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SentimentAnalysisResult message from the specified reader or buffer. + * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SentimentAnalysisResult + * @returns UpdateSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SentimentAnalysisResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest; /** - * Decodes a SentimentAnalysisResult message from the specified reader or buffer, length delimited. + * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SentimentAnalysisResult + * @returns UpdateSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SentimentAnalysisResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest; /** - * Verifies a SentimentAnalysisResult message. + * Verifies an UpdateSessionEntityTypeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SentimentAnalysisResult message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SentimentAnalysisResult + * @returns UpdateSessionEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SentimentAnalysisResult; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest; /** - * Creates a plain object from a SentimentAnalysisResult message. Also converts values to other types if specified. - * @param message SentimentAnalysisResult + * Creates a plain object from an UpdateSessionEntityTypeRequest message. Also converts values to other types if specified. + * @param message UpdateSessionEntityTypeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.SentimentAnalysisResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SentimentAnalysisResult to JSON. + * Converts this UpdateSessionEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a SessionEntityTypes */ - class SessionEntityTypes extends $protobuf.rpc.Service { + /** Properties of a DeleteSessionEntityTypeRequest. */ + interface IDeleteSessionEntityTypeRequest { + + /** DeleteSessionEntityTypeRequest name */ + name?: (string|null); + } + + /** Represents a DeleteSessionEntityTypeRequest. */ + class DeleteSessionEntityTypeRequest implements IDeleteSessionEntityTypeRequest { /** - * Constructs a new SessionEntityTypes service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited + * Constructs a new DeleteSessionEntityTypeRequest. + * @param [properties] Properties to set */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest); + + /** DeleteSessionEntityTypeRequest name. */ + public name: string; /** - * Creates new SessionEntityTypes service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. + * Creates a new DeleteSessionEntityTypeRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteSessionEntityTypeRequest instance */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SessionEntityTypes; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest; /** - * Calls ListSessionEntityTypes. - * @param request ListSessionEntityTypesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListSessionEntityTypesResponse + * Encodes the specified DeleteSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest.verify|verify} messages. + * @param message DeleteSessionEntityTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listSessionEntityTypes(request: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypesCallback): void; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListSessionEntityTypes. - * @param request ListSessionEntityTypesRequest message or plain object - * @returns Promise + * Encodes the specified DeleteSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest.verify|verify} messages. + * @param message DeleteSessionEntityTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listSessionEntityTypes(request: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest): Promise; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetSessionEntityType. - * @param request GetSessionEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SessionEntityType + * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteSessionEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getSessionEntityType(request: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.GetSessionEntityTypeCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest; /** - * Calls GetSessionEntityType. - * @param request GetSessionEntityTypeRequest message or plain object - * @returns Promise + * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteSessionEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getSessionEntityType(request: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest; /** - * Calls CreateSessionEntityType. - * @param request CreateSessionEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SessionEntityType + * Verifies a DeleteSessionEntityTypeRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public createSessionEntityType(request: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.CreateSessionEntityTypeCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls CreateSessionEntityType. - * @param request CreateSessionEntityTypeRequest message or plain object - * @returns Promise + * Creates a DeleteSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteSessionEntityTypeRequest */ - public createSessionEntityType(request: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest; /** - * Calls UpdateSessionEntityType. - * @param request UpdateSessionEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SessionEntityType + * Creates a plain object from a DeleteSessionEntityTypeRequest message. Also converts values to other types if specified. + * @param message DeleteSessionEntityTypeRequest + * @param [options] Conversion options + * @returns Plain object */ - public updateSessionEntityType(request: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.UpdateSessionEntityTypeCallback): void; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls UpdateSessionEntityType. - * @param request UpdateSessionEntityTypeRequest message or plain object + * Converts this DeleteSessionEntityTypeRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Represents a TransitionRouteGroups */ + class TransitionRouteGroups extends $protobuf.rpc.Service { + + /** + * Constructs a new TransitionRouteGroups service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new TransitionRouteGroups service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): TransitionRouteGroups; + + /** + * Calls ListTransitionRouteGroups. + * @param request ListTransitionRouteGroupsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListTransitionRouteGroupsResponse + */ + public listTransitionRouteGroups(request: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroupsCallback): void; + + /** + * Calls ListTransitionRouteGroups. + * @param request ListTransitionRouteGroupsRequest message or plain object * @returns Promise */ - public updateSessionEntityType(request: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest): Promise; + public listTransitionRouteGroups(request: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest): Promise; /** - * Calls DeleteSessionEntityType. - * @param request DeleteSessionEntityTypeRequest message or plain object + * Calls GetTransitionRouteGroup. + * @param request GetTransitionRouteGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TransitionRouteGroup + */ + public getTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.GetTransitionRouteGroupCallback): void; + + /** + * Calls GetTransitionRouteGroup. + * @param request GetTransitionRouteGroupRequest message or plain object + * @returns Promise + */ + public getTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest): Promise; + + /** + * Calls CreateTransitionRouteGroup. + * @param request CreateTransitionRouteGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TransitionRouteGroup + */ + public createTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroupCallback): void; + + /** + * Calls CreateTransitionRouteGroup. + * @param request CreateTransitionRouteGroupRequest message or plain object + * @returns Promise + */ + public createTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest): Promise; + + /** + * Calls UpdateTransitionRouteGroup. + * @param request UpdateTransitionRouteGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TransitionRouteGroup + */ + public updateTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.UpdateTransitionRouteGroupCallback): void; + + /** + * Calls UpdateTransitionRouteGroup. + * @param request UpdateTransitionRouteGroupRequest message or plain object + * @returns Promise + */ + public updateTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest): Promise; + + /** + * Calls DeleteTransitionRouteGroup. + * @param request DeleteTransitionRouteGroupRequest message or plain object * @param callback Node-style callback called with the error, if any, and Empty */ - public deleteSessionEntityType(request: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.DeleteSessionEntityTypeCallback): void; + public deleteTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.DeleteTransitionRouteGroupCallback): void; /** - * Calls DeleteSessionEntityType. - * @param request DeleteSessionEntityTypeRequest message or plain object + * Calls DeleteTransitionRouteGroup. + * @param request DeleteTransitionRouteGroupRequest message or plain object * @returns Promise */ - public deleteSessionEntityType(request: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest): Promise; + public deleteTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest): Promise; } - namespace SessionEntityTypes { + namespace TransitionRouteGroups { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#listSessionEntityTypes}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#listTransitionRouteGroups}. * @param error Error, if any - * @param [response] ListSessionEntityTypesResponse + * @param [response] ListTransitionRouteGroupsResponse */ - type ListSessionEntityTypesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse) => void; + type ListTransitionRouteGroupsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#getSessionEntityType}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#getTransitionRouteGroup}. * @param error Error, if any - * @param [response] SessionEntityType + * @param [response] TransitionRouteGroup */ - type GetSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SessionEntityType) => void; + type GetTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TransitionRouteGroup) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#createSessionEntityType}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#createTransitionRouteGroup}. * @param error Error, if any - * @param [response] SessionEntityType + * @param [response] TransitionRouteGroup */ - type CreateSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SessionEntityType) => void; + type CreateTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TransitionRouteGroup) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#updateSessionEntityType}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#updateTransitionRouteGroup}. * @param error Error, if any - * @param [response] SessionEntityType + * @param [response] TransitionRouteGroup */ - type UpdateSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SessionEntityType) => void; + type UpdateTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TransitionRouteGroup) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#deleteSessionEntityType}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#deleteTransitionRouteGroup}. * @param error Error, if any * @param [response] Empty */ - type DeleteSessionEntityTypeCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + type DeleteTransitionRouteGroupCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } - /** Properties of a SessionEntityType. */ - interface ISessionEntityType { + /** Properties of a TransitionRouteGroup. */ + interface ITransitionRouteGroup { - /** SessionEntityType name */ + /** TransitionRouteGroup name */ name?: (string|null); - /** SessionEntityType entityOverrideMode */ - entityOverrideMode?: (google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode|keyof typeof google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode|null); + /** TransitionRouteGroup displayName */ + displayName?: (string|null); - /** SessionEntityType entities */ - entities?: (google.cloud.dialogflow.cx.v3.EntityType.IEntity[]|null); + /** TransitionRouteGroup transitionRoutes */ + transitionRoutes?: (google.cloud.dialogflow.cx.v3.ITransitionRoute[]|null); } - /** Represents a SessionEntityType. */ - class SessionEntityType implements ISessionEntityType { + /** Represents a TransitionRouteGroup. */ + class TransitionRouteGroup implements ITransitionRouteGroup { /** - * Constructs a new SessionEntityType. + * Constructs a new TransitionRouteGroup. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ISessionEntityType); + constructor(properties?: google.cloud.dialogflow.cx.v3.ITransitionRouteGroup); - /** SessionEntityType name. */ + /** TransitionRouteGroup name. */ public name: string; - /** SessionEntityType entityOverrideMode. */ - public entityOverrideMode: (google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode|keyof typeof google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode); + /** TransitionRouteGroup displayName. */ + public displayName: string; - /** SessionEntityType entities. */ - public entities: google.cloud.dialogflow.cx.v3.EntityType.IEntity[]; + /** TransitionRouteGroup transitionRoutes. */ + public transitionRoutes: google.cloud.dialogflow.cx.v3.ITransitionRoute[]; /** - * Creates a new SessionEntityType instance using the specified properties. + * Creates a new TransitionRouteGroup instance using the specified properties. * @param [properties] Properties to set - * @returns SessionEntityType instance + * @returns TransitionRouteGroup instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ISessionEntityType): google.cloud.dialogflow.cx.v3.SessionEntityType; + public static create(properties?: google.cloud.dialogflow.cx.v3.ITransitionRouteGroup): google.cloud.dialogflow.cx.v3.TransitionRouteGroup; /** - * Encodes the specified SessionEntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionEntityType.verify|verify} messages. - * @param message SessionEntityType message or plain object to encode + * Encodes the specified TransitionRouteGroup message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify|verify} messages. + * @param message TransitionRouteGroup message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ISessionEntityType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ITransitionRouteGroup, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SessionEntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionEntityType.verify|verify} messages. - * @param message SessionEntityType message or plain object to encode + * Encodes the specified TransitionRouteGroup message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify|verify} messages. + * @param message TransitionRouteGroup message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ISessionEntityType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITransitionRouteGroup, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SessionEntityType message from the specified reader or buffer. + * Decodes a TransitionRouteGroup message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SessionEntityType + * @returns TransitionRouteGroup * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SessionEntityType; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TransitionRouteGroup; /** - * Decodes a SessionEntityType message from the specified reader or buffer, length delimited. + * Decodes a TransitionRouteGroup message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SessionEntityType + * @returns TransitionRouteGroup * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SessionEntityType; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TransitionRouteGroup; /** - * Verifies a SessionEntityType message. + * Verifies a TransitionRouteGroup message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SessionEntityType message from a plain object. Also converts values to their respective internal types. + * Creates a TransitionRouteGroup message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SessionEntityType + * @returns TransitionRouteGroup */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SessionEntityType; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TransitionRouteGroup; /** - * Creates a plain object from a SessionEntityType message. Also converts values to other types if specified. - * @param message SessionEntityType + * Creates a plain object from a TransitionRouteGroup message. Also converts values to other types if specified. + * @param message TransitionRouteGroup * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.SessionEntityType, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.TransitionRouteGroup, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SessionEntityType to JSON. + * Converts this TransitionRouteGroup to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace SessionEntityType { - - /** EntityOverrideMode enum. */ - enum EntityOverrideMode { - ENTITY_OVERRIDE_MODE_UNSPECIFIED = 0, - ENTITY_OVERRIDE_MODE_OVERRIDE = 1, - ENTITY_OVERRIDE_MODE_SUPPLEMENT = 2 - } - } - - /** Properties of a ListSessionEntityTypesRequest. */ - interface IListSessionEntityTypesRequest { + /** Properties of a ListTransitionRouteGroupsRequest. */ + interface IListTransitionRouteGroupsRequest { - /** ListSessionEntityTypesRequest parent */ + /** ListTransitionRouteGroupsRequest parent */ parent?: (string|null); - /** ListSessionEntityTypesRequest pageSize */ + /** ListTransitionRouteGroupsRequest pageSize */ pageSize?: (number|null); - /** ListSessionEntityTypesRequest pageToken */ + /** ListTransitionRouteGroupsRequest pageToken */ pageToken?: (string|null); + + /** ListTransitionRouteGroupsRequest languageCode */ + languageCode?: (string|null); } - /** Represents a ListSessionEntityTypesRequest. */ - class ListSessionEntityTypesRequest implements IListSessionEntityTypesRequest { + /** Represents a ListTransitionRouteGroupsRequest. */ + class ListTransitionRouteGroupsRequest implements IListTransitionRouteGroupsRequest { /** - * Constructs a new ListSessionEntityTypesRequest. + * Constructs a new ListTransitionRouteGroupsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest); - /** ListSessionEntityTypesRequest parent. */ + /** ListTransitionRouteGroupsRequest parent. */ public parent: string; - /** ListSessionEntityTypesRequest pageSize. */ + /** ListTransitionRouteGroupsRequest pageSize. */ public pageSize: number; - /** ListSessionEntityTypesRequest pageToken. */ + /** ListTransitionRouteGroupsRequest pageToken. */ public pageToken: string; + /** ListTransitionRouteGroupsRequest languageCode. */ + public languageCode: string; + /** - * Creates a new ListSessionEntityTypesRequest instance using the specified properties. + * Creates a new ListTransitionRouteGroupsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListSessionEntityTypesRequest instance + * @returns ListTransitionRouteGroupsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest; /** - * Encodes the specified ListSessionEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest.verify|verify} messages. - * @param message ListSessionEntityTypesRequest message or plain object to encode + * Encodes the specified ListTransitionRouteGroupsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest.verify|verify} messages. + * @param message ListTransitionRouteGroupsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListSessionEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest.verify|verify} messages. - * @param message ListSessionEntityTypesRequest message or plain object to encode + * Encodes the specified ListTransitionRouteGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest.verify|verify} messages. + * @param message ListTransitionRouteGroupsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer. + * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListSessionEntityTypesRequest + * @returns ListTransitionRouteGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest; /** - * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListSessionEntityTypesRequest + * @returns ListTransitionRouteGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest; /** - * Verifies a ListSessionEntityTypesRequest message. + * Verifies a ListTransitionRouteGroupsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListSessionEntityTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListTransitionRouteGroupsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListSessionEntityTypesRequest + * @returns ListTransitionRouteGroupsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest; /** - * Creates a plain object from a ListSessionEntityTypesRequest message. Also converts values to other types if specified. - * @param message ListSessionEntityTypesRequest + * Creates a plain object from a ListTransitionRouteGroupsRequest message. Also converts values to other types if specified. + * @param message ListTransitionRouteGroupsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListSessionEntityTypesRequest to JSON. + * Converts this ListTransitionRouteGroupsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListSessionEntityTypesResponse. */ - interface IListSessionEntityTypesResponse { + /** Properties of a ListTransitionRouteGroupsResponse. */ + interface IListTransitionRouteGroupsResponse { - /** ListSessionEntityTypesResponse sessionEntityTypes */ - sessionEntityTypes?: (google.cloud.dialogflow.cx.v3.ISessionEntityType[]|null); + /** ListTransitionRouteGroupsResponse transitionRouteGroups */ + transitionRouteGroups?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup[]|null); - /** ListSessionEntityTypesResponse nextPageToken */ + /** ListTransitionRouteGroupsResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a ListSessionEntityTypesResponse. */ - class ListSessionEntityTypesResponse implements IListSessionEntityTypesResponse { + /** Represents a ListTransitionRouteGroupsResponse. */ + class ListTransitionRouteGroupsResponse implements IListTransitionRouteGroupsResponse { /** - * Constructs a new ListSessionEntityTypesResponse. + * Constructs a new ListTransitionRouteGroupsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse); - /** ListSessionEntityTypesResponse sessionEntityTypes. */ - public sessionEntityTypes: google.cloud.dialogflow.cx.v3.ISessionEntityType[]; + /** ListTransitionRouteGroupsResponse transitionRouteGroups. */ + public transitionRouteGroups: google.cloud.dialogflow.cx.v3.ITransitionRouteGroup[]; - /** ListSessionEntityTypesResponse nextPageToken. */ + /** ListTransitionRouteGroupsResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new ListSessionEntityTypesResponse instance using the specified properties. + * Creates a new ListTransitionRouteGroupsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListSessionEntityTypesResponse instance + * @returns ListTransitionRouteGroupsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse; /** - * Encodes the specified ListSessionEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse.verify|verify} messages. - * @param message ListSessionEntityTypesResponse message or plain object to encode + * Encodes the specified ListTransitionRouteGroupsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse.verify|verify} messages. + * @param message ListTransitionRouteGroupsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListSessionEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse.verify|verify} messages. - * @param message ListSessionEntityTypesResponse message or plain object to encode + * Encodes the specified ListTransitionRouteGroupsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse.verify|verify} messages. + * @param message ListTransitionRouteGroupsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer. + * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListSessionEntityTypesResponse + * @returns ListTransitionRouteGroupsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse; /** - * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListSessionEntityTypesResponse + * @returns ListTransitionRouteGroupsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse; /** - * Verifies a ListSessionEntityTypesResponse message. + * Verifies a ListTransitionRouteGroupsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListSessionEntityTypesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListTransitionRouteGroupsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListSessionEntityTypesResponse + * @returns ListTransitionRouteGroupsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse; /** - * Creates a plain object from a ListSessionEntityTypesResponse message. Also converts values to other types if specified. - * @param message ListSessionEntityTypesResponse + * Creates a plain object from a ListTransitionRouteGroupsResponse message. Also converts values to other types if specified. + * @param message ListTransitionRouteGroupsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListSessionEntityTypesResponse to JSON. + * Converts this ListTransitionRouteGroupsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetSessionEntityTypeRequest. */ - interface IGetSessionEntityTypeRequest { + /** Properties of a GetTransitionRouteGroupRequest. */ + interface IGetTransitionRouteGroupRequest { - /** GetSessionEntityTypeRequest name */ + /** GetTransitionRouteGroupRequest name */ name?: (string|null); + + /** GetTransitionRouteGroupRequest languageCode */ + languageCode?: (string|null); } - /** Represents a GetSessionEntityTypeRequest. */ - class GetSessionEntityTypeRequest implements IGetSessionEntityTypeRequest { + /** Represents a GetTransitionRouteGroupRequest. */ + class GetTransitionRouteGroupRequest implements IGetTransitionRouteGroupRequest { /** - * Constructs a new GetSessionEntityTypeRequest. + * Constructs a new GetTransitionRouteGroupRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest); - /** GetSessionEntityTypeRequest name. */ + /** GetTransitionRouteGroupRequest name. */ public name: string; + /** GetTransitionRouteGroupRequest languageCode. */ + public languageCode: string; + /** - * Creates a new GetSessionEntityTypeRequest instance using the specified properties. + * Creates a new GetTransitionRouteGroupRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetSessionEntityTypeRequest instance + * @returns GetTransitionRouteGroupRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest; /** - * Encodes the specified GetSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest.verify|verify} messages. - * @param message GetSessionEntityTypeRequest message or plain object to encode + * Encodes the specified GetTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest.verify|verify} messages. + * @param message GetTransitionRouteGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest.verify|verify} messages. - * @param message GetSessionEntityTypeRequest message or plain object to encode + * Encodes the specified GetTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest.verify|verify} messages. + * @param message GetTransitionRouteGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer. + * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetSessionEntityTypeRequest + * @returns GetTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest; /** - * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetSessionEntityTypeRequest + * @returns GetTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest; /** - * Verifies a GetSessionEntityTypeRequest message. + * Verifies a GetTransitionRouteGroupRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetSessionEntityTypeRequest + * @returns GetTransitionRouteGroupRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest; /** - * Creates a plain object from a GetSessionEntityTypeRequest message. Also converts values to other types if specified. - * @param message GetSessionEntityTypeRequest + * Creates a plain object from a GetTransitionRouteGroupRequest message. Also converts values to other types if specified. + * @param message GetTransitionRouteGroupRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSessionEntityTypeRequest to JSON. + * Converts this GetTransitionRouteGroupRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateSessionEntityTypeRequest. */ - interface ICreateSessionEntityTypeRequest { + /** Properties of a CreateTransitionRouteGroupRequest. */ + interface ICreateTransitionRouteGroupRequest { - /** CreateSessionEntityTypeRequest parent */ + /** CreateTransitionRouteGroupRequest parent */ parent?: (string|null); - /** CreateSessionEntityTypeRequest sessionEntityType */ - sessionEntityType?: (google.cloud.dialogflow.cx.v3.ISessionEntityType|null); + /** CreateTransitionRouteGroupRequest transitionRouteGroup */ + transitionRouteGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); + + /** CreateTransitionRouteGroupRequest languageCode */ + languageCode?: (string|null); } - /** Represents a CreateSessionEntityTypeRequest. */ - class CreateSessionEntityTypeRequest implements ICreateSessionEntityTypeRequest { + /** Represents a CreateTransitionRouteGroupRequest. */ + class CreateTransitionRouteGroupRequest implements ICreateTransitionRouteGroupRequest { /** - * Constructs a new CreateSessionEntityTypeRequest. + * Constructs a new CreateTransitionRouteGroupRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest); - /** CreateSessionEntityTypeRequest parent. */ + /** CreateTransitionRouteGroupRequest parent. */ public parent: string; - /** CreateSessionEntityTypeRequest sessionEntityType. */ - public sessionEntityType?: (google.cloud.dialogflow.cx.v3.ISessionEntityType|null); + /** CreateTransitionRouteGroupRequest transitionRouteGroup. */ + public transitionRouteGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); + + /** CreateTransitionRouteGroupRequest languageCode. */ + public languageCode: string; /** - * Creates a new CreateSessionEntityTypeRequest instance using the specified properties. + * Creates a new CreateTransitionRouteGroupRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateSessionEntityTypeRequest instance + * @returns CreateTransitionRouteGroupRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest; /** - * Encodes the specified CreateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest.verify|verify} messages. - * @param message CreateSessionEntityTypeRequest message or plain object to encode + * Encodes the specified CreateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest.verify|verify} messages. + * @param message CreateTransitionRouteGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest.verify|verify} messages. - * @param message CreateSessionEntityTypeRequest message or plain object to encode + * Encodes the specified CreateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest.verify|verify} messages. + * @param message CreateTransitionRouteGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer. + * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateSessionEntityTypeRequest + * @returns CreateTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest; /** - * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateSessionEntityTypeRequest + * @returns CreateTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest; /** - * Verifies a CreateSessionEntityTypeRequest message. + * Verifies a CreateTransitionRouteGroupRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateSessionEntityTypeRequest + * @returns CreateTransitionRouteGroupRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest; /** - * Creates a plain object from a CreateSessionEntityTypeRequest message. Also converts values to other types if specified. - * @param message CreateSessionEntityTypeRequest + * Creates a plain object from a CreateTransitionRouteGroupRequest message. Also converts values to other types if specified. + * @param message CreateTransitionRouteGroupRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateSessionEntityTypeRequest to JSON. + * Converts this CreateTransitionRouteGroupRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateSessionEntityTypeRequest. */ - interface IUpdateSessionEntityTypeRequest { + /** Properties of an UpdateTransitionRouteGroupRequest. */ + interface IUpdateTransitionRouteGroupRequest { - /** UpdateSessionEntityTypeRequest sessionEntityType */ - sessionEntityType?: (google.cloud.dialogflow.cx.v3.ISessionEntityType|null); + /** UpdateTransitionRouteGroupRequest transitionRouteGroup */ + transitionRouteGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); - /** UpdateSessionEntityTypeRequest updateMask */ + /** UpdateTransitionRouteGroupRequest updateMask */ updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateTransitionRouteGroupRequest languageCode */ + languageCode?: (string|null); } - /** Represents an UpdateSessionEntityTypeRequest. */ - class UpdateSessionEntityTypeRequest implements IUpdateSessionEntityTypeRequest { + /** Represents an UpdateTransitionRouteGroupRequest. */ + class UpdateTransitionRouteGroupRequest implements IUpdateTransitionRouteGroupRequest { /** - * Constructs a new UpdateSessionEntityTypeRequest. + * Constructs a new UpdateTransitionRouteGroupRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest); - /** UpdateSessionEntityTypeRequest sessionEntityType. */ - public sessionEntityType?: (google.cloud.dialogflow.cx.v3.ISessionEntityType|null); + /** UpdateTransitionRouteGroupRequest transitionRouteGroup. */ + public transitionRouteGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); - /** UpdateSessionEntityTypeRequest updateMask. */ + /** UpdateTransitionRouteGroupRequest updateMask. */ public updateMask?: (google.protobuf.IFieldMask|null); + /** UpdateTransitionRouteGroupRequest languageCode. */ + public languageCode: string; + /** - * Creates a new UpdateSessionEntityTypeRequest instance using the specified properties. + * Creates a new UpdateTransitionRouteGroupRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateSessionEntityTypeRequest instance + * @returns UpdateTransitionRouteGroupRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest; /** - * Encodes the specified UpdateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest.verify|verify} messages. - * @param message UpdateSessionEntityTypeRequest message or plain object to encode + * Encodes the specified UpdateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest.verify|verify} messages. + * @param message UpdateTransitionRouteGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest.verify|verify} messages. - * @param message UpdateSessionEntityTypeRequest message or plain object to encode + * Encodes the specified UpdateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest.verify|verify} messages. + * @param message UpdateTransitionRouteGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer. + * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateSessionEntityTypeRequest + * @returns UpdateTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest; /** - * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateSessionEntityTypeRequest + * @returns UpdateTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest; /** - * Verifies an UpdateSessionEntityTypeRequest message. + * Verifies an UpdateTransitionRouteGroupRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateSessionEntityTypeRequest + * @returns UpdateTransitionRouteGroupRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest; /** - * Creates a plain object from an UpdateSessionEntityTypeRequest message. Also converts values to other types if specified. - * @param message UpdateSessionEntityTypeRequest + * Creates a plain object from an UpdateTransitionRouteGroupRequest message. Also converts values to other types if specified. + * @param message UpdateTransitionRouteGroupRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateSessionEntityTypeRequest to JSON. + * Converts this UpdateTransitionRouteGroupRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteSessionEntityTypeRequest. */ - interface IDeleteSessionEntityTypeRequest { + /** Properties of a DeleteTransitionRouteGroupRequest. */ + interface IDeleteTransitionRouteGroupRequest { - /** DeleteSessionEntityTypeRequest name */ + /** DeleteTransitionRouteGroupRequest name */ name?: (string|null); + + /** DeleteTransitionRouteGroupRequest force */ + force?: (boolean|null); } - /** Represents a DeleteSessionEntityTypeRequest. */ - class DeleteSessionEntityTypeRequest implements IDeleteSessionEntityTypeRequest { + /** Represents a DeleteTransitionRouteGroupRequest. */ + class DeleteTransitionRouteGroupRequest implements IDeleteTransitionRouteGroupRequest { /** - * Constructs a new DeleteSessionEntityTypeRequest. + * Constructs a new DeleteTransitionRouteGroupRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest); - /** DeleteSessionEntityTypeRequest name. */ + /** DeleteTransitionRouteGroupRequest name. */ public name: string; + /** DeleteTransitionRouteGroupRequest force. */ + public force: boolean; + /** - * Creates a new DeleteSessionEntityTypeRequest instance using the specified properties. + * Creates a new DeleteTransitionRouteGroupRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteSessionEntityTypeRequest instance + * @returns DeleteTransitionRouteGroupRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest; /** - * Encodes the specified DeleteSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest.verify|verify} messages. - * @param message DeleteSessionEntityTypeRequest message or plain object to encode + * Encodes the specified DeleteTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest.verify|verify} messages. + * @param message DeleteTransitionRouteGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest.verify|verify} messages. - * @param message DeleteSessionEntityTypeRequest message or plain object to encode + * Encodes the specified DeleteTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest.verify|verify} messages. + * @param message DeleteTransitionRouteGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer. + * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteSessionEntityTypeRequest + * @returns DeleteTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest; /** - * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteSessionEntityTypeRequest + * @returns DeleteTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest; /** - * Verifies a DeleteSessionEntityTypeRequest message. + * Verifies a DeleteTransitionRouteGroupRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteSessionEntityTypeRequest + * @returns DeleteTransitionRouteGroupRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest; /** - * Creates a plain object from a DeleteSessionEntityTypeRequest message. Also converts values to other types if specified. - * @param message DeleteSessionEntityTypeRequest + * Creates a plain object from a DeleteTransitionRouteGroupRequest message. Also converts values to other types if specified. + * @param message DeleteTransitionRouteGroupRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteSessionEntityTypeRequest to JSON. + * Converts this DeleteTransitionRouteGroupRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a TransitionRouteGroups */ - class TransitionRouteGroups extends $protobuf.rpc.Service { + /** Represents an Experiments */ + class Experiments extends $protobuf.rpc.Service { /** - * Constructs a new TransitionRouteGroups service. + * Constructs a new Experiments service. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited @@ -21332,6641 +21212,6761 @@ export namespace google { constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates new TransitionRouteGroups service using the specified rpc implementation. + * Creates new Experiments service using the specified rpc implementation. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): TransitionRouteGroups; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Experiments; /** - * Calls ListTransitionRouteGroups. - * @param request ListTransitionRouteGroupsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListTransitionRouteGroupsResponse + * Calls ListExperiments. + * @param request ListExperimentsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListExperimentsResponse */ - public listTransitionRouteGroups(request: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroupsCallback): void; + public listExperiments(request: google.cloud.dialogflow.cx.v3.IListExperimentsRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.ListExperimentsCallback): void; /** - * Calls ListTransitionRouteGroups. - * @param request ListTransitionRouteGroupsRequest message or plain object + * Calls ListExperiments. + * @param request ListExperimentsRequest message or plain object * @returns Promise */ - public listTransitionRouteGroups(request: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest): Promise; + public listExperiments(request: google.cloud.dialogflow.cx.v3.IListExperimentsRequest): Promise; /** - * Calls GetTransitionRouteGroup. - * @param request GetTransitionRouteGroupRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TransitionRouteGroup + * Calls GetExperiment. + * @param request GetExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Experiment */ - public getTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.GetTransitionRouteGroupCallback): void; + public getExperiment(request: google.cloud.dialogflow.cx.v3.IGetExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.GetExperimentCallback): void; /** - * Calls GetTransitionRouteGroup. - * @param request GetTransitionRouteGroupRequest message or plain object + * Calls GetExperiment. + * @param request GetExperimentRequest message or plain object * @returns Promise */ - public getTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest): Promise; + public getExperiment(request: google.cloud.dialogflow.cx.v3.IGetExperimentRequest): Promise; /** - * Calls CreateTransitionRouteGroup. - * @param request CreateTransitionRouteGroupRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TransitionRouteGroup + * Calls CreateExperiment. + * @param request CreateExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Experiment */ - public createTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroupCallback): void; + public createExperiment(request: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.CreateExperimentCallback): void; /** - * Calls CreateTransitionRouteGroup. - * @param request CreateTransitionRouteGroupRequest message or plain object + * Calls CreateExperiment. + * @param request CreateExperimentRequest message or plain object * @returns Promise */ - public createTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest): Promise; + public createExperiment(request: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest): Promise; /** - * Calls UpdateTransitionRouteGroup. - * @param request UpdateTransitionRouteGroupRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TransitionRouteGroup + * Calls UpdateExperiment. + * @param request UpdateExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Experiment */ - public updateTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.UpdateTransitionRouteGroupCallback): void; + public updateExperiment(request: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.UpdateExperimentCallback): void; /** - * Calls UpdateTransitionRouteGroup. - * @param request UpdateTransitionRouteGroupRequest message or plain object + * Calls UpdateExperiment. + * @param request UpdateExperimentRequest message or plain object * @returns Promise */ - public updateTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest): Promise; + public updateExperiment(request: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest): Promise; /** - * Calls DeleteTransitionRouteGroup. - * @param request DeleteTransitionRouteGroupRequest message or plain object + * Calls DeleteExperiment. + * @param request DeleteExperimentRequest message or plain object * @param callback Node-style callback called with the error, if any, and Empty */ - public deleteTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.DeleteTransitionRouteGroupCallback): void; + public deleteExperiment(request: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.DeleteExperimentCallback): void; /** - * Calls DeleteTransitionRouteGroup. - * @param request DeleteTransitionRouteGroupRequest message or plain object + * Calls DeleteExperiment. + * @param request DeleteExperimentRequest message or plain object * @returns Promise */ - public deleteTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest): Promise; + public deleteExperiment(request: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest): Promise; + + /** + * Calls StartExperiment. + * @param request StartExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Experiment + */ + public startExperiment(request: google.cloud.dialogflow.cx.v3.IStartExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.StartExperimentCallback): void; + + /** + * Calls StartExperiment. + * @param request StartExperimentRequest message or plain object + * @returns Promise + */ + public startExperiment(request: google.cloud.dialogflow.cx.v3.IStartExperimentRequest): Promise; + + /** + * Calls StopExperiment. + * @param request StopExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Experiment + */ + public stopExperiment(request: google.cloud.dialogflow.cx.v3.IStopExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.StopExperimentCallback): void; + + /** + * Calls StopExperiment. + * @param request StopExperimentRequest message or plain object + * @returns Promise + */ + public stopExperiment(request: google.cloud.dialogflow.cx.v3.IStopExperimentRequest): Promise; } - namespace TransitionRouteGroups { + namespace Experiments { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#listTransitionRouteGroups}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#listExperiments}. * @param error Error, if any - * @param [response] ListTransitionRouteGroupsResponse + * @param [response] ListExperimentsResponse */ - type ListTransitionRouteGroupsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse) => void; + type ListExperimentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListExperimentsResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#getTransitionRouteGroup}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#getExperiment}. * @param error Error, if any - * @param [response] TransitionRouteGroup + * @param [response] Experiment */ - type GetTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TransitionRouteGroup) => void; + type GetExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#createTransitionRouteGroup}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#createExperiment}. * @param error Error, if any - * @param [response] TransitionRouteGroup + * @param [response] Experiment */ - type CreateTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TransitionRouteGroup) => void; + type CreateExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#updateTransitionRouteGroup}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#updateExperiment}. * @param error Error, if any - * @param [response] TransitionRouteGroup + * @param [response] Experiment */ - type UpdateTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TransitionRouteGroup) => void; + type UpdateExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#deleteTransitionRouteGroup}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#deleteExperiment}. * @param error Error, if any * @param [response] Empty */ - type DeleteTransitionRouteGroupCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + type DeleteExperimentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#startExperiment}. + * @param error Error, if any + * @param [response] Experiment + */ + type StartExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#stopExperiment}. + * @param error Error, if any + * @param [response] Experiment + */ + type StopExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; } - /** Properties of a TransitionRouteGroup. */ - interface ITransitionRouteGroup { + /** Properties of an Experiment. */ + interface IExperiment { - /** TransitionRouteGroup name */ + /** Experiment name */ name?: (string|null); - /** TransitionRouteGroup displayName */ + /** Experiment displayName */ displayName?: (string|null); - /** TransitionRouteGroup transitionRoutes */ - transitionRoutes?: (google.cloud.dialogflow.cx.v3.ITransitionRoute[]|null); - } + /** Experiment description */ + description?: (string|null); - /** Represents a TransitionRouteGroup. */ - class TransitionRouteGroup implements ITransitionRouteGroup { + /** Experiment state */ + state?: (google.cloud.dialogflow.cx.v3.Experiment.State|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.State|null); - /** - * Constructs a new TransitionRouteGroup. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ITransitionRouteGroup); + /** Experiment definition */ + definition?: (google.cloud.dialogflow.cx.v3.Experiment.IDefinition|null); - /** TransitionRouteGroup name. */ - public name: string; + /** Experiment rolloutConfig */ + rolloutConfig?: (google.cloud.dialogflow.cx.v3.IRolloutConfig|null); - /** TransitionRouteGroup displayName. */ - public displayName: string; + /** Experiment rolloutState */ + rolloutState?: (google.cloud.dialogflow.cx.v3.IRolloutState|null); - /** TransitionRouteGroup transitionRoutes. */ - public transitionRoutes: google.cloud.dialogflow.cx.v3.ITransitionRoute[]; + /** Experiment rolloutFailureReason */ + rolloutFailureReason?: (string|null); - /** - * Creates a new TransitionRouteGroup instance using the specified properties. - * @param [properties] Properties to set - * @returns TransitionRouteGroup instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ITransitionRouteGroup): google.cloud.dialogflow.cx.v3.TransitionRouteGroup; + /** Experiment result */ + result?: (google.cloud.dialogflow.cx.v3.Experiment.IResult|null); - /** - * Encodes the specified TransitionRouteGroup message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify|verify} messages. - * @param message TransitionRouteGroup message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.ITransitionRouteGroup, writer?: $protobuf.Writer): $protobuf.Writer; + /** Experiment createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified TransitionRouteGroup message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify|verify} messages. - * @param message TransitionRouteGroup message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITransitionRouteGroup, writer?: $protobuf.Writer): $protobuf.Writer; + /** Experiment startTime */ + startTime?: (google.protobuf.ITimestamp|null); - /** - * Decodes a TransitionRouteGroup message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TransitionRouteGroup - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TransitionRouteGroup; + /** Experiment endTime */ + endTime?: (google.protobuf.ITimestamp|null); - /** - * Decodes a TransitionRouteGroup message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TransitionRouteGroup - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TransitionRouteGroup; + /** Experiment lastUpdateTime */ + lastUpdateTime?: (google.protobuf.ITimestamp|null); - /** - * Verifies a TransitionRouteGroup message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Experiment experimentLength */ + experimentLength?: (google.protobuf.IDuration|null); - /** - * Creates a TransitionRouteGroup message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TransitionRouteGroup - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TransitionRouteGroup; + /** Experiment variantsHistory */ + variantsHistory?: (google.cloud.dialogflow.cx.v3.IVariantsHistory[]|null); + } - /** - * Creates a plain object from a TransitionRouteGroup message. Also converts values to other types if specified. - * @param message TransitionRouteGroup - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.TransitionRouteGroup, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents an Experiment. */ + class Experiment implements IExperiment { /** - * Converts this TransitionRouteGroup to JSON. - * @returns JSON object + * Constructs a new Experiment. + * @param [properties] Properties to set */ - public toJSON(): { [k: string]: any }; - } + constructor(properties?: google.cloud.dialogflow.cx.v3.IExperiment); - /** Properties of a ListTransitionRouteGroupsRequest. */ - interface IListTransitionRouteGroupsRequest { + /** Experiment name. */ + public name: string; - /** ListTransitionRouteGroupsRequest parent */ - parent?: (string|null); + /** Experiment displayName. */ + public displayName: string; - /** ListTransitionRouteGroupsRequest pageSize */ - pageSize?: (number|null); + /** Experiment description. */ + public description: string; - /** ListTransitionRouteGroupsRequest pageToken */ - pageToken?: (string|null); + /** Experiment state. */ + public state: (google.cloud.dialogflow.cx.v3.Experiment.State|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.State); - /** ListTransitionRouteGroupsRequest languageCode */ - languageCode?: (string|null); - } + /** Experiment definition. */ + public definition?: (google.cloud.dialogflow.cx.v3.Experiment.IDefinition|null); - /** Represents a ListTransitionRouteGroupsRequest. */ - class ListTransitionRouteGroupsRequest implements IListTransitionRouteGroupsRequest { + /** Experiment rolloutConfig. */ + public rolloutConfig?: (google.cloud.dialogflow.cx.v3.IRolloutConfig|null); - /** - * Constructs a new ListTransitionRouteGroupsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest); + /** Experiment rolloutState. */ + public rolloutState?: (google.cloud.dialogflow.cx.v3.IRolloutState|null); - /** ListTransitionRouteGroupsRequest parent. */ - public parent: string; + /** Experiment rolloutFailureReason. */ + public rolloutFailureReason: string; - /** ListTransitionRouteGroupsRequest pageSize. */ - public pageSize: number; + /** Experiment result. */ + public result?: (google.cloud.dialogflow.cx.v3.Experiment.IResult|null); - /** ListTransitionRouteGroupsRequest pageToken. */ - public pageToken: string; + /** Experiment createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** ListTransitionRouteGroupsRequest languageCode. */ - public languageCode: string; + /** Experiment startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** Experiment endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** Experiment lastUpdateTime. */ + public lastUpdateTime?: (google.protobuf.ITimestamp|null); + + /** Experiment experimentLength. */ + public experimentLength?: (google.protobuf.IDuration|null); + + /** Experiment variantsHistory. */ + public variantsHistory: google.cloud.dialogflow.cx.v3.IVariantsHistory[]; /** - * Creates a new ListTransitionRouteGroupsRequest instance using the specified properties. + * Creates a new Experiment instance using the specified properties. * @param [properties] Properties to set - * @returns ListTransitionRouteGroupsRequest instance + * @returns Experiment instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IExperiment): google.cloud.dialogflow.cx.v3.Experiment; /** - * Encodes the specified ListTransitionRouteGroupsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest.verify|verify} messages. - * @param message ListTransitionRouteGroupsRequest message or plain object to encode + * Encodes the specified Experiment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.verify|verify} messages. + * @param message Experiment message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IExperiment, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTransitionRouteGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest.verify|verify} messages. - * @param message ListTransitionRouteGroupsRequest message or plain object to encode + * Encodes the specified Experiment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.verify|verify} messages. + * @param message Experiment message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IExperiment, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer. + * Decodes an Experiment message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTransitionRouteGroupsRequest + * @returns Experiment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Experiment; /** - * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer, length delimited. + * Decodes an Experiment message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTransitionRouteGroupsRequest + * @returns Experiment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Experiment; /** - * Verifies a ListTransitionRouteGroupsRequest message. + * Verifies an Experiment message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListTransitionRouteGroupsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an Experiment message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTransitionRouteGroupsRequest + * @returns Experiment */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Experiment; /** - * Creates a plain object from a ListTransitionRouteGroupsRequest message. Also converts values to other types if specified. - * @param message ListTransitionRouteGroupsRequest + * Creates a plain object from an Experiment message. Also converts values to other types if specified. + * @param message Experiment * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Experiment, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTransitionRouteGroupsRequest to JSON. + * Converts this Experiment to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListTransitionRouteGroupsResponse. */ - interface IListTransitionRouteGroupsResponse { - - /** ListTransitionRouteGroupsResponse transitionRouteGroups */ - transitionRouteGroups?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup[]|null); + namespace Experiment { - /** ListTransitionRouteGroupsResponse nextPageToken */ - nextPageToken?: (string|null); - } + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + DRAFT = 1, + RUNNING = 2, + DONE = 3, + ROLLOUT_FAILED = 4 + } - /** Represents a ListTransitionRouteGroupsResponse. */ - class ListTransitionRouteGroupsResponse implements IListTransitionRouteGroupsResponse { + /** Properties of a Definition. */ + interface IDefinition { - /** - * Constructs a new ListTransitionRouteGroupsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse); + /** Definition condition */ + condition?: (string|null); - /** ListTransitionRouteGroupsResponse transitionRouteGroups. */ - public transitionRouteGroups: google.cloud.dialogflow.cx.v3.ITransitionRouteGroup[]; + /** Definition versionVariants */ + versionVariants?: (google.cloud.dialogflow.cx.v3.IVersionVariants|null); + } - /** ListTransitionRouteGroupsResponse nextPageToken. */ - public nextPageToken: string; + /** Represents a Definition. */ + class Definition implements IDefinition { - /** - * Creates a new ListTransitionRouteGroupsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListTransitionRouteGroupsResponse instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse; + /** + * Constructs a new Definition. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.Experiment.IDefinition); - /** - * Encodes the specified ListTransitionRouteGroupsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse.verify|verify} messages. - * @param message ListTransitionRouteGroupsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** Definition condition. */ + public condition: string; - /** - * Encodes the specified ListTransitionRouteGroupsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse.verify|verify} messages. - * @param message ListTransitionRouteGroupsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** Definition versionVariants. */ + public versionVariants?: (google.cloud.dialogflow.cx.v3.IVersionVariants|null); - /** - * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListTransitionRouteGroupsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse; + /** Definition variants. */ + public variants?: "versionVariants"; - /** - * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListTransitionRouteGroupsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse; + /** + * Creates a new Definition instance using the specified properties. + * @param [properties] Properties to set + * @returns Definition instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.Experiment.IDefinition): google.cloud.dialogflow.cx.v3.Experiment.Definition; - /** - * Verifies a ListTransitionRouteGroupsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Encodes the specified Definition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Definition.verify|verify} messages. + * @param message Definition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.Experiment.IDefinition, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a ListTransitionRouteGroupsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListTransitionRouteGroupsResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse; + /** + * Encodes the specified Definition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Definition.verify|verify} messages. + * @param message Definition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Experiment.IDefinition, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a ListTransitionRouteGroupsResponse message. Also converts values to other types if specified. - * @param message ListTransitionRouteGroupsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a Definition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Definition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Experiment.Definition; - /** - * Converts this ListTransitionRouteGroupsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Decodes a Definition message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Definition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Experiment.Definition; - /** Properties of a GetTransitionRouteGroupRequest. */ - interface IGetTransitionRouteGroupRequest { + /** + * Verifies a Definition message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** GetTransitionRouteGroupRequest name */ - name?: (string|null); + /** + * Creates a Definition message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Definition + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Experiment.Definition; - /** GetTransitionRouteGroupRequest languageCode */ - languageCode?: (string|null); - } + /** + * Creates a plain object from a Definition message. Also converts values to other types if specified. + * @param message Definition + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.Experiment.Definition, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Represents a GetTransitionRouteGroupRequest. */ - class GetTransitionRouteGroupRequest implements IGetTransitionRouteGroupRequest { + /** + * Converts this Definition to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Constructs a new GetTransitionRouteGroupRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest); + /** Properties of a Result. */ + interface IResult { - /** GetTransitionRouteGroupRequest name. */ - public name: string; + /** Result versionMetrics */ + versionMetrics?: (google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics[]|null); - /** GetTransitionRouteGroupRequest languageCode. */ - public languageCode: string; + /** Result lastUpdateTime */ + lastUpdateTime?: (google.protobuf.ITimestamp|null); + } - /** - * Creates a new GetTransitionRouteGroupRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetTransitionRouteGroupRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest; + /** Represents a Result. */ + class Result implements IResult { - /** - * Encodes the specified GetTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest.verify|verify} messages. - * @param message GetTransitionRouteGroupRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new Result. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.Experiment.IResult); - /** - * Encodes the specified GetTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest.verify|verify} messages. - * @param message GetTransitionRouteGroupRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Result versionMetrics. */ + public versionMetrics: google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics[]; - /** - * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetTransitionRouteGroupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest; + /** Result lastUpdateTime. */ + public lastUpdateTime?: (google.protobuf.ITimestamp|null); - /** - * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetTransitionRouteGroupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest; + /** + * Creates a new Result instance using the specified properties. + * @param [properties] Properties to set + * @returns Result instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.Experiment.IResult): google.cloud.dialogflow.cx.v3.Experiment.Result; - /** - * Verifies a GetTransitionRouteGroupRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Encodes the specified Result message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.verify|verify} messages. + * @param message Result message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.Experiment.IResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a GetTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetTransitionRouteGroupRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest; + /** + * Encodes the specified Result message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.verify|verify} messages. + * @param message Result message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Experiment.IResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a GetTransitionRouteGroupRequest message. Also converts values to other types if specified. - * @param message GetTransitionRouteGroupRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a Result message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Result + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Experiment.Result; - /** - * Converts this GetTransitionRouteGroupRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Decodes a Result message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Result + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Experiment.Result; - /** Properties of a CreateTransitionRouteGroupRequest. */ - interface ICreateTransitionRouteGroupRequest { + /** + * Verifies a Result message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** CreateTransitionRouteGroupRequest parent */ - parent?: (string|null); + /** + * Creates a Result message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Result + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Experiment.Result; - /** CreateTransitionRouteGroupRequest transitionRouteGroup */ - transitionRouteGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); + /** + * Creates a plain object from a Result message. Also converts values to other types if specified. + * @param message Result + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.Experiment.Result, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** CreateTransitionRouteGroupRequest languageCode */ - languageCode?: (string|null); - } + /** + * Converts this Result to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Represents a CreateTransitionRouteGroupRequest. */ - class CreateTransitionRouteGroupRequest implements ICreateTransitionRouteGroupRequest { + namespace Result { - /** - * Constructs a new CreateTransitionRouteGroupRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest); + /** MetricType enum. */ + enum MetricType { + METRIC_UNSPECIFIED = 0, + CONTAINED_SESSION_NO_CALLBACK_RATE = 1, + LIVE_AGENT_HANDOFF_RATE = 2, + CALLBACK_SESSION_RATE = 3, + ABANDONED_SESSION_RATE = 4, + SESSION_END_RATE = 5 + } - /** CreateTransitionRouteGroupRequest parent. */ - public parent: string; + /** CountType enum. */ + enum CountType { + COUNT_TYPE_UNSPECIFIED = 0, + TOTAL_NO_MATCH_COUNT = 1, + TOTAL_TURN_COUNT = 2, + AVERAGE_TURN_COUNT = 3 + } - /** CreateTransitionRouteGroupRequest transitionRouteGroup. */ - public transitionRouteGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); + /** Properties of a ConfidenceInterval. */ + interface IConfidenceInterval { - /** CreateTransitionRouteGroupRequest languageCode. */ - public languageCode: string; + /** ConfidenceInterval confidenceLevel */ + confidenceLevel?: (number|null); - /** - * Creates a new CreateTransitionRouteGroupRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateTransitionRouteGroupRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest; + /** ConfidenceInterval ratio */ + ratio?: (number|null); - /** - * Encodes the specified CreateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest.verify|verify} messages. - * @param message CreateTransitionRouteGroupRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** ConfidenceInterval lowerBound */ + lowerBound?: (number|null); - /** - * Encodes the specified CreateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest.verify|verify} messages. - * @param message CreateTransitionRouteGroupRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** ConfidenceInterval upperBound */ + upperBound?: (number|null); + } - /** - * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateTransitionRouteGroupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest; + /** Represents a ConfidenceInterval. */ + class ConfidenceInterval implements IConfidenceInterval { - /** - * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateTransitionRouteGroupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest; + /** + * Constructs a new ConfidenceInterval. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval); - /** - * Verifies a CreateTransitionRouteGroupRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** ConfidenceInterval confidenceLevel. */ + public confidenceLevel: number; - /** - * Creates a CreateTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateTransitionRouteGroupRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest; + /** ConfidenceInterval ratio. */ + public ratio: number; - /** - * Creates a plain object from a CreateTransitionRouteGroupRequest message. Also converts values to other types if specified. - * @param message CreateTransitionRouteGroupRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ConfidenceInterval lowerBound. */ + public lowerBound: number; - /** - * Converts this CreateTransitionRouteGroupRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** ConfidenceInterval upperBound. */ + public upperBound: number; - /** Properties of an UpdateTransitionRouteGroupRequest. */ - interface IUpdateTransitionRouteGroupRequest { + /** + * Creates a new ConfidenceInterval instance using the specified properties. + * @param [properties] Properties to set + * @returns ConfidenceInterval instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval): google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval; - /** UpdateTransitionRouteGroupRequest transitionRouteGroup */ - transitionRouteGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); + /** + * Encodes the specified ConfidenceInterval message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.verify|verify} messages. + * @param message ConfidenceInterval message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval, writer?: $protobuf.Writer): $protobuf.Writer; - /** UpdateTransitionRouteGroupRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** + * Encodes the specified ConfidenceInterval message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.verify|verify} messages. + * @param message ConfidenceInterval message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval, writer?: $protobuf.Writer): $protobuf.Writer; - /** UpdateTransitionRouteGroupRequest languageCode */ - languageCode?: (string|null); - } + /** + * Decodes a ConfidenceInterval message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConfidenceInterval + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval; - /** Represents an UpdateTransitionRouteGroupRequest. */ - class UpdateTransitionRouteGroupRequest implements IUpdateTransitionRouteGroupRequest { + /** + * Decodes a ConfidenceInterval message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConfidenceInterval + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval; - /** - * Constructs a new UpdateTransitionRouteGroupRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest); + /** + * Verifies a ConfidenceInterval message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** UpdateTransitionRouteGroupRequest transitionRouteGroup. */ - public transitionRouteGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); + /** + * Creates a ConfidenceInterval message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConfidenceInterval + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval; - /** UpdateTransitionRouteGroupRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** + * Creates a plain object from a ConfidenceInterval message. Also converts values to other types if specified. + * @param message ConfidenceInterval + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** UpdateTransitionRouteGroupRequest languageCode. */ - public languageCode: string; + /** + * Converts this ConfidenceInterval to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Metric. */ + interface IMetric { + + /** Metric type */ + type?: (google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType|null); + + /** Metric countType */ + countType?: (google.cloud.dialogflow.cx.v3.Experiment.Result.CountType|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.Result.CountType|null); + + /** Metric ratio */ + ratio?: (number|null); + + /** Metric count */ + count?: (number|null); + + /** Metric confidenceInterval */ + confidenceInterval?: (google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval|null); + } + + /** Represents a Metric. */ + class Metric implements IMetric { + + /** + * Constructs a new Metric. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric); + + /** Metric type. */ + public type: (google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType); + + /** Metric countType. */ + public countType: (google.cloud.dialogflow.cx.v3.Experiment.Result.CountType|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.Result.CountType); + + /** Metric ratio. */ + public ratio?: (number|null); + + /** Metric count. */ + public count?: (number|null); + + /** Metric confidenceInterval. */ + public confidenceInterval?: (google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval|null); + + /** Metric value. */ + public value?: ("ratio"|"count"); + + /** + * Creates a new Metric instance using the specified properties. + * @param [properties] Properties to set + * @returns Metric instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric): google.cloud.dialogflow.cx.v3.Experiment.Result.Metric; + + /** + * Encodes the specified Metric message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.verify|verify} messages. + * @param message Metric message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.verify|verify} messages. + * @param message Metric message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Metric message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Metric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Experiment.Result.Metric; + + /** + * Decodes a Metric message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Metric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Experiment.Result.Metric; + + /** + * Verifies a Metric message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Metric message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Metric + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Experiment.Result.Metric; + + /** + * Creates a plain object from a Metric message. Also converts values to other types if specified. + * @param message Metric + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.Experiment.Result.Metric, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Metric to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a VersionMetrics. */ + interface IVersionMetrics { + + /** VersionMetrics version */ + version?: (string|null); + + /** VersionMetrics metrics */ + metrics?: (google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric[]|null); + + /** VersionMetrics sessionCount */ + sessionCount?: (number|null); + } + + /** Represents a VersionMetrics. */ + class VersionMetrics implements IVersionMetrics { + + /** + * Constructs a new VersionMetrics. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics); + + /** VersionMetrics version. */ + public version: string; + + /** VersionMetrics metrics. */ + public metrics: google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric[]; + + /** VersionMetrics sessionCount. */ + public sessionCount: number; + + /** + * Creates a new VersionMetrics instance using the specified properties. + * @param [properties] Properties to set + * @returns VersionMetrics instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics): google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics; + + /** + * Encodes the specified VersionMetrics message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.verify|verify} messages. + * @param message VersionMetrics message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VersionMetrics message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.verify|verify} messages. + * @param message VersionMetrics message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VersionMetrics message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VersionMetrics + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics; + + /** + * Decodes a VersionMetrics message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VersionMetrics + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics; + + /** + * Verifies a VersionMetrics message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VersionMetrics message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VersionMetrics + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics; + + /** + * Creates a plain object from a VersionMetrics message. Also converts values to other types if specified. + * @param message VersionMetrics + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VersionMetrics to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + + /** Properties of a VersionVariants. */ + interface IVersionVariants { + + /** VersionVariants variants */ + variants?: (google.cloud.dialogflow.cx.v3.VersionVariants.IVariant[]|null); + } + + /** Represents a VersionVariants. */ + class VersionVariants implements IVersionVariants { /** - * Creates a new UpdateTransitionRouteGroupRequest instance using the specified properties. + * Constructs a new VersionVariants. * @param [properties] Properties to set - * @returns UpdateTransitionRouteGroupRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest; + constructor(properties?: google.cloud.dialogflow.cx.v3.IVersionVariants); + + /** VersionVariants variants. */ + public variants: google.cloud.dialogflow.cx.v3.VersionVariants.IVariant[]; /** - * Encodes the specified UpdateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest.verify|verify} messages. - * @param message UpdateTransitionRouteGroupRequest message or plain object to encode + * Creates a new VersionVariants instance using the specified properties. + * @param [properties] Properties to set + * @returns VersionVariants instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IVersionVariants): google.cloud.dialogflow.cx.v3.VersionVariants; + + /** + * Encodes the specified VersionVariants message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.verify|verify} messages. + * @param message VersionVariants message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IVersionVariants, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest.verify|verify} messages. - * @param message UpdateTransitionRouteGroupRequest message or plain object to encode + * Encodes the specified VersionVariants message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.verify|verify} messages. + * @param message VersionVariants message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IVersionVariants, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer. + * Decodes a VersionVariants message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateTransitionRouteGroupRequest + * @returns VersionVariants * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.VersionVariants; /** - * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. + * Decodes a VersionVariants message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateTransitionRouteGroupRequest + * @returns VersionVariants * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.VersionVariants; /** - * Verifies an UpdateTransitionRouteGroupRequest message. + * Verifies a VersionVariants message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VersionVariants message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateTransitionRouteGroupRequest + * @returns VersionVariants */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.VersionVariants; /** - * Creates a plain object from an UpdateTransitionRouteGroupRequest message. Also converts values to other types if specified. - * @param message UpdateTransitionRouteGroupRequest + * Creates a plain object from a VersionVariants message. Also converts values to other types if specified. + * @param message VersionVariants * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.VersionVariants, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateTransitionRouteGroupRequest to JSON. + * Converts this VersionVariants to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteTransitionRouteGroupRequest. */ - interface IDeleteTransitionRouteGroupRequest { + namespace VersionVariants { - /** DeleteTransitionRouteGroupRequest name */ - name?: (string|null); + /** Properties of a Variant. */ + interface IVariant { - /** DeleteTransitionRouteGroupRequest force */ - force?: (boolean|null); + /** Variant version */ + version?: (string|null); + + /** Variant trafficAllocation */ + trafficAllocation?: (number|null); + + /** Variant isControlGroup */ + isControlGroup?: (boolean|null); + } + + /** Represents a Variant. */ + class Variant implements IVariant { + + /** + * Constructs a new Variant. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.VersionVariants.IVariant); + + /** Variant version. */ + public version: string; + + /** Variant trafficAllocation. */ + public trafficAllocation: number; + + /** Variant isControlGroup. */ + public isControlGroup: boolean; + + /** + * Creates a new Variant instance using the specified properties. + * @param [properties] Properties to set + * @returns Variant instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.VersionVariants.IVariant): google.cloud.dialogflow.cx.v3.VersionVariants.Variant; + + /** + * Encodes the specified Variant message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.Variant.verify|verify} messages. + * @param message Variant message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.VersionVariants.IVariant, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Variant message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.Variant.verify|verify} messages. + * @param message Variant message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.VersionVariants.IVariant, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Variant message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Variant + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.VersionVariants.Variant; + + /** + * Decodes a Variant message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Variant + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.VersionVariants.Variant; + + /** + * Verifies a Variant message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Variant message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Variant + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.VersionVariants.Variant; + + /** + * Creates a plain object from a Variant message. Also converts values to other types if specified. + * @param message Variant + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.VersionVariants.Variant, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Variant to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Represents a DeleteTransitionRouteGroupRequest. */ - class DeleteTransitionRouteGroupRequest implements IDeleteTransitionRouteGroupRequest { + /** Properties of a VariantsHistory. */ + interface IVariantsHistory { + + /** VariantsHistory versionVariants */ + versionVariants?: (google.cloud.dialogflow.cx.v3.IVersionVariants|null); + + /** VariantsHistory updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a VariantsHistory. */ + class VariantsHistory implements IVariantsHistory { /** - * Constructs a new DeleteTransitionRouteGroupRequest. + * Constructs a new VariantsHistory. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IVariantsHistory); - /** DeleteTransitionRouteGroupRequest name. */ - public name: string; + /** VariantsHistory versionVariants. */ + public versionVariants?: (google.cloud.dialogflow.cx.v3.IVersionVariants|null); - /** DeleteTransitionRouteGroupRequest force. */ - public force: boolean; + /** VariantsHistory updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** VariantsHistory variants. */ + public variants?: "versionVariants"; /** - * Creates a new DeleteTransitionRouteGroupRequest instance using the specified properties. + * Creates a new VariantsHistory instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteTransitionRouteGroupRequest instance + * @returns VariantsHistory instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IVariantsHistory): google.cloud.dialogflow.cx.v3.VariantsHistory; /** - * Encodes the specified DeleteTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest.verify|verify} messages. - * @param message DeleteTransitionRouteGroupRequest message or plain object to encode + * Encodes the specified VariantsHistory message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VariantsHistory.verify|verify} messages. + * @param message VariantsHistory message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IVariantsHistory, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest.verify|verify} messages. - * @param message DeleteTransitionRouteGroupRequest message or plain object to encode + * Encodes the specified VariantsHistory message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VariantsHistory.verify|verify} messages. + * @param message VariantsHistory message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IVariantsHistory, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer. + * Decodes a VariantsHistory message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteTransitionRouteGroupRequest + * @returns VariantsHistory * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.VariantsHistory; /** - * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. + * Decodes a VariantsHistory message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteTransitionRouteGroupRequest + * @returns VariantsHistory * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.VariantsHistory; /** - * Verifies a DeleteTransitionRouteGroupRequest message. + * Verifies a VariantsHistory message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VariantsHistory message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteTransitionRouteGroupRequest + * @returns VariantsHistory */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.VariantsHistory; /** - * Creates a plain object from a DeleteTransitionRouteGroupRequest message. Also converts values to other types if specified. - * @param message DeleteTransitionRouteGroupRequest + * Creates a plain object from a VariantsHistory message. Also converts values to other types if specified. + * @param message VariantsHistory * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.VariantsHistory, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteTransitionRouteGroupRequest to JSON. + * Converts this VariantsHistory to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a Webhooks */ - class Webhooks extends $protobuf.rpc.Service { + /** Properties of a RolloutConfig. */ + interface IRolloutConfig { - /** - * Constructs a new Webhooks service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** RolloutConfig rolloutSteps */ + rolloutSteps?: (google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep[]|null); - /** - * Creates new Webhooks service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Webhooks; - - /** - * Calls ListWebhooks. - * @param request ListWebhooksRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListWebhooksResponse - */ - public listWebhooks(request: google.cloud.dialogflow.cx.v3.IListWebhooksRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooksCallback): void; - - /** - * Calls ListWebhooks. - * @param request ListWebhooksRequest message or plain object - * @returns Promise - */ - public listWebhooks(request: google.cloud.dialogflow.cx.v3.IListWebhooksRequest): Promise; - - /** - * Calls GetWebhook. - * @param request GetWebhookRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Webhook - */ - public getWebhook(request: google.cloud.dialogflow.cx.v3.IGetWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.GetWebhookCallback): void; - - /** - * Calls GetWebhook. - * @param request GetWebhookRequest message or plain object - * @returns Promise - */ - public getWebhook(request: google.cloud.dialogflow.cx.v3.IGetWebhookRequest): Promise; - - /** - * Calls CreateWebhook. - * @param request CreateWebhookRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Webhook - */ - public createWebhook(request: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhookCallback): void; - - /** - * Calls CreateWebhook. - * @param request CreateWebhookRequest message or plain object - * @returns Promise - */ - public createWebhook(request: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest): Promise; - - /** - * Calls UpdateWebhook. - * @param request UpdateWebhookRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Webhook - */ - public updateWebhook(request: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhookCallback): void; - - /** - * Calls UpdateWebhook. - * @param request UpdateWebhookRequest message or plain object - * @returns Promise - */ - public updateWebhook(request: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest): Promise; - - /** - * Calls DeleteWebhook. - * @param request DeleteWebhookRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public deleteWebhook(request: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.DeleteWebhookCallback): void; - - /** - * Calls DeleteWebhook. - * @param request DeleteWebhookRequest message or plain object - * @returns Promise - */ - public deleteWebhook(request: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest): Promise; - } - - namespace Webhooks { - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#listWebhooks}. - * @param error Error, if any - * @param [response] ListWebhooksResponse - */ - type ListWebhooksCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListWebhooksResponse) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#getWebhook}. - * @param error Error, if any - * @param [response] Webhook - */ - type GetWebhookCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Webhook) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#createWebhook}. - * @param error Error, if any - * @param [response] Webhook - */ - type CreateWebhookCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Webhook) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#updateWebhook}. - * @param error Error, if any - * @param [response] Webhook - */ - type UpdateWebhookCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Webhook) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#deleteWebhook}. - * @param error Error, if any - * @param [response] Empty - */ - type DeleteWebhookCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - } - - /** Properties of a Webhook. */ - interface IWebhook { - - /** Webhook name */ - name?: (string|null); - - /** Webhook displayName */ - displayName?: (string|null); - - /** Webhook genericWebService */ - genericWebService?: (google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null); - - /** Webhook serviceDirectory */ - serviceDirectory?: (google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig|null); - - /** Webhook timeout */ - timeout?: (google.protobuf.IDuration|null); + /** RolloutConfig rolloutCondition */ + rolloutCondition?: (string|null); - /** Webhook disabled */ - disabled?: (boolean|null); + /** RolloutConfig failureCondition */ + failureCondition?: (string|null); } - /** Represents a Webhook. */ - class Webhook implements IWebhook { + /** Represents a RolloutConfig. */ + class RolloutConfig implements IRolloutConfig { /** - * Constructs a new Webhook. + * Constructs a new RolloutConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IWebhook); - - /** Webhook name. */ - public name: string; - - /** Webhook displayName. */ - public displayName: string; - - /** Webhook genericWebService. */ - public genericWebService?: (google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null); - - /** Webhook serviceDirectory. */ - public serviceDirectory?: (google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig|null); + constructor(properties?: google.cloud.dialogflow.cx.v3.IRolloutConfig); - /** Webhook timeout. */ - public timeout?: (google.protobuf.IDuration|null); + /** RolloutConfig rolloutSteps. */ + public rolloutSteps: google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep[]; - /** Webhook disabled. */ - public disabled: boolean; + /** RolloutConfig rolloutCondition. */ + public rolloutCondition: string; - /** Webhook webhook. */ - public webhook?: ("genericWebService"|"serviceDirectory"); + /** RolloutConfig failureCondition. */ + public failureCondition: string; /** - * Creates a new Webhook instance using the specified properties. + * Creates a new RolloutConfig instance using the specified properties. * @param [properties] Properties to set - * @returns Webhook instance + * @returns RolloutConfig instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IWebhook): google.cloud.dialogflow.cx.v3.Webhook; + public static create(properties?: google.cloud.dialogflow.cx.v3.IRolloutConfig): google.cloud.dialogflow.cx.v3.RolloutConfig; /** - * Encodes the specified Webhook message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.verify|verify} messages. - * @param message Webhook message or plain object to encode + * Encodes the specified RolloutConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutConfig.verify|verify} messages. + * @param message RolloutConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IWebhook, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IRolloutConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Webhook message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.verify|verify} messages. - * @param message Webhook message or plain object to encode + * Encodes the specified RolloutConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutConfig.verify|verify} messages. + * @param message RolloutConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IWebhook, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IRolloutConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Webhook message from the specified reader or buffer. + * Decodes a RolloutConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Webhook + * @returns RolloutConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Webhook; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.RolloutConfig; /** - * Decodes a Webhook message from the specified reader or buffer, length delimited. + * Decodes a RolloutConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Webhook + * @returns RolloutConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Webhook; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.RolloutConfig; /** - * Verifies a Webhook message. + * Verifies a RolloutConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Webhook message from a plain object. Also converts values to their respective internal types. + * Creates a RolloutConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Webhook + * @returns RolloutConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Webhook; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.RolloutConfig; /** - * Creates a plain object from a Webhook message. Also converts values to other types if specified. - * @param message Webhook + * Creates a plain object from a RolloutConfig message. Also converts values to other types if specified. + * @param message RolloutConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Webhook, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.RolloutConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Webhook to JSON. + * Converts this RolloutConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Webhook { - - /** Properties of a GenericWebService. */ - interface IGenericWebService { - - /** GenericWebService uri */ - uri?: (string|null); + namespace RolloutConfig { - /** GenericWebService username */ - username?: (string|null); + /** Properties of a RolloutStep. */ + interface IRolloutStep { - /** GenericWebService password */ - password?: (string|null); + /** RolloutStep displayName */ + displayName?: (string|null); - /** GenericWebService requestHeaders */ - requestHeaders?: ({ [k: string]: string }|null); + /** RolloutStep trafficPercent */ + trafficPercent?: (number|null); - /** GenericWebService allowedCaCerts */ - allowedCaCerts?: (Uint8Array[]|null); + /** RolloutStep minDuration */ + minDuration?: (google.protobuf.IDuration|null); } - /** Represents a GenericWebService. */ - class GenericWebService implements IGenericWebService { - - /** - * Constructs a new GenericWebService. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService); - - /** GenericWebService uri. */ - public uri: string; - - /** GenericWebService username. */ - public username: string; - - /** GenericWebService password. */ - public password: string; - - /** GenericWebService requestHeaders. */ - public requestHeaders: { [k: string]: string }; - - /** GenericWebService allowedCaCerts. */ - public allowedCaCerts: Uint8Array[]; + /** Represents a RolloutStep. */ + class RolloutStep implements IRolloutStep { /** - * Creates a new GenericWebService instance using the specified properties. + * Constructs a new RolloutStep. * @param [properties] Properties to set - * @returns GenericWebService instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService): google.cloud.dialogflow.cx.v3.Webhook.GenericWebService; - - /** - * Encodes the specified GenericWebService message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.verify|verify} messages. - * @param message GenericWebService message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GenericWebService message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.verify|verify} messages. - * @param message GenericWebService message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GenericWebService message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GenericWebService - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Webhook.GenericWebService; - - /** - * Decodes a GenericWebService message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GenericWebService - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Webhook.GenericWebService; - - /** - * Verifies a GenericWebService message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GenericWebService message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GenericWebService - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Webhook.GenericWebService; - - /** - * Creates a plain object from a GenericWebService message. Also converts values to other types if specified. - * @param message GenericWebService - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Webhook.GenericWebService, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GenericWebService to JSON. - * @returns JSON object */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ServiceDirectoryConfig. */ - interface IServiceDirectoryConfig { - - /** ServiceDirectoryConfig service */ - service?: (string|null); - - /** ServiceDirectoryConfig genericWebService */ - genericWebService?: (google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null); - } - - /** Represents a ServiceDirectoryConfig. */ - class ServiceDirectoryConfig implements IServiceDirectoryConfig { + constructor(properties?: google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep); - /** - * Constructs a new ServiceDirectoryConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig); + /** RolloutStep displayName. */ + public displayName: string; - /** ServiceDirectoryConfig service. */ - public service: string; + /** RolloutStep trafficPercent. */ + public trafficPercent: number; - /** ServiceDirectoryConfig genericWebService. */ - public genericWebService?: (google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null); + /** RolloutStep minDuration. */ + public minDuration?: (google.protobuf.IDuration|null); /** - * Creates a new ServiceDirectoryConfig instance using the specified properties. + * Creates a new RolloutStep instance using the specified properties. * @param [properties] Properties to set - * @returns ServiceDirectoryConfig instance + * @returns RolloutStep instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig): google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig; + public static create(properties?: google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep): google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep; /** - * Encodes the specified ServiceDirectoryConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.verify|verify} messages. - * @param message ServiceDirectoryConfig message or plain object to encode + * Encodes the specified RolloutStep message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.verify|verify} messages. + * @param message RolloutStep message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ServiceDirectoryConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.verify|verify} messages. - * @param message ServiceDirectoryConfig message or plain object to encode + * Encodes the specified RolloutStep message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.verify|verify} messages. + * @param message RolloutStep message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceDirectoryConfig message from the specified reader or buffer. + * Decodes a RolloutStep message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ServiceDirectoryConfig + * @returns RolloutStep * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep; /** - * Decodes a ServiceDirectoryConfig message from the specified reader or buffer, length delimited. + * Decodes a RolloutStep message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ServiceDirectoryConfig + * @returns RolloutStep * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep; /** - * Verifies a ServiceDirectoryConfig message. + * Verifies a RolloutStep message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ServiceDirectoryConfig message from a plain object. Also converts values to their respective internal types. + * Creates a RolloutStep message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServiceDirectoryConfig + * @returns RolloutStep */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep; /** - * Creates a plain object from a ServiceDirectoryConfig message. Also converts values to other types if specified. - * @param message ServiceDirectoryConfig + * Creates a plain object from a RolloutStep message. Also converts values to other types if specified. + * @param message RolloutStep * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceDirectoryConfig to JSON. + * Converts this RolloutStep to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } } - /** Properties of a ListWebhooksRequest. */ - interface IListWebhooksRequest { + /** Properties of a RolloutState. */ + interface IRolloutState { - /** ListWebhooksRequest parent */ - parent?: (string|null); + /** RolloutState step */ + step?: (string|null); - /** ListWebhooksRequest pageSize */ - pageSize?: (number|null); + /** RolloutState stepIndex */ + stepIndex?: (number|null); - /** ListWebhooksRequest pageToken */ - pageToken?: (string|null); + /** RolloutState startTime */ + startTime?: (google.protobuf.ITimestamp|null); } - /** Represents a ListWebhooksRequest. */ - class ListWebhooksRequest implements IListWebhooksRequest { + /** Represents a RolloutState. */ + class RolloutState implements IRolloutState { /** - * Constructs a new ListWebhooksRequest. + * Constructs a new RolloutState. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListWebhooksRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IRolloutState); - /** ListWebhooksRequest parent. */ - public parent: string; + /** RolloutState step. */ + public step: string; - /** ListWebhooksRequest pageSize. */ - public pageSize: number; + /** RolloutState stepIndex. */ + public stepIndex: number; - /** ListWebhooksRequest pageToken. */ - public pageToken: string; + /** RolloutState startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new ListWebhooksRequest instance using the specified properties. + * Creates a new RolloutState instance using the specified properties. * @param [properties] Properties to set - * @returns ListWebhooksRequest instance + * @returns RolloutState instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListWebhooksRequest): google.cloud.dialogflow.cx.v3.ListWebhooksRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IRolloutState): google.cloud.dialogflow.cx.v3.RolloutState; /** - * Encodes the specified ListWebhooksRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksRequest.verify|verify} messages. - * @param message ListWebhooksRequest message or plain object to encode + * Encodes the specified RolloutState message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutState.verify|verify} messages. + * @param message RolloutState message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListWebhooksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IRolloutState, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListWebhooksRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksRequest.verify|verify} messages. - * @param message ListWebhooksRequest message or plain object to encode + * Encodes the specified RolloutState message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutState.verify|verify} messages. + * @param message RolloutState message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListWebhooksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IRolloutState, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListWebhooksRequest message from the specified reader or buffer. + * Decodes a RolloutState message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListWebhooksRequest + * @returns RolloutState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListWebhooksRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.RolloutState; /** - * Decodes a ListWebhooksRequest message from the specified reader or buffer, length delimited. + * Decodes a RolloutState message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListWebhooksRequest + * @returns RolloutState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListWebhooksRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.RolloutState; /** - * Verifies a ListWebhooksRequest message. + * Verifies a RolloutState message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListWebhooksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RolloutState message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListWebhooksRequest + * @returns RolloutState */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListWebhooksRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.RolloutState; /** - * Creates a plain object from a ListWebhooksRequest message. Also converts values to other types if specified. - * @param message ListWebhooksRequest + * Creates a plain object from a RolloutState message. Also converts values to other types if specified. + * @param message RolloutState * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListWebhooksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.RolloutState, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListWebhooksRequest to JSON. + * Converts this RolloutState to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListWebhooksResponse. */ - interface IListWebhooksResponse { + /** Properties of a ListExperimentsRequest. */ + interface IListExperimentsRequest { - /** ListWebhooksResponse webhooks */ - webhooks?: (google.cloud.dialogflow.cx.v3.IWebhook[]|null); + /** ListExperimentsRequest parent */ + parent?: (string|null); - /** ListWebhooksResponse nextPageToken */ - nextPageToken?: (string|null); + /** ListExperimentsRequest pageSize */ + pageSize?: (number|null); + + /** ListExperimentsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a ListWebhooksResponse. */ - class ListWebhooksResponse implements IListWebhooksResponse { + /** Represents a ListExperimentsRequest. */ + class ListExperimentsRequest implements IListExperimentsRequest { /** - * Constructs a new ListWebhooksResponse. + * Constructs a new ListExperimentsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListWebhooksResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListExperimentsRequest); - /** ListWebhooksResponse webhooks. */ - public webhooks: google.cloud.dialogflow.cx.v3.IWebhook[]; + /** ListExperimentsRequest parent. */ + public parent: string; - /** ListWebhooksResponse nextPageToken. */ - public nextPageToken: string; + /** ListExperimentsRequest pageSize. */ + public pageSize: number; + + /** ListExperimentsRequest pageToken. */ + public pageToken: string; /** - * Creates a new ListWebhooksResponse instance using the specified properties. + * Creates a new ListExperimentsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListWebhooksResponse instance + * @returns ListExperimentsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListWebhooksResponse): google.cloud.dialogflow.cx.v3.ListWebhooksResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListExperimentsRequest): google.cloud.dialogflow.cx.v3.ListExperimentsRequest; /** - * Encodes the specified ListWebhooksResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksResponse.verify|verify} messages. - * @param message ListWebhooksResponse message or plain object to encode + * Encodes the specified ListExperimentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsRequest.verify|verify} messages. + * @param message ListExperimentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListWebhooksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListExperimentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListWebhooksResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksResponse.verify|verify} messages. - * @param message ListWebhooksResponse message or plain object to encode + * Encodes the specified ListExperimentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsRequest.verify|verify} messages. + * @param message ListExperimentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListWebhooksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListExperimentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListWebhooksResponse message from the specified reader or buffer. + * Decodes a ListExperimentsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListWebhooksResponse + * @returns ListExperimentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListWebhooksResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListExperimentsRequest; /** - * Decodes a ListWebhooksResponse message from the specified reader or buffer, length delimited. + * Decodes a ListExperimentsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListWebhooksResponse + * @returns ListExperimentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListWebhooksResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListExperimentsRequest; /** - * Verifies a ListWebhooksResponse message. + * Verifies a ListExperimentsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListWebhooksResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListExperimentsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListWebhooksResponse + * @returns ListExperimentsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListWebhooksResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListExperimentsRequest; /** - * Creates a plain object from a ListWebhooksResponse message. Also converts values to other types if specified. - * @param message ListWebhooksResponse + * Creates a plain object from a ListExperimentsRequest message. Also converts values to other types if specified. + * @param message ListExperimentsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListWebhooksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListExperimentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListWebhooksResponse to JSON. + * Converts this ListExperimentsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetWebhookRequest. */ - interface IGetWebhookRequest { + /** Properties of a ListExperimentsResponse. */ + interface IListExperimentsResponse { - /** GetWebhookRequest name */ - name?: (string|null); + /** ListExperimentsResponse experiments */ + experiments?: (google.cloud.dialogflow.cx.v3.IExperiment[]|null); + + /** ListExperimentsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a GetWebhookRequest. */ - class GetWebhookRequest implements IGetWebhookRequest { + /** Represents a ListExperimentsResponse. */ + class ListExperimentsResponse implements IListExperimentsResponse { /** - * Constructs a new GetWebhookRequest. + * Constructs a new ListExperimentsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetWebhookRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListExperimentsResponse); - /** GetWebhookRequest name. */ - public name: string; + /** ListExperimentsResponse experiments. */ + public experiments: google.cloud.dialogflow.cx.v3.IExperiment[]; + + /** ListExperimentsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new GetWebhookRequest instance using the specified properties. + * Creates a new ListExperimentsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetWebhookRequest instance + * @returns ListExperimentsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IGetWebhookRequest): google.cloud.dialogflow.cx.v3.GetWebhookRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListExperimentsResponse): google.cloud.dialogflow.cx.v3.ListExperimentsResponse; /** - * Encodes the specified GetWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetWebhookRequest.verify|verify} messages. - * @param message GetWebhookRequest message or plain object to encode + * Encodes the specified ListExperimentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsResponse.verify|verify} messages. + * @param message ListExperimentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IGetWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListExperimentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetWebhookRequest.verify|verify} messages. - * @param message GetWebhookRequest message or plain object to encode + * Encodes the specified ListExperimentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsResponse.verify|verify} messages. + * @param message ListExperimentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListExperimentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetWebhookRequest message from the specified reader or buffer. + * Decodes a ListExperimentsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetWebhookRequest + * @returns ListExperimentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetWebhookRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListExperimentsResponse; /** - * Decodes a GetWebhookRequest message from the specified reader or buffer, length delimited. + * Decodes a ListExperimentsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetWebhookRequest + * @returns ListExperimentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetWebhookRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListExperimentsResponse; /** - * Verifies a GetWebhookRequest message. + * Verifies a ListExperimentsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetWebhookRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListExperimentsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetWebhookRequest + * @returns ListExperimentsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetWebhookRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListExperimentsResponse; /** - * Creates a plain object from a GetWebhookRequest message. Also converts values to other types if specified. - * @param message GetWebhookRequest + * Creates a plain object from a ListExperimentsResponse message. Also converts values to other types if specified. + * @param message ListExperimentsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.GetWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListExperimentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetWebhookRequest to JSON. + * Converts this ListExperimentsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateWebhookRequest. */ - interface ICreateWebhookRequest { - - /** CreateWebhookRequest parent */ - parent?: (string|null); + /** Properties of a GetExperimentRequest. */ + interface IGetExperimentRequest { - /** CreateWebhookRequest webhook */ - webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); + /** GetExperimentRequest name */ + name?: (string|null); } - /** Represents a CreateWebhookRequest. */ - class CreateWebhookRequest implements ICreateWebhookRequest { + /** Represents a GetExperimentRequest. */ + class GetExperimentRequest implements IGetExperimentRequest { /** - * Constructs a new CreateWebhookRequest. + * Constructs a new GetExperimentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest); - - /** CreateWebhookRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetExperimentRequest); - /** CreateWebhookRequest webhook. */ - public webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); + /** GetExperimentRequest name. */ + public name: string; /** - * Creates a new CreateWebhookRequest instance using the specified properties. + * Creates a new GetExperimentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateWebhookRequest instance + * @returns GetExperimentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest): google.cloud.dialogflow.cx.v3.CreateWebhookRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetExperimentRequest): google.cloud.dialogflow.cx.v3.GetExperimentRequest; /** - * Encodes the specified CreateWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateWebhookRequest.verify|verify} messages. - * @param message CreateWebhookRequest message or plain object to encode + * Encodes the specified GetExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetExperimentRequest.verify|verify} messages. + * @param message GetExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateWebhookRequest.verify|verify} messages. - * @param message CreateWebhookRequest message or plain object to encode + * Encodes the specified GetExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetExperimentRequest.verify|verify} messages. + * @param message GetExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateWebhookRequest message from the specified reader or buffer. + * Decodes a GetExperimentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateWebhookRequest + * @returns GetExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateWebhookRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetExperimentRequest; /** - * Decodes a CreateWebhookRequest message from the specified reader or buffer, length delimited. + * Decodes a GetExperimentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateWebhookRequest + * @returns GetExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateWebhookRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetExperimentRequest; /** - * Verifies a CreateWebhookRequest message. + * Verifies a GetExperimentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateWebhookRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetExperimentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateWebhookRequest + * @returns GetExperimentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateWebhookRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetExperimentRequest; /** - * Creates a plain object from a CreateWebhookRequest message. Also converts values to other types if specified. - * @param message CreateWebhookRequest + * Creates a plain object from a GetExperimentRequest message. Also converts values to other types if specified. + * @param message GetExperimentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.CreateWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.GetExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateWebhookRequest to JSON. + * Converts this GetExperimentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateWebhookRequest. */ - interface IUpdateWebhookRequest { + /** Properties of a CreateExperimentRequest. */ + interface ICreateExperimentRequest { - /** UpdateWebhookRequest webhook */ - webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); + /** CreateExperimentRequest parent */ + parent?: (string|null); - /** UpdateWebhookRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** CreateExperimentRequest experiment */ + experiment?: (google.cloud.dialogflow.cx.v3.IExperiment|null); } - /** Represents an UpdateWebhookRequest. */ - class UpdateWebhookRequest implements IUpdateWebhookRequest { + /** Represents a CreateExperimentRequest. */ + class CreateExperimentRequest implements ICreateExperimentRequest { /** - * Constructs a new UpdateWebhookRequest. + * Constructs a new CreateExperimentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest); - /** UpdateWebhookRequest webhook. */ - public webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); + /** CreateExperimentRequest parent. */ + public parent: string; - /** UpdateWebhookRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** CreateExperimentRequest experiment. */ + public experiment?: (google.cloud.dialogflow.cx.v3.IExperiment|null); /** - * Creates a new UpdateWebhookRequest instance using the specified properties. + * Creates a new CreateExperimentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateWebhookRequest instance + * @returns CreateExperimentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest): google.cloud.dialogflow.cx.v3.UpdateWebhookRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest): google.cloud.dialogflow.cx.v3.CreateExperimentRequest; /** - * Encodes the specified UpdateWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateWebhookRequest.verify|verify} messages. - * @param message UpdateWebhookRequest message or plain object to encode + * Encodes the specified CreateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateExperimentRequest.verify|verify} messages. + * @param message CreateExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateWebhookRequest.verify|verify} messages. - * @param message UpdateWebhookRequest message or plain object to encode + * Encodes the specified CreateExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateExperimentRequest.verify|verify} messages. + * @param message CreateExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateWebhookRequest message from the specified reader or buffer. + * Decodes a CreateExperimentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateWebhookRequest + * @returns CreateExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateWebhookRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateExperimentRequest; /** - * Decodes an UpdateWebhookRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateExperimentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateWebhookRequest + * @returns CreateExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateWebhookRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateExperimentRequest; /** - * Verifies an UpdateWebhookRequest message. + * Verifies a CreateExperimentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateWebhookRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateExperimentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateWebhookRequest + * @returns CreateExperimentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateWebhookRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateExperimentRequest; /** - * Creates a plain object from an UpdateWebhookRequest message. Also converts values to other types if specified. - * @param message UpdateWebhookRequest + * Creates a plain object from a CreateExperimentRequest message. Also converts values to other types if specified. + * @param message CreateExperimentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateWebhookRequest to JSON. + * Converts this CreateExperimentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteWebhookRequest. */ - interface IDeleteWebhookRequest { + /** Properties of an UpdateExperimentRequest. */ + interface IUpdateExperimentRequest { - /** DeleteWebhookRequest name */ - name?: (string|null); + /** UpdateExperimentRequest experiment */ + experiment?: (google.cloud.dialogflow.cx.v3.IExperiment|null); - /** DeleteWebhookRequest force */ - force?: (boolean|null); + /** UpdateExperimentRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a DeleteWebhookRequest. */ - class DeleteWebhookRequest implements IDeleteWebhookRequest { + /** Represents an UpdateExperimentRequest. */ + class UpdateExperimentRequest implements IUpdateExperimentRequest { /** - * Constructs a new DeleteWebhookRequest. + * Constructs a new UpdateExperimentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest); - /** DeleteWebhookRequest name. */ - public name: string; + /** UpdateExperimentRequest experiment. */ + public experiment?: (google.cloud.dialogflow.cx.v3.IExperiment|null); - /** DeleteWebhookRequest force. */ - public force: boolean; + /** UpdateExperimentRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new DeleteWebhookRequest instance using the specified properties. + * Creates a new UpdateExperimentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteWebhookRequest instance + * @returns UpdateExperimentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest): google.cloud.dialogflow.cx.v3.DeleteWebhookRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest): google.cloud.dialogflow.cx.v3.UpdateExperimentRequest; /** - * Encodes the specified DeleteWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteWebhookRequest.verify|verify} messages. - * @param message DeleteWebhookRequest message or plain object to encode + * Encodes the specified UpdateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateExperimentRequest.verify|verify} messages. + * @param message UpdateExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteWebhookRequest.verify|verify} messages. - * @param message DeleteWebhookRequest message or plain object to encode + * Encodes the specified UpdateExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateExperimentRequest.verify|verify} messages. + * @param message UpdateExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteWebhookRequest message from the specified reader or buffer. + * Decodes an UpdateExperimentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteWebhookRequest + * @returns UpdateExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteWebhookRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateExperimentRequest; /** - * Decodes a DeleteWebhookRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateExperimentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteWebhookRequest + * @returns UpdateExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteWebhookRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateExperimentRequest; /** - * Verifies a DeleteWebhookRequest message. + * Verifies an UpdateExperimentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteWebhookRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateExperimentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteWebhookRequest + * @returns UpdateExperimentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteWebhookRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateExperimentRequest; /** - * Creates a plain object from a DeleteWebhookRequest message. Also converts values to other types if specified. - * @param message DeleteWebhookRequest + * Creates a plain object from an UpdateExperimentRequest message. Also converts values to other types if specified. + * @param message UpdateExperimentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteWebhookRequest to JSON. + * Converts this UpdateExperimentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a WebhookRequest. */ - interface IWebhookRequest { - - /** WebhookRequest detectIntentResponseId */ - detectIntentResponseId?: (string|null); - - /** WebhookRequest text */ - text?: (string|null); - - /** WebhookRequest triggerIntent */ - triggerIntent?: (string|null); - - /** WebhookRequest transcript */ - transcript?: (string|null); - - /** WebhookRequest triggerEvent */ - triggerEvent?: (string|null); - - /** WebhookRequest languageCode */ - languageCode?: (string|null); - - /** WebhookRequest fulfillmentInfo */ - fulfillmentInfo?: (google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo|null); - - /** WebhookRequest intentInfo */ - intentInfo?: (google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo|null); - - /** WebhookRequest pageInfo */ - pageInfo?: (google.cloud.dialogflow.cx.v3.IPageInfo|null); - - /** WebhookRequest sessionInfo */ - sessionInfo?: (google.cloud.dialogflow.cx.v3.ISessionInfo|null); - - /** WebhookRequest messages */ - messages?: (google.cloud.dialogflow.cx.v3.IResponseMessage[]|null); - - /** WebhookRequest payload */ - payload?: (google.protobuf.IStruct|null); + /** Properties of a DeleteExperimentRequest. */ + interface IDeleteExperimentRequest { - /** WebhookRequest sentimentAnalysisResult */ - sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult|null); + /** DeleteExperimentRequest name */ + name?: (string|null); } - /** Represents a WebhookRequest. */ - class WebhookRequest implements IWebhookRequest { + /** Represents a DeleteExperimentRequest. */ + class DeleteExperimentRequest implements IDeleteExperimentRequest { /** - * Constructs a new WebhookRequest. + * Constructs a new DeleteExperimentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IWebhookRequest); - - /** WebhookRequest detectIntentResponseId. */ - public detectIntentResponseId: string; - - /** WebhookRequest text. */ - public text?: (string|null); - - /** WebhookRequest triggerIntent. */ - public triggerIntent?: (string|null); - - /** WebhookRequest transcript. */ - public transcript?: (string|null); - - /** WebhookRequest triggerEvent. */ - public triggerEvent?: (string|null); - - /** WebhookRequest languageCode. */ - public languageCode: string; - - /** WebhookRequest fulfillmentInfo. */ - public fulfillmentInfo?: (google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo|null); - - /** WebhookRequest intentInfo. */ - public intentInfo?: (google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo|null); - - /** WebhookRequest pageInfo. */ - public pageInfo?: (google.cloud.dialogflow.cx.v3.IPageInfo|null); - - /** WebhookRequest sessionInfo. */ - public sessionInfo?: (google.cloud.dialogflow.cx.v3.ISessionInfo|null); - - /** WebhookRequest messages. */ - public messages: google.cloud.dialogflow.cx.v3.IResponseMessage[]; - - /** WebhookRequest payload. */ - public payload?: (google.protobuf.IStruct|null); - - /** WebhookRequest sentimentAnalysisResult. */ - public sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult|null); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest); - /** WebhookRequest query. */ - public query?: ("text"|"triggerIntent"|"transcript"|"triggerEvent"); + /** DeleteExperimentRequest name. */ + public name: string; /** - * Creates a new WebhookRequest instance using the specified properties. + * Creates a new DeleteExperimentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns WebhookRequest instance + * @returns DeleteExperimentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IWebhookRequest): google.cloud.dialogflow.cx.v3.WebhookRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest): google.cloud.dialogflow.cx.v3.DeleteExperimentRequest; /** - * Encodes the specified WebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.verify|verify} messages. - * @param message WebhookRequest message or plain object to encode + * Encodes the specified DeleteExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteExperimentRequest.verify|verify} messages. + * @param message DeleteExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.verify|verify} messages. - * @param message WebhookRequest message or plain object to encode + * Encodes the specified DeleteExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteExperimentRequest.verify|verify} messages. + * @param message DeleteExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WebhookRequest message from the specified reader or buffer. + * Decodes a DeleteExperimentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WebhookRequest + * @returns DeleteExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteExperimentRequest; /** - * Decodes a WebhookRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteExperimentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WebhookRequest + * @returns DeleteExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteExperimentRequest; /** - * Verifies a WebhookRequest message. + * Verifies a DeleteExperimentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WebhookRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteExperimentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WebhookRequest + * @returns DeleteExperimentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteExperimentRequest; /** - * Creates a plain object from a WebhookRequest message. Also converts values to other types if specified. - * @param message WebhookRequest + * Creates a plain object from a DeleteExperimentRequest message. Also converts values to other types if specified. + * @param message DeleteExperimentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WebhookRequest to JSON. + * Converts this DeleteExperimentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace WebhookRequest { + /** Properties of a StartExperimentRequest. */ + interface IStartExperimentRequest { - /** Properties of a FulfillmentInfo. */ - interface IFulfillmentInfo { + /** StartExperimentRequest name */ + name?: (string|null); + } - /** FulfillmentInfo tag */ - tag?: (string|null); - } + /** Represents a StartExperimentRequest. */ + class StartExperimentRequest implements IStartExperimentRequest { - /** Represents a FulfillmentInfo. */ - class FulfillmentInfo implements IFulfillmentInfo { + /** + * Constructs a new StartExperimentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IStartExperimentRequest); - /** - * Constructs a new FulfillmentInfo. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo); - - /** FulfillmentInfo tag. */ - public tag: string; - - /** - * Creates a new FulfillmentInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns FulfillmentInfo instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo): google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo; - - /** - * Encodes the specified FulfillmentInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.verify|verify} messages. - * @param message FulfillmentInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FulfillmentInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.verify|verify} messages. - * @param message FulfillmentInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FulfillmentInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FulfillmentInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo; - - /** - * Decodes a FulfillmentInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FulfillmentInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo; - - /** - * Verifies a FulfillmentInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a FulfillmentInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FulfillmentInfo - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo; - - /** - * Creates a plain object from a FulfillmentInfo message. Also converts values to other types if specified. - * @param message FulfillmentInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FulfillmentInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an IntentInfo. */ - interface IIntentInfo { - - /** IntentInfo lastMatchedIntent */ - lastMatchedIntent?: (string|null); - - /** IntentInfo displayName */ - displayName?: (string|null); - - /** IntentInfo parameters */ - parameters?: ({ [k: string]: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue }|null); - - /** IntentInfo confidence */ - confidence?: (number|null); - } - - /** Represents an IntentInfo. */ - class IntentInfo implements IIntentInfo { - - /** - * Constructs a new IntentInfo. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo); - - /** IntentInfo lastMatchedIntent. */ - public lastMatchedIntent: string; - - /** IntentInfo displayName. */ - public displayName: string; - - /** IntentInfo parameters. */ - public parameters: { [k: string]: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue }; - - /** IntentInfo confidence. */ - public confidence: number; - - /** - * Creates a new IntentInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns IntentInfo instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo; - - /** - * Encodes the specified IntentInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.verify|verify} messages. - * @param message IntentInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified IntentInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.verify|verify} messages. - * @param message IntentInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an IntentInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns IntentInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo; - - /** - * Decodes an IntentInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns IntentInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo; - - /** - * Verifies an IntentInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an IntentInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns IntentInfo - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo; - - /** - * Creates a plain object from an IntentInfo message. Also converts values to other types if specified. - * @param message IntentInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this IntentInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace IntentInfo { - - /** Properties of an IntentParameterValue. */ - interface IIntentParameterValue { - - /** IntentParameterValue originalValue */ - originalValue?: (string|null); - - /** IntentParameterValue resolvedValue */ - resolvedValue?: (google.protobuf.IValue|null); - } - - /** Represents an IntentParameterValue. */ - class IntentParameterValue implements IIntentParameterValue { - - /** - * Constructs a new IntentParameterValue. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue); - - /** IntentParameterValue originalValue. */ - public originalValue: string; - - /** IntentParameterValue resolvedValue. */ - public resolvedValue?: (google.protobuf.IValue|null); - - /** - * Creates a new IntentParameterValue instance using the specified properties. - * @param [properties] Properties to set - * @returns IntentParameterValue instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue; - - /** - * Encodes the specified IntentParameterValue message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.verify|verify} messages. - * @param message IntentParameterValue message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified IntentParameterValue message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.verify|verify} messages. - * @param message IntentParameterValue message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an IntentParameterValue message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns IntentParameterValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue; - - /** - * Decodes an IntentParameterValue message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns IntentParameterValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue; - - /** - * Verifies an IntentParameterValue message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an IntentParameterValue message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns IntentParameterValue - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue; - - /** - * Creates a plain object from an IntentParameterValue message. Also converts values to other types if specified. - * @param message IntentParameterValue - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this IntentParameterValue to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of a SentimentAnalysisResult. */ - interface ISentimentAnalysisResult { - - /** SentimentAnalysisResult score */ - score?: (number|null); - - /** SentimentAnalysisResult magnitude */ - magnitude?: (number|null); - } - - /** Represents a SentimentAnalysisResult. */ - class SentimentAnalysisResult implements ISentimentAnalysisResult { - - /** - * Constructs a new SentimentAnalysisResult. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult); - - /** SentimentAnalysisResult score. */ - public score: number; - - /** SentimentAnalysisResult magnitude. */ - public magnitude: number; - - /** - * Creates a new SentimentAnalysisResult instance using the specified properties. - * @param [properties] Properties to set - * @returns SentimentAnalysisResult instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult): google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult; - - /** - * Encodes the specified SentimentAnalysisResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.verify|verify} messages. - * @param message SentimentAnalysisResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SentimentAnalysisResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.verify|verify} messages. - * @param message SentimentAnalysisResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SentimentAnalysisResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SentimentAnalysisResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult; - - /** - * Decodes a SentimentAnalysisResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SentimentAnalysisResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult; - - /** - * Verifies a SentimentAnalysisResult message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SentimentAnalysisResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SentimentAnalysisResult - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult; - - /** - * Creates a plain object from a SentimentAnalysisResult message. Also converts values to other types if specified. - * @param message SentimentAnalysisResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SentimentAnalysisResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of a WebhookResponse. */ - interface IWebhookResponse { - - /** WebhookResponse fulfillmentResponse */ - fulfillmentResponse?: (google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse|null); - - /** WebhookResponse pageInfo */ - pageInfo?: (google.cloud.dialogflow.cx.v3.IPageInfo|null); - - /** WebhookResponse sessionInfo */ - sessionInfo?: (google.cloud.dialogflow.cx.v3.ISessionInfo|null); - - /** WebhookResponse payload */ - payload?: (google.protobuf.IStruct|null); - - /** WebhookResponse targetPage */ - targetPage?: (string|null); - - /** WebhookResponse targetFlow */ - targetFlow?: (string|null); - } - - /** Represents a WebhookResponse. */ - class WebhookResponse implements IWebhookResponse { - - /** - * Constructs a new WebhookResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IWebhookResponse); - - /** WebhookResponse fulfillmentResponse. */ - public fulfillmentResponse?: (google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse|null); - - /** WebhookResponse pageInfo. */ - public pageInfo?: (google.cloud.dialogflow.cx.v3.IPageInfo|null); - - /** WebhookResponse sessionInfo. */ - public sessionInfo?: (google.cloud.dialogflow.cx.v3.ISessionInfo|null); - - /** WebhookResponse payload. */ - public payload?: (google.protobuf.IStruct|null); - - /** WebhookResponse targetPage. */ - public targetPage?: (string|null); - - /** WebhookResponse targetFlow. */ - public targetFlow?: (string|null); - - /** WebhookResponse transition. */ - public transition?: ("targetPage"|"targetFlow"); + /** StartExperimentRequest name. */ + public name: string; /** - * Creates a new WebhookResponse instance using the specified properties. + * Creates a new StartExperimentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns WebhookResponse instance + * @returns StartExperimentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IWebhookResponse): google.cloud.dialogflow.cx.v3.WebhookResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IStartExperimentRequest): google.cloud.dialogflow.cx.v3.StartExperimentRequest; /** - * Encodes the specified WebhookResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.verify|verify} messages. - * @param message WebhookResponse message or plain object to encode + * Encodes the specified StartExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StartExperimentRequest.verify|verify} messages. + * @param message StartExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IWebhookResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IStartExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WebhookResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.verify|verify} messages. - * @param message WebhookResponse message or plain object to encode + * Encodes the specified StartExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StartExperimentRequest.verify|verify} messages. + * @param message StartExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IWebhookResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IStartExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WebhookResponse message from the specified reader or buffer. + * Decodes a StartExperimentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WebhookResponse + * @returns StartExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.StartExperimentRequest; /** - * Decodes a WebhookResponse message from the specified reader or buffer, length delimited. + * Decodes a StartExperimentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WebhookResponse + * @returns StartExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.StartExperimentRequest; /** - * Verifies a WebhookResponse message. + * Verifies a StartExperimentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WebhookResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StartExperimentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WebhookResponse + * @returns StartExperimentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.StartExperimentRequest; /** - * Creates a plain object from a WebhookResponse message. Also converts values to other types if specified. - * @param message WebhookResponse + * Creates a plain object from a StartExperimentRequest message. Also converts values to other types if specified. + * @param message StartExperimentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.StartExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WebhookResponse to JSON. + * Converts this StartExperimentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace WebhookResponse { - - /** Properties of a FulfillmentResponse. */ - interface IFulfillmentResponse { - - /** FulfillmentResponse messages */ - messages?: (google.cloud.dialogflow.cx.v3.IResponseMessage[]|null); + /** Properties of a StopExperimentRequest. */ + interface IStopExperimentRequest { - /** FulfillmentResponse mergeBehavior */ - mergeBehavior?: (google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior|keyof typeof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior|null); - } + /** StopExperimentRequest name */ + name?: (string|null); + } - /** Represents a FulfillmentResponse. */ - class FulfillmentResponse implements IFulfillmentResponse { + /** Represents a StopExperimentRequest. */ + class StopExperimentRequest implements IStopExperimentRequest { - /** - * Constructs a new FulfillmentResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse); + /** + * Constructs a new StopExperimentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IStopExperimentRequest); - /** FulfillmentResponse messages. */ - public messages: google.cloud.dialogflow.cx.v3.IResponseMessage[]; + /** StopExperimentRequest name. */ + public name: string; - /** FulfillmentResponse mergeBehavior. */ - public mergeBehavior: (google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior|keyof typeof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior); + /** + * Creates a new StopExperimentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns StopExperimentRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IStopExperimentRequest): google.cloud.dialogflow.cx.v3.StopExperimentRequest; - /** - * Creates a new FulfillmentResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns FulfillmentResponse instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse): google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse; + /** + * Encodes the specified StopExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StopExperimentRequest.verify|verify} messages. + * @param message StopExperimentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IStopExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FulfillmentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.verify|verify} messages. - * @param message FulfillmentResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified StopExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StopExperimentRequest.verify|verify} messages. + * @param message StopExperimentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IStopExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FulfillmentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.verify|verify} messages. - * @param message FulfillmentResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a StopExperimentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StopExperimentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.StopExperimentRequest; - /** - * Decodes a FulfillmentResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FulfillmentResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse; + /** + * Decodes a StopExperimentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StopExperimentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.StopExperimentRequest; - /** - * Decodes a FulfillmentResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FulfillmentResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse; + /** + * Verifies a StopExperimentRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Verifies a FulfillmentResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a StopExperimentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StopExperimentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.StopExperimentRequest; - /** - * Creates a FulfillmentResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FulfillmentResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse; + /** + * Creates a plain object from a StopExperimentRequest message. Also converts values to other types if specified. + * @param message StopExperimentRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.StopExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from a FulfillmentResponse message. Also converts values to other types if specified. - * @param message FulfillmentResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Converts this StopExperimentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Converts this FulfillmentResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Represents a SecuritySettingsService */ + class SecuritySettingsService extends $protobuf.rpc.Service { - namespace FulfillmentResponse { + /** + * Constructs a new SecuritySettingsService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** MergeBehavior enum. */ - enum MergeBehavior { - MERGE_BEHAVIOR_UNSPECIFIED = 0, - APPEND = 1, - REPLACE = 2 - } - } - } + /** + * Creates new SecuritySettingsService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SecuritySettingsService; - /** Properties of a PageInfo. */ - interface IPageInfo { + /** + * Calls CreateSecuritySettings. + * @param request CreateSecuritySettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SecuritySettings + */ + public createSecuritySettings(request: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettingsCallback): void; - /** PageInfo currentPage */ - currentPage?: (string|null); + /** + * Calls CreateSecuritySettings. + * @param request CreateSecuritySettingsRequest message or plain object + * @returns Promise + */ + public createSecuritySettings(request: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest): Promise; - /** PageInfo displayName */ - displayName?: (string|null); + /** + * Calls GetSecuritySettings. + * @param request GetSecuritySettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SecuritySettings + */ + public getSecuritySettings(request: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3.SecuritySettingsService.GetSecuritySettingsCallback): void; - /** PageInfo formInfo */ - formInfo?: (google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo|null); + /** + * Calls GetSecuritySettings. + * @param request GetSecuritySettingsRequest message or plain object + * @returns Promise + */ + public getSecuritySettings(request: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest): Promise; + + /** + * Calls UpdateSecuritySettings. + * @param request UpdateSecuritySettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SecuritySettings + */ + public updateSecuritySettings(request: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettingsCallback): void; + + /** + * Calls UpdateSecuritySettings. + * @param request UpdateSecuritySettingsRequest message or plain object + * @returns Promise + */ + public updateSecuritySettings(request: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest): Promise; + + /** + * Calls ListSecuritySettings. + * @param request ListSecuritySettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListSecuritySettingsResponse + */ + public listSecuritySettings(request: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3.SecuritySettingsService.ListSecuritySettingsCallback): void; + + /** + * Calls ListSecuritySettings. + * @param request ListSecuritySettingsRequest message or plain object + * @returns Promise + */ + public listSecuritySettings(request: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest): Promise; + + /** + * Calls DeleteSecuritySettings. + * @param request DeleteSecuritySettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteSecuritySettings(request: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3.SecuritySettingsService.DeleteSecuritySettingsCallback): void; + + /** + * Calls DeleteSecuritySettings. + * @param request DeleteSecuritySettingsRequest message or plain object + * @returns Promise + */ + public deleteSecuritySettings(request: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest): Promise; } - /** Represents a PageInfo. */ - class PageInfo implements IPageInfo { + namespace SecuritySettingsService { /** - * Constructs a new PageInfo. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#createSecuritySettings}. + * @param error Error, if any + * @param [response] SecuritySettings */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IPageInfo); + type CreateSecuritySettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SecuritySettings) => void; - /** PageInfo currentPage. */ - public currentPage: string; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#getSecuritySettings}. + * @param error Error, if any + * @param [response] SecuritySettings + */ + type GetSecuritySettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SecuritySettings) => void; - /** PageInfo displayName. */ - public displayName: string; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#updateSecuritySettings}. + * @param error Error, if any + * @param [response] SecuritySettings + */ + type UpdateSecuritySettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SecuritySettings) => void; - /** PageInfo formInfo. */ - public formInfo?: (google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo|null); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#listSecuritySettings}. + * @param error Error, if any + * @param [response] ListSecuritySettingsResponse + */ + type ListSecuritySettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse) => void; /** - * Creates a new PageInfo instance using the specified properties. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#deleteSecuritySettings}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteSecuritySettingsCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + } + + /** Properties of a GetSecuritySettingsRequest. */ + interface IGetSecuritySettingsRequest { + + /** GetSecuritySettingsRequest name */ + name?: (string|null); + } + + /** Represents a GetSecuritySettingsRequest. */ + class GetSecuritySettingsRequest implements IGetSecuritySettingsRequest { + + /** + * Constructs a new GetSecuritySettingsRequest. * @param [properties] Properties to set - * @returns PageInfo instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IPageInfo): google.cloud.dialogflow.cx.v3.PageInfo; + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest); + + /** GetSecuritySettingsRequest name. */ + public name: string; /** - * Encodes the specified PageInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.verify|verify} messages. - * @param message PageInfo message or plain object to encode + * Creates a new GetSecuritySettingsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSecuritySettingsRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest): google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest; + + /** + * Encodes the specified GetSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest.verify|verify} messages. + * @param message GetSecuritySettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IPageInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PageInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.verify|verify} messages. - * @param message PageInfo message or plain object to encode + * Encodes the specified GetSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest.verify|verify} messages. + * @param message GetSecuritySettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IPageInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PageInfo message from the specified reader or buffer. + * Decodes a GetSecuritySettingsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PageInfo + * @returns GetSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.PageInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest; /** - * Decodes a PageInfo message from the specified reader or buffer, length delimited. + * Decodes a GetSecuritySettingsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PageInfo + * @returns GetSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.PageInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest; /** - * Verifies a PageInfo message. + * Verifies a GetSecuritySettingsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PageInfo message from a plain object. Also converts values to their respective internal types. + * Creates a GetSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PageInfo + * @returns GetSecuritySettingsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.PageInfo; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest; /** - * Creates a plain object from a PageInfo message. Also converts values to other types if specified. - * @param message PageInfo + * Creates a plain object from a GetSecuritySettingsRequest message. Also converts values to other types if specified. + * @param message GetSecuritySettingsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.PageInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PageInfo to JSON. + * Converts this GetSecuritySettingsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace PageInfo { + /** Properties of an UpdateSecuritySettingsRequest. */ + interface IUpdateSecuritySettingsRequest { - /** Properties of a FormInfo. */ - interface IFormInfo { + /** UpdateSecuritySettingsRequest securitySettings */ + securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings|null); - /** FormInfo parameterInfo */ - parameterInfo?: (google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo[]|null); - } + /** UpdateSecuritySettingsRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } - /** Represents a FormInfo. */ - class FormInfo implements IFormInfo { + /** Represents an UpdateSecuritySettingsRequest. */ + class UpdateSecuritySettingsRequest implements IUpdateSecuritySettingsRequest { - /** - * Constructs a new FormInfo. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo); + /** + * Constructs a new UpdateSecuritySettingsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest); - /** FormInfo parameterInfo. */ - public parameterInfo: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo[]; + /** UpdateSecuritySettingsRequest securitySettings. */ + public securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings|null); - /** - * Creates a new FormInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns FormInfo instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo; + /** UpdateSecuritySettingsRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** - * Encodes the specified FormInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.verify|verify} messages. - * @param message FormInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new UpdateSecuritySettingsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateSecuritySettingsRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest): google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest; - /** - * Encodes the specified FormInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.verify|verify} messages. - * @param message FormInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified UpdateSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest.verify|verify} messages. + * @param message UpdateSecuritySettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a FormInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FormInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo; + /** + * Encodes the specified UpdateSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest.verify|verify} messages. + * @param message UpdateSecuritySettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a FormInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FormInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo; + /** + * Decodes an UpdateSecuritySettingsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateSecuritySettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest; - /** - * Verifies a FormInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes an UpdateSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateSecuritySettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest; - /** - * Creates a FormInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FormInfo - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo; + /** + * Verifies an UpdateSecuritySettingsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a plain object from a FormInfo message. Also converts values to other types if specified. - * @param message FormInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates an UpdateSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateSecuritySettingsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest; - /** - * Converts this FormInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Creates a plain object from an UpdateSecuritySettingsRequest message. Also converts values to other types if specified. + * @param message UpdateSecuritySettingsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - namespace FormInfo { + /** + * Converts this UpdateSecuritySettingsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Properties of a ParameterInfo. */ - interface IParameterInfo { + /** Properties of a ListSecuritySettingsRequest. */ + interface IListSecuritySettingsRequest { - /** ParameterInfo displayName */ - displayName?: (string|null); + /** ListSecuritySettingsRequest parent */ + parent?: (string|null); - /** ParameterInfo required */ - required?: (boolean|null); + /** ListSecuritySettingsRequest pageSize */ + pageSize?: (number|null); - /** ParameterInfo state */ - state?: (google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState|keyof typeof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState|null); + /** ListSecuritySettingsRequest pageToken */ + pageToken?: (string|null); + } - /** ParameterInfo value */ - value?: (google.protobuf.IValue|null); + /** Represents a ListSecuritySettingsRequest. */ + class ListSecuritySettingsRequest implements IListSecuritySettingsRequest { - /** ParameterInfo justCollected */ - justCollected?: (boolean|null); - } - - /** Represents a ParameterInfo. */ - class ParameterInfo implements IParameterInfo { - - /** - * Constructs a new ParameterInfo. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo); - - /** ParameterInfo displayName. */ - public displayName: string; - - /** ParameterInfo required. */ - public required: boolean; - - /** ParameterInfo state. */ - public state: (google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState|keyof typeof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState); - - /** ParameterInfo value. */ - public value?: (google.protobuf.IValue|null); + /** + * Constructs a new ListSecuritySettingsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest); - /** ParameterInfo justCollected. */ - public justCollected: boolean; + /** ListSecuritySettingsRequest parent. */ + public parent: string; - /** - * Creates a new ParameterInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns ParameterInfo instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo; + /** ListSecuritySettingsRequest pageSize. */ + public pageSize: number; - /** - * Encodes the specified ParameterInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.verify|verify} messages. - * @param message ParameterInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo, writer?: $protobuf.Writer): $protobuf.Writer; + /** ListSecuritySettingsRequest pageToken. */ + public pageToken: string; - /** - * Encodes the specified ParameterInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.verify|verify} messages. - * @param message ParameterInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new ListSecuritySettingsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListSecuritySettingsRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest): google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest; - /** - * Decodes a ParameterInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ParameterInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo; + /** + * Encodes the specified ListSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest.verify|verify} messages. + * @param message ListSecuritySettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ParameterInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ParameterInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo; + /** + * Encodes the specified ListSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest.verify|verify} messages. + * @param message ListSecuritySettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a ParameterInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a ListSecuritySettingsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListSecuritySettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest; - /** - * Creates a ParameterInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ParameterInfo - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo; + /** + * Decodes a ListSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListSecuritySettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest; - /** - * Creates a plain object from a ParameterInfo message. Also converts values to other types if specified. - * @param message ParameterInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Verifies a ListSecuritySettingsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Converts this ParameterInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Creates a ListSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListSecuritySettingsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest; - namespace ParameterInfo { + /** + * Creates a plain object from a ListSecuritySettingsRequest message. Also converts values to other types if specified. + * @param message ListSecuritySettingsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ParameterState enum. */ - enum ParameterState { - PARAMETER_STATE_UNSPECIFIED = 0, - EMPTY = 1, - INVALID = 2, - FILLED = 3 - } - } - } + /** + * Converts this ListSecuritySettingsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Properties of a SessionInfo. */ - interface ISessionInfo { + /** Properties of a ListSecuritySettingsResponse. */ + interface IListSecuritySettingsResponse { - /** SessionInfo session */ - session?: (string|null); + /** ListSecuritySettingsResponse securitySettings */ + securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings[]|null); - /** SessionInfo parameters */ - parameters?: ({ [k: string]: google.protobuf.IValue }|null); + /** ListSecuritySettingsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a SessionInfo. */ - class SessionInfo implements ISessionInfo { + /** Represents a ListSecuritySettingsResponse. */ + class ListSecuritySettingsResponse implements IListSecuritySettingsResponse { /** - * Constructs a new SessionInfo. + * Constructs a new ListSecuritySettingsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ISessionInfo); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse); - /** SessionInfo session. */ - public session: string; + /** ListSecuritySettingsResponse securitySettings. */ + public securitySettings: google.cloud.dialogflow.cx.v3.ISecuritySettings[]; - /** SessionInfo parameters. */ - public parameters: { [k: string]: google.protobuf.IValue }; + /** ListSecuritySettingsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new SessionInfo instance using the specified properties. + * Creates a new ListSecuritySettingsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns SessionInfo instance + * @returns ListSecuritySettingsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ISessionInfo): google.cloud.dialogflow.cx.v3.SessionInfo; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse): google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse; /** - * Encodes the specified SessionInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionInfo.verify|verify} messages. - * @param message SessionInfo message or plain object to encode + * Encodes the specified ListSecuritySettingsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse.verify|verify} messages. + * @param message ListSecuritySettingsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ISessionInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SessionInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionInfo.verify|verify} messages. - * @param message SessionInfo message or plain object to encode + * Encodes the specified ListSecuritySettingsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse.verify|verify} messages. + * @param message ListSecuritySettingsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ISessionInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SessionInfo message from the specified reader or buffer. + * Decodes a ListSecuritySettingsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SessionInfo + * @returns ListSecuritySettingsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SessionInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse; /** - * Decodes a SessionInfo message from the specified reader or buffer, length delimited. + * Decodes a ListSecuritySettingsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SessionInfo + * @returns ListSecuritySettingsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SessionInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse; /** - * Verifies a SessionInfo message. + * Verifies a ListSecuritySettingsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SessionInfo message from a plain object. Also converts values to their respective internal types. + * Creates a ListSecuritySettingsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SessionInfo + * @returns ListSecuritySettingsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SessionInfo; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse; /** - * Creates a plain object from a SessionInfo message. Also converts values to other types if specified. - * @param message SessionInfo + * Creates a plain object from a ListSecuritySettingsResponse message. Also converts values to other types if specified. + * @param message ListSecuritySettingsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.SessionInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SessionInfo to JSON. + * Converts this ListSecuritySettingsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents an Experiments */ - class Experiments extends $protobuf.rpc.Service { + /** Properties of a CreateSecuritySettingsRequest. */ + interface ICreateSecuritySettingsRequest { - /** - * Constructs a new Experiments service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** CreateSecuritySettingsRequest parent */ + parent?: (string|null); - /** - * Creates new Experiments service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Experiments; + /** CreateSecuritySettingsRequest securitySettings */ + securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings|null); + } - /** - * Calls ListExperiments. - * @param request ListExperimentsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListExperimentsResponse - */ - public listExperiments(request: google.cloud.dialogflow.cx.v3.IListExperimentsRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.ListExperimentsCallback): void; + /** Represents a CreateSecuritySettingsRequest. */ + class CreateSecuritySettingsRequest implements ICreateSecuritySettingsRequest { /** - * Calls ListExperiments. - * @param request ListExperimentsRequest message or plain object - * @returns Promise + * Constructs a new CreateSecuritySettingsRequest. + * @param [properties] Properties to set */ - public listExperiments(request: google.cloud.dialogflow.cx.v3.IListExperimentsRequest): Promise; + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest); + + /** CreateSecuritySettingsRequest parent. */ + public parent: string; + + /** CreateSecuritySettingsRequest securitySettings. */ + public securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings|null); /** - * Calls GetExperiment. - * @param request GetExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Experiment + * Creates a new CreateSecuritySettingsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateSecuritySettingsRequest instance */ - public getExperiment(request: google.cloud.dialogflow.cx.v3.IGetExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.GetExperimentCallback): void; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest): google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest; /** - * Calls GetExperiment. - * @param request GetExperimentRequest message or plain object - * @returns Promise + * Encodes the specified CreateSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest.verify|verify} messages. + * @param message CreateSecuritySettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getExperiment(request: google.cloud.dialogflow.cx.v3.IGetExperimentRequest): Promise; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateExperiment. - * @param request CreateExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Experiment + * Encodes the specified CreateSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest.verify|verify} messages. + * @param message CreateSecuritySettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createExperiment(request: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.CreateExperimentCallback): void; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateExperiment. - * @param request CreateExperimentRequest message or plain object - * @returns Promise + * Decodes a CreateSecuritySettingsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateSecuritySettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public createExperiment(request: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest; /** - * Calls UpdateExperiment. - * @param request UpdateExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Experiment + * Decodes a CreateSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateSecuritySettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public updateExperiment(request: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.UpdateExperimentCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest; /** - * Calls UpdateExperiment. - * @param request UpdateExperimentRequest message or plain object - * @returns Promise + * Verifies a CreateSecuritySettingsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public updateExperiment(request: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls DeleteExperiment. - * @param request DeleteExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Creates a CreateSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateSecuritySettingsRequest */ - public deleteExperiment(request: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.DeleteExperimentCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest; /** - * Calls DeleteExperiment. - * @param request DeleteExperimentRequest message or plain object - * @returns Promise + * Creates a plain object from a CreateSecuritySettingsRequest message. Also converts values to other types if specified. + * @param message CreateSecuritySettingsRequest + * @param [options] Conversion options + * @returns Plain object */ - public deleteExperiment(request: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest): Promise; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls StartExperiment. - * @param request StartExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Experiment + * Converts this CreateSecuritySettingsRequest to JSON. + * @returns JSON object */ - public startExperiment(request: google.cloud.dialogflow.cx.v3.IStartExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.StartExperimentCallback): void; + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeleteSecuritySettingsRequest. */ + interface IDeleteSecuritySettingsRequest { + + /** DeleteSecuritySettingsRequest name */ + name?: (string|null); + } + + /** Represents a DeleteSecuritySettingsRequest. */ + class DeleteSecuritySettingsRequest implements IDeleteSecuritySettingsRequest { /** - * Calls StartExperiment. - * @param request StartExperimentRequest message or plain object - * @returns Promise + * Constructs a new DeleteSecuritySettingsRequest. + * @param [properties] Properties to set */ - public startExperiment(request: google.cloud.dialogflow.cx.v3.IStartExperimentRequest): Promise; + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest); + + /** DeleteSecuritySettingsRequest name. */ + public name: string; /** - * Calls StopExperiment. - * @param request StopExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Experiment + * Creates a new DeleteSecuritySettingsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteSecuritySettingsRequest instance */ - public stopExperiment(request: google.cloud.dialogflow.cx.v3.IStopExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.StopExperimentCallback): void; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest): google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest; /** - * Calls StopExperiment. - * @param request StopExperimentRequest message or plain object - * @returns Promise + * Encodes the specified DeleteSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest.verify|verify} messages. + * @param message DeleteSecuritySettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public stopExperiment(request: google.cloud.dialogflow.cx.v3.IStopExperimentRequest): Promise; - } - - namespace Experiments { + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#listExperiments}. - * @param error Error, if any - * @param [response] ListExperimentsResponse + * Encodes the specified DeleteSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest.verify|verify} messages. + * @param message DeleteSecuritySettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type ListExperimentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListExperimentsResponse) => void; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#getExperiment}. - * @param error Error, if any - * @param [response] Experiment + * Decodes a DeleteSecuritySettingsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteSecuritySettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type GetExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#createExperiment}. - * @param error Error, if any - * @param [response] Experiment + * Decodes a DeleteSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteSecuritySettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type CreateExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#updateExperiment}. - * @param error Error, if any - * @param [response] Experiment + * Verifies a DeleteSecuritySettingsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type UpdateExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#deleteExperiment}. - * @param error Error, if any - * @param [response] Empty + * Creates a DeleteSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteSecuritySettingsRequest */ - type DeleteExperimentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#startExperiment}. - * @param error Error, if any - * @param [response] Experiment + * Creates a plain object from a DeleteSecuritySettingsRequest message. Also converts values to other types if specified. + * @param message DeleteSecuritySettingsRequest + * @param [options] Conversion options + * @returns Plain object */ - type StartExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#stopExperiment}. - * @param error Error, if any - * @param [response] Experiment + * Converts this DeleteSecuritySettingsRequest to JSON. + * @returns JSON object */ - type StopExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; + public toJSON(): { [k: string]: any }; } - /** Properties of an Experiment. */ - interface IExperiment { + /** Properties of a SecuritySettings. */ + interface ISecuritySettings { - /** Experiment name */ + /** SecuritySettings name */ name?: (string|null); - /** Experiment displayName */ + /** SecuritySettings displayName */ displayName?: (string|null); - /** Experiment description */ - description?: (string|null); + /** SecuritySettings redactionStrategy */ + redactionStrategy?: (google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy|keyof typeof google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy|null); - /** Experiment state */ - state?: (google.cloud.dialogflow.cx.v3.Experiment.State|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.State|null); + /** SecuritySettings redactionScope */ + redactionScope?: (google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope|keyof typeof google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope|null); - /** Experiment definition */ - definition?: (google.cloud.dialogflow.cx.v3.Experiment.IDefinition|null); + /** SecuritySettings inspectTemplate */ + inspectTemplate?: (string|null); - /** Experiment rolloutConfig */ - rolloutConfig?: (google.cloud.dialogflow.cx.v3.IRolloutConfig|null); + /** SecuritySettings deidentifyTemplate */ + deidentifyTemplate?: (string|null); - /** Experiment rolloutState */ - rolloutState?: (google.cloud.dialogflow.cx.v3.IRolloutState|null); + /** SecuritySettings retentionWindowDays */ + retentionWindowDays?: (number|null); - /** Experiment rolloutFailureReason */ - rolloutFailureReason?: (string|null); + /** SecuritySettings purgeDataTypes */ + purgeDataTypes?: (google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType[]|null); - /** Experiment result */ - result?: (google.cloud.dialogflow.cx.v3.Experiment.IResult|null); + /** SecuritySettings insightsExportSettings */ + insightsExportSettings?: (google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings|null); + } - /** Experiment createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** Experiment startTime */ - startTime?: (google.protobuf.ITimestamp|null); - - /** Experiment endTime */ - endTime?: (google.protobuf.ITimestamp|null); - - /** Experiment lastUpdateTime */ - lastUpdateTime?: (google.protobuf.ITimestamp|null); - - /** Experiment experimentLength */ - experimentLength?: (google.protobuf.IDuration|null); - - /** Experiment variantsHistory */ - variantsHistory?: (google.cloud.dialogflow.cx.v3.IVariantsHistory[]|null); - } - - /** Represents an Experiment. */ - class Experiment implements IExperiment { + /** Represents a SecuritySettings. */ + class SecuritySettings implements ISecuritySettings { /** - * Constructs a new Experiment. + * Constructs a new SecuritySettings. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IExperiment); + constructor(properties?: google.cloud.dialogflow.cx.v3.ISecuritySettings); - /** Experiment name. */ + /** SecuritySettings name. */ public name: string; - /** Experiment displayName. */ + /** SecuritySettings displayName. */ public displayName: string; - /** Experiment description. */ - public description: string; - - /** Experiment state. */ - public state: (google.cloud.dialogflow.cx.v3.Experiment.State|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.State); - - /** Experiment definition. */ - public definition?: (google.cloud.dialogflow.cx.v3.Experiment.IDefinition|null); - - /** Experiment rolloutConfig. */ - public rolloutConfig?: (google.cloud.dialogflow.cx.v3.IRolloutConfig|null); - - /** Experiment rolloutState. */ - public rolloutState?: (google.cloud.dialogflow.cx.v3.IRolloutState|null); - - /** Experiment rolloutFailureReason. */ - public rolloutFailureReason: string; + /** SecuritySettings redactionStrategy. */ + public redactionStrategy: (google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy|keyof typeof google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy); - /** Experiment result. */ - public result?: (google.cloud.dialogflow.cx.v3.Experiment.IResult|null); + /** SecuritySettings redactionScope. */ + public redactionScope: (google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope|keyof typeof google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope); - /** Experiment createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** SecuritySettings inspectTemplate. */ + public inspectTemplate: string; - /** Experiment startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** SecuritySettings deidentifyTemplate. */ + public deidentifyTemplate: string; - /** Experiment endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** SecuritySettings retentionWindowDays. */ + public retentionWindowDays?: (number|null); - /** Experiment lastUpdateTime. */ - public lastUpdateTime?: (google.protobuf.ITimestamp|null); + /** SecuritySettings purgeDataTypes. */ + public purgeDataTypes: google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType[]; - /** Experiment experimentLength. */ - public experimentLength?: (google.protobuf.IDuration|null); + /** SecuritySettings insightsExportSettings. */ + public insightsExportSettings?: (google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings|null); - /** Experiment variantsHistory. */ - public variantsHistory: google.cloud.dialogflow.cx.v3.IVariantsHistory[]; + /** SecuritySettings dataRetention. */ + public dataRetention?: "retentionWindowDays"; /** - * Creates a new Experiment instance using the specified properties. + * Creates a new SecuritySettings instance using the specified properties. * @param [properties] Properties to set - * @returns Experiment instance + * @returns SecuritySettings instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IExperiment): google.cloud.dialogflow.cx.v3.Experiment; + public static create(properties?: google.cloud.dialogflow.cx.v3.ISecuritySettings): google.cloud.dialogflow.cx.v3.SecuritySettings; /** - * Encodes the specified Experiment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.verify|verify} messages. - * @param message Experiment message or plain object to encode + * Encodes the specified SecuritySettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.verify|verify} messages. + * @param message SecuritySettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IExperiment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ISecuritySettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Experiment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.verify|verify} messages. - * @param message Experiment message or plain object to encode + * Encodes the specified SecuritySettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.verify|verify} messages. + * @param message SecuritySettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IExperiment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ISecuritySettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Experiment message from the specified reader or buffer. + * Decodes a SecuritySettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Experiment + * @returns SecuritySettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Experiment; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SecuritySettings; /** - * Decodes an Experiment message from the specified reader or buffer, length delimited. + * Decodes a SecuritySettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Experiment + * @returns SecuritySettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Experiment; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SecuritySettings; /** - * Verifies an Experiment message. + * Verifies a SecuritySettings message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an Experiment message from a plain object. Also converts values to their respective internal types. + * Creates a SecuritySettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Experiment + * @returns SecuritySettings */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Experiment; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SecuritySettings; /** - * Creates a plain object from an Experiment message. Also converts values to other types if specified. - * @param message Experiment + * Creates a plain object from a SecuritySettings message. Also converts values to other types if specified. + * @param message SecuritySettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Experiment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.SecuritySettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Experiment to JSON. + * Converts this SecuritySettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Experiment { + namespace SecuritySettings { - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - DRAFT = 1, - RUNNING = 2, - DONE = 3, - ROLLOUT_FAILED = 4 + /** RedactionStrategy enum. */ + enum RedactionStrategy { + REDACTION_STRATEGY_UNSPECIFIED = 0, + REDACT_WITH_SERVICE = 1 } - /** Properties of a Definition. */ - interface IDefinition { + /** RedactionScope enum. */ + enum RedactionScope { + REDACTION_SCOPE_UNSPECIFIED = 0, + REDACT_DISK_STORAGE = 2 + } - /** Definition condition */ - condition?: (string|null); + /** PurgeDataType enum. */ + enum PurgeDataType { + PURGE_DATA_TYPE_UNSPECIFIED = 0, + DIALOGFLOW_HISTORY = 1 + } - /** Definition versionVariants */ - versionVariants?: (google.cloud.dialogflow.cx.v3.IVersionVariants|null); + /** Properties of an InsightsExportSettings. */ + interface IInsightsExportSettings { + + /** InsightsExportSettings enableInsightsExport */ + enableInsightsExport?: (boolean|null); } - /** Represents a Definition. */ - class Definition implements IDefinition { + /** Represents an InsightsExportSettings. */ + class InsightsExportSettings implements IInsightsExportSettings { /** - * Constructs a new Definition. + * Constructs a new InsightsExportSettings. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Experiment.IDefinition); - - /** Definition condition. */ - public condition: string; - - /** Definition versionVariants. */ - public versionVariants?: (google.cloud.dialogflow.cx.v3.IVersionVariants|null); + constructor(properties?: google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings); - /** Definition variants. */ - public variants?: "versionVariants"; + /** InsightsExportSettings enableInsightsExport. */ + public enableInsightsExport: boolean; /** - * Creates a new Definition instance using the specified properties. + * Creates a new InsightsExportSettings instance using the specified properties. * @param [properties] Properties to set - * @returns Definition instance + * @returns InsightsExportSettings instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.Experiment.IDefinition): google.cloud.dialogflow.cx.v3.Experiment.Definition; + public static create(properties?: google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings): google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings; /** - * Encodes the specified Definition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Definition.verify|verify} messages. - * @param message Definition message or plain object to encode + * Encodes the specified InsightsExportSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.verify|verify} messages. + * @param message InsightsExportSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.Experiment.IDefinition, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Definition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Definition.verify|verify} messages. - * @param message Definition message or plain object to encode + * Encodes the specified InsightsExportSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.verify|verify} messages. + * @param message InsightsExportSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Experiment.IDefinition, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Definition message from the specified reader or buffer. + * Decodes an InsightsExportSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Definition + * @returns InsightsExportSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Experiment.Definition; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings; /** - * Decodes a Definition message from the specified reader or buffer, length delimited. + * Decodes an InsightsExportSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Definition + * @returns InsightsExportSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Experiment.Definition; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings; /** - * Verifies a Definition message. + * Verifies an InsightsExportSettings message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Definition message from a plain object. Also converts values to their respective internal types. + * Creates an InsightsExportSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Definition + * @returns InsightsExportSettings */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Experiment.Definition; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings; /** - * Creates a plain object from a Definition message. Also converts values to other types if specified. - * @param message Definition + * Creates a plain object from an InsightsExportSettings message. Also converts values to other types if specified. + * @param message InsightsExportSettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Experiment.Definition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Definition to JSON. + * Converts this InsightsExportSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } + } - /** Properties of a Result. */ - interface IResult { - - /** Result versionMetrics */ - versionMetrics?: (google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics[]|null); + /** Represents a Versions */ + class Versions extends $protobuf.rpc.Service { - /** Result lastUpdateTime */ - lastUpdateTime?: (google.protobuf.ITimestamp|null); - } + /** + * Constructs a new Versions service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** Represents a Result. */ - class Result implements IResult { + /** + * Creates new Versions service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Versions; - /** - * Constructs a new Result. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Experiment.IResult); + /** + * Calls ListVersions. + * @param request ListVersionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListVersionsResponse + */ + public listVersions(request: google.cloud.dialogflow.cx.v3.IListVersionsRequest, callback: google.cloud.dialogflow.cx.v3.Versions.ListVersionsCallback): void; - /** Result versionMetrics. */ - public versionMetrics: google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics[]; + /** + * Calls ListVersions. + * @param request ListVersionsRequest message or plain object + * @returns Promise + */ + public listVersions(request: google.cloud.dialogflow.cx.v3.IListVersionsRequest): Promise; - /** Result lastUpdateTime. */ - public lastUpdateTime?: (google.protobuf.ITimestamp|null); + /** + * Calls GetVersion. + * @param request GetVersionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Version + */ + public getVersion(request: google.cloud.dialogflow.cx.v3.IGetVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.GetVersionCallback): void; - /** - * Creates a new Result instance using the specified properties. - * @param [properties] Properties to set - * @returns Result instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.Experiment.IResult): google.cloud.dialogflow.cx.v3.Experiment.Result; + /** + * Calls GetVersion. + * @param request GetVersionRequest message or plain object + * @returns Promise + */ + public getVersion(request: google.cloud.dialogflow.cx.v3.IGetVersionRequest): Promise; - /** - * Encodes the specified Result message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.verify|verify} messages. - * @param message Result message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.Experiment.IResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Calls CreateVersion. + * @param request CreateVersionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createVersion(request: google.cloud.dialogflow.cx.v3.ICreateVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.CreateVersionCallback): void; - /** - * Encodes the specified Result message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.verify|verify} messages. - * @param message Result message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Experiment.IResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Calls CreateVersion. + * @param request CreateVersionRequest message or plain object + * @returns Promise + */ + public createVersion(request: google.cloud.dialogflow.cx.v3.ICreateVersionRequest): Promise; - /** - * Decodes a Result message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Result - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Experiment.Result; + /** + * Calls UpdateVersion. + * @param request UpdateVersionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Version + */ + public updateVersion(request: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.UpdateVersionCallback): void; - /** - * Decodes a Result message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Result - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Experiment.Result; + /** + * Calls UpdateVersion. + * @param request UpdateVersionRequest message or plain object + * @returns Promise + */ + public updateVersion(request: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest): Promise; - /** - * Verifies a Result message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Calls DeleteVersion. + * @param request DeleteVersionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteVersion(request: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.DeleteVersionCallback): void; - /** - * Creates a Result message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Result - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Experiment.Result; + /** + * Calls DeleteVersion. + * @param request DeleteVersionRequest message or plain object + * @returns Promise + */ + public deleteVersion(request: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest): Promise; - /** - * Creates a plain object from a Result message. Also converts values to other types if specified. - * @param message Result - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Experiment.Result, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Calls LoadVersion. + * @param request LoadVersionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public loadVersion(request: google.cloud.dialogflow.cx.v3.ILoadVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.LoadVersionCallback): void; - /** - * Converts this Result to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Calls LoadVersion. + * @param request LoadVersionRequest message or plain object + * @returns Promise + */ + public loadVersion(request: google.cloud.dialogflow.cx.v3.ILoadVersionRequest): Promise; - namespace Result { + /** + * Calls CompareVersions. + * @param request CompareVersionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CompareVersionsResponse + */ + public compareVersions(request: google.cloud.dialogflow.cx.v3.ICompareVersionsRequest, callback: google.cloud.dialogflow.cx.v3.Versions.CompareVersionsCallback): void; - /** MetricType enum. */ - enum MetricType { - METRIC_UNSPECIFIED = 0, - CONTAINED_SESSION_NO_CALLBACK_RATE = 1, - LIVE_AGENT_HANDOFF_RATE = 2, - CALLBACK_SESSION_RATE = 3, - ABANDONED_SESSION_RATE = 4, - SESSION_END_RATE = 5 - } + /** + * Calls CompareVersions. + * @param request CompareVersionsRequest message or plain object + * @returns Promise + */ + public compareVersions(request: google.cloud.dialogflow.cx.v3.ICompareVersionsRequest): Promise; + } - /** CountType enum. */ - enum CountType { - COUNT_TYPE_UNSPECIFIED = 0, - TOTAL_NO_MATCH_COUNT = 1, - TOTAL_TURN_COUNT = 2, - AVERAGE_TURN_COUNT = 3 - } + namespace Versions { - /** Properties of a ConfidenceInterval. */ - interface IConfidenceInterval { + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#listVersions}. + * @param error Error, if any + * @param [response] ListVersionsResponse + */ + type ListVersionsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListVersionsResponse) => void; - /** ConfidenceInterval confidenceLevel */ - confidenceLevel?: (number|null); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#getVersion}. + * @param error Error, if any + * @param [response] Version + */ + type GetVersionCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Version) => void; - /** ConfidenceInterval ratio */ - ratio?: (number|null); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#createVersion}. + * @param error Error, if any + * @param [response] Operation + */ + type CreateVersionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** ConfidenceInterval lowerBound */ - lowerBound?: (number|null); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#updateVersion}. + * @param error Error, if any + * @param [response] Version + */ + type UpdateVersionCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Version) => void; - /** ConfidenceInterval upperBound */ - upperBound?: (number|null); - } + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#deleteVersion}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteVersionCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - /** Represents a ConfidenceInterval. */ - class ConfidenceInterval implements IConfidenceInterval { + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#loadVersion}. + * @param error Error, if any + * @param [response] Operation + */ + type LoadVersionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** - * Constructs a new ConfidenceInterval. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#compareVersions}. + * @param error Error, if any + * @param [response] CompareVersionsResponse + */ + type CompareVersionsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.CompareVersionsResponse) => void; + } - /** ConfidenceInterval confidenceLevel. */ - public confidenceLevel: number; + /** Properties of a CreateVersionOperationMetadata. */ + interface ICreateVersionOperationMetadata { - /** ConfidenceInterval ratio. */ - public ratio: number; + /** CreateVersionOperationMetadata version */ + version?: (string|null); + } - /** ConfidenceInterval lowerBound. */ - public lowerBound: number; + /** Represents a CreateVersionOperationMetadata. */ + class CreateVersionOperationMetadata implements ICreateVersionOperationMetadata { - /** ConfidenceInterval upperBound. */ - public upperBound: number; + /** + * Constructs a new CreateVersionOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata); - /** - * Creates a new ConfidenceInterval instance using the specified properties. - * @param [properties] Properties to set - * @returns ConfidenceInterval instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval): google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval; + /** CreateVersionOperationMetadata version. */ + public version: string; - /** - * Encodes the specified ConfidenceInterval message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.verify|verify} messages. - * @param message ConfidenceInterval message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ConfidenceInterval message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.verify|verify} messages. - * @param message ConfidenceInterval message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ConfidenceInterval message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ConfidenceInterval - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval; - - /** - * Decodes a ConfidenceInterval message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ConfidenceInterval - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval; - - /** - * Verifies a ConfidenceInterval message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ConfidenceInterval message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ConfidenceInterval - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval; - - /** - * Creates a plain object from a ConfidenceInterval message. Also converts values to other types if specified. - * @param message ConfidenceInterval - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ConfidenceInterval to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a Metric. */ - interface IMetric { - - /** Metric type */ - type?: (google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType|null); - - /** Metric countType */ - countType?: (google.cloud.dialogflow.cx.v3.Experiment.Result.CountType|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.Result.CountType|null); - - /** Metric ratio */ - ratio?: (number|null); - - /** Metric count */ - count?: (number|null); - - /** Metric confidenceInterval */ - confidenceInterval?: (google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval|null); - } - - /** Represents a Metric. */ - class Metric implements IMetric { + /** + * Creates a new CreateVersionOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateVersionOperationMetadata instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata): google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata; - /** - * Constructs a new Metric. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric); + /** + * Encodes the specified CreateVersionOperationMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata.verify|verify} messages. + * @param message CreateVersionOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** Metric type. */ - public type: (google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType); + /** + * Encodes the specified CreateVersionOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata.verify|verify} messages. + * @param message CreateVersionOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** Metric countType. */ - public countType: (google.cloud.dialogflow.cx.v3.Experiment.Result.CountType|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.Result.CountType); + /** + * Decodes a CreateVersionOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateVersionOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata; - /** Metric ratio. */ - public ratio?: (number|null); + /** + * Decodes a CreateVersionOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateVersionOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata; - /** Metric count. */ - public count?: (number|null); + /** + * Verifies a CreateVersionOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Metric confidenceInterval. */ - public confidenceInterval?: (google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval|null); + /** + * Creates a CreateVersionOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateVersionOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata; - /** Metric value. */ - public value?: ("ratio"|"count"); + /** + * Creates a plain object from a CreateVersionOperationMetadata message. Also converts values to other types if specified. + * @param message CreateVersionOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a new Metric instance using the specified properties. - * @param [properties] Properties to set - * @returns Metric instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric): google.cloud.dialogflow.cx.v3.Experiment.Result.Metric; + /** + * Converts this CreateVersionOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Encodes the specified Metric message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.verify|verify} messages. - * @param message Metric message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a Version. */ + interface IVersion { - /** - * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.verify|verify} messages. - * @param message Metric message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; + /** Version name */ + name?: (string|null); - /** - * Decodes a Metric message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Experiment.Result.Metric; + /** Version displayName */ + displayName?: (string|null); - /** - * Decodes a Metric message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Experiment.Result.Metric; + /** Version description */ + description?: (string|null); - /** - * Verifies a Metric message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Version nluSettings */ + nluSettings?: (google.cloud.dialogflow.cx.v3.INluSettings|null); - /** - * Creates a Metric message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Metric - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Experiment.Result.Metric; + /** Version createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** - * Creates a plain object from a Metric message. Also converts values to other types if specified. - * @param message Metric - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Experiment.Result.Metric, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Version state */ + state?: (google.cloud.dialogflow.cx.v3.Version.State|keyof typeof google.cloud.dialogflow.cx.v3.Version.State|null); + } - /** - * Converts this Metric to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Represents a Version. */ + class Version implements IVersion { - /** Properties of a VersionMetrics. */ - interface IVersionMetrics { + /** + * Constructs a new Version. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IVersion); - /** VersionMetrics version */ - version?: (string|null); + /** Version name. */ + public name: string; - /** VersionMetrics metrics */ - metrics?: (google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric[]|null); + /** Version displayName. */ + public displayName: string; - /** VersionMetrics sessionCount */ - sessionCount?: (number|null); - } + /** Version description. */ + public description: string; - /** Represents a VersionMetrics. */ - class VersionMetrics implements IVersionMetrics { + /** Version nluSettings. */ + public nluSettings?: (google.cloud.dialogflow.cx.v3.INluSettings|null); - /** - * Constructs a new VersionMetrics. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics); + /** Version createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** VersionMetrics version. */ - public version: string; + /** Version state. */ + public state: (google.cloud.dialogflow.cx.v3.Version.State|keyof typeof google.cloud.dialogflow.cx.v3.Version.State); - /** VersionMetrics metrics. */ - public metrics: google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric[]; + /** + * Creates a new Version instance using the specified properties. + * @param [properties] Properties to set + * @returns Version instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IVersion): google.cloud.dialogflow.cx.v3.Version; - /** VersionMetrics sessionCount. */ - public sessionCount: number; + /** + * Encodes the specified Version message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Version.verify|verify} messages. + * @param message Version message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new VersionMetrics instance using the specified properties. - * @param [properties] Properties to set - * @returns VersionMetrics instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics): google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics; + /** + * Encodes the specified Version message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Version.verify|verify} messages. + * @param message Version message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified VersionMetrics message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.verify|verify} messages. - * @param message VersionMetrics message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a Version message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Version + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Version; - /** - * Encodes the specified VersionMetrics message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.verify|verify} messages. - * @param message VersionMetrics message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a Version message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Version + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Version; - /** - * Decodes a VersionMetrics message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VersionMetrics - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics; + /** + * Verifies a Version message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes a VersionMetrics message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VersionMetrics - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics; + /** + * Creates a Version message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Version + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Version; - /** - * Verifies a VersionMetrics message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a plain object from a Version message. Also converts values to other types if specified. + * @param message Version + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.Version, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a VersionMetrics message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VersionMetrics - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics; + /** + * Converts this Version to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Creates a plain object from a VersionMetrics message. Also converts values to other types if specified. - * @param message VersionMetrics - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any }; + namespace Version { - /** - * Converts this VersionMetrics to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + RUNNING = 1, + SUCCEEDED = 2, + FAILED = 3 } } - /** Properties of a VersionVariants. */ - interface IVersionVariants { + /** Properties of a ListVersionsRequest. */ + interface IListVersionsRequest { - /** VersionVariants variants */ - variants?: (google.cloud.dialogflow.cx.v3.VersionVariants.IVariant[]|null); + /** ListVersionsRequest parent */ + parent?: (string|null); + + /** ListVersionsRequest pageSize */ + pageSize?: (number|null); + + /** ListVersionsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a VersionVariants. */ - class VersionVariants implements IVersionVariants { + /** Represents a ListVersionsRequest. */ + class ListVersionsRequest implements IListVersionsRequest { /** - * Constructs a new VersionVariants. + * Constructs a new ListVersionsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IVersionVariants); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListVersionsRequest); - /** VersionVariants variants. */ - public variants: google.cloud.dialogflow.cx.v3.VersionVariants.IVariant[]; + /** ListVersionsRequest parent. */ + public parent: string; + + /** ListVersionsRequest pageSize. */ + public pageSize: number; + + /** ListVersionsRequest pageToken. */ + public pageToken: string; /** - * Creates a new VersionVariants instance using the specified properties. + * Creates a new ListVersionsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns VersionVariants instance + * @returns ListVersionsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IVersionVariants): google.cloud.dialogflow.cx.v3.VersionVariants; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListVersionsRequest): google.cloud.dialogflow.cx.v3.ListVersionsRequest; /** - * Encodes the specified VersionVariants message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.verify|verify} messages. - * @param message VersionVariants message or plain object to encode + * Encodes the specified ListVersionsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsRequest.verify|verify} messages. + * @param message ListVersionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IVersionVariants, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VersionVariants message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.verify|verify} messages. - * @param message VersionVariants message or plain object to encode + * Encodes the specified ListVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsRequest.verify|verify} messages. + * @param message ListVersionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IVersionVariants, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VersionVariants message from the specified reader or buffer. + * Decodes a ListVersionsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VersionVariants + * @returns ListVersionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.VersionVariants; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListVersionsRequest; /** - * Decodes a VersionVariants message from the specified reader or buffer, length delimited. + * Decodes a ListVersionsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VersionVariants + * @returns ListVersionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.VersionVariants; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListVersionsRequest; /** - * Verifies a VersionVariants message. + * Verifies a ListVersionsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a VersionVariants message from a plain object. Also converts values to their respective internal types. + * Creates a ListVersionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VersionVariants + * @returns ListVersionsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.VersionVariants; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListVersionsRequest; /** - * Creates a plain object from a VersionVariants message. Also converts values to other types if specified. - * @param message VersionVariants + * Creates a plain object from a ListVersionsRequest message. Also converts values to other types if specified. + * @param message ListVersionsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.VersionVariants, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VersionVariants to JSON. + * Converts this ListVersionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace VersionVariants { + /** Properties of a ListVersionsResponse. */ + interface IListVersionsResponse { - /** Properties of a Variant. */ - interface IVariant { + /** ListVersionsResponse versions */ + versions?: (google.cloud.dialogflow.cx.v3.IVersion[]|null); - /** Variant version */ - version?: (string|null); + /** ListVersionsResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** Variant trafficAllocation */ - trafficAllocation?: (number|null); + /** Represents a ListVersionsResponse. */ + class ListVersionsResponse implements IListVersionsResponse { - /** Variant isControlGroup */ - isControlGroup?: (boolean|null); - } + /** + * Constructs a new ListVersionsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IListVersionsResponse); - /** Represents a Variant. */ - class Variant implements IVariant { - - /** - * Constructs a new Variant. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.VersionVariants.IVariant); - - /** Variant version. */ - public version: string; - - /** Variant trafficAllocation. */ - public trafficAllocation: number; - - /** Variant isControlGroup. */ - public isControlGroup: boolean; - - /** - * Creates a new Variant instance using the specified properties. - * @param [properties] Properties to set - * @returns Variant instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.VersionVariants.IVariant): google.cloud.dialogflow.cx.v3.VersionVariants.Variant; - - /** - * Encodes the specified Variant message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.Variant.verify|verify} messages. - * @param message Variant message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.VersionVariants.IVariant, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Variant message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.Variant.verify|verify} messages. - * @param message Variant message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.VersionVariants.IVariant, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Variant message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Variant - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.VersionVariants.Variant; - - /** - * Decodes a Variant message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Variant - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.VersionVariants.Variant; - - /** - * Verifies a Variant message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Variant message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Variant - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.VersionVariants.Variant; - - /** - * Creates a plain object from a Variant message. Also converts values to other types if specified. - * @param message Variant - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.VersionVariants.Variant, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Variant to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of a VariantsHistory. */ - interface IVariantsHistory { - - /** VariantsHistory versionVariants */ - versionVariants?: (google.cloud.dialogflow.cx.v3.IVersionVariants|null); - - /** VariantsHistory updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - } - - /** Represents a VariantsHistory. */ - class VariantsHistory implements IVariantsHistory { - - /** - * Constructs a new VariantsHistory. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IVariantsHistory); - - /** VariantsHistory versionVariants. */ - public versionVariants?: (google.cloud.dialogflow.cx.v3.IVersionVariants|null); - - /** VariantsHistory updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** ListVersionsResponse versions. */ + public versions: google.cloud.dialogflow.cx.v3.IVersion[]; - /** VariantsHistory variants. */ - public variants?: "versionVariants"; + /** ListVersionsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new VariantsHistory instance using the specified properties. + * Creates a new ListVersionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns VariantsHistory instance + * @returns ListVersionsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IVariantsHistory): google.cloud.dialogflow.cx.v3.VariantsHistory; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListVersionsResponse): google.cloud.dialogflow.cx.v3.ListVersionsResponse; /** - * Encodes the specified VariantsHistory message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VariantsHistory.verify|verify} messages. - * @param message VariantsHistory message or plain object to encode + * Encodes the specified ListVersionsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsResponse.verify|verify} messages. + * @param message ListVersionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IVariantsHistory, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VariantsHistory message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VariantsHistory.verify|verify} messages. - * @param message VariantsHistory message or plain object to encode + * Encodes the specified ListVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsResponse.verify|verify} messages. + * @param message ListVersionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IVariantsHistory, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VariantsHistory message from the specified reader or buffer. + * Decodes a ListVersionsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VariantsHistory + * @returns ListVersionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.VariantsHistory; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListVersionsResponse; /** - * Decodes a VariantsHistory message from the specified reader or buffer, length delimited. + * Decodes a ListVersionsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VariantsHistory + * @returns ListVersionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.VariantsHistory; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListVersionsResponse; /** - * Verifies a VariantsHistory message. + * Verifies a ListVersionsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a VariantsHistory message from a plain object. Also converts values to their respective internal types. + * Creates a ListVersionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VariantsHistory + * @returns ListVersionsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.VariantsHistory; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListVersionsResponse; /** - * Creates a plain object from a VariantsHistory message. Also converts values to other types if specified. - * @param message VariantsHistory + * Creates a plain object from a ListVersionsResponse message. Also converts values to other types if specified. + * @param message ListVersionsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.VariantsHistory, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VariantsHistory to JSON. + * Converts this ListVersionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RolloutConfig. */ - interface IRolloutConfig { - - /** RolloutConfig rolloutSteps */ - rolloutSteps?: (google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep[]|null); - - /** RolloutConfig rolloutCondition */ - rolloutCondition?: (string|null); + /** Properties of a GetVersionRequest. */ + interface IGetVersionRequest { - /** RolloutConfig failureCondition */ - failureCondition?: (string|null); + /** GetVersionRequest name */ + name?: (string|null); } - /** Represents a RolloutConfig. */ - class RolloutConfig implements IRolloutConfig { + /** Represents a GetVersionRequest. */ + class GetVersionRequest implements IGetVersionRequest { /** - * Constructs a new RolloutConfig. + * Constructs a new GetVersionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IRolloutConfig); - - /** RolloutConfig rolloutSteps. */ - public rolloutSteps: google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep[]; - - /** RolloutConfig rolloutCondition. */ - public rolloutCondition: string; + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetVersionRequest); - /** RolloutConfig failureCondition. */ - public failureCondition: string; + /** GetVersionRequest name. */ + public name: string; /** - * Creates a new RolloutConfig instance using the specified properties. + * Creates a new GetVersionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RolloutConfig instance + * @returns GetVersionRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IRolloutConfig): google.cloud.dialogflow.cx.v3.RolloutConfig; + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetVersionRequest): google.cloud.dialogflow.cx.v3.GetVersionRequest; /** - * Encodes the specified RolloutConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutConfig.verify|verify} messages. - * @param message RolloutConfig message or plain object to encode + * Encodes the specified GetVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetVersionRequest.verify|verify} messages. + * @param message GetVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IRolloutConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RolloutConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutConfig.verify|verify} messages. - * @param message RolloutConfig message or plain object to encode + * Encodes the specified GetVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetVersionRequest.verify|verify} messages. + * @param message GetVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IRolloutConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RolloutConfig message from the specified reader or buffer. + * Decodes a GetVersionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RolloutConfig + * @returns GetVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.RolloutConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetVersionRequest; /** - * Decodes a RolloutConfig message from the specified reader or buffer, length delimited. + * Decodes a GetVersionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RolloutConfig + * @returns GetVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.RolloutConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetVersionRequest; /** - * Verifies a RolloutConfig message. + * Verifies a GetVersionRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RolloutConfig message from a plain object. Also converts values to their respective internal types. + * Creates a GetVersionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RolloutConfig + * @returns GetVersionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.RolloutConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetVersionRequest; /** - * Creates a plain object from a RolloutConfig message. Also converts values to other types if specified. - * @param message RolloutConfig + * Creates a plain object from a GetVersionRequest message. Also converts values to other types if specified. + * @param message GetVersionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.RolloutConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.GetVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RolloutConfig to JSON. + * Converts this GetVersionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace RolloutConfig { - - /** Properties of a RolloutStep. */ - interface IRolloutStep { - - /** RolloutStep displayName */ - displayName?: (string|null); - - /** RolloutStep trafficPercent */ - trafficPercent?: (number|null); - - /** RolloutStep minDuration */ - minDuration?: (google.protobuf.IDuration|null); - } - - /** Represents a RolloutStep. */ - class RolloutStep implements IRolloutStep { - - /** - * Constructs a new RolloutStep. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep); - - /** RolloutStep displayName. */ - public displayName: string; - - /** RolloutStep trafficPercent. */ - public trafficPercent: number; - - /** RolloutStep minDuration. */ - public minDuration?: (google.protobuf.IDuration|null); - - /** - * Creates a new RolloutStep instance using the specified properties. - * @param [properties] Properties to set - * @returns RolloutStep instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep): google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep; - - /** - * Encodes the specified RolloutStep message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.verify|verify} messages. - * @param message RolloutStep message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RolloutStep message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.verify|verify} messages. - * @param message RolloutStep message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RolloutStep message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RolloutStep - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep; - - /** - * Decodes a RolloutStep message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RolloutStep - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep; - - /** - * Verifies a RolloutStep message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RolloutStep message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RolloutStep - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep; - - /** - * Creates a plain object from a RolloutStep message. Also converts values to other types if specified. - * @param message RolloutStep - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RolloutStep to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of a RolloutState. */ - interface IRolloutState { - - /** RolloutState step */ - step?: (string|null); + /** Properties of a CreateVersionRequest. */ + interface ICreateVersionRequest { - /** RolloutState stepIndex */ - stepIndex?: (number|null); + /** CreateVersionRequest parent */ + parent?: (string|null); - /** RolloutState startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** CreateVersionRequest version */ + version?: (google.cloud.dialogflow.cx.v3.IVersion|null); } - /** Represents a RolloutState. */ - class RolloutState implements IRolloutState { + /** Represents a CreateVersionRequest. */ + class CreateVersionRequest implements ICreateVersionRequest { /** - * Constructs a new RolloutState. + * Constructs a new CreateVersionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IRolloutState); - - /** RolloutState step. */ - public step: string; + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateVersionRequest); - /** RolloutState stepIndex. */ - public stepIndex: number; + /** CreateVersionRequest parent. */ + public parent: string; - /** RolloutState startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** CreateVersionRequest version. */ + public version?: (google.cloud.dialogflow.cx.v3.IVersion|null); /** - * Creates a new RolloutState instance using the specified properties. + * Creates a new CreateVersionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RolloutState instance + * @returns CreateVersionRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IRolloutState): google.cloud.dialogflow.cx.v3.RolloutState; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateVersionRequest): google.cloud.dialogflow.cx.v3.CreateVersionRequest; /** - * Encodes the specified RolloutState message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutState.verify|verify} messages. - * @param message RolloutState message or plain object to encode + * Encodes the specified CreateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionRequest.verify|verify} messages. + * @param message CreateVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IRolloutState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RolloutState message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutState.verify|verify} messages. - * @param message RolloutState message or plain object to encode + * Encodes the specified CreateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionRequest.verify|verify} messages. + * @param message CreateVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IRolloutState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RolloutState message from the specified reader or buffer. + * Decodes a CreateVersionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RolloutState + * @returns CreateVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.RolloutState; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateVersionRequest; /** - * Decodes a RolloutState message from the specified reader or buffer, length delimited. + * Decodes a CreateVersionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RolloutState + * @returns CreateVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.RolloutState; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateVersionRequest; /** - * Verifies a RolloutState message. + * Verifies a CreateVersionRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RolloutState message from a plain object. Also converts values to their respective internal types. + * Creates a CreateVersionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RolloutState + * @returns CreateVersionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.RolloutState; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateVersionRequest; /** - * Creates a plain object from a RolloutState message. Also converts values to other types if specified. - * @param message RolloutState + * Creates a plain object from a CreateVersionRequest message. Also converts values to other types if specified. + * @param message CreateVersionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.RolloutState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RolloutState to JSON. + * Converts this CreateVersionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListExperimentsRequest. */ - interface IListExperimentsRequest { - - /** ListExperimentsRequest parent */ - parent?: (string|null); + /** Properties of an UpdateVersionRequest. */ + interface IUpdateVersionRequest { - /** ListExperimentsRequest pageSize */ - pageSize?: (number|null); + /** UpdateVersionRequest version */ + version?: (google.cloud.dialogflow.cx.v3.IVersion|null); - /** ListExperimentsRequest pageToken */ - pageToken?: (string|null); + /** UpdateVersionRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ListExperimentsRequest. */ - class ListExperimentsRequest implements IListExperimentsRequest { + /** Represents an UpdateVersionRequest. */ + class UpdateVersionRequest implements IUpdateVersionRequest { /** - * Constructs a new ListExperimentsRequest. + * Constructs a new UpdateVersionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListExperimentsRequest); - - /** ListExperimentsRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest); - /** ListExperimentsRequest pageSize. */ - public pageSize: number; + /** UpdateVersionRequest version. */ + public version?: (google.cloud.dialogflow.cx.v3.IVersion|null); - /** ListExperimentsRequest pageToken. */ - public pageToken: string; + /** UpdateVersionRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ListExperimentsRequest instance using the specified properties. + * Creates a new UpdateVersionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListExperimentsRequest instance + * @returns UpdateVersionRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListExperimentsRequest): google.cloud.dialogflow.cx.v3.ListExperimentsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; /** - * Encodes the specified ListExperimentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsRequest.verify|verify} messages. - * @param message ListExperimentsRequest message or plain object to encode + * Encodes the specified UpdateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateVersionRequest.verify|verify} messages. + * @param message UpdateVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListExperimentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListExperimentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsRequest.verify|verify} messages. - * @param message ListExperimentsRequest message or plain object to encode + * Encodes the specified UpdateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateVersionRequest.verify|verify} messages. + * @param message UpdateVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListExperimentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListExperimentsRequest message from the specified reader or buffer. + * Decodes an UpdateVersionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListExperimentsRequest + * @returns UpdateVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListExperimentsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; /** - * Decodes a ListExperimentsRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateVersionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListExperimentsRequest + * @returns UpdateVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListExperimentsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; /** - * Verifies a ListExperimentsRequest message. + * Verifies an UpdateVersionRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListExperimentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateVersionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListExperimentsRequest + * @returns UpdateVersionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListExperimentsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; /** - * Creates a plain object from a ListExperimentsRequest message. Also converts values to other types if specified. - * @param message ListExperimentsRequest + * Creates a plain object from an UpdateVersionRequest message. Also converts values to other types if specified. + * @param message UpdateVersionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListExperimentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListExperimentsRequest to JSON. + * Converts this UpdateVersionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListExperimentsResponse. */ - interface IListExperimentsResponse { - - /** ListExperimentsResponse experiments */ - experiments?: (google.cloud.dialogflow.cx.v3.IExperiment[]|null); + /** Properties of a DeleteVersionRequest. */ + interface IDeleteVersionRequest { - /** ListExperimentsResponse nextPageToken */ - nextPageToken?: (string|null); + /** DeleteVersionRequest name */ + name?: (string|null); } - /** Represents a ListExperimentsResponse. */ - class ListExperimentsResponse implements IListExperimentsResponse { + /** Represents a DeleteVersionRequest. */ + class DeleteVersionRequest implements IDeleteVersionRequest { /** - * Constructs a new ListExperimentsResponse. + * Constructs a new DeleteVersionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListExperimentsResponse); - - /** ListExperimentsResponse experiments. */ - public experiments: google.cloud.dialogflow.cx.v3.IExperiment[]; + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest); - /** ListExperimentsResponse nextPageToken. */ - public nextPageToken: string; + /** DeleteVersionRequest name. */ + public name: string; /** - * Creates a new ListExperimentsResponse instance using the specified properties. + * Creates a new DeleteVersionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListExperimentsResponse instance + * @returns DeleteVersionRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListExperimentsResponse): google.cloud.dialogflow.cx.v3.ListExperimentsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest): google.cloud.dialogflow.cx.v3.DeleteVersionRequest; /** - * Encodes the specified ListExperimentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsResponse.verify|verify} messages. - * @param message ListExperimentsResponse message or plain object to encode + * Encodes the specified DeleteVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteVersionRequest.verify|verify} messages. + * @param message DeleteVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListExperimentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListExperimentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsResponse.verify|verify} messages. - * @param message ListExperimentsResponse message or plain object to encode + * Encodes the specified DeleteVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteVersionRequest.verify|verify} messages. + * @param message DeleteVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListExperimentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListExperimentsResponse message from the specified reader or buffer. + * Decodes a DeleteVersionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListExperimentsResponse + * @returns DeleteVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListExperimentsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteVersionRequest; /** - * Decodes a ListExperimentsResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteVersionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListExperimentsResponse + * @returns DeleteVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListExperimentsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteVersionRequest; /** - * Verifies a ListExperimentsResponse message. + * Verifies a DeleteVersionRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListExperimentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteVersionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListExperimentsResponse + * @returns DeleteVersionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListExperimentsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteVersionRequest; /** - * Creates a plain object from a ListExperimentsResponse message. Also converts values to other types if specified. - * @param message ListExperimentsResponse + * Creates a plain object from a DeleteVersionRequest message. Also converts values to other types if specified. + * @param message DeleteVersionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListExperimentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListExperimentsResponse to JSON. + * Converts this DeleteVersionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetExperimentRequest. */ - interface IGetExperimentRequest { + /** Properties of a LoadVersionRequest. */ + interface ILoadVersionRequest { - /** GetExperimentRequest name */ + /** LoadVersionRequest name */ name?: (string|null); + + /** LoadVersionRequest allowOverrideAgentResources */ + allowOverrideAgentResources?: (boolean|null); } - /** Represents a GetExperimentRequest. */ - class GetExperimentRequest implements IGetExperimentRequest { + /** Represents a LoadVersionRequest. */ + class LoadVersionRequest implements ILoadVersionRequest { /** - * Constructs a new GetExperimentRequest. + * Constructs a new LoadVersionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetExperimentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ILoadVersionRequest); - /** GetExperimentRequest name. */ + /** LoadVersionRequest name. */ public name: string; + /** LoadVersionRequest allowOverrideAgentResources. */ + public allowOverrideAgentResources: boolean; + /** - * Creates a new GetExperimentRequest instance using the specified properties. + * Creates a new LoadVersionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetExperimentRequest instance + * @returns LoadVersionRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IGetExperimentRequest): google.cloud.dialogflow.cx.v3.GetExperimentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ILoadVersionRequest): google.cloud.dialogflow.cx.v3.LoadVersionRequest; /** - * Encodes the specified GetExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetExperimentRequest.verify|verify} messages. - * @param message GetExperimentRequest message or plain object to encode + * Encodes the specified LoadVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LoadVersionRequest.verify|verify} messages. + * @param message LoadVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IGetExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ILoadVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetExperimentRequest.verify|verify} messages. - * @param message GetExperimentRequest message or plain object to encode + * Encodes the specified LoadVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LoadVersionRequest.verify|verify} messages. + * @param message LoadVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ILoadVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetExperimentRequest message from the specified reader or buffer. + * Decodes a LoadVersionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetExperimentRequest + * @returns LoadVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.LoadVersionRequest; /** - * Decodes a GetExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a LoadVersionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetExperimentRequest + * @returns LoadVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.LoadVersionRequest; /** - * Verifies a GetExperimentRequest message. + * Verifies a LoadVersionRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a LoadVersionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetExperimentRequest + * @returns LoadVersionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetExperimentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.LoadVersionRequest; /** - * Creates a plain object from a GetExperimentRequest message. Also converts values to other types if specified. - * @param message GetExperimentRequest + * Creates a plain object from a LoadVersionRequest message. Also converts values to other types if specified. + * @param message LoadVersionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.GetExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.LoadVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetExperimentRequest to JSON. + * Converts this LoadVersionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateExperimentRequest. */ - interface ICreateExperimentRequest { + /** Properties of a CompareVersionsRequest. */ + interface ICompareVersionsRequest { - /** CreateExperimentRequest parent */ - parent?: (string|null); + /** CompareVersionsRequest baseVersion */ + baseVersion?: (string|null); - /** CreateExperimentRequest experiment */ - experiment?: (google.cloud.dialogflow.cx.v3.IExperiment|null); + /** CompareVersionsRequest targetVersion */ + targetVersion?: (string|null); + + /** CompareVersionsRequest languageCode */ + languageCode?: (string|null); } - /** Represents a CreateExperimentRequest. */ - class CreateExperimentRequest implements ICreateExperimentRequest { + /** Represents a CompareVersionsRequest. */ + class CompareVersionsRequest implements ICompareVersionsRequest { /** - * Constructs a new CreateExperimentRequest. + * Constructs a new CompareVersionsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICompareVersionsRequest); - /** CreateExperimentRequest parent. */ - public parent: string; + /** CompareVersionsRequest baseVersion. */ + public baseVersion: string; - /** CreateExperimentRequest experiment. */ - public experiment?: (google.cloud.dialogflow.cx.v3.IExperiment|null); + /** CompareVersionsRequest targetVersion. */ + public targetVersion: string; + + /** CompareVersionsRequest languageCode. */ + public languageCode: string; /** - * Creates a new CreateExperimentRequest instance using the specified properties. + * Creates a new CompareVersionsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateExperimentRequest instance + * @returns CompareVersionsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest): google.cloud.dialogflow.cx.v3.CreateExperimentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICompareVersionsRequest): google.cloud.dialogflow.cx.v3.CompareVersionsRequest; /** - * Encodes the specified CreateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateExperimentRequest.verify|verify} messages. - * @param message CreateExperimentRequest message or plain object to encode + * Encodes the specified CompareVersionsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsRequest.verify|verify} messages. + * @param message CompareVersionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICompareVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateExperimentRequest.verify|verify} messages. - * @param message CreateExperimentRequest message or plain object to encode + * Encodes the specified CompareVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsRequest.verify|verify} messages. + * @param message CompareVersionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICompareVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateExperimentRequest message from the specified reader or buffer. + * Decodes a CompareVersionsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateExperimentRequest + * @returns CompareVersionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CompareVersionsRequest; /** - * Decodes a CreateExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a CompareVersionsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateExperimentRequest + * @returns CompareVersionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CompareVersionsRequest; /** - * Verifies a CreateExperimentRequest message. + * Verifies a CompareVersionsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CompareVersionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateExperimentRequest + * @returns CompareVersionsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateExperimentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CompareVersionsRequest; /** - * Creates a plain object from a CreateExperimentRequest message. Also converts values to other types if specified. - * @param message CreateExperimentRequest + * Creates a plain object from a CompareVersionsRequest message. Also converts values to other types if specified. + * @param message CompareVersionsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.CreateExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CompareVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateExperimentRequest to JSON. + * Converts this CompareVersionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateExperimentRequest. */ - interface IUpdateExperimentRequest { + /** Properties of a CompareVersionsResponse. */ + interface ICompareVersionsResponse { - /** UpdateExperimentRequest experiment */ - experiment?: (google.cloud.dialogflow.cx.v3.IExperiment|null); + /** CompareVersionsResponse baseVersionContentJson */ + baseVersionContentJson?: (string|null); - /** UpdateExperimentRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** CompareVersionsResponse targetVersionContentJson */ + targetVersionContentJson?: (string|null); + + /** CompareVersionsResponse compareTime */ + compareTime?: (google.protobuf.ITimestamp|null); } - /** Represents an UpdateExperimentRequest. */ - class UpdateExperimentRequest implements IUpdateExperimentRequest { + /** Represents a CompareVersionsResponse. */ + class CompareVersionsResponse implements ICompareVersionsResponse { /** - * Constructs a new UpdateExperimentRequest. + * Constructs a new CompareVersionsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICompareVersionsResponse); - /** UpdateExperimentRequest experiment. */ - public experiment?: (google.cloud.dialogflow.cx.v3.IExperiment|null); + /** CompareVersionsResponse baseVersionContentJson. */ + public baseVersionContentJson: string; - /** UpdateExperimentRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** CompareVersionsResponse targetVersionContentJson. */ + public targetVersionContentJson: string; + + /** CompareVersionsResponse compareTime. */ + public compareTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new UpdateExperimentRequest instance using the specified properties. + * Creates a new CompareVersionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateExperimentRequest instance + * @returns CompareVersionsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest): google.cloud.dialogflow.cx.v3.UpdateExperimentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICompareVersionsResponse): google.cloud.dialogflow.cx.v3.CompareVersionsResponse; /** - * Encodes the specified UpdateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateExperimentRequest.verify|verify} messages. - * @param message UpdateExperimentRequest message or plain object to encode + * Encodes the specified CompareVersionsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsResponse.verify|verify} messages. + * @param message CompareVersionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICompareVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateExperimentRequest.verify|verify} messages. - * @param message UpdateExperimentRequest message or plain object to encode + * Encodes the specified CompareVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsResponse.verify|verify} messages. + * @param message CompareVersionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICompareVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateExperimentRequest message from the specified reader or buffer. + * Decodes a CompareVersionsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateExperimentRequest + * @returns CompareVersionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CompareVersionsResponse; /** - * Decodes an UpdateExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a CompareVersionsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateExperimentRequest + * @returns CompareVersionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CompareVersionsResponse; /** - * Verifies an UpdateExperimentRequest message. + * Verifies a CompareVersionsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CompareVersionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateExperimentRequest + * @returns CompareVersionsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateExperimentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CompareVersionsResponse; /** - * Creates a plain object from an UpdateExperimentRequest message. Also converts values to other types if specified. - * @param message UpdateExperimentRequest + * Creates a plain object from a CompareVersionsResponse message. Also converts values to other types if specified. + * @param message CompareVersionsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CompareVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateExperimentRequest to JSON. + * Converts this CompareVersionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteExperimentRequest. */ - interface IDeleteExperimentRequest { + /** Represents a Webhooks */ + class Webhooks extends $protobuf.rpc.Service { - /** DeleteExperimentRequest name */ - name?: (string|null); - } + /** + * Constructs a new Webhooks service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** Represents a DeleteExperimentRequest. */ - class DeleteExperimentRequest implements IDeleteExperimentRequest { + /** + * Creates new Webhooks service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Webhooks; /** - * Constructs a new DeleteExperimentRequest. - * @param [properties] Properties to set + * Calls ListWebhooks. + * @param request ListWebhooksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListWebhooksResponse */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest); + public listWebhooks(request: google.cloud.dialogflow.cx.v3.IListWebhooksRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooksCallback): void; - /** DeleteExperimentRequest name. */ - public name: string; + /** + * Calls ListWebhooks. + * @param request ListWebhooksRequest message or plain object + * @returns Promise + */ + public listWebhooks(request: google.cloud.dialogflow.cx.v3.IListWebhooksRequest): Promise; /** - * Creates a new DeleteExperimentRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteExperimentRequest instance + * Calls GetWebhook. + * @param request GetWebhookRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Webhook */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest): google.cloud.dialogflow.cx.v3.DeleteExperimentRequest; + public getWebhook(request: google.cloud.dialogflow.cx.v3.IGetWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.GetWebhookCallback): void; /** - * Encodes the specified DeleteExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteExperimentRequest.verify|verify} messages. - * @param message DeleteExperimentRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls GetWebhook. + * @param request GetWebhookRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public getWebhook(request: google.cloud.dialogflow.cx.v3.IGetWebhookRequest): Promise; /** - * Encodes the specified DeleteExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteExperimentRequest.verify|verify} messages. - * @param message DeleteExperimentRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreateWebhook. + * @param request CreateWebhookRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Webhook */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public createWebhook(request: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhookCallback): void; /** - * Decodes a DeleteExperimentRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteExperimentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateWebhook. + * @param request CreateWebhookRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteExperimentRequest; + public createWebhook(request: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest): Promise; /** - * Decodes a DeleteExperimentRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteExperimentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls UpdateWebhook. + * @param request UpdateWebhookRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Webhook */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteExperimentRequest; + public updateWebhook(request: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhookCallback): void; /** - * Verifies a DeleteExperimentRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls UpdateWebhook. + * @param request UpdateWebhookRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public updateWebhook(request: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest): Promise; /** - * Creates a DeleteExperimentRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteExperimentRequest + * Calls DeleteWebhook. + * @param request DeleteWebhookRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteExperimentRequest; + public deleteWebhook(request: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.DeleteWebhookCallback): void; /** - * Creates a plain object from a DeleteExperimentRequest message. Also converts values to other types if specified. - * @param message DeleteExperimentRequest - * @param [options] Conversion options - * @returns Plain object + * Calls DeleteWebhook. + * @param request DeleteWebhookRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public deleteWebhook(request: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest): Promise; + } + + namespace Webhooks { /** - * Converts this DeleteExperimentRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#listWebhooks}. + * @param error Error, if any + * @param [response] ListWebhooksResponse */ - public toJSON(): { [k: string]: any }; + type ListWebhooksCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListWebhooksResponse) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#getWebhook}. + * @param error Error, if any + * @param [response] Webhook + */ + type GetWebhookCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Webhook) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#createWebhook}. + * @param error Error, if any + * @param [response] Webhook + */ + type CreateWebhookCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Webhook) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#updateWebhook}. + * @param error Error, if any + * @param [response] Webhook + */ + type UpdateWebhookCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Webhook) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#deleteWebhook}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteWebhookCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } - /** Properties of a StartExperimentRequest. */ - interface IStartExperimentRequest { + /** Properties of a Webhook. */ + interface IWebhook { - /** StartExperimentRequest name */ + /** Webhook name */ name?: (string|null); + + /** Webhook displayName */ + displayName?: (string|null); + + /** Webhook genericWebService */ + genericWebService?: (google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null); + + /** Webhook serviceDirectory */ + serviceDirectory?: (google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig|null); + + /** Webhook timeout */ + timeout?: (google.protobuf.IDuration|null); + + /** Webhook disabled */ + disabled?: (boolean|null); } - /** Represents a StartExperimentRequest. */ - class StartExperimentRequest implements IStartExperimentRequest { + /** Represents a Webhook. */ + class Webhook implements IWebhook { /** - * Constructs a new StartExperimentRequest. + * Constructs a new Webhook. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IStartExperimentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IWebhook); - /** StartExperimentRequest name. */ + /** Webhook name. */ public name: string; + /** Webhook displayName. */ + public displayName: string; + + /** Webhook genericWebService. */ + public genericWebService?: (google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null); + + /** Webhook serviceDirectory. */ + public serviceDirectory?: (google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig|null); + + /** Webhook timeout. */ + public timeout?: (google.protobuf.IDuration|null); + + /** Webhook disabled. */ + public disabled: boolean; + + /** Webhook webhook. */ + public webhook?: ("genericWebService"|"serviceDirectory"); + /** - * Creates a new StartExperimentRequest instance using the specified properties. + * Creates a new Webhook instance using the specified properties. * @param [properties] Properties to set - * @returns StartExperimentRequest instance + * @returns Webhook instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IStartExperimentRequest): google.cloud.dialogflow.cx.v3.StartExperimentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IWebhook): google.cloud.dialogflow.cx.v3.Webhook; /** - * Encodes the specified StartExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StartExperimentRequest.verify|verify} messages. - * @param message StartExperimentRequest message or plain object to encode + * Encodes the specified Webhook message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.verify|verify} messages. + * @param message Webhook message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IStartExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IWebhook, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StartExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StartExperimentRequest.verify|verify} messages. - * @param message StartExperimentRequest message or plain object to encode + * Encodes the specified Webhook message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.verify|verify} messages. + * @param message Webhook message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IStartExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IWebhook, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StartExperimentRequest message from the specified reader or buffer. + * Decodes a Webhook message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StartExperimentRequest + * @returns Webhook * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.StartExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Webhook; /** - * Decodes a StartExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a Webhook message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StartExperimentRequest + * @returns Webhook * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.StartExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Webhook; /** - * Verifies a StartExperimentRequest message. + * Verifies a Webhook message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StartExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Webhook message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StartExperimentRequest + * @returns Webhook */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.StartExperimentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Webhook; /** - * Creates a plain object from a StartExperimentRequest message. Also converts values to other types if specified. - * @param message StartExperimentRequest + * Creates a plain object from a Webhook message. Also converts values to other types if specified. + * @param message Webhook * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.StartExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Webhook, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StartExperimentRequest to JSON. + * Converts this Webhook to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a StopExperimentRequest. */ - interface IStopExperimentRequest { + namespace Webhook { - /** StopExperimentRequest name */ - name?: (string|null); + /** Properties of a GenericWebService. */ + interface IGenericWebService { + + /** GenericWebService uri */ + uri?: (string|null); + + /** GenericWebService username */ + username?: (string|null); + + /** GenericWebService password */ + password?: (string|null); + + /** GenericWebService requestHeaders */ + requestHeaders?: ({ [k: string]: string }|null); + + /** GenericWebService allowedCaCerts */ + allowedCaCerts?: (Uint8Array[]|null); + } + + /** Represents a GenericWebService. */ + class GenericWebService implements IGenericWebService { + + /** + * Constructs a new GenericWebService. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService); + + /** GenericWebService uri. */ + public uri: string; + + /** GenericWebService username. */ + public username: string; + + /** GenericWebService password. */ + public password: string; + + /** GenericWebService requestHeaders. */ + public requestHeaders: { [k: string]: string }; + + /** GenericWebService allowedCaCerts. */ + public allowedCaCerts: Uint8Array[]; + + /** + * Creates a new GenericWebService instance using the specified properties. + * @param [properties] Properties to set + * @returns GenericWebService instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService): google.cloud.dialogflow.cx.v3.Webhook.GenericWebService; + + /** + * Encodes the specified GenericWebService message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.verify|verify} messages. + * @param message GenericWebService message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GenericWebService message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.verify|verify} messages. + * @param message GenericWebService message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GenericWebService message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GenericWebService + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Webhook.GenericWebService; + + /** + * Decodes a GenericWebService message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GenericWebService + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Webhook.GenericWebService; + + /** + * Verifies a GenericWebService message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GenericWebService message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GenericWebService + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Webhook.GenericWebService; + + /** + * Creates a plain object from a GenericWebService message. Also converts values to other types if specified. + * @param message GenericWebService + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.Webhook.GenericWebService, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GenericWebService to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ServiceDirectoryConfig. */ + interface IServiceDirectoryConfig { + + /** ServiceDirectoryConfig service */ + service?: (string|null); + + /** ServiceDirectoryConfig genericWebService */ + genericWebService?: (google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null); + } + + /** Represents a ServiceDirectoryConfig. */ + class ServiceDirectoryConfig implements IServiceDirectoryConfig { + + /** + * Constructs a new ServiceDirectoryConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig); + + /** ServiceDirectoryConfig service. */ + public service: string; + + /** ServiceDirectoryConfig genericWebService. */ + public genericWebService?: (google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null); + + /** + * Creates a new ServiceDirectoryConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceDirectoryConfig instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig): google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig; + + /** + * Encodes the specified ServiceDirectoryConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.verify|verify} messages. + * @param message ServiceDirectoryConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ServiceDirectoryConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.verify|verify} messages. + * @param message ServiceDirectoryConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ServiceDirectoryConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServiceDirectoryConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig; + + /** + * Decodes a ServiceDirectoryConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ServiceDirectoryConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig; + + /** + * Verifies a ServiceDirectoryConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ServiceDirectoryConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ServiceDirectoryConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig; + + /** + * Creates a plain object from a ServiceDirectoryConfig message. Also converts values to other types if specified. + * @param message ServiceDirectoryConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ServiceDirectoryConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Represents a StopExperimentRequest. */ - class StopExperimentRequest implements IStopExperimentRequest { + /** Properties of a ListWebhooksRequest. */ + interface IListWebhooksRequest { + + /** ListWebhooksRequest parent */ + parent?: (string|null); + + /** ListWebhooksRequest pageSize */ + pageSize?: (number|null); + + /** ListWebhooksRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListWebhooksRequest. */ + class ListWebhooksRequest implements IListWebhooksRequest { /** - * Constructs a new StopExperimentRequest. + * Constructs a new ListWebhooksRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IStopExperimentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListWebhooksRequest); - /** StopExperimentRequest name. */ - public name: string; + /** ListWebhooksRequest parent. */ + public parent: string; + + /** ListWebhooksRequest pageSize. */ + public pageSize: number; + + /** ListWebhooksRequest pageToken. */ + public pageToken: string; /** - * Creates a new StopExperimentRequest instance using the specified properties. + * Creates a new ListWebhooksRequest instance using the specified properties. * @param [properties] Properties to set - * @returns StopExperimentRequest instance + * @returns ListWebhooksRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IStopExperimentRequest): google.cloud.dialogflow.cx.v3.StopExperimentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListWebhooksRequest): google.cloud.dialogflow.cx.v3.ListWebhooksRequest; /** - * Encodes the specified StopExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StopExperimentRequest.verify|verify} messages. - * @param message StopExperimentRequest message or plain object to encode + * Encodes the specified ListWebhooksRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksRequest.verify|verify} messages. + * @param message ListWebhooksRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IStopExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListWebhooksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StopExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StopExperimentRequest.verify|verify} messages. - * @param message StopExperimentRequest message or plain object to encode + * Encodes the specified ListWebhooksRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksRequest.verify|verify} messages. + * @param message ListWebhooksRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IStopExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListWebhooksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StopExperimentRequest message from the specified reader or buffer. + * Decodes a ListWebhooksRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StopExperimentRequest + * @returns ListWebhooksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.StopExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListWebhooksRequest; /** - * Decodes a StopExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a ListWebhooksRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StopExperimentRequest + * @returns ListWebhooksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.StopExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListWebhooksRequest; /** - * Verifies a StopExperimentRequest message. + * Verifies a ListWebhooksRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StopExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListWebhooksRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StopExperimentRequest + * @returns ListWebhooksRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.StopExperimentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListWebhooksRequest; /** - * Creates a plain object from a StopExperimentRequest message. Also converts values to other types if specified. - * @param message StopExperimentRequest + * Creates a plain object from a ListWebhooksRequest message. Also converts values to other types if specified. + * @param message ListWebhooksRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.StopExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListWebhooksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StopExperimentRequest to JSON. + * Converts this ListWebhooksRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a Versions */ - class Versions extends $protobuf.rpc.Service { + /** Properties of a ListWebhooksResponse. */ + interface IListWebhooksResponse { - /** - * Constructs a new Versions service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** ListWebhooksResponse webhooks */ + webhooks?: (google.cloud.dialogflow.cx.v3.IWebhook[]|null); - /** - * Creates new Versions service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Versions; + /** ListWebhooksResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** - * Calls ListVersions. - * @param request ListVersionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListVersionsResponse - */ - public listVersions(request: google.cloud.dialogflow.cx.v3.IListVersionsRequest, callback: google.cloud.dialogflow.cx.v3.Versions.ListVersionsCallback): void; + /** Represents a ListWebhooksResponse. */ + class ListWebhooksResponse implements IListWebhooksResponse { /** - * Calls ListVersions. - * @param request ListVersionsRequest message or plain object - * @returns Promise + * Constructs a new ListWebhooksResponse. + * @param [properties] Properties to set */ - public listVersions(request: google.cloud.dialogflow.cx.v3.IListVersionsRequest): Promise; + constructor(properties?: google.cloud.dialogflow.cx.v3.IListWebhooksResponse); - /** - * Calls GetVersion. - * @param request GetVersionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Version - */ - public getVersion(request: google.cloud.dialogflow.cx.v3.IGetVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.GetVersionCallback): void; + /** ListWebhooksResponse webhooks. */ + public webhooks: google.cloud.dialogflow.cx.v3.IWebhook[]; - /** - * Calls GetVersion. - * @param request GetVersionRequest message or plain object - * @returns Promise - */ - public getVersion(request: google.cloud.dialogflow.cx.v3.IGetVersionRequest): Promise; + /** ListWebhooksResponse nextPageToken. */ + public nextPageToken: string; /** - * Calls CreateVersion. - * @param request CreateVersionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a new ListWebhooksResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListWebhooksResponse instance */ - public createVersion(request: google.cloud.dialogflow.cx.v3.ICreateVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.CreateVersionCallback): void; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListWebhooksResponse): google.cloud.dialogflow.cx.v3.ListWebhooksResponse; /** - * Calls CreateVersion. - * @param request CreateVersionRequest message or plain object - * @returns Promise + * Encodes the specified ListWebhooksResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksResponse.verify|verify} messages. + * @param message ListWebhooksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createVersion(request: google.cloud.dialogflow.cx.v3.ICreateVersionRequest): Promise; + public static encode(message: google.cloud.dialogflow.cx.v3.IListWebhooksResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateVersion. - * @param request UpdateVersionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Version + * Encodes the specified ListWebhooksResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksResponse.verify|verify} messages. + * @param message ListWebhooksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public updateVersion(request: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.UpdateVersionCallback): void; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListWebhooksResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateVersion. - * @param request UpdateVersionRequest message or plain object - * @returns Promise + * Decodes a ListWebhooksResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListWebhooksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public updateVersion(request: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListWebhooksResponse; /** - * Calls DeleteVersion. - * @param request DeleteVersionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Decodes a ListWebhooksResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListWebhooksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteVersion(request: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.DeleteVersionCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListWebhooksResponse; /** - * Calls DeleteVersion. - * @param request DeleteVersionRequest message or plain object - * @returns Promise + * Verifies a ListWebhooksResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public deleteVersion(request: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls LoadVersion. - * @param request LoadVersionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a ListWebhooksResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListWebhooksResponse */ - public loadVersion(request: google.cloud.dialogflow.cx.v3.ILoadVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.LoadVersionCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListWebhooksResponse; /** - * Calls LoadVersion. - * @param request LoadVersionRequest message or plain object - * @returns Promise + * Creates a plain object from a ListWebhooksResponse message. Also converts values to other types if specified. + * @param message ListWebhooksResponse + * @param [options] Conversion options + * @returns Plain object */ - public loadVersion(request: google.cloud.dialogflow.cx.v3.ILoadVersionRequest): Promise; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListWebhooksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls CompareVersions. - * @param request CompareVersionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CompareVersionsResponse + * Converts this ListWebhooksResponse to JSON. + * @returns JSON object */ - public compareVersions(request: google.cloud.dialogflow.cx.v3.ICompareVersionsRequest, callback: google.cloud.dialogflow.cx.v3.Versions.CompareVersionsCallback): void; + public toJSON(): { [k: string]: any }; + } - /** - * Calls CompareVersions. - * @param request CompareVersionsRequest message or plain object - * @returns Promise - */ - public compareVersions(request: google.cloud.dialogflow.cx.v3.ICompareVersionsRequest): Promise; + /** Properties of a GetWebhookRequest. */ + interface IGetWebhookRequest { + + /** GetWebhookRequest name */ + name?: (string|null); } - namespace Versions { + /** Represents a GetWebhookRequest. */ + class GetWebhookRequest implements IGetWebhookRequest { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#listVersions}. - * @param error Error, if any - * @param [response] ListVersionsResponse + * Constructs a new GetWebhookRequest. + * @param [properties] Properties to set */ - type ListVersionsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListVersionsResponse) => void; + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetWebhookRequest); - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#getVersion}. - * @param error Error, if any - * @param [response] Version - */ - type GetVersionCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Version) => void; + /** GetWebhookRequest name. */ + public name: string; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#createVersion}. - * @param error Error, if any - * @param [response] Operation + * Creates a new GetWebhookRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetWebhookRequest instance */ - type CreateVersionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetWebhookRequest): google.cloud.dialogflow.cx.v3.GetWebhookRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#updateVersion}. - * @param error Error, if any - * @param [response] Version + * Encodes the specified GetWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetWebhookRequest.verify|verify} messages. + * @param message GetWebhookRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type UpdateVersionCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Version) => void; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#deleteVersion}. - * @param error Error, if any - * @param [response] Empty + * Encodes the specified GetWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetWebhookRequest.verify|verify} messages. + * @param message GetWebhookRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type DeleteVersionCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#loadVersion}. - * @param error Error, if any - * @param [response] Operation - */ - type LoadVersionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#compareVersions}. - * @param error Error, if any - * @param [response] CompareVersionsResponse - */ - type CompareVersionsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.CompareVersionsResponse) => void; - } - - /** Properties of a CreateVersionOperationMetadata. */ - interface ICreateVersionOperationMetadata { - - /** CreateVersionOperationMetadata version */ - version?: (string|null); - } - - /** Represents a CreateVersionOperationMetadata. */ - class CreateVersionOperationMetadata implements ICreateVersionOperationMetadata { - - /** - * Constructs a new CreateVersionOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata); - - /** CreateVersionOperationMetadata version. */ - public version: string; - - /** - * Creates a new CreateVersionOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateVersionOperationMetadata instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata): google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata; - - /** - * Encodes the specified CreateVersionOperationMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata.verify|verify} messages. - * @param message CreateVersionOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CreateVersionOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata.verify|verify} messages. - * @param message CreateVersionOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateVersionOperationMetadata message from the specified reader or buffer. + * Decodes a GetWebhookRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateVersionOperationMetadata + * @returns GetWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetWebhookRequest; /** - * Decodes a CreateVersionOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a GetWebhookRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateVersionOperationMetadata + * @returns GetWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetWebhookRequest; /** - * Verifies a CreateVersionOperationMetadata message. + * Verifies a GetWebhookRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateVersionOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a GetWebhookRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateVersionOperationMetadata + * @returns GetWebhookRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetWebhookRequest; /** - * Creates a plain object from a CreateVersionOperationMetadata message. Also converts values to other types if specified. - * @param message CreateVersionOperationMetadata + * Creates a plain object from a GetWebhookRequest message. Also converts values to other types if specified. + * @param message GetWebhookRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.GetWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateVersionOperationMetadata to JSON. + * Converts this GetWebhookRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Version. */ - interface IVersion { - - /** Version name */ - name?: (string|null); - - /** Version displayName */ - displayName?: (string|null); - - /** Version description */ - description?: (string|null); - - /** Version nluSettings */ - nluSettings?: (google.cloud.dialogflow.cx.v3.INluSettings|null); + /** Properties of a CreateWebhookRequest. */ + interface ICreateWebhookRequest { - /** Version createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** CreateWebhookRequest parent */ + parent?: (string|null); - /** Version state */ - state?: (google.cloud.dialogflow.cx.v3.Version.State|keyof typeof google.cloud.dialogflow.cx.v3.Version.State|null); + /** CreateWebhookRequest webhook */ + webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); } - /** Represents a Version. */ - class Version implements IVersion { + /** Represents a CreateWebhookRequest. */ + class CreateWebhookRequest implements ICreateWebhookRequest { /** - * Constructs a new Version. + * Constructs a new CreateWebhookRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IVersion); - - /** Version name. */ - public name: string; - - /** Version displayName. */ - public displayName: string; - - /** Version description. */ - public description: string; - - /** Version nluSettings. */ - public nluSettings?: (google.cloud.dialogflow.cx.v3.INluSettings|null); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest); - /** Version createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** CreateWebhookRequest parent. */ + public parent: string; - /** Version state. */ - public state: (google.cloud.dialogflow.cx.v3.Version.State|keyof typeof google.cloud.dialogflow.cx.v3.Version.State); + /** CreateWebhookRequest webhook. */ + public webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); /** - * Creates a new Version instance using the specified properties. + * Creates a new CreateWebhookRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Version instance + * @returns CreateWebhookRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IVersion): google.cloud.dialogflow.cx.v3.Version; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest): google.cloud.dialogflow.cx.v3.CreateWebhookRequest; /** - * Encodes the specified Version message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Version.verify|verify} messages. - * @param message Version message or plain object to encode + * Encodes the specified CreateWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateWebhookRequest.verify|verify} messages. + * @param message CreateWebhookRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Version message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Version.verify|verify} messages. - * @param message Version message or plain object to encode + * Encodes the specified CreateWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateWebhookRequest.verify|verify} messages. + * @param message CreateWebhookRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Version message from the specified reader or buffer. + * Decodes a CreateWebhookRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Version + * @returns CreateWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Version; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateWebhookRequest; /** - * Decodes a Version message from the specified reader or buffer, length delimited. + * Decodes a CreateWebhookRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Version + * @returns CreateWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Version; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateWebhookRequest; /** - * Verifies a Version message. + * Verifies a CreateWebhookRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Version message from a plain object. Also converts values to their respective internal types. + * Creates a CreateWebhookRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Version + * @returns CreateWebhookRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Version; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateWebhookRequest; /** - * Creates a plain object from a Version message. Also converts values to other types if specified. - * @param message Version + * Creates a plain object from a CreateWebhookRequest message. Also converts values to other types if specified. + * @param message CreateWebhookRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Version, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Version to JSON. + * Converts this CreateWebhookRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Version { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - RUNNING = 1, - SUCCEEDED = 2, - FAILED = 3 - } - } - - /** Properties of a ListVersionsRequest. */ - interface IListVersionsRequest { - - /** ListVersionsRequest parent */ - parent?: (string|null); + /** Properties of an UpdateWebhookRequest. */ + interface IUpdateWebhookRequest { - /** ListVersionsRequest pageSize */ - pageSize?: (number|null); + /** UpdateWebhookRequest webhook */ + webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); - /** ListVersionsRequest pageToken */ - pageToken?: (string|null); + /** UpdateWebhookRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ListVersionsRequest. */ - class ListVersionsRequest implements IListVersionsRequest { + /** Represents an UpdateWebhookRequest. */ + class UpdateWebhookRequest implements IUpdateWebhookRequest { /** - * Constructs a new ListVersionsRequest. + * Constructs a new UpdateWebhookRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListVersionsRequest); - - /** ListVersionsRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest); - /** ListVersionsRequest pageSize. */ - public pageSize: number; + /** UpdateWebhookRequest webhook. */ + public webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); - /** ListVersionsRequest pageToken. */ - public pageToken: string; + /** UpdateWebhookRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ListVersionsRequest instance using the specified properties. + * Creates a new UpdateWebhookRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListVersionsRequest instance + * @returns UpdateWebhookRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListVersionsRequest): google.cloud.dialogflow.cx.v3.ListVersionsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest): google.cloud.dialogflow.cx.v3.UpdateWebhookRequest; /** - * Encodes the specified ListVersionsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsRequest.verify|verify} messages. - * @param message ListVersionsRequest message or plain object to encode + * Encodes the specified UpdateWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateWebhookRequest.verify|verify} messages. + * @param message UpdateWebhookRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsRequest.verify|verify} messages. - * @param message ListVersionsRequest message or plain object to encode + * Encodes the specified UpdateWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateWebhookRequest.verify|verify} messages. + * @param message UpdateWebhookRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListVersionsRequest message from the specified reader or buffer. + * Decodes an UpdateWebhookRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListVersionsRequest + * @returns UpdateWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListVersionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateWebhookRequest; /** - * Decodes a ListVersionsRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateWebhookRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListVersionsRequest + * @returns UpdateWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListVersionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateWebhookRequest; /** - * Verifies a ListVersionsRequest message. + * Verifies an UpdateWebhookRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListVersionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateWebhookRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListVersionsRequest + * @returns UpdateWebhookRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListVersionsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateWebhookRequest; /** - * Creates a plain object from a ListVersionsRequest message. Also converts values to other types if specified. - * @param message ListVersionsRequest + * Creates a plain object from an UpdateWebhookRequest message. Also converts values to other types if specified. + * @param message UpdateWebhookRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListVersionsRequest to JSON. + * Converts this UpdateWebhookRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListVersionsResponse. */ - interface IListVersionsResponse { + /** Properties of a DeleteWebhookRequest. */ + interface IDeleteWebhookRequest { - /** ListVersionsResponse versions */ - versions?: (google.cloud.dialogflow.cx.v3.IVersion[]|null); + /** DeleteWebhookRequest name */ + name?: (string|null); - /** ListVersionsResponse nextPageToken */ - nextPageToken?: (string|null); + /** DeleteWebhookRequest force */ + force?: (boolean|null); } - /** Represents a ListVersionsResponse. */ - class ListVersionsResponse implements IListVersionsResponse { + /** Represents a DeleteWebhookRequest. */ + class DeleteWebhookRequest implements IDeleteWebhookRequest { /** - * Constructs a new ListVersionsResponse. + * Constructs a new DeleteWebhookRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListVersionsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest); - /** ListVersionsResponse versions. */ - public versions: google.cloud.dialogflow.cx.v3.IVersion[]; + /** DeleteWebhookRequest name. */ + public name: string; - /** ListVersionsResponse nextPageToken. */ - public nextPageToken: string; + /** DeleteWebhookRequest force. */ + public force: boolean; /** - * Creates a new ListVersionsResponse instance using the specified properties. + * Creates a new DeleteWebhookRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListVersionsResponse instance + * @returns DeleteWebhookRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListVersionsResponse): google.cloud.dialogflow.cx.v3.ListVersionsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest): google.cloud.dialogflow.cx.v3.DeleteWebhookRequest; /** - * Encodes the specified ListVersionsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsResponse.verify|verify} messages. - * @param message ListVersionsResponse message or plain object to encode + * Encodes the specified DeleteWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteWebhookRequest.verify|verify} messages. + * @param message DeleteWebhookRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsResponse.verify|verify} messages. - * @param message ListVersionsResponse message or plain object to encode + * Encodes the specified DeleteWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteWebhookRequest.verify|verify} messages. + * @param message DeleteWebhookRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListVersionsResponse message from the specified reader or buffer. + * Decodes a DeleteWebhookRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListVersionsResponse + * @returns DeleteWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListVersionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteWebhookRequest; /** - * Decodes a ListVersionsResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteWebhookRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListVersionsResponse + * @returns DeleteWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListVersionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteWebhookRequest; /** - * Verifies a ListVersionsResponse message. + * Verifies a DeleteWebhookRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListVersionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteWebhookRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListVersionsResponse + * @returns DeleteWebhookRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListVersionsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteWebhookRequest; /** - * Creates a plain object from a ListVersionsResponse message. Also converts values to other types if specified. - * @param message ListVersionsResponse + * Creates a plain object from a DeleteWebhookRequest message. Also converts values to other types if specified. + * @param message DeleteWebhookRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListVersionsResponse to JSON. + * Converts this DeleteWebhookRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetVersionRequest. */ - interface IGetVersionRequest { + /** Properties of a WebhookRequest. */ + interface IWebhookRequest { - /** GetVersionRequest name */ - name?: (string|null); + /** WebhookRequest detectIntentResponseId */ + detectIntentResponseId?: (string|null); + + /** WebhookRequest text */ + text?: (string|null); + + /** WebhookRequest triggerIntent */ + triggerIntent?: (string|null); + + /** WebhookRequest transcript */ + transcript?: (string|null); + + /** WebhookRequest triggerEvent */ + triggerEvent?: (string|null); + + /** WebhookRequest languageCode */ + languageCode?: (string|null); + + /** WebhookRequest fulfillmentInfo */ + fulfillmentInfo?: (google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo|null); + + /** WebhookRequest intentInfo */ + intentInfo?: (google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo|null); + + /** WebhookRequest pageInfo */ + pageInfo?: (google.cloud.dialogflow.cx.v3.IPageInfo|null); + + /** WebhookRequest sessionInfo */ + sessionInfo?: (google.cloud.dialogflow.cx.v3.ISessionInfo|null); + + /** WebhookRequest messages */ + messages?: (google.cloud.dialogflow.cx.v3.IResponseMessage[]|null); + + /** WebhookRequest payload */ + payload?: (google.protobuf.IStruct|null); + + /** WebhookRequest sentimentAnalysisResult */ + sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult|null); } - /** Represents a GetVersionRequest. */ - class GetVersionRequest implements IGetVersionRequest { + /** Represents a WebhookRequest. */ + class WebhookRequest implements IWebhookRequest { /** - * Constructs a new GetVersionRequest. + * Constructs a new WebhookRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetVersionRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IWebhookRequest); - /** GetVersionRequest name. */ - public name: string; + /** WebhookRequest detectIntentResponseId. */ + public detectIntentResponseId: string; + + /** WebhookRequest text. */ + public text?: (string|null); + + /** WebhookRequest triggerIntent. */ + public triggerIntent?: (string|null); + + /** WebhookRequest transcript. */ + public transcript?: (string|null); + + /** WebhookRequest triggerEvent. */ + public triggerEvent?: (string|null); + + /** WebhookRequest languageCode. */ + public languageCode: string; + + /** WebhookRequest fulfillmentInfo. */ + public fulfillmentInfo?: (google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo|null); + + /** WebhookRequest intentInfo. */ + public intentInfo?: (google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo|null); + + /** WebhookRequest pageInfo. */ + public pageInfo?: (google.cloud.dialogflow.cx.v3.IPageInfo|null); + + /** WebhookRequest sessionInfo. */ + public sessionInfo?: (google.cloud.dialogflow.cx.v3.ISessionInfo|null); + + /** WebhookRequest messages. */ + public messages: google.cloud.dialogflow.cx.v3.IResponseMessage[]; + + /** WebhookRequest payload. */ + public payload?: (google.protobuf.IStruct|null); + + /** WebhookRequest sentimentAnalysisResult. */ + public sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult|null); + + /** WebhookRequest query. */ + public query?: ("text"|"triggerIntent"|"transcript"|"triggerEvent"); /** - * Creates a new GetVersionRequest instance using the specified properties. + * Creates a new WebhookRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetVersionRequest instance + * @returns WebhookRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IGetVersionRequest): google.cloud.dialogflow.cx.v3.GetVersionRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IWebhookRequest): google.cloud.dialogflow.cx.v3.WebhookRequest; /** - * Encodes the specified GetVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetVersionRequest.verify|verify} messages. - * @param message GetVersionRequest message or plain object to encode + * Encodes the specified WebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.verify|verify} messages. + * @param message WebhookRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetVersionRequest.verify|verify} messages. - * @param message GetVersionRequest message or plain object to encode + * Encodes the specified WebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.verify|verify} messages. + * @param message WebhookRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetVersionRequest message from the specified reader or buffer. + * Decodes a WebhookRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetVersionRequest + * @returns WebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetVersionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookRequest; /** - * Decodes a GetVersionRequest message from the specified reader or buffer, length delimited. + * Decodes a WebhookRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetVersionRequest + * @returns WebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetVersionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookRequest; /** - * Verifies a GetVersionRequest message. + * Verifies a WebhookRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetVersionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a WebhookRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetVersionRequest + * @returns WebhookRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetVersionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookRequest; /** - * Creates a plain object from a GetVersionRequest message. Also converts values to other types if specified. - * @param message GetVersionRequest + * Creates a plain object from a WebhookRequest message. Also converts values to other types if specified. + * @param message WebhookRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.GetVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetVersionRequest to JSON. + * Converts this WebhookRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateVersionRequest. */ - interface ICreateVersionRequest { - - /** CreateVersionRequest parent */ - parent?: (string|null); + namespace WebhookRequest { - /** CreateVersionRequest version */ - version?: (google.cloud.dialogflow.cx.v3.IVersion|null); - } + /** Properties of a FulfillmentInfo. */ + interface IFulfillmentInfo { - /** Represents a CreateVersionRequest. */ - class CreateVersionRequest implements ICreateVersionRequest { + /** FulfillmentInfo tag */ + tag?: (string|null); + } - /** - * Constructs a new CreateVersionRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateVersionRequest); + /** Represents a FulfillmentInfo. */ + class FulfillmentInfo implements IFulfillmentInfo { - /** CreateVersionRequest parent. */ - public parent: string; + /** + * Constructs a new FulfillmentInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo); - /** CreateVersionRequest version. */ - public version?: (google.cloud.dialogflow.cx.v3.IVersion|null); + /** FulfillmentInfo tag. */ + public tag: string; + + /** + * Creates a new FulfillmentInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns FulfillmentInfo instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo): google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo; + + /** + * Encodes the specified FulfillmentInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.verify|verify} messages. + * @param message FulfillmentInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FulfillmentInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.verify|verify} messages. + * @param message FulfillmentInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FulfillmentInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FulfillmentInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo; + + /** + * Decodes a FulfillmentInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FulfillmentInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo; + + /** + * Verifies a FulfillmentInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FulfillmentInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FulfillmentInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo; + + /** + * Creates a plain object from a FulfillmentInfo message. Also converts values to other types if specified. + * @param message FulfillmentInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FulfillmentInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an IntentInfo. */ + interface IIntentInfo { + + /** IntentInfo lastMatchedIntent */ + lastMatchedIntent?: (string|null); + + /** IntentInfo displayName */ + displayName?: (string|null); + + /** IntentInfo parameters */ + parameters?: ({ [k: string]: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue }|null); + + /** IntentInfo confidence */ + confidence?: (number|null); + } + + /** Represents an IntentInfo. */ + class IntentInfo implements IIntentInfo { + + /** + * Constructs a new IntentInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo); + + /** IntentInfo lastMatchedIntent. */ + public lastMatchedIntent: string; + + /** IntentInfo displayName. */ + public displayName: string; + + /** IntentInfo parameters. */ + public parameters: { [k: string]: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue }; + + /** IntentInfo confidence. */ + public confidence: number; + + /** + * Creates a new IntentInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns IntentInfo instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo; + + /** + * Encodes the specified IntentInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.verify|verify} messages. + * @param message IntentInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified IntentInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.verify|verify} messages. + * @param message IntentInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IntentInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IntentInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo; + + /** + * Decodes an IntentInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IntentInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo; + + /** + * Verifies an IntentInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an IntentInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IntentInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo; + + /** + * Creates a plain object from an IntentInfo message. Also converts values to other types if specified. + * @param message IntentInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this IntentInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace IntentInfo { + + /** Properties of an IntentParameterValue. */ + interface IIntentParameterValue { + + /** IntentParameterValue originalValue */ + originalValue?: (string|null); + + /** IntentParameterValue resolvedValue */ + resolvedValue?: (google.protobuf.IValue|null); + } + + /** Represents an IntentParameterValue. */ + class IntentParameterValue implements IIntentParameterValue { + + /** + * Constructs a new IntentParameterValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue); + + /** IntentParameterValue originalValue. */ + public originalValue: string; + + /** IntentParameterValue resolvedValue. */ + public resolvedValue?: (google.protobuf.IValue|null); + + /** + * Creates a new IntentParameterValue instance using the specified properties. + * @param [properties] Properties to set + * @returns IntentParameterValue instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue; + + /** + * Encodes the specified IntentParameterValue message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.verify|verify} messages. + * @param message IntentParameterValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified IntentParameterValue message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.verify|verify} messages. + * @param message IntentParameterValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IntentParameterValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IntentParameterValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue; + + /** + * Decodes an IntentParameterValue message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IntentParameterValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue; + + /** + * Verifies an IntentParameterValue message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an IntentParameterValue message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IntentParameterValue + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue; + + /** + * Creates a plain object from an IntentParameterValue message. Also converts values to other types if specified. + * @param message IntentParameterValue + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this IntentParameterValue to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a SentimentAnalysisResult. */ + interface ISentimentAnalysisResult { + + /** SentimentAnalysisResult score */ + score?: (number|null); + + /** SentimentAnalysisResult magnitude */ + magnitude?: (number|null); + } + + /** Represents a SentimentAnalysisResult. */ + class SentimentAnalysisResult implements ISentimentAnalysisResult { + + /** + * Constructs a new SentimentAnalysisResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult); + + /** SentimentAnalysisResult score. */ + public score: number; + + /** SentimentAnalysisResult magnitude. */ + public magnitude: number; + + /** + * Creates a new SentimentAnalysisResult instance using the specified properties. + * @param [properties] Properties to set + * @returns SentimentAnalysisResult instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult): google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult; + + /** + * Encodes the specified SentimentAnalysisResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.verify|verify} messages. + * @param message SentimentAnalysisResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SentimentAnalysisResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.verify|verify} messages. + * @param message SentimentAnalysisResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SentimentAnalysisResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SentimentAnalysisResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult; + + /** + * Decodes a SentimentAnalysisResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SentimentAnalysisResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult; + + /** + * Verifies a SentimentAnalysisResult message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SentimentAnalysisResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SentimentAnalysisResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult; + + /** + * Creates a plain object from a SentimentAnalysisResult message. Also converts values to other types if specified. + * @param message SentimentAnalysisResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SentimentAnalysisResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a WebhookResponse. */ + interface IWebhookResponse { + + /** WebhookResponse fulfillmentResponse */ + fulfillmentResponse?: (google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse|null); + + /** WebhookResponse pageInfo */ + pageInfo?: (google.cloud.dialogflow.cx.v3.IPageInfo|null); + + /** WebhookResponse sessionInfo */ + sessionInfo?: (google.cloud.dialogflow.cx.v3.ISessionInfo|null); + + /** WebhookResponse payload */ + payload?: (google.protobuf.IStruct|null); + + /** WebhookResponse targetPage */ + targetPage?: (string|null); + + /** WebhookResponse targetFlow */ + targetFlow?: (string|null); + } + + /** Represents a WebhookResponse. */ + class WebhookResponse implements IWebhookResponse { /** - * Creates a new CreateVersionRequest instance using the specified properties. + * Constructs a new WebhookResponse. * @param [properties] Properties to set - * @returns CreateVersionRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateVersionRequest): google.cloud.dialogflow.cx.v3.CreateVersionRequest; + constructor(properties?: google.cloud.dialogflow.cx.v3.IWebhookResponse); + + /** WebhookResponse fulfillmentResponse. */ + public fulfillmentResponse?: (google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse|null); + + /** WebhookResponse pageInfo. */ + public pageInfo?: (google.cloud.dialogflow.cx.v3.IPageInfo|null); + + /** WebhookResponse sessionInfo. */ + public sessionInfo?: (google.cloud.dialogflow.cx.v3.ISessionInfo|null); + + /** WebhookResponse payload. */ + public payload?: (google.protobuf.IStruct|null); + + /** WebhookResponse targetPage. */ + public targetPage?: (string|null); + + /** WebhookResponse targetFlow. */ + public targetFlow?: (string|null); + + /** WebhookResponse transition. */ + public transition?: ("targetPage"|"targetFlow"); /** - * Encodes the specified CreateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionRequest.verify|verify} messages. - * @param message CreateVersionRequest message or plain object to encode + * Creates a new WebhookResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns WebhookResponse instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IWebhookResponse): google.cloud.dialogflow.cx.v3.WebhookResponse; + + /** + * Encodes the specified WebhookResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.verify|verify} messages. + * @param message WebhookResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ICreateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IWebhookResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionRequest.verify|verify} messages. - * @param message CreateVersionRequest message or plain object to encode + * Encodes the specified WebhookResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.verify|verify} messages. + * @param message WebhookResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IWebhookResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateVersionRequest message from the specified reader or buffer. + * Decodes a WebhookResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateVersionRequest + * @returns WebhookResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateVersionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookResponse; /** - * Decodes a CreateVersionRequest message from the specified reader or buffer, length delimited. + * Decodes a WebhookResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateVersionRequest + * @returns WebhookResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateVersionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookResponse; /** - * Verifies a CreateVersionRequest message. + * Verifies a WebhookResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateVersionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a WebhookResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateVersionRequest + * @returns WebhookResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateVersionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookResponse; /** - * Creates a plain object from a CreateVersionRequest message. Also converts values to other types if specified. - * @param message CreateVersionRequest + * Creates a plain object from a WebhookResponse message. Also converts values to other types if specified. + * @param message WebhookResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.CreateVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateVersionRequest to JSON. + * Converts this WebhookResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateVersionRequest. */ - interface IUpdateVersionRequest { - - /** UpdateVersionRequest version */ - version?: (google.cloud.dialogflow.cx.v3.IVersion|null); - - /** UpdateVersionRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); - } + namespace WebhookResponse { - /** Represents an UpdateVersionRequest. */ - class UpdateVersionRequest implements IUpdateVersionRequest { + /** Properties of a FulfillmentResponse. */ + interface IFulfillmentResponse { - /** - * Constructs a new UpdateVersionRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest); + /** FulfillmentResponse messages */ + messages?: (google.cloud.dialogflow.cx.v3.IResponseMessage[]|null); - /** UpdateVersionRequest version. */ - public version?: (google.cloud.dialogflow.cx.v3.IVersion|null); + /** FulfillmentResponse mergeBehavior */ + mergeBehavior?: (google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior|keyof typeof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior|null); + } - /** UpdateVersionRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** Represents a FulfillmentResponse. */ + class FulfillmentResponse implements IFulfillmentResponse { + + /** + * Constructs a new FulfillmentResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse); + + /** FulfillmentResponse messages. */ + public messages: google.cloud.dialogflow.cx.v3.IResponseMessage[]; + + /** FulfillmentResponse mergeBehavior. */ + public mergeBehavior: (google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior|keyof typeof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior); + + /** + * Creates a new FulfillmentResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns FulfillmentResponse instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse): google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse; + + /** + * Encodes the specified FulfillmentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.verify|verify} messages. + * @param message FulfillmentResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FulfillmentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.verify|verify} messages. + * @param message FulfillmentResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FulfillmentResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FulfillmentResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse; + + /** + * Decodes a FulfillmentResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FulfillmentResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse; + + /** + * Verifies a FulfillmentResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FulfillmentResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FulfillmentResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse; + + /** + * Creates a plain object from a FulfillmentResponse message. Also converts values to other types if specified. + * @param message FulfillmentResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FulfillmentResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace FulfillmentResponse { + + /** MergeBehavior enum. */ + enum MergeBehavior { + MERGE_BEHAVIOR_UNSPECIFIED = 0, + APPEND = 1, + REPLACE = 2 + } + } + } + + /** Properties of a PageInfo. */ + interface IPageInfo { + + /** PageInfo currentPage */ + currentPage?: (string|null); + + /** PageInfo displayName */ + displayName?: (string|null); + + /** PageInfo formInfo */ + formInfo?: (google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo|null); + } + + /** Represents a PageInfo. */ + class PageInfo implements IPageInfo { /** - * Creates a new UpdateVersionRequest instance using the specified properties. + * Constructs a new PageInfo. * @param [properties] Properties to set - * @returns UpdateVersionRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; + constructor(properties?: google.cloud.dialogflow.cx.v3.IPageInfo); + + /** PageInfo currentPage. */ + public currentPage: string; + + /** PageInfo displayName. */ + public displayName: string; + + /** PageInfo formInfo. */ + public formInfo?: (google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo|null); /** - * Encodes the specified UpdateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateVersionRequest.verify|verify} messages. - * @param message UpdateVersionRequest message or plain object to encode + * Creates a new PageInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns PageInfo instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IPageInfo): google.cloud.dialogflow.cx.v3.PageInfo; + + /** + * Encodes the specified PageInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.verify|verify} messages. + * @param message PageInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IPageInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateVersionRequest.verify|verify} messages. - * @param message UpdateVersionRequest message or plain object to encode + * Encodes the specified PageInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.verify|verify} messages. + * @param message PageInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IPageInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateVersionRequest message from the specified reader or buffer. + * Decodes a PageInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateVersionRequest + * @returns PageInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.PageInfo; /** - * Decodes an UpdateVersionRequest message from the specified reader or buffer, length delimited. + * Decodes a PageInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateVersionRequest + * @returns PageInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.PageInfo; /** - * Verifies an UpdateVersionRequest message. + * Verifies a PageInfo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateVersionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PageInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateVersionRequest + * @returns PageInfo */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.PageInfo; /** - * Creates a plain object from an UpdateVersionRequest message. Also converts values to other types if specified. - * @param message UpdateVersionRequest + * Creates a plain object from a PageInfo message. Also converts values to other types if specified. + * @param message PageInfo * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.PageInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateVersionRequest to JSON. + * Converts this PageInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteVersionRequest. */ - interface IDeleteVersionRequest { + namespace PageInfo { - /** DeleteVersionRequest name */ - name?: (string|null); + /** Properties of a FormInfo. */ + interface IFormInfo { + + /** FormInfo parameterInfo */ + parameterInfo?: (google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo[]|null); + } + + /** Represents a FormInfo. */ + class FormInfo implements IFormInfo { + + /** + * Constructs a new FormInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo); + + /** FormInfo parameterInfo. */ + public parameterInfo: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo[]; + + /** + * Creates a new FormInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns FormInfo instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo; + + /** + * Encodes the specified FormInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.verify|verify} messages. + * @param message FormInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FormInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.verify|verify} messages. + * @param message FormInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FormInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FormInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo; + + /** + * Decodes a FormInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FormInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo; + + /** + * Verifies a FormInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FormInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FormInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo; + + /** + * Creates a plain object from a FormInfo message. Also converts values to other types if specified. + * @param message FormInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FormInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace FormInfo { + + /** Properties of a ParameterInfo. */ + interface IParameterInfo { + + /** ParameterInfo displayName */ + displayName?: (string|null); + + /** ParameterInfo required */ + required?: (boolean|null); + + /** ParameterInfo state */ + state?: (google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState|keyof typeof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState|null); + + /** ParameterInfo value */ + value?: (google.protobuf.IValue|null); + + /** ParameterInfo justCollected */ + justCollected?: (boolean|null); + } + + /** Represents a ParameterInfo. */ + class ParameterInfo implements IParameterInfo { + + /** + * Constructs a new ParameterInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo); + + /** ParameterInfo displayName. */ + public displayName: string; + + /** ParameterInfo required. */ + public required: boolean; + + /** ParameterInfo state. */ + public state: (google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState|keyof typeof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState); + + /** ParameterInfo value. */ + public value?: (google.protobuf.IValue|null); + + /** ParameterInfo justCollected. */ + public justCollected: boolean; + + /** + * Creates a new ParameterInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns ParameterInfo instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo; + + /** + * Encodes the specified ParameterInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.verify|verify} messages. + * @param message ParameterInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ParameterInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.verify|verify} messages. + * @param message ParameterInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ParameterInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ParameterInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo; + + /** + * Decodes a ParameterInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ParameterInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo; + + /** + * Verifies a ParameterInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ParameterInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ParameterInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo; + + /** + * Creates a plain object from a ParameterInfo message. Also converts values to other types if specified. + * @param message ParameterInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ParameterInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace ParameterInfo { + + /** ParameterState enum. */ + enum ParameterState { + PARAMETER_STATE_UNSPECIFIED = 0, + EMPTY = 1, + INVALID = 2, + FILLED = 3 + } + } + } } - /** Represents a DeleteVersionRequest. */ - class DeleteVersionRequest implements IDeleteVersionRequest { + /** Properties of a SessionInfo. */ + interface ISessionInfo { + + /** SessionInfo session */ + session?: (string|null); + + /** SessionInfo parameters */ + parameters?: ({ [k: string]: google.protobuf.IValue }|null); + } + + /** Represents a SessionInfo. */ + class SessionInfo implements ISessionInfo { /** - * Constructs a new DeleteVersionRequest. + * Constructs a new SessionInfo. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ISessionInfo); - /** DeleteVersionRequest name. */ - public name: string; + /** SessionInfo session. */ + public session: string; + + /** SessionInfo parameters. */ + public parameters: { [k: string]: google.protobuf.IValue }; /** - * Creates a new DeleteVersionRequest instance using the specified properties. + * Creates a new SessionInfo instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteVersionRequest instance + * @returns SessionInfo instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest): google.cloud.dialogflow.cx.v3.DeleteVersionRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ISessionInfo): google.cloud.dialogflow.cx.v3.SessionInfo; /** - * Encodes the specified DeleteVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteVersionRequest.verify|verify} messages. - * @param message DeleteVersionRequest message or plain object to encode + * Encodes the specified SessionInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionInfo.verify|verify} messages. + * @param message SessionInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ISessionInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteVersionRequest.verify|verify} messages. - * @param message DeleteVersionRequest message or plain object to encode + * Encodes the specified SessionInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionInfo.verify|verify} messages. + * @param message SessionInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ISessionInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteVersionRequest message from the specified reader or buffer. + * Decodes a SessionInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteVersionRequest + * @returns SessionInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteVersionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SessionInfo; /** - * Decodes a DeleteVersionRequest message from the specified reader or buffer, length delimited. + * Decodes a SessionInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteVersionRequest + * @returns SessionInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteVersionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SessionInfo; /** - * Verifies a DeleteVersionRequest message. + * Verifies a SessionInfo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteVersionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SessionInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteVersionRequest + * @returns SessionInfo */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteVersionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SessionInfo; /** - * Creates a plain object from a DeleteVersionRequest message. Also converts values to other types if specified. - * @param message DeleteVersionRequest + * Creates a plain object from a SessionInfo message. Also converts values to other types if specified. + * @param message SessionInfo * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.SessionInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteVersionRequest to JSON. + * Converts this SessionInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } + } - /** Properties of a LoadVersionRequest. */ - interface ILoadVersionRequest { + /** Namespace v3beta1. */ + namespace v3beta1 { - /** LoadVersionRequest name */ - name?: (string|null); + /** Properties of an AdvancedSettings. */ + interface IAdvancedSettings { - /** LoadVersionRequest allowOverrideAgentResources */ - allowOverrideAgentResources?: (boolean|null); + /** AdvancedSettings loggingSettings */ + loggingSettings?: (google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.ILoggingSettings|null); } - /** Represents a LoadVersionRequest. */ - class LoadVersionRequest implements ILoadVersionRequest { + /** Represents an AdvancedSettings. */ + class AdvancedSettings implements IAdvancedSettings { /** - * Constructs a new LoadVersionRequest. + * Constructs a new AdvancedSettings. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ILoadVersionRequest); - - /** LoadVersionRequest name. */ - public name: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings); - /** LoadVersionRequest allowOverrideAgentResources. */ - public allowOverrideAgentResources: boolean; + /** AdvancedSettings loggingSettings. */ + public loggingSettings?: (google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.ILoggingSettings|null); /** - * Creates a new LoadVersionRequest instance using the specified properties. + * Creates a new AdvancedSettings instance using the specified properties. * @param [properties] Properties to set - * @returns LoadVersionRequest instance + * @returns AdvancedSettings instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ILoadVersionRequest): google.cloud.dialogflow.cx.v3.LoadVersionRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings): google.cloud.dialogflow.cx.v3beta1.AdvancedSettings; /** - * Encodes the specified LoadVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LoadVersionRequest.verify|verify} messages. - * @param message LoadVersionRequest message or plain object to encode + * Encodes the specified AdvancedSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.verify|verify} messages. + * @param message AdvancedSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ILoadVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LoadVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LoadVersionRequest.verify|verify} messages. - * @param message LoadVersionRequest message or plain object to encode + * Encodes the specified AdvancedSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.verify|verify} messages. + * @param message AdvancedSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ILoadVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LoadVersionRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LoadVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.LoadVersionRequest; - - /** - * Decodes a LoadVersionRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LoadVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.LoadVersionRequest; - - /** - * Verifies a LoadVersionRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a LoadVersionRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LoadVersionRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.LoadVersionRequest; - - /** - * Creates a plain object from a LoadVersionRequest message. Also converts values to other types if specified. - * @param message LoadVersionRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.LoadVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this LoadVersionRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a CompareVersionsRequest. */ - interface ICompareVersionsRequest { - - /** CompareVersionsRequest baseVersion */ - baseVersion?: (string|null); - - /** CompareVersionsRequest targetVersion */ - targetVersion?: (string|null); - - /** CompareVersionsRequest languageCode */ - languageCode?: (string|null); - } - - /** Represents a CompareVersionsRequest. */ - class CompareVersionsRequest implements ICompareVersionsRequest { - - /** - * Constructs a new CompareVersionsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICompareVersionsRequest); - - /** CompareVersionsRequest baseVersion. */ - public baseVersion: string; - - /** CompareVersionsRequest targetVersion. */ - public targetVersion: string; - - /** CompareVersionsRequest languageCode. */ - public languageCode: string; - - /** - * Creates a new CompareVersionsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CompareVersionsRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICompareVersionsRequest): google.cloud.dialogflow.cx.v3.CompareVersionsRequest; - - /** - * Encodes the specified CompareVersionsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsRequest.verify|verify} messages. - * @param message CompareVersionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.ICompareVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CompareVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsRequest.verify|verify} messages. - * @param message CompareVersionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICompareVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CompareVersionsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CompareVersionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CompareVersionsRequest; - - /** - * Decodes a CompareVersionsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CompareVersionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CompareVersionsRequest; - - /** - * Verifies a CompareVersionsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CompareVersionsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CompareVersionsRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CompareVersionsRequest; - - /** - * Creates a plain object from a CompareVersionsRequest message. Also converts values to other types if specified. - * @param message CompareVersionsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.CompareVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CompareVersionsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a CompareVersionsResponse. */ - interface ICompareVersionsResponse { - - /** CompareVersionsResponse baseVersionContentJson */ - baseVersionContentJson?: (string|null); - - /** CompareVersionsResponse targetVersionContentJson */ - targetVersionContentJson?: (string|null); - - /** CompareVersionsResponse compareTime */ - compareTime?: (google.protobuf.ITimestamp|null); - } - - /** Represents a CompareVersionsResponse. */ - class CompareVersionsResponse implements ICompareVersionsResponse { - - /** - * Constructs a new CompareVersionsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICompareVersionsResponse); - - /** CompareVersionsResponse baseVersionContentJson. */ - public baseVersionContentJson: string; - - /** CompareVersionsResponse targetVersionContentJson. */ - public targetVersionContentJson: string; - - /** CompareVersionsResponse compareTime. */ - public compareTime?: (google.protobuf.ITimestamp|null); - - /** - * Creates a new CompareVersionsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CompareVersionsResponse instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICompareVersionsResponse): google.cloud.dialogflow.cx.v3.CompareVersionsResponse; - - /** - * Encodes the specified CompareVersionsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsResponse.verify|verify} messages. - * @param message CompareVersionsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.ICompareVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CompareVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsResponse.verify|verify} messages. - * @param message CompareVersionsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICompareVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CompareVersionsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CompareVersionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CompareVersionsResponse; - - /** - * Decodes a CompareVersionsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CompareVersionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CompareVersionsResponse; - - /** - * Verifies a CompareVersionsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CompareVersionsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CompareVersionsResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CompareVersionsResponse; - - /** - * Creates a plain object from a CompareVersionsResponse message. Also converts values to other types if specified. - * @param message CompareVersionsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.CompareVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CompareVersionsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Namespace v3beta1. */ - namespace v3beta1 { - - /** Properties of an AdvancedSettings. */ - interface IAdvancedSettings { - - /** AdvancedSettings loggingSettings */ - loggingSettings?: (google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.ILoggingSettings|null); - } - - /** Represents an AdvancedSettings. */ - class AdvancedSettings implements IAdvancedSettings { - - /** - * Constructs a new AdvancedSettings. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings); - - /** AdvancedSettings loggingSettings. */ - public loggingSettings?: (google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.ILoggingSettings|null); - - /** - * Creates a new AdvancedSettings instance using the specified properties. - * @param [properties] Properties to set - * @returns AdvancedSettings instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings): google.cloud.dialogflow.cx.v3beta1.AdvancedSettings; - - /** - * Encodes the specified AdvancedSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.verify|verify} messages. - * @param message AdvancedSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified AdvancedSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.verify|verify} messages. - * @param message AdvancedSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AdvancedSettings message from the specified reader or buffer. + * Decodes an AdvancedSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns AdvancedSettings @@ -34790,1546 +34790,1662 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** Represents a SecuritySettingsService */ - class SecuritySettingsService extends $protobuf.rpc.Service { - - /** - * Constructs a new SecuritySettingsService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new SecuritySettingsService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SecuritySettingsService; - - /** - * Calls CreateSecuritySettings. - * @param request CreateSecuritySettingsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SecuritySettings - */ - public createSecuritySettings(request: google.cloud.dialogflow.cx.v3beta1.ICreateSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.CreateSecuritySettingsCallback): void; - - /** - * Calls CreateSecuritySettings. - * @param request CreateSecuritySettingsRequest message or plain object - * @returns Promise - */ - public createSecuritySettings(request: google.cloud.dialogflow.cx.v3beta1.ICreateSecuritySettingsRequest): Promise; - - /** - * Calls GetSecuritySettings. - * @param request GetSecuritySettingsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SecuritySettings - */ - public getSecuritySettings(request: google.cloud.dialogflow.cx.v3beta1.IGetSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.GetSecuritySettingsCallback): void; - - /** - * Calls GetSecuritySettings. - * @param request GetSecuritySettingsRequest message or plain object - * @returns Promise - */ - public getSecuritySettings(request: google.cloud.dialogflow.cx.v3beta1.IGetSecuritySettingsRequest): Promise; + /** AudioEncoding enum. */ + enum AudioEncoding { + AUDIO_ENCODING_UNSPECIFIED = 0, + AUDIO_ENCODING_LINEAR_16 = 1, + AUDIO_ENCODING_FLAC = 2, + AUDIO_ENCODING_MULAW = 3, + AUDIO_ENCODING_AMR = 4, + AUDIO_ENCODING_AMR_WB = 5, + AUDIO_ENCODING_OGG_OPUS = 6, + AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7 + } - /** - * Calls UpdateSecuritySettings. - * @param request UpdateSecuritySettingsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SecuritySettings - */ - public updateSecuritySettings(request: google.cloud.dialogflow.cx.v3beta1.IUpdateSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.UpdateSecuritySettingsCallback): void; + /** SpeechModelVariant enum. */ + enum SpeechModelVariant { + SPEECH_MODEL_VARIANT_UNSPECIFIED = 0, + USE_BEST_AVAILABLE = 1, + USE_STANDARD = 2, + USE_ENHANCED = 3 + } - /** - * Calls UpdateSecuritySettings. - * @param request UpdateSecuritySettingsRequest message or plain object - * @returns Promise - */ - public updateSecuritySettings(request: google.cloud.dialogflow.cx.v3beta1.IUpdateSecuritySettingsRequest): Promise; + /** Properties of a SpeechWordInfo. */ + interface ISpeechWordInfo { - /** - * Calls ListSecuritySettings. - * @param request ListSecuritySettingsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListSecuritySettingsResponse - */ - public listSecuritySettings(request: google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.ListSecuritySettingsCallback): void; + /** SpeechWordInfo word */ + word?: (string|null); - /** - * Calls ListSecuritySettings. - * @param request ListSecuritySettingsRequest message or plain object - * @returns Promise - */ - public listSecuritySettings(request: google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsRequest): Promise; + /** SpeechWordInfo startOffset */ + startOffset?: (google.protobuf.IDuration|null); - /** - * Calls DeleteSecuritySettings. - * @param request DeleteSecuritySettingsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public deleteSecuritySettings(request: google.cloud.dialogflow.cx.v3beta1.IDeleteSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.DeleteSecuritySettingsCallback): void; + /** SpeechWordInfo endOffset */ + endOffset?: (google.protobuf.IDuration|null); - /** - * Calls DeleteSecuritySettings. - * @param request DeleteSecuritySettingsRequest message or plain object - * @returns Promise - */ - public deleteSecuritySettings(request: google.cloud.dialogflow.cx.v3beta1.IDeleteSecuritySettingsRequest): Promise; + /** SpeechWordInfo confidence */ + confidence?: (number|null); } - namespace SecuritySettingsService { - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService#createSecuritySettings}. - * @param error Error, if any - * @param [response] SecuritySettings - */ - type CreateSecuritySettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.SecuritySettings) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService#getSecuritySettings}. - * @param error Error, if any - * @param [response] SecuritySettings - */ - type GetSecuritySettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.SecuritySettings) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService#updateSecuritySettings}. - * @param error Error, if any - * @param [response] SecuritySettings - */ - type UpdateSecuritySettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.SecuritySettings) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService#listSecuritySettings}. - * @param error Error, if any - * @param [response] ListSecuritySettingsResponse - */ - type ListSecuritySettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse) => void; + /** Represents a SpeechWordInfo. */ + class SpeechWordInfo implements ISpeechWordInfo { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService#deleteSecuritySettings}. - * @param error Error, if any - * @param [response] Empty + * Constructs a new SpeechWordInfo. + * @param [properties] Properties to set */ - type DeleteSecuritySettingsCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - } - - /** Properties of a GetSecuritySettingsRequest. */ - interface IGetSecuritySettingsRequest { + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo); - /** GetSecuritySettingsRequest name */ - name?: (string|null); - } + /** SpeechWordInfo word. */ + public word: string; - /** Represents a GetSecuritySettingsRequest. */ - class GetSecuritySettingsRequest implements IGetSecuritySettingsRequest { + /** SpeechWordInfo startOffset. */ + public startOffset?: (google.protobuf.IDuration|null); - /** - * Constructs a new GetSecuritySettingsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetSecuritySettingsRequest); + /** SpeechWordInfo endOffset. */ + public endOffset?: (google.protobuf.IDuration|null); - /** GetSecuritySettingsRequest name. */ - public name: string; + /** SpeechWordInfo confidence. */ + public confidence: number; /** - * Creates a new GetSecuritySettingsRequest instance using the specified properties. + * Creates a new SpeechWordInfo instance using the specified properties. * @param [properties] Properties to set - * @returns GetSecuritySettingsRequest instance + * @returns SpeechWordInfo instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetSecuritySettingsRequest): google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo): google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo; /** - * Encodes the specified GetSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest.verify|verify} messages. - * @param message GetSecuritySettingsRequest message or plain object to encode + * Encodes the specified SpeechWordInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.verify|verify} messages. + * @param message SpeechWordInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest.verify|verify} messages. - * @param message GetSecuritySettingsRequest message or plain object to encode + * Encodes the specified SpeechWordInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.verify|verify} messages. + * @param message SpeechWordInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSecuritySettingsRequest message from the specified reader or buffer. + * Decodes a SpeechWordInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetSecuritySettingsRequest + * @returns SpeechWordInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo; /** - * Decodes a GetSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a SpeechWordInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetSecuritySettingsRequest + * @returns SpeechWordInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo; /** - * Verifies a GetSecuritySettingsRequest message. + * Verifies a SpeechWordInfo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SpeechWordInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetSecuritySettingsRequest + * @returns SpeechWordInfo */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo; /** - * Creates a plain object from a GetSecuritySettingsRequest message. Also converts values to other types if specified. - * @param message GetSecuritySettingsRequest + * Creates a plain object from a SpeechWordInfo message. Also converts values to other types if specified. + * @param message SpeechWordInfo * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSecuritySettingsRequest to JSON. + * Converts this SpeechWordInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateSecuritySettingsRequest. */ - interface IUpdateSecuritySettingsRequest { + /** Properties of an InputAudioConfig. */ + interface IInputAudioConfig { - /** UpdateSecuritySettingsRequest securitySettings */ - securitySettings?: (google.cloud.dialogflow.cx.v3beta1.ISecuritySettings|null); + /** InputAudioConfig audioEncoding */ + audioEncoding?: (google.cloud.dialogflow.cx.v3beta1.AudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3beta1.AudioEncoding|null); - /** UpdateSecuritySettingsRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** InputAudioConfig sampleRateHertz */ + sampleRateHertz?: (number|null); + + /** InputAudioConfig enableWordInfo */ + enableWordInfo?: (boolean|null); + + /** InputAudioConfig phraseHints */ + phraseHints?: (string[]|null); + + /** InputAudioConfig model */ + model?: (string|null); + + /** InputAudioConfig modelVariant */ + modelVariant?: (google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant|keyof typeof google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant|null); + + /** InputAudioConfig singleUtterance */ + singleUtterance?: (boolean|null); } - /** Represents an UpdateSecuritySettingsRequest. */ - class UpdateSecuritySettingsRequest implements IUpdateSecuritySettingsRequest { + /** Represents an InputAudioConfig. */ + class InputAudioConfig implements IInputAudioConfig { /** - * Constructs a new UpdateSecuritySettingsRequest. + * Constructs a new InputAudioConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateSecuritySettingsRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig); - /** UpdateSecuritySettingsRequest securitySettings. */ - public securitySettings?: (google.cloud.dialogflow.cx.v3beta1.ISecuritySettings|null); + /** InputAudioConfig audioEncoding. */ + public audioEncoding: (google.cloud.dialogflow.cx.v3beta1.AudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3beta1.AudioEncoding); - /** UpdateSecuritySettingsRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** InputAudioConfig sampleRateHertz. */ + public sampleRateHertz: number; + + /** InputAudioConfig enableWordInfo. */ + public enableWordInfo: boolean; + + /** InputAudioConfig phraseHints. */ + public phraseHints: string[]; + + /** InputAudioConfig model. */ + public model: string; + + /** InputAudioConfig modelVariant. */ + public modelVariant: (google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant|keyof typeof google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant); + + /** InputAudioConfig singleUtterance. */ + public singleUtterance: boolean; /** - * Creates a new UpdateSecuritySettingsRequest instance using the specified properties. + * Creates a new InputAudioConfig instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateSecuritySettingsRequest instance + * @returns InputAudioConfig instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateSecuritySettingsRequest): google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig): google.cloud.dialogflow.cx.v3beta1.InputAudioConfig; /** - * Encodes the specified UpdateSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest.verify|verify} messages. - * @param message UpdateSecuritySettingsRequest message or plain object to encode + * Encodes the specified InputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.verify|verify} messages. + * @param message InputAudioConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest.verify|verify} messages. - * @param message UpdateSecuritySettingsRequest message or plain object to encode + * Encodes the specified InputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.verify|verify} messages. + * @param message InputAudioConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateSecuritySettingsRequest message from the specified reader or buffer. + * Decodes an InputAudioConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateSecuritySettingsRequest + * @returns InputAudioConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.InputAudioConfig; /** - * Decodes an UpdateSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * Decodes an InputAudioConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateSecuritySettingsRequest + * @returns InputAudioConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.InputAudioConfig; /** - * Verifies an UpdateSecuritySettingsRequest message. + * Verifies an InputAudioConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an InputAudioConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateSecuritySettingsRequest + * @returns InputAudioConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.InputAudioConfig; /** - * Creates a plain object from an UpdateSecuritySettingsRequest message. Also converts values to other types if specified. - * @param message UpdateSecuritySettingsRequest + * Creates a plain object from an InputAudioConfig message. Also converts values to other types if specified. + * @param message InputAudioConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.InputAudioConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateSecuritySettingsRequest to JSON. + * Converts this InputAudioConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListSecuritySettingsRequest. */ - interface IListSecuritySettingsRequest { + /** SsmlVoiceGender enum. */ + enum SsmlVoiceGender { + SSML_VOICE_GENDER_UNSPECIFIED = 0, + SSML_VOICE_GENDER_MALE = 1, + SSML_VOICE_GENDER_FEMALE = 2, + SSML_VOICE_GENDER_NEUTRAL = 3 + } - /** ListSecuritySettingsRequest parent */ - parent?: (string|null); + /** Properties of a VoiceSelectionParams. */ + interface IVoiceSelectionParams { - /** ListSecuritySettingsRequest pageSize */ - pageSize?: (number|null); + /** VoiceSelectionParams name */ + name?: (string|null); - /** ListSecuritySettingsRequest pageToken */ - pageToken?: (string|null); + /** VoiceSelectionParams ssmlGender */ + ssmlGender?: (google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender|keyof typeof google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender|null); } - /** Represents a ListSecuritySettingsRequest. */ - class ListSecuritySettingsRequest implements IListSecuritySettingsRequest { + /** Represents a VoiceSelectionParams. */ + class VoiceSelectionParams implements IVoiceSelectionParams { /** - * Constructs a new ListSecuritySettingsRequest. + * Constructs a new VoiceSelectionParams. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsRequest); - - /** ListSecuritySettingsRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams); - /** ListSecuritySettingsRequest pageSize. */ - public pageSize: number; + /** VoiceSelectionParams name. */ + public name: string; - /** ListSecuritySettingsRequest pageToken. */ - public pageToken: string; + /** VoiceSelectionParams ssmlGender. */ + public ssmlGender: (google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender|keyof typeof google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender); /** - * Creates a new ListSecuritySettingsRequest instance using the specified properties. + * Creates a new VoiceSelectionParams instance using the specified properties. * @param [properties] Properties to set - * @returns ListSecuritySettingsRequest instance + * @returns VoiceSelectionParams instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsRequest): google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams): google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams; /** - * Encodes the specified ListSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest.verify|verify} messages. - * @param message ListSecuritySettingsRequest message or plain object to encode + * Encodes the specified VoiceSelectionParams message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.verify|verify} messages. + * @param message VoiceSelectionParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest.verify|verify} messages. - * @param message ListSecuritySettingsRequest message or plain object to encode + * Encodes the specified VoiceSelectionParams message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.verify|verify} messages. + * @param message VoiceSelectionParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListSecuritySettingsRequest message from the specified reader or buffer. + * Decodes a VoiceSelectionParams message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListSecuritySettingsRequest + * @returns VoiceSelectionParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams; /** - * Decodes a ListSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a VoiceSelectionParams message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListSecuritySettingsRequest + * @returns VoiceSelectionParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams; /** - * Verifies a ListSecuritySettingsRequest message. + * Verifies a VoiceSelectionParams message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VoiceSelectionParams message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListSecuritySettingsRequest + * @returns VoiceSelectionParams */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams; /** - * Creates a plain object from a ListSecuritySettingsRequest message. Also converts values to other types if specified. - * @param message ListSecuritySettingsRequest + * Creates a plain object from a VoiceSelectionParams message. Also converts values to other types if specified. + * @param message VoiceSelectionParams * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListSecuritySettingsRequest to JSON. + * Converts this VoiceSelectionParams to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListSecuritySettingsResponse. */ - interface IListSecuritySettingsResponse { + /** Properties of a SynthesizeSpeechConfig. */ + interface ISynthesizeSpeechConfig { - /** ListSecuritySettingsResponse securitySettings */ - securitySettings?: (google.cloud.dialogflow.cx.v3beta1.ISecuritySettings[]|null); + /** SynthesizeSpeechConfig speakingRate */ + speakingRate?: (number|null); - /** ListSecuritySettingsResponse nextPageToken */ - nextPageToken?: (string|null); + /** SynthesizeSpeechConfig pitch */ + pitch?: (number|null); + + /** SynthesizeSpeechConfig volumeGainDb */ + volumeGainDb?: (number|null); + + /** SynthesizeSpeechConfig effectsProfileId */ + effectsProfileId?: (string[]|null); + + /** SynthesizeSpeechConfig voice */ + voice?: (google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams|null); } - /** Represents a ListSecuritySettingsResponse. */ - class ListSecuritySettingsResponse implements IListSecuritySettingsResponse { + /** Represents a SynthesizeSpeechConfig. */ + class SynthesizeSpeechConfig implements ISynthesizeSpeechConfig { /** - * Constructs a new ListSecuritySettingsResponse. + * Constructs a new SynthesizeSpeechConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig); - /** ListSecuritySettingsResponse securitySettings. */ - public securitySettings: google.cloud.dialogflow.cx.v3beta1.ISecuritySettings[]; + /** SynthesizeSpeechConfig speakingRate. */ + public speakingRate: number; - /** ListSecuritySettingsResponse nextPageToken. */ - public nextPageToken: string; + /** SynthesizeSpeechConfig pitch. */ + public pitch: number; + + /** SynthesizeSpeechConfig volumeGainDb. */ + public volumeGainDb: number; + + /** SynthesizeSpeechConfig effectsProfileId. */ + public effectsProfileId: string[]; + + /** SynthesizeSpeechConfig voice. */ + public voice?: (google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams|null); /** - * Creates a new ListSecuritySettingsResponse instance using the specified properties. + * Creates a new SynthesizeSpeechConfig instance using the specified properties. * @param [properties] Properties to set - * @returns ListSecuritySettingsResponse instance + * @returns SynthesizeSpeechConfig instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsResponse): google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig): google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig; /** - * Encodes the specified ListSecuritySettingsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse.verify|verify} messages. - * @param message ListSecuritySettingsResponse message or plain object to encode + * Encodes the specified SynthesizeSpeechConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.verify|verify} messages. + * @param message SynthesizeSpeechConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListSecuritySettingsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse.verify|verify} messages. - * @param message ListSecuritySettingsResponse message or plain object to encode + * Encodes the specified SynthesizeSpeechConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.verify|verify} messages. + * @param message SynthesizeSpeechConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListSecuritySettingsResponse message from the specified reader or buffer. + * Decodes a SynthesizeSpeechConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListSecuritySettingsResponse + * @returns SynthesizeSpeechConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig; /** - * Decodes a ListSecuritySettingsResponse message from the specified reader or buffer, length delimited. + * Decodes a SynthesizeSpeechConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListSecuritySettingsResponse + * @returns SynthesizeSpeechConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig; /** - * Verifies a ListSecuritySettingsResponse message. + * Verifies a SynthesizeSpeechConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListSecuritySettingsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SynthesizeSpeechConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListSecuritySettingsResponse + * @returns SynthesizeSpeechConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig; /** - * Creates a plain object from a ListSecuritySettingsResponse message. Also converts values to other types if specified. - * @param message ListSecuritySettingsResponse + * Creates a plain object from a SynthesizeSpeechConfig message. Also converts values to other types if specified. + * @param message SynthesizeSpeechConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListSecuritySettingsResponse to JSON. + * Converts this SynthesizeSpeechConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateSecuritySettingsRequest. */ - interface ICreateSecuritySettingsRequest { + /** OutputAudioEncoding enum. */ + enum OutputAudioEncoding { + OUTPUT_AUDIO_ENCODING_UNSPECIFIED = 0, + OUTPUT_AUDIO_ENCODING_LINEAR_16 = 1, + OUTPUT_AUDIO_ENCODING_MP3 = 2, + OUTPUT_AUDIO_ENCODING_MP3_64_KBPS = 4, + OUTPUT_AUDIO_ENCODING_OGG_OPUS = 3, + OUTPUT_AUDIO_ENCODING_MULAW = 5 + } - /** CreateSecuritySettingsRequest parent */ - parent?: (string|null); + /** Properties of an OutputAudioConfig. */ + interface IOutputAudioConfig { - /** CreateSecuritySettingsRequest securitySettings */ - securitySettings?: (google.cloud.dialogflow.cx.v3beta1.ISecuritySettings|null); + /** OutputAudioConfig audioEncoding */ + audioEncoding?: (google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding|null); + + /** OutputAudioConfig sampleRateHertz */ + sampleRateHertz?: (number|null); + + /** OutputAudioConfig synthesizeSpeechConfig */ + synthesizeSpeechConfig?: (google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig|null); } - /** Represents a CreateSecuritySettingsRequest. */ - class CreateSecuritySettingsRequest implements ICreateSecuritySettingsRequest { + /** Represents an OutputAudioConfig. */ + class OutputAudioConfig implements IOutputAudioConfig { /** - * Constructs a new CreateSecuritySettingsRequest. + * Constructs a new OutputAudioConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateSecuritySettingsRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig); - /** CreateSecuritySettingsRequest parent. */ - public parent: string; + /** OutputAudioConfig audioEncoding. */ + public audioEncoding: (google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding); - /** CreateSecuritySettingsRequest securitySettings. */ - public securitySettings?: (google.cloud.dialogflow.cx.v3beta1.ISecuritySettings|null); + /** OutputAudioConfig sampleRateHertz. */ + public sampleRateHertz: number; + + /** OutputAudioConfig synthesizeSpeechConfig. */ + public synthesizeSpeechConfig?: (google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig|null); /** - * Creates a new CreateSecuritySettingsRequest instance using the specified properties. + * Creates a new OutputAudioConfig instance using the specified properties. * @param [properties] Properties to set - * @returns CreateSecuritySettingsRequest instance + * @returns OutputAudioConfig instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateSecuritySettingsRequest): google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig): google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig; /** - * Encodes the specified CreateSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest.verify|verify} messages. - * @param message CreateSecuritySettingsRequest message or plain object to encode + * Encodes the specified OutputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify|verify} messages. + * @param message OutputAudioConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest.verify|verify} messages. - * @param message CreateSecuritySettingsRequest message or plain object to encode + * Encodes the specified OutputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify|verify} messages. + * @param message OutputAudioConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateSecuritySettingsRequest message from the specified reader or buffer. + * Decodes an OutputAudioConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateSecuritySettingsRequest + * @returns OutputAudioConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig; /** - * Decodes a CreateSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * Decodes an OutputAudioConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateSecuritySettingsRequest + * @returns OutputAudioConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig; /** - * Verifies a CreateSecuritySettingsRequest message. + * Verifies an OutputAudioConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an OutputAudioConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateSecuritySettingsRequest + * @returns OutputAudioConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig; /** - * Creates a plain object from a CreateSecuritySettingsRequest message. Also converts values to other types if specified. - * @param message CreateSecuritySettingsRequest + * Creates a plain object from an OutputAudioConfig message. Also converts values to other types if specified. + * @param message OutputAudioConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateSecuritySettingsRequest to JSON. + * Converts this OutputAudioConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteSecuritySettingsRequest. */ - interface IDeleteSecuritySettingsRequest { + /** Represents a Changelogs */ + class Changelogs extends $protobuf.rpc.Service { - /** DeleteSecuritySettingsRequest name */ - name?: (string|null); + /** + * Constructs a new Changelogs service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new Changelogs service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Changelogs; + + /** + * Calls ListChangelogs. + * @param request ListChangelogsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListChangelogsResponse + */ + public listChangelogs(request: google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Changelogs.ListChangelogsCallback): void; + + /** + * Calls ListChangelogs. + * @param request ListChangelogsRequest message or plain object + * @returns Promise + */ + public listChangelogs(request: google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest): Promise; + + /** + * Calls GetChangelog. + * @param request GetChangelogRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Changelog + */ + public getChangelog(request: google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest, callback: google.cloud.dialogflow.cx.v3beta1.Changelogs.GetChangelogCallback): void; + + /** + * Calls GetChangelog. + * @param request GetChangelogRequest message or plain object + * @returns Promise + */ + public getChangelog(request: google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest): Promise; } - /** Represents a DeleteSecuritySettingsRequest. */ - class DeleteSecuritySettingsRequest implements IDeleteSecuritySettingsRequest { + namespace Changelogs { /** - * Constructs a new DeleteSecuritySettingsRequest. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Changelogs#listChangelogs}. + * @param error Error, if any + * @param [response] ListChangelogsResponse + */ + type ListChangelogsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Changelogs#getChangelog}. + * @param error Error, if any + * @param [response] Changelog + */ + type GetChangelogCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Changelog) => void; + } + + /** Properties of a ListChangelogsRequest. */ + interface IListChangelogsRequest { + + /** ListChangelogsRequest parent */ + parent?: (string|null); + + /** ListChangelogsRequest filter */ + filter?: (string|null); + + /** ListChangelogsRequest pageSize */ + pageSize?: (number|null); + + /** ListChangelogsRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListChangelogsRequest. */ + class ListChangelogsRequest implements IListChangelogsRequest { + + /** + * Constructs a new ListChangelogsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteSecuritySettingsRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest); - /** DeleteSecuritySettingsRequest name. */ - public name: string; + /** ListChangelogsRequest parent. */ + public parent: string; + + /** ListChangelogsRequest filter. */ + public filter: string; + + /** ListChangelogsRequest pageSize. */ + public pageSize: number; + + /** ListChangelogsRequest pageToken. */ + public pageToken: string; /** - * Creates a new DeleteSecuritySettingsRequest instance using the specified properties. + * Creates a new ListChangelogsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteSecuritySettingsRequest instance + * @returns ListChangelogsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteSecuritySettingsRequest): google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest): google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest; /** - * Encodes the specified DeleteSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest.verify|verify} messages. - * @param message DeleteSecuritySettingsRequest message or plain object to encode + * Encodes the specified ListChangelogsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest.verify|verify} messages. + * @param message ListChangelogsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest.verify|verify} messages. - * @param message DeleteSecuritySettingsRequest message or plain object to encode + * Encodes the specified ListChangelogsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest.verify|verify} messages. + * @param message ListChangelogsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteSecuritySettingsRequest message from the specified reader or buffer. + * Decodes a ListChangelogsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteSecuritySettingsRequest + * @returns ListChangelogsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest; /** - * Decodes a DeleteSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListChangelogsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteSecuritySettingsRequest + * @returns ListChangelogsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest; /** - * Verifies a DeleteSecuritySettingsRequest message. + * Verifies a ListChangelogsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListChangelogsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteSecuritySettingsRequest + * @returns ListChangelogsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest; /** - * Creates a plain object from a DeleteSecuritySettingsRequest message. Also converts values to other types if specified. - * @param message DeleteSecuritySettingsRequest + * Creates a plain object from a ListChangelogsRequest message. Also converts values to other types if specified. + * @param message ListChangelogsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteSecuritySettingsRequest to JSON. + * Converts this ListChangelogsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SecuritySettings. */ - interface ISecuritySettings { - - /** SecuritySettings name */ - name?: (string|null); + /** Properties of a ListChangelogsResponse. */ + interface IListChangelogsResponse { - /** SecuritySettings displayName */ - displayName?: (string|null); + /** ListChangelogsResponse changelogs */ + changelogs?: (google.cloud.dialogflow.cx.v3beta1.IChangelog[]|null); - /** SecuritySettings redactionStrategy */ - redactionStrategy?: (google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionStrategy|keyof typeof google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionStrategy|null); + /** ListChangelogsResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** SecuritySettings redactionScope */ - redactionScope?: (google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionScope|keyof typeof google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionScope|null); + /** Represents a ListChangelogsResponse. */ + class ListChangelogsResponse implements IListChangelogsResponse { - /** SecuritySettings inspectTemplate */ - inspectTemplate?: (string|null); + /** + * Constructs a new ListChangelogsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListChangelogsResponse); - /** SecuritySettings deidentifyTemplate */ - deidentifyTemplate?: (string|null); + /** ListChangelogsResponse changelogs. */ + public changelogs: google.cloud.dialogflow.cx.v3beta1.IChangelog[]; - /** SecuritySettings retentionWindowDays */ - retentionWindowDays?: (number|null); + /** ListChangelogsResponse nextPageToken. */ + public nextPageToken: string; - /** SecuritySettings purgeDataTypes */ - purgeDataTypes?: (google.cloud.dialogflow.cx.v3beta1.SecuritySettings.PurgeDataType[]|null); + /** + * Creates a new ListChangelogsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListChangelogsResponse instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListChangelogsResponse): google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse; - /** SecuritySettings insightsExportSettings */ - insightsExportSettings?: (google.cloud.dialogflow.cx.v3beta1.SecuritySettings.IInsightsExportSettings|null); - } + /** + * Encodes the specified ListChangelogsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse.verify|verify} messages. + * @param message ListChangelogsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListChangelogsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a SecuritySettings. */ - class SecuritySettings implements ISecuritySettings { + /** + * Encodes the specified ListChangelogsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse.verify|verify} messages. + * @param message ListChangelogsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListChangelogsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Constructs a new SecuritySettings. - * @param [properties] Properties to set + * Decodes a ListChangelogsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListChangelogsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISecuritySettings); + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse; - /** SecuritySettings name. */ - public name: string; + /** + * Decodes a ListChangelogsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListChangelogsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse; - /** SecuritySettings displayName. */ - public displayName: string; + /** + * Verifies a ListChangelogsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** SecuritySettings redactionStrategy. */ - public redactionStrategy: (google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionStrategy|keyof typeof google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionStrategy); + /** + * Creates a ListChangelogsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListChangelogsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse; - /** SecuritySettings redactionScope. */ - public redactionScope: (google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionScope|keyof typeof google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionScope); + /** + * Creates a plain object from a ListChangelogsResponse message. Also converts values to other types if specified. + * @param message ListChangelogsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** SecuritySettings inspectTemplate. */ - public inspectTemplate: string; + /** + * Converts this ListChangelogsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** SecuritySettings deidentifyTemplate. */ - public deidentifyTemplate: string; + /** Properties of a GetChangelogRequest. */ + interface IGetChangelogRequest { - /** SecuritySettings retentionWindowDays. */ - public retentionWindowDays?: (number|null); + /** GetChangelogRequest name */ + name?: (string|null); + } - /** SecuritySettings purgeDataTypes. */ - public purgeDataTypes: google.cloud.dialogflow.cx.v3beta1.SecuritySettings.PurgeDataType[]; + /** Represents a GetChangelogRequest. */ + class GetChangelogRequest implements IGetChangelogRequest { - /** SecuritySettings insightsExportSettings. */ - public insightsExportSettings?: (google.cloud.dialogflow.cx.v3beta1.SecuritySettings.IInsightsExportSettings|null); + /** + * Constructs a new GetChangelogRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest); - /** SecuritySettings dataRetention. */ - public dataRetention?: "retentionWindowDays"; + /** GetChangelogRequest name. */ + public name: string; /** - * Creates a new SecuritySettings instance using the specified properties. + * Creates a new GetChangelogRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SecuritySettings instance + * @returns GetChangelogRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ISecuritySettings): google.cloud.dialogflow.cx.v3beta1.SecuritySettings; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest): google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest; /** - * Encodes the specified SecuritySettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettings.verify|verify} messages. - * @param message SecuritySettings message or plain object to encode + * Encodes the specified GetChangelogRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest.verify|verify} messages. + * @param message GetChangelogRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ISecuritySettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SecuritySettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettings.verify|verify} messages. - * @param message SecuritySettings message or plain object to encode + * Encodes the specified GetChangelogRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest.verify|verify} messages. + * @param message GetChangelogRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ISecuritySettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SecuritySettings message from the specified reader or buffer. + * Decodes a GetChangelogRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SecuritySettings + * @returns GetChangelogRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.SecuritySettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest; /** - * Decodes a SecuritySettings message from the specified reader or buffer, length delimited. + * Decodes a GetChangelogRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SecuritySettings + * @returns GetChangelogRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.SecuritySettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest; /** - * Verifies a SecuritySettings message. + * Verifies a GetChangelogRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SecuritySettings message from a plain object. Also converts values to their respective internal types. + * Creates a GetChangelogRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SecuritySettings + * @returns GetChangelogRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SecuritySettings; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest; /** - * Creates a plain object from a SecuritySettings message. Also converts values to other types if specified. - * @param message SecuritySettings + * Creates a plain object from a GetChangelogRequest message. Also converts values to other types if specified. + * @param message GetChangelogRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.SecuritySettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SecuritySettings to JSON. + * Converts this GetChangelogRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace SecuritySettings { - - /** RedactionStrategy enum. */ - enum RedactionStrategy { - REDACTION_STRATEGY_UNSPECIFIED = 0, - REDACT_WITH_SERVICE = 1 - } + /** Properties of a Changelog. */ + interface IChangelog { - /** RedactionScope enum. */ - enum RedactionScope { - REDACTION_SCOPE_UNSPECIFIED = 0, - REDACT_DISK_STORAGE = 2 - } + /** Changelog name */ + name?: (string|null); - /** PurgeDataType enum. */ - enum PurgeDataType { - PURGE_DATA_TYPE_UNSPECIFIED = 0, - DIALOGFLOW_HISTORY = 1 - } + /** Changelog userEmail */ + userEmail?: (string|null); - /** Properties of an InsightsExportSettings. */ - interface IInsightsExportSettings { + /** Changelog displayName */ + displayName?: (string|null); - /** InsightsExportSettings enableInsightsExport */ - enableInsightsExport?: (boolean|null); - } + /** Changelog action */ + action?: (string|null); - /** Represents an InsightsExportSettings. */ - class InsightsExportSettings implements IInsightsExportSettings { + /** Changelog type */ + type?: (string|null); - /** - * Constructs a new InsightsExportSettings. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.SecuritySettings.IInsightsExportSettings); + /** Changelog resource */ + resource?: (string|null); - /** InsightsExportSettings enableInsightsExport. */ - public enableInsightsExport: boolean; + /** Changelog createTime */ + createTime?: (google.protobuf.ITimestamp|null); + } - /** - * Creates a new InsightsExportSettings instance using the specified properties. - * @param [properties] Properties to set - * @returns InsightsExportSettings instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.SecuritySettings.IInsightsExportSettings): google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings; + /** Represents a Changelog. */ + class Changelog implements IChangelog { - /** - * Encodes the specified InsightsExportSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings.verify|verify} messages. - * @param message InsightsExportSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.SecuritySettings.IInsightsExportSettings, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new Changelog. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IChangelog); - /** - * Encodes the specified InsightsExportSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings.verify|verify} messages. - * @param message InsightsExportSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.SecuritySettings.IInsightsExportSettings, writer?: $protobuf.Writer): $protobuf.Writer; + /** Changelog name. */ + public name: string; - /** - * Decodes an InsightsExportSettings message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InsightsExportSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings; + /** Changelog userEmail. */ + public userEmail: string; - /** - * Decodes an InsightsExportSettings message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InsightsExportSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings; + /** Changelog displayName. */ + public displayName: string; - /** - * Verifies an InsightsExportSettings message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an InsightsExportSettings message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InsightsExportSettings - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings; - - /** - * Creates a plain object from an InsightsExportSettings message. Also converts values to other types if specified. - * @param message InsightsExportSettings - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this InsightsExportSettings to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** AudioEncoding enum. */ - enum AudioEncoding { - AUDIO_ENCODING_UNSPECIFIED = 0, - AUDIO_ENCODING_LINEAR_16 = 1, - AUDIO_ENCODING_FLAC = 2, - AUDIO_ENCODING_MULAW = 3, - AUDIO_ENCODING_AMR = 4, - AUDIO_ENCODING_AMR_WB = 5, - AUDIO_ENCODING_OGG_OPUS = 6, - AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7 - } - - /** SpeechModelVariant enum. */ - enum SpeechModelVariant { - SPEECH_MODEL_VARIANT_UNSPECIFIED = 0, - USE_BEST_AVAILABLE = 1, - USE_STANDARD = 2, - USE_ENHANCED = 3 - } - - /** Properties of a SpeechWordInfo. */ - interface ISpeechWordInfo { - - /** SpeechWordInfo word */ - word?: (string|null); - - /** SpeechWordInfo startOffset */ - startOffset?: (google.protobuf.IDuration|null); - - /** SpeechWordInfo endOffset */ - endOffset?: (google.protobuf.IDuration|null); - - /** SpeechWordInfo confidence */ - confidence?: (number|null); - } - - /** Represents a SpeechWordInfo. */ - class SpeechWordInfo implements ISpeechWordInfo { - - /** - * Constructs a new SpeechWordInfo. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo); - - /** SpeechWordInfo word. */ - public word: string; + /** Changelog action. */ + public action: string; - /** SpeechWordInfo startOffset. */ - public startOffset?: (google.protobuf.IDuration|null); + /** Changelog type. */ + public type: string; - /** SpeechWordInfo endOffset. */ - public endOffset?: (google.protobuf.IDuration|null); + /** Changelog resource. */ + public resource: string; - /** SpeechWordInfo confidence. */ - public confidence: number; + /** Changelog createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new SpeechWordInfo instance using the specified properties. + * Creates a new Changelog instance using the specified properties. * @param [properties] Properties to set - * @returns SpeechWordInfo instance + * @returns Changelog instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo): google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IChangelog): google.cloud.dialogflow.cx.v3beta1.Changelog; /** - * Encodes the specified SpeechWordInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.verify|verify} messages. - * @param message SpeechWordInfo message or plain object to encode + * Encodes the specified Changelog message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Changelog.verify|verify} messages. + * @param message Changelog message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IChangelog, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SpeechWordInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.verify|verify} messages. - * @param message SpeechWordInfo message or plain object to encode + * Encodes the specified Changelog message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Changelog.verify|verify} messages. + * @param message Changelog message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IChangelog, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SpeechWordInfo message from the specified reader or buffer. + * Decodes a Changelog message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SpeechWordInfo + * @returns Changelog * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Changelog; /** - * Decodes a SpeechWordInfo message from the specified reader or buffer, length delimited. + * Decodes a Changelog message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SpeechWordInfo + * @returns Changelog * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Changelog; /** - * Verifies a SpeechWordInfo message. + * Verifies a Changelog message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SpeechWordInfo message from a plain object. Also converts values to their respective internal types. + * Creates a Changelog message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SpeechWordInfo + * @returns Changelog */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Changelog; /** - * Creates a plain object from a SpeechWordInfo message. Also converts values to other types if specified. - * @param message SpeechWordInfo + * Creates a plain object from a Changelog message. Also converts values to other types if specified. + * @param message Changelog * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Changelog, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SpeechWordInfo to JSON. + * Converts this Changelog to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an InputAudioConfig. */ - interface IInputAudioConfig { + /** Represents a Deployments */ + class Deployments extends $protobuf.rpc.Service { - /** InputAudioConfig audioEncoding */ - audioEncoding?: (google.cloud.dialogflow.cx.v3beta1.AudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3beta1.AudioEncoding|null); + /** + * Constructs a new Deployments service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** InputAudioConfig sampleRateHertz */ - sampleRateHertz?: (number|null); + /** + * Creates new Deployments service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Deployments; - /** InputAudioConfig enableWordInfo */ - enableWordInfo?: (boolean|null); + /** + * Calls ListDeployments. + * @param request ListDeploymentsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListDeploymentsResponse + */ + public listDeployments(request: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Deployments.ListDeploymentsCallback): void; - /** InputAudioConfig phraseHints */ - phraseHints?: (string[]|null); + /** + * Calls ListDeployments. + * @param request ListDeploymentsRequest message or plain object + * @returns Promise + */ + public listDeployments(request: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest): Promise; - /** InputAudioConfig model */ - model?: (string|null); + /** + * Calls GetDeployment. + * @param request GetDeploymentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Deployment + */ + public getDeployment(request: google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Deployments.GetDeploymentCallback): void; - /** InputAudioConfig modelVariant */ - modelVariant?: (google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant|keyof typeof google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant|null); + /** + * Calls GetDeployment. + * @param request GetDeploymentRequest message or plain object + * @returns Promise + */ + public getDeployment(request: google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest): Promise; + } - /** InputAudioConfig singleUtterance */ - singleUtterance?: (boolean|null); + namespace Deployments { + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Deployments#listDeployments}. + * @param error Error, if any + * @param [response] ListDeploymentsResponse + */ + type ListDeploymentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Deployments#getDeployment}. + * @param error Error, if any + * @param [response] Deployment + */ + type GetDeploymentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Deployment) => void; } - /** Represents an InputAudioConfig. */ - class InputAudioConfig implements IInputAudioConfig { + /** Properties of a Deployment. */ + interface IDeployment { + + /** Deployment name */ + name?: (string|null); + + /** Deployment flowVersion */ + flowVersion?: (string|null); + + /** Deployment state */ + state?: (google.cloud.dialogflow.cx.v3beta1.Deployment.State|keyof typeof google.cloud.dialogflow.cx.v3beta1.Deployment.State|null); + + /** Deployment result */ + result?: (google.cloud.dialogflow.cx.v3beta1.Deployment.IResult|null); + + /** Deployment startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** Deployment endTime */ + endTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a Deployment. */ + class Deployment implements IDeployment { /** - * Constructs a new InputAudioConfig. + * Constructs a new Deployment. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig); - - /** InputAudioConfig audioEncoding. */ - public audioEncoding: (google.cloud.dialogflow.cx.v3beta1.AudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3beta1.AudioEncoding); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeployment); - /** InputAudioConfig sampleRateHertz. */ - public sampleRateHertz: number; + /** Deployment name. */ + public name: string; - /** InputAudioConfig enableWordInfo. */ - public enableWordInfo: boolean; + /** Deployment flowVersion. */ + public flowVersion: string; - /** InputAudioConfig phraseHints. */ - public phraseHints: string[]; + /** Deployment state. */ + public state: (google.cloud.dialogflow.cx.v3beta1.Deployment.State|keyof typeof google.cloud.dialogflow.cx.v3beta1.Deployment.State); - /** InputAudioConfig model. */ - public model: string; + /** Deployment result. */ + public result?: (google.cloud.dialogflow.cx.v3beta1.Deployment.IResult|null); - /** InputAudioConfig modelVariant. */ - public modelVariant: (google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant|keyof typeof google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant); + /** Deployment startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); - /** InputAudioConfig singleUtterance. */ - public singleUtterance: boolean; + /** Deployment endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new InputAudioConfig instance using the specified properties. + * Creates a new Deployment instance using the specified properties. * @param [properties] Properties to set - * @returns InputAudioConfig instance + * @returns Deployment instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig): google.cloud.dialogflow.cx.v3beta1.InputAudioConfig; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeployment): google.cloud.dialogflow.cx.v3beta1.Deployment; /** - * Encodes the specified InputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.verify|verify} messages. - * @param message InputAudioConfig message or plain object to encode + * Encodes the specified Deployment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Deployment.verify|verify} messages. + * @param message Deployment message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeployment, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified InputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.verify|verify} messages. - * @param message InputAudioConfig message or plain object to encode + * Encodes the specified Deployment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Deployment.verify|verify} messages. + * @param message Deployment message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeployment, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an InputAudioConfig message from the specified reader or buffer. + * Decodes a Deployment message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns InputAudioConfig + * @returns Deployment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.InputAudioConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Deployment; /** - * Decodes an InputAudioConfig message from the specified reader or buffer, length delimited. + * Decodes a Deployment message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns InputAudioConfig + * @returns Deployment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.InputAudioConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Deployment; /** - * Verifies an InputAudioConfig message. + * Verifies a Deployment message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an InputAudioConfig message from a plain object. Also converts values to their respective internal types. + * Creates a Deployment message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns InputAudioConfig + * @returns Deployment */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.InputAudioConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Deployment; /** - * Creates a plain object from an InputAudioConfig message. Also converts values to other types if specified. - * @param message InputAudioConfig + * Creates a plain object from a Deployment message. Also converts values to other types if specified. + * @param message Deployment * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.InputAudioConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Deployment, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this InputAudioConfig to JSON. + * Converts this Deployment to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** SsmlVoiceGender enum. */ - enum SsmlVoiceGender { - SSML_VOICE_GENDER_UNSPECIFIED = 0, - SSML_VOICE_GENDER_MALE = 1, - SSML_VOICE_GENDER_FEMALE = 2, - SSML_VOICE_GENDER_NEUTRAL = 3 + namespace Deployment { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + RUNNING = 1, + SUCCEEDED = 2, + FAILED = 3 + } + + /** Properties of a Result. */ + interface IResult { + + /** Result deploymentTestResults */ + deploymentTestResults?: (string[]|null); + + /** Result experiment */ + experiment?: (string|null); + } + + /** Represents a Result. */ + class Result implements IResult { + + /** + * Constructs a new Result. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Deployment.IResult); + + /** Result deploymentTestResults. */ + public deploymentTestResults: string[]; + + /** Result experiment. */ + public experiment: string; + + /** + * Creates a new Result instance using the specified properties. + * @param [properties] Properties to set + * @returns Result instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Deployment.IResult): google.cloud.dialogflow.cx.v3beta1.Deployment.Result; + + /** + * Encodes the specified Result message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Deployment.Result.verify|verify} messages. + * @param message Result message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Deployment.IResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Result message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Deployment.Result.verify|verify} messages. + * @param message Result message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Deployment.IResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Result message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Result + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Deployment.Result; + + /** + * Decodes a Result message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Result + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Deployment.Result; + + /** + * Verifies a Result message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Result message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Result + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Deployment.Result; + + /** + * Creates a plain object from a Result message. Also converts values to other types if specified. + * @param message Result + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Deployment.Result, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Result to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Properties of a VoiceSelectionParams. */ - interface IVoiceSelectionParams { + /** Properties of a ListDeploymentsRequest. */ + interface IListDeploymentsRequest { - /** VoiceSelectionParams name */ - name?: (string|null); + /** ListDeploymentsRequest parent */ + parent?: (string|null); - /** VoiceSelectionParams ssmlGender */ - ssmlGender?: (google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender|keyof typeof google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender|null); + /** ListDeploymentsRequest pageSize */ + pageSize?: (number|null); + + /** ListDeploymentsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a VoiceSelectionParams. */ - class VoiceSelectionParams implements IVoiceSelectionParams { + /** Represents a ListDeploymentsRequest. */ + class ListDeploymentsRequest implements IListDeploymentsRequest { /** - * Constructs a new VoiceSelectionParams. + * Constructs a new ListDeploymentsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest); - /** VoiceSelectionParams name. */ - public name: string; + /** ListDeploymentsRequest parent. */ + public parent: string; - /** VoiceSelectionParams ssmlGender. */ - public ssmlGender: (google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender|keyof typeof google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender); + /** ListDeploymentsRequest pageSize. */ + public pageSize: number; + + /** ListDeploymentsRequest pageToken. */ + public pageToken: string; /** - * Creates a new VoiceSelectionParams instance using the specified properties. + * Creates a new ListDeploymentsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns VoiceSelectionParams instance + * @returns ListDeploymentsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams): google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest): google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest; /** - * Encodes the specified VoiceSelectionParams message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.verify|verify} messages. - * @param message VoiceSelectionParams message or plain object to encode + * Encodes the specified ListDeploymentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest.verify|verify} messages. + * @param message ListDeploymentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VoiceSelectionParams message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.verify|verify} messages. - * @param message VoiceSelectionParams message or plain object to encode + * Encodes the specified ListDeploymentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest.verify|verify} messages. + * @param message ListDeploymentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VoiceSelectionParams message from the specified reader or buffer. + * Decodes a ListDeploymentsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VoiceSelectionParams + * @returns ListDeploymentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest; /** - * Decodes a VoiceSelectionParams message from the specified reader or buffer, length delimited. + * Decodes a ListDeploymentsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VoiceSelectionParams + * @returns ListDeploymentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest; /** - * Verifies a VoiceSelectionParams message. + * Verifies a ListDeploymentsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a VoiceSelectionParams message from a plain object. Also converts values to their respective internal types. + * Creates a ListDeploymentsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VoiceSelectionParams + * @returns ListDeploymentsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest; /** - * Creates a plain object from a VoiceSelectionParams message. Also converts values to other types if specified. - * @param message VoiceSelectionParams + * Creates a plain object from a ListDeploymentsRequest message. Also converts values to other types if specified. + * @param message ListDeploymentsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VoiceSelectionParams to JSON. + * Converts this ListDeploymentsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SynthesizeSpeechConfig. */ - interface ISynthesizeSpeechConfig { + /** Properties of a ListDeploymentsResponse. */ + interface IListDeploymentsResponse { - /** SynthesizeSpeechConfig speakingRate */ - speakingRate?: (number|null); + /** ListDeploymentsResponse deployments */ + deployments?: (google.cloud.dialogflow.cx.v3beta1.IDeployment[]|null); - /** SynthesizeSpeechConfig pitch */ - pitch?: (number|null); - - /** SynthesizeSpeechConfig volumeGainDb */ - volumeGainDb?: (number|null); - - /** SynthesizeSpeechConfig effectsProfileId */ - effectsProfileId?: (string[]|null); - - /** SynthesizeSpeechConfig voice */ - voice?: (google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams|null); + /** ListDeploymentsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a SynthesizeSpeechConfig. */ - class SynthesizeSpeechConfig implements ISynthesizeSpeechConfig { + /** Represents a ListDeploymentsResponse. */ + class ListDeploymentsResponse implements IListDeploymentsResponse { /** - * Constructs a new SynthesizeSpeechConfig. + * Constructs a new ListDeploymentsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig); - - /** SynthesizeSpeechConfig speakingRate. */ - public speakingRate: number; - - /** SynthesizeSpeechConfig pitch. */ - public pitch: number; - - /** SynthesizeSpeechConfig volumeGainDb. */ - public volumeGainDb: number; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsResponse); - /** SynthesizeSpeechConfig effectsProfileId. */ - public effectsProfileId: string[]; + /** ListDeploymentsResponse deployments. */ + public deployments: google.cloud.dialogflow.cx.v3beta1.IDeployment[]; - /** SynthesizeSpeechConfig voice. */ - public voice?: (google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams|null); + /** ListDeploymentsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new SynthesizeSpeechConfig instance using the specified properties. + * Creates a new ListDeploymentsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns SynthesizeSpeechConfig instance + * @returns ListDeploymentsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig): google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsResponse): google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse; /** - * Encodes the specified SynthesizeSpeechConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.verify|verify} messages. - * @param message SynthesizeSpeechConfig message or plain object to encode + * Encodes the specified ListDeploymentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse.verify|verify} messages. + * @param message ListDeploymentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SynthesizeSpeechConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.verify|verify} messages. - * @param message SynthesizeSpeechConfig message or plain object to encode + * Encodes the specified ListDeploymentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse.verify|verify} messages. + * @param message ListDeploymentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SynthesizeSpeechConfig message from the specified reader or buffer. + * Decodes a ListDeploymentsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SynthesizeSpeechConfig + * @returns ListDeploymentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse; /** - * Decodes a SynthesizeSpeechConfig message from the specified reader or buffer, length delimited. + * Decodes a ListDeploymentsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SynthesizeSpeechConfig + * @returns ListDeploymentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse; /** - * Verifies a SynthesizeSpeechConfig message. + * Verifies a ListDeploymentsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SynthesizeSpeechConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ListDeploymentsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SynthesizeSpeechConfig + * @returns ListDeploymentsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse; /** - * Creates a plain object from a SynthesizeSpeechConfig message. Also converts values to other types if specified. - * @param message SynthesizeSpeechConfig + * Creates a plain object from a ListDeploymentsResponse message. Also converts values to other types if specified. + * @param message ListDeploymentsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SynthesizeSpeechConfig to JSON. + * Converts this ListDeploymentsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** OutputAudioEncoding enum. */ - enum OutputAudioEncoding { - OUTPUT_AUDIO_ENCODING_UNSPECIFIED = 0, - OUTPUT_AUDIO_ENCODING_LINEAR_16 = 1, - OUTPUT_AUDIO_ENCODING_MP3 = 2, - OUTPUT_AUDIO_ENCODING_MP3_64_KBPS = 4, - OUTPUT_AUDIO_ENCODING_OGG_OPUS = 3, - OUTPUT_AUDIO_ENCODING_MULAW = 5 - } - - /** Properties of an OutputAudioConfig. */ - interface IOutputAudioConfig { - - /** OutputAudioConfig audioEncoding */ - audioEncoding?: (google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding|null); - - /** OutputAudioConfig sampleRateHertz */ - sampleRateHertz?: (number|null); + /** Properties of a GetDeploymentRequest. */ + interface IGetDeploymentRequest { - /** OutputAudioConfig synthesizeSpeechConfig */ - synthesizeSpeechConfig?: (google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig|null); + /** GetDeploymentRequest name */ + name?: (string|null); } - /** Represents an OutputAudioConfig. */ - class OutputAudioConfig implements IOutputAudioConfig { + /** Represents a GetDeploymentRequest. */ + class GetDeploymentRequest implements IGetDeploymentRequest { /** - * Constructs a new OutputAudioConfig. + * Constructs a new GetDeploymentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig); - - /** OutputAudioConfig audioEncoding. */ - public audioEncoding: (google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding); - - /** OutputAudioConfig sampleRateHertz. */ - public sampleRateHertz: number; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest); - /** OutputAudioConfig synthesizeSpeechConfig. */ - public synthesizeSpeechConfig?: (google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig|null); + /** GetDeploymentRequest name. */ + public name: string; /** - * Creates a new OutputAudioConfig instance using the specified properties. + * Creates a new GetDeploymentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns OutputAudioConfig instance + * @returns GetDeploymentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig): google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest): google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest; /** - * Encodes the specified OutputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify|verify} messages. - * @param message OutputAudioConfig message or plain object to encode + * Encodes the specified GetDeploymentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest.verify|verify} messages. + * @param message GetDeploymentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified OutputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify|verify} messages. - * @param message OutputAudioConfig message or plain object to encode + * Encodes the specified GetDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest.verify|verify} messages. + * @param message GetDeploymentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an OutputAudioConfig message from the specified reader or buffer. + * Decodes a GetDeploymentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns OutputAudioConfig + * @returns GetDeploymentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest; /** - * Decodes an OutputAudioConfig message from the specified reader or buffer, length delimited. + * Decodes a GetDeploymentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns OutputAudioConfig + * @returns GetDeploymentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest; /** - * Verifies an OutputAudioConfig message. + * Verifies a GetDeploymentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an OutputAudioConfig message from a plain object. Also converts values to their respective internal types. + * Creates a GetDeploymentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns OutputAudioConfig + * @returns GetDeploymentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest; /** - * Creates a plain object from an OutputAudioConfig message. Also converts values to other types if specified. - * @param message OutputAudioConfig + * Creates a plain object from a GetDeploymentRequest message. Also converts values to other types if specified. + * @param message GetDeploymentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this OutputAudioConfig to JSON. + * Converts this GetDeploymentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a Changelogs */ - class Changelogs extends $protobuf.rpc.Service { + /** Represents an EntityTypes */ + class EntityTypes extends $protobuf.rpc.Service { /** - * Constructs a new Changelogs service. + * Constructs a new EntityTypes service. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited @@ -36337,1066 +36453,1063 @@ export namespace google { constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates new Changelogs service using the specified rpc implementation. + * Creates new EntityTypes service using the specified rpc implementation. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Changelogs; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): EntityTypes; /** - * Calls ListChangelogs. - * @param request ListChangelogsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListChangelogsResponse + * Calls ListEntityTypes. + * @param request ListEntityTypesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListEntityTypesResponse */ - public listChangelogs(request: google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Changelogs.ListChangelogsCallback): void; + public listEntityTypes(request: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest, callback: google.cloud.dialogflow.cx.v3beta1.EntityTypes.ListEntityTypesCallback): void; /** - * Calls ListChangelogs. - * @param request ListChangelogsRequest message or plain object + * Calls ListEntityTypes. + * @param request ListEntityTypesRequest message or plain object * @returns Promise */ - public listChangelogs(request: google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest): Promise; + public listEntityTypes(request: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest): Promise; /** - * Calls GetChangelog. - * @param request GetChangelogRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Changelog + * Calls GetEntityType. + * @param request GetEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and EntityType */ - public getChangelog(request: google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest, callback: google.cloud.dialogflow.cx.v3beta1.Changelogs.GetChangelogCallback): void; + public getEntityType(request: google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.EntityTypes.GetEntityTypeCallback): void; /** - * Calls GetChangelog. - * @param request GetChangelogRequest message or plain object + * Calls GetEntityType. + * @param request GetEntityTypeRequest message or plain object * @returns Promise */ - public getChangelog(request: google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest): Promise; - } - - namespace Changelogs { + public getEntityType(request: google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest): Promise; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Changelogs#listChangelogs}. - * @param error Error, if any - * @param [response] ListChangelogsResponse + * Calls CreateEntityType. + * @param request CreateEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and EntityType */ - type ListChangelogsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse) => void; + public createEntityType(request: google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.EntityTypes.CreateEntityTypeCallback): void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Changelogs#getChangelog}. - * @param error Error, if any - * @param [response] Changelog + * Calls CreateEntityType. + * @param request CreateEntityTypeRequest message or plain object + * @returns Promise */ - type GetChangelogCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Changelog) => void; - } - - /** Properties of a ListChangelogsRequest. */ - interface IListChangelogsRequest { - - /** ListChangelogsRequest parent */ - parent?: (string|null); - - /** ListChangelogsRequest filter */ - filter?: (string|null); - - /** ListChangelogsRequest pageSize */ - pageSize?: (number|null); - - /** ListChangelogsRequest pageToken */ - pageToken?: (string|null); - } - - /** Represents a ListChangelogsRequest. */ - class ListChangelogsRequest implements IListChangelogsRequest { + public createEntityType(request: google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest): Promise; /** - * Constructs a new ListChangelogsRequest. - * @param [properties] Properties to set + * Calls UpdateEntityType. + * @param request UpdateEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and EntityType */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest); - - /** ListChangelogsRequest parent. */ - public parent: string; - - /** ListChangelogsRequest filter. */ - public filter: string; - - /** ListChangelogsRequest pageSize. */ - public pageSize: number; - - /** ListChangelogsRequest pageToken. */ - public pageToken: string; + public updateEntityType(request: google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.EntityTypes.UpdateEntityTypeCallback): void; /** - * Creates a new ListChangelogsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListChangelogsRequest instance + * Calls UpdateEntityType. + * @param request UpdateEntityTypeRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest): google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest; + public updateEntityType(request: google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest): Promise; /** - * Encodes the specified ListChangelogsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest.verify|verify} messages. - * @param message ListChangelogsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls DeleteEntityType. + * @param request DeleteEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public deleteEntityType(request: google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.EntityTypes.DeleteEntityTypeCallback): void; /** - * Encodes the specified ListChangelogsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest.verify|verify} messages. - * @param message ListChangelogsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls DeleteEntityType. + * @param request DeleteEntityTypeRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public deleteEntityType(request: google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest): Promise; + } - /** - * Decodes a ListChangelogsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListChangelogsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest; + namespace EntityTypes { /** - * Decodes a ListChangelogsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListChangelogsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#listEntityTypes}. + * @param error Error, if any + * @param [response] ListEntityTypesResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest; + type ListEntityTypesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse) => void; /** - * Verifies a ListChangelogsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#getEntityType}. + * @param error Error, if any + * @param [response] EntityType */ - public static verify(message: { [k: string]: any }): (string|null); + type GetEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.EntityType) => void; /** - * Creates a ListChangelogsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListChangelogsRequest + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#createEntityType}. + * @param error Error, if any + * @param [response] EntityType */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest; + type CreateEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.EntityType) => void; /** - * Creates a plain object from a ListChangelogsRequest message. Also converts values to other types if specified. - * @param message ListChangelogsRequest - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#updateEntityType}. + * @param error Error, if any + * @param [response] EntityType */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type UpdateEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.EntityType) => void; /** - * Converts this ListChangelogsRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#deleteEntityType}. + * @param error Error, if any + * @param [response] Empty */ - public toJSON(): { [k: string]: any }; + type DeleteEntityTypeCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } - /** Properties of a ListChangelogsResponse. */ - interface IListChangelogsResponse { + /** Properties of an EntityType. */ + interface IEntityType { - /** ListChangelogsResponse changelogs */ - changelogs?: (google.cloud.dialogflow.cx.v3beta1.IChangelog[]|null); + /** EntityType name */ + name?: (string|null); - /** ListChangelogsResponse nextPageToken */ - nextPageToken?: (string|null); + /** EntityType displayName */ + displayName?: (string|null); + + /** EntityType kind */ + kind?: (google.cloud.dialogflow.cx.v3beta1.EntityType.Kind|keyof typeof google.cloud.dialogflow.cx.v3beta1.EntityType.Kind|null); + + /** EntityType autoExpansionMode */ + autoExpansionMode?: (google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode|keyof typeof google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode|null); + + /** EntityType entities */ + entities?: (google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity[]|null); + + /** EntityType excludedPhrases */ + excludedPhrases?: (google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase[]|null); + + /** EntityType enableFuzzyExtraction */ + enableFuzzyExtraction?: (boolean|null); + + /** EntityType redact */ + redact?: (boolean|null); } - /** Represents a ListChangelogsResponse. */ - class ListChangelogsResponse implements IListChangelogsResponse { + /** Represents an EntityType. */ + class EntityType implements IEntityType { /** - * Constructs a new ListChangelogsResponse. + * Constructs a new EntityType. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListChangelogsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IEntityType); - /** ListChangelogsResponse changelogs. */ - public changelogs: google.cloud.dialogflow.cx.v3beta1.IChangelog[]; + /** EntityType name. */ + public name: string; - /** ListChangelogsResponse nextPageToken. */ - public nextPageToken: string; + /** EntityType displayName. */ + public displayName: string; + + /** EntityType kind. */ + public kind: (google.cloud.dialogflow.cx.v3beta1.EntityType.Kind|keyof typeof google.cloud.dialogflow.cx.v3beta1.EntityType.Kind); + + /** EntityType autoExpansionMode. */ + public autoExpansionMode: (google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode|keyof typeof google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode); + + /** EntityType entities. */ + public entities: google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity[]; + + /** EntityType excludedPhrases. */ + public excludedPhrases: google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase[]; + + /** EntityType enableFuzzyExtraction. */ + public enableFuzzyExtraction: boolean; + + /** EntityType redact. */ + public redact: boolean; /** - * Creates a new ListChangelogsResponse instance using the specified properties. + * Creates a new EntityType instance using the specified properties. * @param [properties] Properties to set - * @returns ListChangelogsResponse instance + * @returns EntityType instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListChangelogsResponse): google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IEntityType): google.cloud.dialogflow.cx.v3beta1.EntityType; /** - * Encodes the specified ListChangelogsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse.verify|verify} messages. - * @param message ListChangelogsResponse message or plain object to encode + * Encodes the specified EntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.verify|verify} messages. + * @param message EntityType message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListChangelogsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListChangelogsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse.verify|verify} messages. - * @param message ListChangelogsResponse message or plain object to encode + * Encodes the specified EntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.verify|verify} messages. + * @param message EntityType message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListChangelogsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListChangelogsResponse message from the specified reader or buffer. + * Decodes an EntityType message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListChangelogsResponse + * @returns EntityType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.EntityType; /** - * Decodes a ListChangelogsResponse message from the specified reader or buffer, length delimited. + * Decodes an EntityType message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListChangelogsResponse + * @returns EntityType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.EntityType; /** - * Verifies a ListChangelogsResponse message. + * Verifies an EntityType message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListChangelogsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an EntityType message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListChangelogsResponse + * @returns EntityType */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.EntityType; /** - * Creates a plain object from a ListChangelogsResponse message. Also converts values to other types if specified. - * @param message ListChangelogsResponse + * Creates a plain object from an EntityType message. Also converts values to other types if specified. + * @param message EntityType * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.EntityType, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListChangelogsResponse to JSON. + * Converts this EntityType to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetChangelogRequest. */ - interface IGetChangelogRequest { + namespace EntityType { - /** GetChangelogRequest name */ - name?: (string|null); - } + /** Kind enum. */ + enum Kind { + KIND_UNSPECIFIED = 0, + KIND_MAP = 1, + KIND_LIST = 2, + KIND_REGEXP = 3 + } - /** Represents a GetChangelogRequest. */ - class GetChangelogRequest implements IGetChangelogRequest { + /** AutoExpansionMode enum. */ + enum AutoExpansionMode { + AUTO_EXPANSION_MODE_UNSPECIFIED = 0, + AUTO_EXPANSION_MODE_DEFAULT = 1 + } - /** - * Constructs a new GetChangelogRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest); + /** Properties of an Entity. */ + interface IEntity { - /** GetChangelogRequest name. */ - public name: string; + /** Entity value */ + value?: (string|null); - /** - * Creates a new GetChangelogRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetChangelogRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest): google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest; + /** Entity synonyms */ + synonyms?: (string[]|null); + } - /** - * Encodes the specified GetChangelogRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest.verify|verify} messages. - * @param message GetChangelogRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents an Entity. */ + class Entity implements IEntity { - /** - * Encodes the specified GetChangelogRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest.verify|verify} messages. - * @param message GetChangelogRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new Entity. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity); - /** - * Decodes a GetChangelogRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetChangelogRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest; + /** Entity value. */ + public value: string; - /** - * Decodes a GetChangelogRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetChangelogRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest; + /** Entity synonyms. */ + public synonyms: string[]; - /** - * Verifies a GetChangelogRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a new Entity instance using the specified properties. + * @param [properties] Properties to set + * @returns Entity instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity): google.cloud.dialogflow.cx.v3beta1.EntityType.Entity; - /** - * Creates a GetChangelogRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetChangelogRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest; + /** + * Encodes the specified Entity message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.verify|verify} messages. + * @param message Entity message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a GetChangelogRequest message. Also converts values to other types if specified. - * @param message GetChangelogRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified Entity message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.verify|verify} messages. + * @param message Entity message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this GetChangelogRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Decodes an Entity message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Entity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.EntityType.Entity; - /** Properties of a Changelog. */ - interface IChangelog { + /** + * Decodes an Entity message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Entity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.EntityType.Entity; - /** Changelog name */ - name?: (string|null); + /** + * Verifies an Entity message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Changelog userEmail */ - userEmail?: (string|null); + /** + * Creates an Entity message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Entity + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.EntityType.Entity; - /** Changelog displayName */ - displayName?: (string|null); + /** + * Creates a plain object from an Entity message. Also converts values to other types if specified. + * @param message Entity + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.EntityType.Entity, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Changelog action */ - action?: (string|null); + /** + * Converts this Entity to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Changelog type */ - type?: (string|null); + /** Properties of an ExcludedPhrase. */ + interface IExcludedPhrase { - /** Changelog resource */ - resource?: (string|null); + /** ExcludedPhrase value */ + value?: (string|null); + } - /** Changelog createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** Represents an ExcludedPhrase. */ + class ExcludedPhrase implements IExcludedPhrase { + + /** + * Constructs a new ExcludedPhrase. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase); + + /** ExcludedPhrase value. */ + public value: string; + + /** + * Creates a new ExcludedPhrase instance using the specified properties. + * @param [properties] Properties to set + * @returns ExcludedPhrase instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase): google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase; + + /** + * Encodes the specified ExcludedPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.verify|verify} messages. + * @param message ExcludedPhrase message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExcludedPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.verify|verify} messages. + * @param message ExcludedPhrase message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExcludedPhrase message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExcludedPhrase + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase; + + /** + * Decodes an ExcludedPhrase message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExcludedPhrase + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase; + + /** + * Verifies an ExcludedPhrase message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExcludedPhrase message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExcludedPhrase + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase; + + /** + * Creates a plain object from an ExcludedPhrase message. Also converts values to other types if specified. + * @param message ExcludedPhrase + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExcludedPhrase to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Represents a Changelog. */ - class Changelog implements IChangelog { + /** Properties of a ListEntityTypesRequest. */ + interface IListEntityTypesRequest { - /** - * Constructs a new Changelog. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IChangelog); + /** ListEntityTypesRequest parent */ + parent?: (string|null); - /** Changelog name. */ - public name: string; + /** ListEntityTypesRequest languageCode */ + languageCode?: (string|null); - /** Changelog userEmail. */ - public userEmail: string; + /** ListEntityTypesRequest pageSize */ + pageSize?: (number|null); - /** Changelog displayName. */ - public displayName: string; + /** ListEntityTypesRequest pageToken */ + pageToken?: (string|null); + } - /** Changelog action. */ - public action: string; + /** Represents a ListEntityTypesRequest. */ + class ListEntityTypesRequest implements IListEntityTypesRequest { - /** Changelog type. */ - public type: string; + /** + * Constructs a new ListEntityTypesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest); - /** Changelog resource. */ - public resource: string; + /** ListEntityTypesRequest parent. */ + public parent: string; - /** Changelog createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** ListEntityTypesRequest languageCode. */ + public languageCode: string; + + /** ListEntityTypesRequest pageSize. */ + public pageSize: number; + + /** ListEntityTypesRequest pageToken. */ + public pageToken: string; /** - * Creates a new Changelog instance using the specified properties. + * Creates a new ListEntityTypesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Changelog instance + * @returns ListEntityTypesRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IChangelog): google.cloud.dialogflow.cx.v3beta1.Changelog; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest; /** - * Encodes the specified Changelog message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Changelog.verify|verify} messages. - * @param message Changelog message or plain object to encode + * Encodes the specified ListEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest.verify|verify} messages. + * @param message ListEntityTypesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IChangelog, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Changelog message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Changelog.verify|verify} messages. - * @param message Changelog message or plain object to encode + * Encodes the specified ListEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest.verify|verify} messages. + * @param message ListEntityTypesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IChangelog, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Changelog message from the specified reader or buffer. + * Decodes a ListEntityTypesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Changelog + * @returns ListEntityTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Changelog; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest; /** - * Decodes a Changelog message from the specified reader or buffer, length delimited. + * Decodes a ListEntityTypesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Changelog + * @returns ListEntityTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Changelog; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest; /** - * Verifies a Changelog message. + * Verifies a ListEntityTypesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Changelog message from a plain object. Also converts values to their respective internal types. + * Creates a ListEntityTypesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Changelog + * @returns ListEntityTypesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Changelog; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest; /** - * Creates a plain object from a Changelog message. Also converts values to other types if specified. - * @param message Changelog + * Creates a plain object from a ListEntityTypesRequest message. Also converts values to other types if specified. + * @param message ListEntityTypesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Changelog, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Changelog to JSON. + * Converts this ListEntityTypesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a Deployments */ - class Deployments extends $protobuf.rpc.Service { + /** Properties of a ListEntityTypesResponse. */ + interface IListEntityTypesResponse { + + /** ListEntityTypesResponse entityTypes */ + entityTypes?: (google.cloud.dialogflow.cx.v3beta1.IEntityType[]|null); + + /** ListEntityTypesResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListEntityTypesResponse. */ + class ListEntityTypesResponse implements IListEntityTypesResponse { /** - * Constructs a new Deployments service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited + * Constructs a new ListEntityTypesResponse. + * @param [properties] Properties to set */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse); + + /** ListEntityTypesResponse entityTypes. */ + public entityTypes: google.cloud.dialogflow.cx.v3beta1.IEntityType[]; + + /** ListEntityTypesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates new Deployments service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. + * Creates a new ListEntityTypesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListEntityTypesResponse instance */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Deployments; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse; /** - * Calls ListDeployments. - * @param request ListDeploymentsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListDeploymentsResponse + * Encodes the specified ListEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse.verify|verify} messages. + * @param message ListEntityTypesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listDeployments(request: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Deployments.ListDeploymentsCallback): void; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListDeployments. - * @param request ListDeploymentsRequest message or plain object - * @returns Promise + * Encodes the specified ListEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse.verify|verify} messages. + * @param message ListEntityTypesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listDeployments(request: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest): Promise; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetDeployment. - * @param request GetDeploymentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Deployment + * Decodes a ListEntityTypesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListEntityTypesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getDeployment(request: google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Deployments.GetDeploymentCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse; /** - * Calls GetDeployment. - * @param request GetDeploymentRequest message or plain object - * @returns Promise + * Decodes a ListEntityTypesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListEntityTypesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getDeployment(request: google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest): Promise; - } + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse; - namespace Deployments { + /** + * Verifies a ListEntityTypesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Deployments#listDeployments}. - * @param error Error, if any - * @param [response] ListDeploymentsResponse + * Creates a ListEntityTypesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListEntityTypesResponse */ - type ListDeploymentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Deployments#getDeployment}. - * @param error Error, if any - * @param [response] Deployment + * Creates a plain object from a ListEntityTypesResponse message. Also converts values to other types if specified. + * @param message ListEntityTypesResponse + * @param [options] Conversion options + * @returns Plain object */ - type GetDeploymentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Deployment) => void; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListEntityTypesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Properties of a Deployment. */ - interface IDeployment { + /** Properties of a GetEntityTypeRequest. */ + interface IGetEntityTypeRequest { - /** Deployment name */ + /** GetEntityTypeRequest name */ name?: (string|null); - /** Deployment flowVersion */ - flowVersion?: (string|null); - - /** Deployment state */ - state?: (google.cloud.dialogflow.cx.v3beta1.Deployment.State|keyof typeof google.cloud.dialogflow.cx.v3beta1.Deployment.State|null); - - /** Deployment result */ - result?: (google.cloud.dialogflow.cx.v3beta1.Deployment.IResult|null); - - /** Deployment startTime */ - startTime?: (google.protobuf.ITimestamp|null); - - /** Deployment endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** GetEntityTypeRequest languageCode */ + languageCode?: (string|null); } - /** Represents a Deployment. */ - class Deployment implements IDeployment { + /** Represents a GetEntityTypeRequest. */ + class GetEntityTypeRequest implements IGetEntityTypeRequest { /** - * Constructs a new Deployment. + * Constructs a new GetEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeployment); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest); - /** Deployment name. */ + /** GetEntityTypeRequest name. */ public name: string; - /** Deployment flowVersion. */ - public flowVersion: string; - - /** Deployment state. */ - public state: (google.cloud.dialogflow.cx.v3beta1.Deployment.State|keyof typeof google.cloud.dialogflow.cx.v3beta1.Deployment.State); - - /** Deployment result. */ - public result?: (google.cloud.dialogflow.cx.v3beta1.Deployment.IResult|null); - - /** Deployment startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); - - /** Deployment endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** GetEntityTypeRequest languageCode. */ + public languageCode: string; /** - * Creates a new Deployment instance using the specified properties. + * Creates a new GetEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Deployment instance + * @returns GetEntityTypeRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeployment): google.cloud.dialogflow.cx.v3beta1.Deployment; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest; /** - * Encodes the specified Deployment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Deployment.verify|verify} messages. - * @param message Deployment message or plain object to encode + * Encodes the specified GetEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest.verify|verify} messages. + * @param message GetEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeployment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Deployment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Deployment.verify|verify} messages. - * @param message Deployment message or plain object to encode + * Encodes the specified GetEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest.verify|verify} messages. + * @param message GetEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeployment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Deployment message from the specified reader or buffer. + * Decodes a GetEntityTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Deployment + * @returns GetEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Deployment; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest; /** - * Decodes a Deployment message from the specified reader or buffer, length delimited. + * Decodes a GetEntityTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Deployment + * @returns GetEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Deployment; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest; /** - * Verifies a Deployment message. + * Verifies a GetEntityTypeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Deployment message from a plain object. Also converts values to their respective internal types. + * Creates a GetEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Deployment + * @returns GetEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Deployment; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest; /** - * Creates a plain object from a Deployment message. Also converts values to other types if specified. - * @param message Deployment + * Creates a plain object from a GetEntityTypeRequest message. Also converts values to other types if specified. + * @param message GetEntityTypeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Deployment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Deployment to JSON. + * Converts this GetEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Deployment { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - RUNNING = 1, - SUCCEEDED = 2, - FAILED = 3 - } - - /** Properties of a Result. */ - interface IResult { - - /** Result deploymentTestResults */ - deploymentTestResults?: (string[]|null); - - /** Result experiment */ - experiment?: (string|null); - } - - /** Represents a Result. */ - class Result implements IResult { - - /** - * Constructs a new Result. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Deployment.IResult); - - /** Result deploymentTestResults. */ - public deploymentTestResults: string[]; - - /** Result experiment. */ - public experiment: string; - - /** - * Creates a new Result instance using the specified properties. - * @param [properties] Properties to set - * @returns Result instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Deployment.IResult): google.cloud.dialogflow.cx.v3beta1.Deployment.Result; - - /** - * Encodes the specified Result message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Deployment.Result.verify|verify} messages. - * @param message Result message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Deployment.IResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Result message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Deployment.Result.verify|verify} messages. - * @param message Result message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Deployment.IResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Result message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Result - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Deployment.Result; - - /** - * Decodes a Result message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Result - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Deployment.Result; - - /** - * Verifies a Result message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Result message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Result - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Deployment.Result; - - /** - * Creates a plain object from a Result message. Also converts values to other types if specified. - * @param message Result - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Deployment.Result, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Result to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of a ListDeploymentsRequest. */ - interface IListDeploymentsRequest { + /** Properties of a CreateEntityTypeRequest. */ + interface ICreateEntityTypeRequest { - /** ListDeploymentsRequest parent */ + /** CreateEntityTypeRequest parent */ parent?: (string|null); - /** ListDeploymentsRequest pageSize */ - pageSize?: (number|null); + /** CreateEntityTypeRequest entityType */ + entityType?: (google.cloud.dialogflow.cx.v3beta1.IEntityType|null); - /** ListDeploymentsRequest pageToken */ - pageToken?: (string|null); + /** CreateEntityTypeRequest languageCode */ + languageCode?: (string|null); } - /** Represents a ListDeploymentsRequest. */ - class ListDeploymentsRequest implements IListDeploymentsRequest { + /** Represents a CreateEntityTypeRequest. */ + class CreateEntityTypeRequest implements ICreateEntityTypeRequest { /** - * Constructs a new ListDeploymentsRequest. + * Constructs a new CreateEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest); - /** ListDeploymentsRequest parent. */ + /** CreateEntityTypeRequest parent. */ public parent: string; - /** ListDeploymentsRequest pageSize. */ - public pageSize: number; + /** CreateEntityTypeRequest entityType. */ + public entityType?: (google.cloud.dialogflow.cx.v3beta1.IEntityType|null); - /** ListDeploymentsRequest pageToken. */ - public pageToken: string; + /** CreateEntityTypeRequest languageCode. */ + public languageCode: string; /** - * Creates a new ListDeploymentsRequest instance using the specified properties. + * Creates a new CreateEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListDeploymentsRequest instance + * @returns CreateEntityTypeRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest): google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest; /** - * Encodes the specified ListDeploymentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest.verify|verify} messages. - * @param message ListDeploymentsRequest message or plain object to encode + * Encodes the specified CreateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest.verify|verify} messages. + * @param message CreateEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDeploymentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest.verify|verify} messages. - * @param message ListDeploymentsRequest message or plain object to encode + * Encodes the specified CreateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest.verify|verify} messages. + * @param message CreateEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDeploymentsRequest message from the specified reader or buffer. + * Decodes a CreateEntityTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDeploymentsRequest + * @returns CreateEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest; /** - * Decodes a ListDeploymentsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateEntityTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDeploymentsRequest + * @returns CreateEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest; /** - * Verifies a ListDeploymentsRequest message. + * Verifies a CreateEntityTypeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListDeploymentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDeploymentsRequest + * @returns CreateEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest; /** - * Creates a plain object from a ListDeploymentsRequest message. Also converts values to other types if specified. - * @param message ListDeploymentsRequest + * Creates a plain object from a CreateEntityTypeRequest message. Also converts values to other types if specified. + * @param message CreateEntityTypeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDeploymentsRequest to JSON. + * Converts this CreateEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListDeploymentsResponse. */ - interface IListDeploymentsResponse { + /** Properties of an UpdateEntityTypeRequest. */ + interface IUpdateEntityTypeRequest { - /** ListDeploymentsResponse deployments */ - deployments?: (google.cloud.dialogflow.cx.v3beta1.IDeployment[]|null); + /** UpdateEntityTypeRequest entityType */ + entityType?: (google.cloud.dialogflow.cx.v3beta1.IEntityType|null); - /** ListDeploymentsResponse nextPageToken */ - nextPageToken?: (string|null); + /** UpdateEntityTypeRequest languageCode */ + languageCode?: (string|null); + + /** UpdateEntityTypeRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ListDeploymentsResponse. */ - class ListDeploymentsResponse implements IListDeploymentsResponse { + /** Represents an UpdateEntityTypeRequest. */ + class UpdateEntityTypeRequest implements IUpdateEntityTypeRequest { /** - * Constructs a new ListDeploymentsResponse. + * Constructs a new UpdateEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest); - /** ListDeploymentsResponse deployments. */ - public deployments: google.cloud.dialogflow.cx.v3beta1.IDeployment[]; + /** UpdateEntityTypeRequest entityType. */ + public entityType?: (google.cloud.dialogflow.cx.v3beta1.IEntityType|null); - /** ListDeploymentsResponse nextPageToken. */ - public nextPageToken: string; + /** UpdateEntityTypeRequest languageCode. */ + public languageCode: string; + + /** UpdateEntityTypeRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ListDeploymentsResponse instance using the specified properties. + * Creates a new UpdateEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListDeploymentsResponse instance + * @returns UpdateEntityTypeRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsResponse): google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest; /** - * Encodes the specified ListDeploymentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse.verify|verify} messages. - * @param message ListDeploymentsResponse message or plain object to encode + * Encodes the specified UpdateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest.verify|verify} messages. + * @param message UpdateEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDeploymentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse.verify|verify} messages. - * @param message ListDeploymentsResponse message or plain object to encode + * Encodes the specified UpdateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest.verify|verify} messages. + * @param message UpdateEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDeploymentsResponse message from the specified reader or buffer. + * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDeploymentsResponse + * @returns UpdateEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest; /** - * Decodes a ListDeploymentsResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDeploymentsResponse + * @returns UpdateEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest; /** - * Verifies a ListDeploymentsResponse message. + * Verifies an UpdateEntityTypeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListDeploymentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDeploymentsResponse + * @returns UpdateEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest; /** - * Creates a plain object from a ListDeploymentsResponse message. Also converts values to other types if specified. - * @param message ListDeploymentsResponse + * Creates a plain object from an UpdateEntityTypeRequest message. Also converts values to other types if specified. + * @param message UpdateEntityTypeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDeploymentsResponse to JSON. + * Converts this UpdateEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetDeploymentRequest. */ - interface IGetDeploymentRequest { + /** Properties of a DeleteEntityTypeRequest. */ + interface IDeleteEntityTypeRequest { - /** GetDeploymentRequest name */ + /** DeleteEntityTypeRequest name */ name?: (string|null); + + /** DeleteEntityTypeRequest force */ + force?: (boolean|null); } - /** Represents a GetDeploymentRequest. */ - class GetDeploymentRequest implements IGetDeploymentRequest { + /** Represents a DeleteEntityTypeRequest. */ + class DeleteEntityTypeRequest implements IDeleteEntityTypeRequest { /** - * Constructs a new GetDeploymentRequest. + * Constructs a new DeleteEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest); - /** GetDeploymentRequest name. */ + /** DeleteEntityTypeRequest name. */ public name: string; + /** DeleteEntityTypeRequest force. */ + public force: boolean; + /** - * Creates a new GetDeploymentRequest instance using the specified properties. + * Creates a new DeleteEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetDeploymentRequest instance + * @returns DeleteEntityTypeRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest): google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest; /** - * Encodes the specified GetDeploymentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest.verify|verify} messages. - * @param message GetDeploymentRequest message or plain object to encode + * Encodes the specified DeleteEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest.verify|verify} messages. + * @param message DeleteEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest.verify|verify} messages. - * @param message GetDeploymentRequest message or plain object to encode + * Encodes the specified DeleteEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest.verify|verify} messages. + * @param message DeleteEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetDeploymentRequest message from the specified reader or buffer. + * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetDeploymentRequest + * @returns DeleteEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest; /** - * Decodes a GetDeploymentRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetDeploymentRequest + * @returns DeleteEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest; /** - * Verifies a GetDeploymentRequest message. + * Verifies a DeleteEntityTypeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetDeploymentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetDeploymentRequest + * @returns DeleteEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest; /** - * Creates a plain object from a GetDeploymentRequest message. Also converts values to other types if specified. - * @param message GetDeploymentRequest + * Creates a plain object from a DeleteEntityTypeRequest message. Also converts values to other types if specified. + * @param message DeleteEntityTypeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetDeploymentRequest to JSON. + * Converts this DeleteEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents an EntityTypes */ - class EntityTypes extends $protobuf.rpc.Service { + /** Represents an Environments */ + class Environments extends $protobuf.rpc.Service { /** - * Constructs a new EntityTypes service. + * Constructs a new Environments service. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited @@ -37404,7552 +37517,7668 @@ export namespace google { constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates new EntityTypes service using the specified rpc implementation. + * Creates new Environments service using the specified rpc implementation. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): EntityTypes; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Environments; /** - * Calls ListEntityTypes. - * @param request ListEntityTypesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListEntityTypesResponse + * Calls ListEnvironments. + * @param request ListEnvironmentsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListEnvironmentsResponse */ - public listEntityTypes(request: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest, callback: google.cloud.dialogflow.cx.v3beta1.EntityTypes.ListEntityTypesCallback): void; + public listEnvironments(request: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.ListEnvironmentsCallback): void; /** - * Calls ListEntityTypes. - * @param request ListEntityTypesRequest message or plain object + * Calls ListEnvironments. + * @param request ListEnvironmentsRequest message or plain object * @returns Promise */ - public listEntityTypes(request: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest): Promise; + public listEnvironments(request: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest): Promise; /** - * Calls GetEntityType. - * @param request GetEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and EntityType + * Calls GetEnvironment. + * @param request GetEnvironmentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Environment */ - public getEntityType(request: google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.EntityTypes.GetEntityTypeCallback): void; + public getEnvironment(request: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.GetEnvironmentCallback): void; /** - * Calls GetEntityType. - * @param request GetEntityTypeRequest message or plain object + * Calls GetEnvironment. + * @param request GetEnvironmentRequest message or plain object * @returns Promise */ - public getEntityType(request: google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest): Promise; + public getEnvironment(request: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest): Promise; /** - * Calls CreateEntityType. - * @param request CreateEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and EntityType + * Calls CreateEnvironment. + * @param request CreateEnvironmentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public createEntityType(request: google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.EntityTypes.CreateEntityTypeCallback): void; + public createEnvironment(request: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.CreateEnvironmentCallback): void; /** - * Calls CreateEntityType. - * @param request CreateEntityTypeRequest message or plain object + * Calls CreateEnvironment. + * @param request CreateEnvironmentRequest message or plain object * @returns Promise */ - public createEntityType(request: google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest): Promise; + public createEnvironment(request: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest): Promise; /** - * Calls UpdateEntityType. - * @param request UpdateEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and EntityType + * Calls UpdateEnvironment. + * @param request UpdateEnvironmentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public updateEntityType(request: google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.EntityTypes.UpdateEntityTypeCallback): void; + public updateEnvironment(request: google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.UpdateEnvironmentCallback): void; /** - * Calls UpdateEntityType. - * @param request UpdateEntityTypeRequest message or plain object + * Calls UpdateEnvironment. + * @param request UpdateEnvironmentRequest message or plain object * @returns Promise */ - public updateEntityType(request: google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest): Promise; + public updateEnvironment(request: google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest): Promise; /** - * Calls DeleteEntityType. - * @param request DeleteEntityTypeRequest message or plain object + * Calls DeleteEnvironment. + * @param request DeleteEnvironmentRequest message or plain object * @param callback Node-style callback called with the error, if any, and Empty */ - public deleteEntityType(request: google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.EntityTypes.DeleteEntityTypeCallback): void; + public deleteEnvironment(request: google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.DeleteEnvironmentCallback): void; /** - * Calls DeleteEntityType. - * @param request DeleteEntityTypeRequest message or plain object + * Calls DeleteEnvironment. + * @param request DeleteEnvironmentRequest message or plain object * @returns Promise */ - public deleteEntityType(request: google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest): Promise; + public deleteEnvironment(request: google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest): Promise; + + /** + * Calls LookupEnvironmentHistory. + * @param request LookupEnvironmentHistoryRequest message or plain object + * @param callback Node-style callback called with the error, if any, and LookupEnvironmentHistoryResponse + */ + public lookupEnvironmentHistory(request: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.LookupEnvironmentHistoryCallback): void; + + /** + * Calls LookupEnvironmentHistory. + * @param request LookupEnvironmentHistoryRequest message or plain object + * @returns Promise + */ + public lookupEnvironmentHistory(request: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest): Promise; + + /** + * Calls RunContinuousTest. + * @param request RunContinuousTestRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public runContinuousTest(request: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.RunContinuousTestCallback): void; + + /** + * Calls RunContinuousTest. + * @param request RunContinuousTestRequest message or plain object + * @returns Promise + */ + public runContinuousTest(request: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest): Promise; + + /** + * Calls ListContinuousTestResults. + * @param request ListContinuousTestResultsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListContinuousTestResultsResponse + */ + public listContinuousTestResults(request: google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.ListContinuousTestResultsCallback): void; + + /** + * Calls ListContinuousTestResults. + * @param request ListContinuousTestResultsRequest message or plain object + * @returns Promise + */ + public listContinuousTestResults(request: google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest): Promise; + + /** + * Calls DeployFlow. + * @param request DeployFlowRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deployFlow(request: google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.DeployFlowCallback): void; + + /** + * Calls DeployFlow. + * @param request DeployFlowRequest message or plain object + * @returns Promise + */ + public deployFlow(request: google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest): Promise; } - namespace EntityTypes { + namespace Environments { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#listEntityTypes}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#listEnvironments}. * @param error Error, if any - * @param [response] ListEntityTypesResponse + * @param [response] ListEnvironmentsResponse */ - type ListEntityTypesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse) => void; + type ListEnvironmentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#getEntityType}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#getEnvironment}. * @param error Error, if any - * @param [response] EntityType + * @param [response] Environment */ - type GetEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.EntityType) => void; + type GetEnvironmentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Environment) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#createEntityType}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#createEnvironment}. * @param error Error, if any - * @param [response] EntityType + * @param [response] Operation */ - type CreateEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.EntityType) => void; + type CreateEnvironmentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#updateEntityType}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#updateEnvironment}. * @param error Error, if any - * @param [response] EntityType + * @param [response] Operation */ - type UpdateEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.EntityType) => void; + type UpdateEnvironmentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#deleteEntityType}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#deleteEnvironment}. * @param error Error, if any * @param [response] Empty */ - type DeleteEntityTypeCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - } - - /** Properties of an EntityType. */ - interface IEntityType { + type DeleteEnvironmentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - /** EntityType name */ - name?: (string|null); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#lookupEnvironmentHistory}. + * @param error Error, if any + * @param [response] LookupEnvironmentHistoryResponse + */ + type LookupEnvironmentHistoryCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse) => void; - /** EntityType displayName */ - displayName?: (string|null); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#runContinuousTest}. + * @param error Error, if any + * @param [response] Operation + */ + type RunContinuousTestCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** EntityType kind */ - kind?: (google.cloud.dialogflow.cx.v3beta1.EntityType.Kind|keyof typeof google.cloud.dialogflow.cx.v3beta1.EntityType.Kind|null); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#listContinuousTestResults}. + * @param error Error, if any + * @param [response] ListContinuousTestResultsResponse + */ + type ListContinuousTestResultsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse) => void; - /** EntityType autoExpansionMode */ - autoExpansionMode?: (google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode|keyof typeof google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode|null); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#deployFlow}. + * @param error Error, if any + * @param [response] Operation + */ + type DeployFlowCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + } - /** EntityType entities */ - entities?: (google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity[]|null); + /** Properties of an Environment. */ + interface IEnvironment { - /** EntityType excludedPhrases */ - excludedPhrases?: (google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase[]|null); + /** Environment name */ + name?: (string|null); - /** EntityType enableFuzzyExtraction */ - enableFuzzyExtraction?: (boolean|null); + /** Environment displayName */ + displayName?: (string|null); - /** EntityType redact */ - redact?: (boolean|null); + /** Environment description */ + description?: (string|null); + + /** Environment versionConfigs */ + versionConfigs?: (google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig[]|null); + + /** Environment updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Environment testCasesConfig */ + testCasesConfig?: (google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig|null); } - /** Represents an EntityType. */ - class EntityType implements IEntityType { + /** Represents an Environment. */ + class Environment implements IEnvironment { /** - * Constructs a new EntityType. + * Constructs a new Environment. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IEntityType); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IEnvironment); - /** EntityType name. */ + /** Environment name. */ public name: string; - /** EntityType displayName. */ + /** Environment displayName. */ public displayName: string; - /** EntityType kind. */ - public kind: (google.cloud.dialogflow.cx.v3beta1.EntityType.Kind|keyof typeof google.cloud.dialogflow.cx.v3beta1.EntityType.Kind); - - /** EntityType autoExpansionMode. */ - public autoExpansionMode: (google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode|keyof typeof google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode); - - /** EntityType entities. */ - public entities: google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity[]; + /** Environment description. */ + public description: string; - /** EntityType excludedPhrases. */ - public excludedPhrases: google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase[]; + /** Environment versionConfigs. */ + public versionConfigs: google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig[]; - /** EntityType enableFuzzyExtraction. */ - public enableFuzzyExtraction: boolean; + /** Environment updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** EntityType redact. */ - public redact: boolean; + /** Environment testCasesConfig. */ + public testCasesConfig?: (google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig|null); /** - * Creates a new EntityType instance using the specified properties. + * Creates a new Environment instance using the specified properties. * @param [properties] Properties to set - * @returns EntityType instance + * @returns Environment instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IEntityType): google.cloud.dialogflow.cx.v3beta1.EntityType; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IEnvironment): google.cloud.dialogflow.cx.v3beta1.Environment; /** - * Encodes the specified EntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.verify|verify} messages. - * @param message EntityType message or plain object to encode + * Encodes the specified Environment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.verify|verify} messages. + * @param message Environment message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.verify|verify} messages. - * @param message EntityType message or plain object to encode + * Encodes the specified Environment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.verify|verify} messages. + * @param message Environment message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EntityType message from the specified reader or buffer. + * Decodes an Environment message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EntityType + * @returns Environment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.EntityType; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Environment; /** - * Decodes an EntityType message from the specified reader or buffer, length delimited. + * Decodes an Environment message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EntityType + * @returns Environment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.EntityType; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Environment; /** - * Verifies an EntityType message. + * Verifies an Environment message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an EntityType message from a plain object. Also converts values to their respective internal types. + * Creates an Environment message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EntityType + * @returns Environment */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.EntityType; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Environment; /** - * Creates a plain object from an EntityType message. Also converts values to other types if specified. - * @param message EntityType + * Creates a plain object from an Environment message. Also converts values to other types if specified. + * @param message Environment * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.EntityType, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Environment, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EntityType to JSON. + * Converts this Environment to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace EntityType { - - /** Kind enum. */ - enum Kind { - KIND_UNSPECIFIED = 0, - KIND_MAP = 1, - KIND_LIST = 2, - KIND_REGEXP = 3 - } - - /** AutoExpansionMode enum. */ - enum AutoExpansionMode { - AUTO_EXPANSION_MODE_UNSPECIFIED = 0, - AUTO_EXPANSION_MODE_DEFAULT = 1 - } - - /** Properties of an Entity. */ - interface IEntity { + namespace Environment { - /** Entity value */ - value?: (string|null); + /** Properties of a VersionConfig. */ + interface IVersionConfig { - /** Entity synonyms */ - synonyms?: (string[]|null); + /** VersionConfig version */ + version?: (string|null); } - /** Represents an Entity. */ - class Entity implements IEntity { + /** Represents a VersionConfig. */ + class VersionConfig implements IVersionConfig { /** - * Constructs a new Entity. + * Constructs a new VersionConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity); - - /** Entity value. */ - public value: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig); - /** Entity synonyms. */ - public synonyms: string[]; + /** VersionConfig version. */ + public version: string; /** - * Creates a new Entity instance using the specified properties. + * Creates a new VersionConfig instance using the specified properties. * @param [properties] Properties to set - * @returns Entity instance + * @returns VersionConfig instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity): google.cloud.dialogflow.cx.v3beta1.EntityType.Entity; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig): google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig; /** - * Encodes the specified Entity message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.verify|verify} messages. - * @param message Entity message or plain object to encode + * Encodes the specified VersionConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.verify|verify} messages. + * @param message VersionConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Entity message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.verify|verify} messages. - * @param message Entity message or plain object to encode + * Encodes the specified VersionConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.verify|verify} messages. + * @param message VersionConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Entity message from the specified reader or buffer. + * Decodes a VersionConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Entity + * @returns VersionConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.EntityType.Entity; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig; /** - * Decodes an Entity message from the specified reader or buffer, length delimited. + * Decodes a VersionConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Entity + * @returns VersionConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.EntityType.Entity; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig; /** - * Verifies an Entity message. + * Verifies a VersionConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an Entity message from a plain object. Also converts values to their respective internal types. + * Creates a VersionConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Entity + * @returns VersionConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.EntityType.Entity; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig; /** - * Creates a plain object from an Entity message. Also converts values to other types if specified. - * @param message Entity + * Creates a plain object from a VersionConfig message. Also converts values to other types if specified. + * @param message VersionConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.EntityType.Entity, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Entity to JSON. + * Converts this VersionConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ExcludedPhrase. */ - interface IExcludedPhrase { + /** Properties of a TestCasesConfig. */ + interface ITestCasesConfig { - /** ExcludedPhrase value */ - value?: (string|null); + /** TestCasesConfig testCases */ + testCases?: (string[]|null); + + /** TestCasesConfig enableContinuousRun */ + enableContinuousRun?: (boolean|null); + + /** TestCasesConfig enablePredeploymentRun */ + enablePredeploymentRun?: (boolean|null); } - /** Represents an ExcludedPhrase. */ - class ExcludedPhrase implements IExcludedPhrase { + /** Represents a TestCasesConfig. */ + class TestCasesConfig implements ITestCasesConfig { /** - * Constructs a new ExcludedPhrase. + * Constructs a new TestCasesConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig); - /** ExcludedPhrase value. */ - public value: string; + /** TestCasesConfig testCases. */ + public testCases: string[]; + + /** TestCasesConfig enableContinuousRun. */ + public enableContinuousRun: boolean; + + /** TestCasesConfig enablePredeploymentRun. */ + public enablePredeploymentRun: boolean; /** - * Creates a new ExcludedPhrase instance using the specified properties. + * Creates a new TestCasesConfig instance using the specified properties. * @param [properties] Properties to set - * @returns ExcludedPhrase instance + * @returns TestCasesConfig instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase): google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig): google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig; /** - * Encodes the specified ExcludedPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.verify|verify} messages. - * @param message ExcludedPhrase message or plain object to encode + * Encodes the specified TestCasesConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.verify|verify} messages. + * @param message TestCasesConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExcludedPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.verify|verify} messages. - * @param message ExcludedPhrase message or plain object to encode + * Encodes the specified TestCasesConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.verify|verify} messages. + * @param message TestCasesConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExcludedPhrase message from the specified reader or buffer. + * Decodes a TestCasesConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExcludedPhrase + * @returns TestCasesConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig; /** - * Decodes an ExcludedPhrase message from the specified reader or buffer, length delimited. + * Decodes a TestCasesConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExcludedPhrase + * @returns TestCasesConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig; /** - * Verifies an ExcludedPhrase message. + * Verifies a TestCasesConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ExcludedPhrase message from a plain object. Also converts values to their respective internal types. + * Creates a TestCasesConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExcludedPhrase + * @returns TestCasesConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig; /** - * Creates a plain object from an ExcludedPhrase message. Also converts values to other types if specified. - * @param message ExcludedPhrase + * Creates a plain object from a TestCasesConfig message. Also converts values to other types if specified. + * @param message TestCasesConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExcludedPhrase to JSON. + * Converts this TestCasesConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } } - /** Properties of a ListEntityTypesRequest. */ - interface IListEntityTypesRequest { + /** Properties of a ListEnvironmentsRequest. */ + interface IListEnvironmentsRequest { - /** ListEntityTypesRequest parent */ + /** ListEnvironmentsRequest parent */ parent?: (string|null); - /** ListEntityTypesRequest languageCode */ - languageCode?: (string|null); - - /** ListEntityTypesRequest pageSize */ + /** ListEnvironmentsRequest pageSize */ pageSize?: (number|null); - /** ListEntityTypesRequest pageToken */ + /** ListEnvironmentsRequest pageToken */ pageToken?: (string|null); } - /** Represents a ListEntityTypesRequest. */ - class ListEntityTypesRequest implements IListEntityTypesRequest { + /** Represents a ListEnvironmentsRequest. */ + class ListEnvironmentsRequest implements IListEnvironmentsRequest { /** - * Constructs a new ListEntityTypesRequest. + * Constructs a new ListEnvironmentsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest); - /** ListEntityTypesRequest parent. */ + /** ListEnvironmentsRequest parent. */ public parent: string; - /** ListEntityTypesRequest languageCode. */ - public languageCode: string; - - /** ListEntityTypesRequest pageSize. */ + /** ListEnvironmentsRequest pageSize. */ public pageSize: number; - /** ListEntityTypesRequest pageToken. */ + /** ListEnvironmentsRequest pageToken. */ public pageToken: string; /** - * Creates a new ListEntityTypesRequest instance using the specified properties. + * Creates a new ListEnvironmentsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListEntityTypesRequest instance + * @returns ListEnvironmentsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest; /** - * Encodes the specified ListEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest.verify|verify} messages. - * @param message ListEntityTypesRequest message or plain object to encode + * Encodes the specified ListEnvironmentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest.verify|verify} messages. + * @param message ListEnvironmentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest.verify|verify} messages. - * @param message ListEntityTypesRequest message or plain object to encode + * Encodes the specified ListEnvironmentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest.verify|verify} messages. + * @param message ListEnvironmentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListEntityTypesRequest message from the specified reader or buffer. + * Decodes a ListEnvironmentsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListEntityTypesRequest + * @returns ListEnvironmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest; /** - * Decodes a ListEntityTypesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListEnvironmentsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListEntityTypesRequest + * @returns ListEnvironmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest; /** - * Verifies a ListEntityTypesRequest message. + * Verifies a ListEnvironmentsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListEntityTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListEnvironmentsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListEntityTypesRequest + * @returns ListEnvironmentsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest; /** - * Creates a plain object from a ListEntityTypesRequest message. Also converts values to other types if specified. - * @param message ListEntityTypesRequest + * Creates a plain object from a ListEnvironmentsRequest message. Also converts values to other types if specified. + * @param message ListEnvironmentsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListEntityTypesRequest to JSON. + * Converts this ListEnvironmentsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListEntityTypesResponse. */ - interface IListEntityTypesResponse { + /** Properties of a ListEnvironmentsResponse. */ + interface IListEnvironmentsResponse { - /** ListEntityTypesResponse entityTypes */ - entityTypes?: (google.cloud.dialogflow.cx.v3beta1.IEntityType[]|null); + /** ListEnvironmentsResponse environments */ + environments?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment[]|null); - /** ListEntityTypesResponse nextPageToken */ + /** ListEnvironmentsResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a ListEntityTypesResponse. */ - class ListEntityTypesResponse implements IListEntityTypesResponse { + /** Represents a ListEnvironmentsResponse. */ + class ListEnvironmentsResponse implements IListEnvironmentsResponse { /** - * Constructs a new ListEntityTypesResponse. + * Constructs a new ListEnvironmentsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse); - /** ListEntityTypesResponse entityTypes. */ - public entityTypes: google.cloud.dialogflow.cx.v3beta1.IEntityType[]; + /** ListEnvironmentsResponse environments. */ + public environments: google.cloud.dialogflow.cx.v3beta1.IEnvironment[]; - /** ListEntityTypesResponse nextPageToken. */ + /** ListEnvironmentsResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new ListEntityTypesResponse instance using the specified properties. + * Creates a new ListEnvironmentsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListEntityTypesResponse instance + * @returns ListEnvironmentsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse; /** - * Encodes the specified ListEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse.verify|verify} messages. - * @param message ListEntityTypesResponse message or plain object to encode + * Encodes the specified ListEnvironmentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse.verify|verify} messages. + * @param message ListEnvironmentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse.verify|verify} messages. - * @param message ListEntityTypesResponse message or plain object to encode + * Encodes the specified ListEnvironmentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse.verify|verify} messages. + * @param message ListEnvironmentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListEntityTypesResponse message from the specified reader or buffer. + * Decodes a ListEnvironmentsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListEntityTypesResponse + * @returns ListEnvironmentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse; /** - * Decodes a ListEntityTypesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListEnvironmentsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListEntityTypesResponse + * @returns ListEnvironmentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse; /** - * Verifies a ListEntityTypesResponse message. + * Verifies a ListEnvironmentsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListEntityTypesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListEnvironmentsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListEntityTypesResponse + * @returns ListEnvironmentsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse; /** - * Creates a plain object from a ListEntityTypesResponse message. Also converts values to other types if specified. - * @param message ListEntityTypesResponse + * Creates a plain object from a ListEnvironmentsResponse message. Also converts values to other types if specified. + * @param message ListEnvironmentsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListEntityTypesResponse to JSON. + * Converts this ListEnvironmentsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetEntityTypeRequest. */ - interface IGetEntityTypeRequest { + /** Properties of a GetEnvironmentRequest. */ + interface IGetEnvironmentRequest { - /** GetEntityTypeRequest name */ + /** GetEnvironmentRequest name */ name?: (string|null); - - /** GetEntityTypeRequest languageCode */ - languageCode?: (string|null); } - /** Represents a GetEntityTypeRequest. */ - class GetEntityTypeRequest implements IGetEntityTypeRequest { + /** Represents a GetEnvironmentRequest. */ + class GetEnvironmentRequest implements IGetEnvironmentRequest { /** - * Constructs a new GetEntityTypeRequest. + * Constructs a new GetEnvironmentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest); - /** GetEntityTypeRequest name. */ + /** GetEnvironmentRequest name. */ public name: string; - /** GetEntityTypeRequest languageCode. */ - public languageCode: string; - /** - * Creates a new GetEntityTypeRequest instance using the specified properties. + * Creates a new GetEnvironmentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetEntityTypeRequest instance + * @returns GetEnvironmentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest): google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest; /** - * Encodes the specified GetEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest.verify|verify} messages. - * @param message GetEntityTypeRequest message or plain object to encode + * Encodes the specified GetEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest.verify|verify} messages. + * @param message GetEnvironmentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest.verify|verify} messages. - * @param message GetEntityTypeRequest message or plain object to encode + * Encodes the specified GetEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest.verify|verify} messages. + * @param message GetEnvironmentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetEntityTypeRequest message from the specified reader or buffer. + * Decodes a GetEnvironmentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetEntityTypeRequest + * @returns GetEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest; /** - * Decodes a GetEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a GetEnvironmentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetEntityTypeRequest + * @returns GetEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest; /** - * Verifies a GetEntityTypeRequest message. + * Verifies a GetEnvironmentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetEnvironmentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetEntityTypeRequest + * @returns GetEnvironmentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest; /** - * Creates a plain object from a GetEntityTypeRequest message. Also converts values to other types if specified. - * @param message GetEntityTypeRequest + * Creates a plain object from a GetEnvironmentRequest message. Also converts values to other types if specified. + * @param message GetEnvironmentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetEntityTypeRequest to JSON. + * Converts this GetEnvironmentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateEntityTypeRequest. */ - interface ICreateEntityTypeRequest { - - /** CreateEntityTypeRequest parent */ - parent?: (string|null); + /** Properties of a CreateEnvironmentRequest. */ + interface ICreateEnvironmentRequest { - /** CreateEntityTypeRequest entityType */ - entityType?: (google.cloud.dialogflow.cx.v3beta1.IEntityType|null); + /** CreateEnvironmentRequest parent */ + parent?: (string|null); - /** CreateEntityTypeRequest languageCode */ - languageCode?: (string|null); + /** CreateEnvironmentRequest environment */ + environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); } - /** Represents a CreateEntityTypeRequest. */ - class CreateEntityTypeRequest implements ICreateEntityTypeRequest { + /** Represents a CreateEnvironmentRequest. */ + class CreateEnvironmentRequest implements ICreateEnvironmentRequest { /** - * Constructs a new CreateEntityTypeRequest. + * Constructs a new CreateEnvironmentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest); - /** CreateEntityTypeRequest parent. */ + /** CreateEnvironmentRequest parent. */ public parent: string; - /** CreateEntityTypeRequest entityType. */ - public entityType?: (google.cloud.dialogflow.cx.v3beta1.IEntityType|null); - - /** CreateEntityTypeRequest languageCode. */ - public languageCode: string; + /** CreateEnvironmentRequest environment. */ + public environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); /** - * Creates a new CreateEntityTypeRequest instance using the specified properties. + * Creates a new CreateEnvironmentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateEntityTypeRequest instance + * @returns CreateEnvironmentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest): google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest; /** - * Encodes the specified CreateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest.verify|verify} messages. - * @param message CreateEntityTypeRequest message or plain object to encode + * Encodes the specified CreateEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest.verify|verify} messages. + * @param message CreateEnvironmentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest.verify|verify} messages. - * @param message CreateEntityTypeRequest message or plain object to encode + * Encodes the specified CreateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest.verify|verify} messages. + * @param message CreateEnvironmentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateEntityTypeRequest message from the specified reader or buffer. + * Decodes a CreateEnvironmentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateEntityTypeRequest + * @returns CreateEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest; /** - * Decodes a CreateEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateEnvironmentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateEntityTypeRequest + * @returns CreateEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest; /** - * Verifies a CreateEntityTypeRequest message. + * Verifies a CreateEnvironmentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateEntityTypeRequest + * @returns CreateEnvironmentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest; /** - * Creates a plain object from a CreateEntityTypeRequest message. Also converts values to other types if specified. - * @param message CreateEntityTypeRequest + * Creates a plain object from a CreateEnvironmentRequest message. Also converts values to other types if specified. + * @param message CreateEnvironmentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateEntityTypeRequest to JSON. + * Converts this CreateEnvironmentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateEntityTypeRequest. */ - interface IUpdateEntityTypeRequest { - - /** UpdateEntityTypeRequest entityType */ - entityType?: (google.cloud.dialogflow.cx.v3beta1.IEntityType|null); + /** Properties of an UpdateEnvironmentRequest. */ + interface IUpdateEnvironmentRequest { - /** UpdateEntityTypeRequest languageCode */ - languageCode?: (string|null); + /** UpdateEnvironmentRequest environment */ + environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); - /** UpdateEntityTypeRequest updateMask */ + /** UpdateEnvironmentRequest updateMask */ updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents an UpdateEntityTypeRequest. */ - class UpdateEntityTypeRequest implements IUpdateEntityTypeRequest { + /** Represents an UpdateEnvironmentRequest. */ + class UpdateEnvironmentRequest implements IUpdateEnvironmentRequest { /** - * Constructs a new UpdateEntityTypeRequest. + * Constructs a new UpdateEnvironmentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest); - - /** UpdateEntityTypeRequest entityType. */ - public entityType?: (google.cloud.dialogflow.cx.v3beta1.IEntityType|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest); - /** UpdateEntityTypeRequest languageCode. */ - public languageCode: string; + /** UpdateEnvironmentRequest environment. */ + public environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); - /** UpdateEntityTypeRequest updateMask. */ + /** UpdateEnvironmentRequest updateMask. */ public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new UpdateEntityTypeRequest instance using the specified properties. + * Creates a new UpdateEnvironmentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateEntityTypeRequest instance + * @returns UpdateEnvironmentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest): google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest; /** - * Encodes the specified UpdateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest.verify|verify} messages. - * @param message UpdateEntityTypeRequest message or plain object to encode + * Encodes the specified UpdateEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest.verify|verify} messages. + * @param message UpdateEnvironmentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest.verify|verify} messages. - * @param message UpdateEntityTypeRequest message or plain object to encode + * Encodes the specified UpdateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest.verify|verify} messages. + * @param message UpdateEnvironmentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer. + * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateEntityTypeRequest + * @returns UpdateEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest; /** - * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateEntityTypeRequest + * @returns UpdateEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest; /** - * Verifies an UpdateEntityTypeRequest message. + * Verifies an UpdateEnvironmentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateEntityTypeRequest + * @returns UpdateEnvironmentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest; /** - * Creates a plain object from an UpdateEntityTypeRequest message. Also converts values to other types if specified. - * @param message UpdateEntityTypeRequest + * Creates a plain object from an UpdateEnvironmentRequest message. Also converts values to other types if specified. + * @param message UpdateEnvironmentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateEntityTypeRequest to JSON. + * Converts this UpdateEnvironmentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteEntityTypeRequest. */ - interface IDeleteEntityTypeRequest { + /** Properties of a DeleteEnvironmentRequest. */ + interface IDeleteEnvironmentRequest { - /** DeleteEntityTypeRequest name */ + /** DeleteEnvironmentRequest name */ name?: (string|null); - - /** DeleteEntityTypeRequest force */ - force?: (boolean|null); } - /** Represents a DeleteEntityTypeRequest. */ - class DeleteEntityTypeRequest implements IDeleteEntityTypeRequest { + /** Represents a DeleteEnvironmentRequest. */ + class DeleteEnvironmentRequest implements IDeleteEnvironmentRequest { /** - * Constructs a new DeleteEntityTypeRequest. + * Constructs a new DeleteEnvironmentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest); - /** DeleteEntityTypeRequest name. */ + /** DeleteEnvironmentRequest name. */ public name: string; - /** DeleteEntityTypeRequest force. */ - public force: boolean; - /** - * Creates a new DeleteEntityTypeRequest instance using the specified properties. + * Creates a new DeleteEnvironmentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteEntityTypeRequest instance + * @returns DeleteEnvironmentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest): google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest; /** - * Encodes the specified DeleteEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest.verify|verify} messages. - * @param message DeleteEntityTypeRequest message or plain object to encode + * Encodes the specified DeleteEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest.verify|verify} messages. + * @param message DeleteEnvironmentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest.verify|verify} messages. - * @param message DeleteEntityTypeRequest message or plain object to encode + * Encodes the specified DeleteEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest.verify|verify} messages. + * @param message DeleteEnvironmentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer. + * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteEntityTypeRequest + * @returns DeleteEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest; /** - * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteEntityTypeRequest + * @returns DeleteEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest; /** - * Verifies a DeleteEntityTypeRequest message. + * Verifies a DeleteEnvironmentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteEnvironmentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteEntityTypeRequest + * @returns DeleteEnvironmentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest; /** - * Creates a plain object from a DeleteEntityTypeRequest message. Also converts values to other types if specified. - * @param message DeleteEntityTypeRequest + * Creates a plain object from a DeleteEnvironmentRequest message. Also converts values to other types if specified. + * @param message DeleteEnvironmentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteEntityTypeRequest to JSON. + * Converts this DeleteEnvironmentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents an Environments */ - class Environments extends $protobuf.rpc.Service { + /** Properties of a LookupEnvironmentHistoryRequest. */ + interface ILookupEnvironmentHistoryRequest { - /** - * Constructs a new Environments service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** LookupEnvironmentHistoryRequest name */ + name?: (string|null); - /** - * Creates new Environments service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Environments; + /** LookupEnvironmentHistoryRequest pageSize */ + pageSize?: (number|null); - /** - * Calls ListEnvironments. - * @param request ListEnvironmentsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListEnvironmentsResponse - */ - public listEnvironments(request: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.ListEnvironmentsCallback): void; + /** LookupEnvironmentHistoryRequest pageToken */ + pageToken?: (string|null); + } - /** - * Calls ListEnvironments. - * @param request ListEnvironmentsRequest message or plain object - * @returns Promise - */ - public listEnvironments(request: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest): Promise; + /** Represents a LookupEnvironmentHistoryRequest. */ + class LookupEnvironmentHistoryRequest implements ILookupEnvironmentHistoryRequest { /** - * Calls GetEnvironment. - * @param request GetEnvironmentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Environment + * Constructs a new LookupEnvironmentHistoryRequest. + * @param [properties] Properties to set */ - public getEnvironment(request: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.GetEnvironmentCallback): void; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest); - /** - * Calls GetEnvironment. - * @param request GetEnvironmentRequest message or plain object - * @returns Promise - */ - public getEnvironment(request: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest): Promise; + /** LookupEnvironmentHistoryRequest name. */ + public name: string; - /** - * Calls CreateEnvironment. - * @param request CreateEnvironmentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public createEnvironment(request: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.CreateEnvironmentCallback): void; + /** LookupEnvironmentHistoryRequest pageSize. */ + public pageSize: number; - /** - * Calls CreateEnvironment. - * @param request CreateEnvironmentRequest message or plain object - * @returns Promise - */ - public createEnvironment(request: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest): Promise; + /** LookupEnvironmentHistoryRequest pageToken. */ + public pageToken: string; /** - * Calls UpdateEnvironment. - * @param request UpdateEnvironmentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a new LookupEnvironmentHistoryRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns LookupEnvironmentHistoryRequest instance */ - public updateEnvironment(request: google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.UpdateEnvironmentCallback): void; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest; /** - * Calls UpdateEnvironment. - * @param request UpdateEnvironmentRequest message or plain object - * @returns Promise + * Encodes the specified LookupEnvironmentHistoryRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest.verify|verify} messages. + * @param message LookupEnvironmentHistoryRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public updateEnvironment(request: google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest): Promise; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteEnvironment. - * @param request DeleteEnvironmentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Encodes the specified LookupEnvironmentHistoryRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest.verify|verify} messages. + * @param message LookupEnvironmentHistoryRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteEnvironment(request: google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.DeleteEnvironmentCallback): void; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteEnvironment. - * @param request DeleteEnvironmentRequest message or plain object - * @returns Promise + * Decodes a LookupEnvironmentHistoryRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LookupEnvironmentHistoryRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteEnvironment(request: google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest; /** - * Calls LookupEnvironmentHistory. - * @param request LookupEnvironmentHistoryRequest message or plain object - * @param callback Node-style callback called with the error, if any, and LookupEnvironmentHistoryResponse + * Decodes a LookupEnvironmentHistoryRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LookupEnvironmentHistoryRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public lookupEnvironmentHistory(request: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.LookupEnvironmentHistoryCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest; /** - * Calls LookupEnvironmentHistory. - * @param request LookupEnvironmentHistoryRequest message or plain object - * @returns Promise + * Verifies a LookupEnvironmentHistoryRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public lookupEnvironmentHistory(request: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls RunContinuousTest. - * @param request RunContinuousTestRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a LookupEnvironmentHistoryRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LookupEnvironmentHistoryRequest */ - public runContinuousTest(request: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.RunContinuousTestCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest; /** - * Calls RunContinuousTest. - * @param request RunContinuousTestRequest message or plain object - * @returns Promise + * Creates a plain object from a LookupEnvironmentHistoryRequest message. Also converts values to other types if specified. + * @param message LookupEnvironmentHistoryRequest + * @param [options] Conversion options + * @returns Plain object */ - public runContinuousTest(request: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest): Promise; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ListContinuousTestResults. - * @param request ListContinuousTestResultsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListContinuousTestResultsResponse + * Converts this LookupEnvironmentHistoryRequest to JSON. + * @returns JSON object */ - public listContinuousTestResults(request: google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.ListContinuousTestResultsCallback): void; + public toJSON(): { [k: string]: any }; + } - /** - * Calls ListContinuousTestResults. - * @param request ListContinuousTestResultsRequest message or plain object - * @returns Promise - */ - public listContinuousTestResults(request: google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest): Promise; + /** Properties of a LookupEnvironmentHistoryResponse. */ + interface ILookupEnvironmentHistoryResponse { - /** - * Calls DeployFlow. - * @param request DeployFlowRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deployFlow(request: google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.DeployFlowCallback): void; + /** LookupEnvironmentHistoryResponse environments */ + environments?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment[]|null); + + /** LookupEnvironmentHistoryResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a LookupEnvironmentHistoryResponse. */ + class LookupEnvironmentHistoryResponse implements ILookupEnvironmentHistoryResponse { /** - * Calls DeployFlow. - * @param request DeployFlowRequest message or plain object - * @returns Promise + * Constructs a new LookupEnvironmentHistoryResponse. + * @param [properties] Properties to set */ - public deployFlow(request: google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest): Promise; - } + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse); - namespace Environments { + /** LookupEnvironmentHistoryResponse environments. */ + public environments: google.cloud.dialogflow.cx.v3beta1.IEnvironment[]; + + /** LookupEnvironmentHistoryResponse nextPageToken. */ + public nextPageToken: string; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#listEnvironments}. - * @param error Error, if any - * @param [response] ListEnvironmentsResponse + * Creates a new LookupEnvironmentHistoryResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns LookupEnvironmentHistoryResponse instance */ - type ListEnvironmentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse) => void; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#getEnvironment}. - * @param error Error, if any - * @param [response] Environment + * Encodes the specified LookupEnvironmentHistoryResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse.verify|verify} messages. + * @param message LookupEnvironmentHistoryResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type GetEnvironmentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Environment) => void; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#createEnvironment}. - * @param error Error, if any - * @param [response] Operation + * Encodes the specified LookupEnvironmentHistoryResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse.verify|verify} messages. + * @param message LookupEnvironmentHistoryResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type CreateEnvironmentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#updateEnvironment}. - * @param error Error, if any - * @param [response] Operation + * Decodes a LookupEnvironmentHistoryResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LookupEnvironmentHistoryResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type UpdateEnvironmentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#deleteEnvironment}. - * @param error Error, if any - * @param [response] Empty + * Decodes a LookupEnvironmentHistoryResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LookupEnvironmentHistoryResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type DeleteEnvironmentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#lookupEnvironmentHistory}. - * @param error Error, if any - * @param [response] LookupEnvironmentHistoryResponse + * Verifies a LookupEnvironmentHistoryResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type LookupEnvironmentHistoryCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#runContinuousTest}. - * @param error Error, if any - * @param [response] Operation + * Creates a LookupEnvironmentHistoryResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LookupEnvironmentHistoryResponse */ - type RunContinuousTestCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#listContinuousTestResults}. - * @param error Error, if any - * @param [response] ListContinuousTestResultsResponse + * Creates a plain object from a LookupEnvironmentHistoryResponse message. Also converts values to other types if specified. + * @param message LookupEnvironmentHistoryResponse + * @param [options] Conversion options + * @returns Plain object */ - type ListContinuousTestResultsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse) => void; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#deployFlow}. - * @param error Error, if any - * @param [response] Operation + * Converts this LookupEnvironmentHistoryResponse to JSON. + * @returns JSON object */ - type DeployFlowCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public toJSON(): { [k: string]: any }; } - /** Properties of an Environment. */ - interface IEnvironment { + /** Properties of a ContinuousTestResult. */ + interface IContinuousTestResult { - /** Environment name */ + /** ContinuousTestResult name */ name?: (string|null); - /** Environment displayName */ - displayName?: (string|null); - - /** Environment description */ - description?: (string|null); - - /** Environment versionConfigs */ - versionConfigs?: (google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig[]|null); + /** ContinuousTestResult result */ + result?: (google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult|keyof typeof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult|null); - /** Environment updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** ContinuousTestResult testCaseResults */ + testCaseResults?: (string[]|null); - /** Environment testCasesConfig */ - testCasesConfig?: (google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig|null); + /** ContinuousTestResult runTime */ + runTime?: (google.protobuf.ITimestamp|null); } - /** Represents an Environment. */ - class Environment implements IEnvironment { + /** Represents a ContinuousTestResult. */ + class ContinuousTestResult implements IContinuousTestResult { /** - * Constructs a new Environment. + * Constructs a new ContinuousTestResult. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IEnvironment); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult); - /** Environment name. */ + /** ContinuousTestResult name. */ public name: string; - /** Environment displayName. */ - public displayName: string; - - /** Environment description. */ - public description: string; - - /** Environment versionConfigs. */ - public versionConfigs: google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig[]; + /** ContinuousTestResult result. */ + public result: (google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult|keyof typeof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult); - /** Environment updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** ContinuousTestResult testCaseResults. */ + public testCaseResults: string[]; - /** Environment testCasesConfig. */ - public testCasesConfig?: (google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig|null); + /** ContinuousTestResult runTime. */ + public runTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new Environment instance using the specified properties. + * Creates a new ContinuousTestResult instance using the specified properties. * @param [properties] Properties to set - * @returns Environment instance + * @returns ContinuousTestResult instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IEnvironment): google.cloud.dialogflow.cx.v3beta1.Environment; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult): google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult; /** - * Encodes the specified Environment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.verify|verify} messages. - * @param message Environment message or plain object to encode + * Encodes the specified ContinuousTestResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.verify|verify} messages. + * @param message ContinuousTestResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Environment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.verify|verify} messages. - * @param message Environment message or plain object to encode + * Encodes the specified ContinuousTestResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.verify|verify} messages. + * @param message ContinuousTestResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Environment message from the specified reader or buffer. + * Decodes a ContinuousTestResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Environment + * @returns ContinuousTestResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Environment; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult; /** - * Decodes an Environment message from the specified reader or buffer, length delimited. + * Decodes a ContinuousTestResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Environment + * @returns ContinuousTestResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Environment; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult; /** - * Verifies an Environment message. + * Verifies a ContinuousTestResult message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an Environment message from a plain object. Also converts values to their respective internal types. + * Creates a ContinuousTestResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Environment + * @returns ContinuousTestResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Environment; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult; /** - * Creates a plain object from an Environment message. Also converts values to other types if specified. - * @param message Environment + * Creates a plain object from a ContinuousTestResult message. Also converts values to other types if specified. + * @param message ContinuousTestResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Environment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Environment to JSON. + * Converts this ContinuousTestResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Environment { - - /** Properties of a VersionConfig. */ - interface IVersionConfig { - - /** VersionConfig version */ - version?: (string|null); - } - - /** Represents a VersionConfig. */ - class VersionConfig implements IVersionConfig { - - /** - * Constructs a new VersionConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig); - - /** VersionConfig version. */ - public version: string; - - /** - * Creates a new VersionConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns VersionConfig instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig): google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig; - - /** - * Encodes the specified VersionConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.verify|verify} messages. - * @param message VersionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified VersionConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.verify|verify} messages. - * @param message VersionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VersionConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VersionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig; - - /** - * Decodes a VersionConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VersionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig; - - /** - * Verifies a VersionConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a VersionConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VersionConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig; - - /** - * Creates a plain object from a VersionConfig message. Also converts values to other types if specified. - * @param message VersionConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this VersionConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a TestCasesConfig. */ - interface ITestCasesConfig { - - /** TestCasesConfig testCases */ - testCases?: (string[]|null); - - /** TestCasesConfig enableContinuousRun */ - enableContinuousRun?: (boolean|null); - - /** TestCasesConfig enablePredeploymentRun */ - enablePredeploymentRun?: (boolean|null); - } - - /** Represents a TestCasesConfig. */ - class TestCasesConfig implements ITestCasesConfig { - - /** - * Constructs a new TestCasesConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig); - - /** TestCasesConfig testCases. */ - public testCases: string[]; - - /** TestCasesConfig enableContinuousRun. */ - public enableContinuousRun: boolean; - - /** TestCasesConfig enablePredeploymentRun. */ - public enablePredeploymentRun: boolean; - - /** - * Creates a new TestCasesConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns TestCasesConfig instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig): google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig; - - /** - * Encodes the specified TestCasesConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.verify|verify} messages. - * @param message TestCasesConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TestCasesConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.verify|verify} messages. - * @param message TestCasesConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TestCasesConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TestCasesConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig; - - /** - * Decodes a TestCasesConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TestCasesConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig; - - /** - * Verifies a TestCasesConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a TestCasesConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TestCasesConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig; - - /** - * Creates a plain object from a TestCasesConfig message. Also converts values to other types if specified. - * @param message TestCasesConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + namespace ContinuousTestResult { - /** - * Converts this TestCasesConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** AggregatedTestResult enum. */ + enum AggregatedTestResult { + AGGREGATED_TEST_RESULT_UNSPECIFIED = 0, + PASSED = 1, + FAILED = 2 } } - /** Properties of a ListEnvironmentsRequest. */ - interface IListEnvironmentsRequest { - - /** ListEnvironmentsRequest parent */ - parent?: (string|null); - - /** ListEnvironmentsRequest pageSize */ - pageSize?: (number|null); + /** Properties of a RunContinuousTestRequest. */ + interface IRunContinuousTestRequest { - /** ListEnvironmentsRequest pageToken */ - pageToken?: (string|null); + /** RunContinuousTestRequest environment */ + environment?: (string|null); } - /** Represents a ListEnvironmentsRequest. */ - class ListEnvironmentsRequest implements IListEnvironmentsRequest { + /** Represents a RunContinuousTestRequest. */ + class RunContinuousTestRequest implements IRunContinuousTestRequest { /** - * Constructs a new ListEnvironmentsRequest. + * Constructs a new RunContinuousTestRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest); - - /** ListEnvironmentsRequest parent. */ - public parent: string; - - /** ListEnvironmentsRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest); - /** ListEnvironmentsRequest pageToken. */ - public pageToken: string; + /** RunContinuousTestRequest environment. */ + public environment: string; /** - * Creates a new ListEnvironmentsRequest instance using the specified properties. + * Creates a new RunContinuousTestRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListEnvironmentsRequest instance + * @returns RunContinuousTestRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest; /** - * Encodes the specified ListEnvironmentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest.verify|verify} messages. - * @param message ListEnvironmentsRequest message or plain object to encode + * Encodes the specified RunContinuousTestRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest.verify|verify} messages. + * @param message RunContinuousTestRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListEnvironmentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest.verify|verify} messages. - * @param message ListEnvironmentsRequest message or plain object to encode + * Encodes the specified RunContinuousTestRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest.verify|verify} messages. + * @param message RunContinuousTestRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListEnvironmentsRequest message from the specified reader or buffer. + * Decodes a RunContinuousTestRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListEnvironmentsRequest + * @returns RunContinuousTestRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest; /** - * Decodes a ListEnvironmentsRequest message from the specified reader or buffer, length delimited. + * Decodes a RunContinuousTestRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListEnvironmentsRequest + * @returns RunContinuousTestRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest; /** - * Verifies a ListEnvironmentsRequest message. + * Verifies a RunContinuousTestRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListEnvironmentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RunContinuousTestRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListEnvironmentsRequest + * @returns RunContinuousTestRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest; /** - * Creates a plain object from a ListEnvironmentsRequest message. Also converts values to other types if specified. - * @param message ListEnvironmentsRequest + * Creates a plain object from a RunContinuousTestRequest message. Also converts values to other types if specified. + * @param message RunContinuousTestRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListEnvironmentsRequest to JSON. + * Converts this RunContinuousTestRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListEnvironmentsResponse. */ - interface IListEnvironmentsResponse { - - /** ListEnvironmentsResponse environments */ - environments?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment[]|null); + /** Properties of a RunContinuousTestResponse. */ + interface IRunContinuousTestResponse { - /** ListEnvironmentsResponse nextPageToken */ - nextPageToken?: (string|null); + /** RunContinuousTestResponse continuousTestResult */ + continuousTestResult?: (google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult|null); } - /** Represents a ListEnvironmentsResponse. */ - class ListEnvironmentsResponse implements IListEnvironmentsResponse { + /** Represents a RunContinuousTestResponse. */ + class RunContinuousTestResponse implements IRunContinuousTestResponse { /** - * Constructs a new ListEnvironmentsResponse. + * Constructs a new RunContinuousTestResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse); - - /** ListEnvironmentsResponse environments. */ - public environments: google.cloud.dialogflow.cx.v3beta1.IEnvironment[]; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestResponse); - /** ListEnvironmentsResponse nextPageToken. */ - public nextPageToken: string; + /** RunContinuousTestResponse continuousTestResult. */ + public continuousTestResult?: (google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult|null); /** - * Creates a new ListEnvironmentsResponse instance using the specified properties. + * Creates a new RunContinuousTestResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListEnvironmentsResponse instance + * @returns RunContinuousTestResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestResponse): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse; /** - * Encodes the specified ListEnvironmentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse.verify|verify} messages. - * @param message ListEnvironmentsResponse message or plain object to encode + * Encodes the specified RunContinuousTestResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse.verify|verify} messages. + * @param message RunContinuousTestResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListEnvironmentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse.verify|verify} messages. - * @param message ListEnvironmentsResponse message or plain object to encode + * Encodes the specified RunContinuousTestResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse.verify|verify} messages. + * @param message RunContinuousTestResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListEnvironmentsResponse message from the specified reader or buffer. + * Decodes a RunContinuousTestResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListEnvironmentsResponse + * @returns RunContinuousTestResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse; /** - * Decodes a ListEnvironmentsResponse message from the specified reader or buffer, length delimited. + * Decodes a RunContinuousTestResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListEnvironmentsResponse + * @returns RunContinuousTestResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse; /** - * Verifies a ListEnvironmentsResponse message. + * Verifies a RunContinuousTestResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListEnvironmentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RunContinuousTestResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListEnvironmentsResponse + * @returns RunContinuousTestResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse; /** - * Creates a plain object from a ListEnvironmentsResponse message. Also converts values to other types if specified. - * @param message ListEnvironmentsResponse + * Creates a plain object from a RunContinuousTestResponse message. Also converts values to other types if specified. + * @param message RunContinuousTestResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListEnvironmentsResponse to JSON. + * Converts this RunContinuousTestResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetEnvironmentRequest. */ - interface IGetEnvironmentRequest { + /** Properties of a RunContinuousTestMetadata. */ + interface IRunContinuousTestMetadata { - /** GetEnvironmentRequest name */ - name?: (string|null); + /** RunContinuousTestMetadata errors */ + errors?: (google.cloud.dialogflow.cx.v3beta1.ITestError[]|null); } - /** Represents a GetEnvironmentRequest. */ - class GetEnvironmentRequest implements IGetEnvironmentRequest { + /** Represents a RunContinuousTestMetadata. */ + class RunContinuousTestMetadata implements IRunContinuousTestMetadata { /** - * Constructs a new GetEnvironmentRequest. + * Constructs a new RunContinuousTestMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestMetadata); - /** GetEnvironmentRequest name. */ - public name: string; + /** RunContinuousTestMetadata errors. */ + public errors: google.cloud.dialogflow.cx.v3beta1.ITestError[]; /** - * Creates a new GetEnvironmentRequest instance using the specified properties. + * Creates a new RunContinuousTestMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns GetEnvironmentRequest instance + * @returns RunContinuousTestMetadata instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest): google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestMetadata): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata; /** - * Encodes the specified GetEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest.verify|verify} messages. - * @param message GetEnvironmentRequest message or plain object to encode + * Encodes the specified RunContinuousTestMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata.verify|verify} messages. + * @param message RunContinuousTestMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest.verify|verify} messages. - * @param message GetEnvironmentRequest message or plain object to encode + * Encodes the specified RunContinuousTestMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata.verify|verify} messages. + * @param message RunContinuousTestMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetEnvironmentRequest message from the specified reader or buffer. + * Decodes a RunContinuousTestMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetEnvironmentRequest + * @returns RunContinuousTestMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata; /** - * Decodes a GetEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes a RunContinuousTestMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetEnvironmentRequest + * @returns RunContinuousTestMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata; /** - * Verifies a GetEnvironmentRequest message. + * Verifies a RunContinuousTestMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RunContinuousTestMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetEnvironmentRequest + * @returns RunContinuousTestMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata; /** - * Creates a plain object from a GetEnvironmentRequest message. Also converts values to other types if specified. - * @param message GetEnvironmentRequest + * Creates a plain object from a RunContinuousTestMetadata message. Also converts values to other types if specified. + * @param message RunContinuousTestMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetEnvironmentRequest to JSON. + * Converts this RunContinuousTestMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateEnvironmentRequest. */ - interface ICreateEnvironmentRequest { + /** Properties of a ListContinuousTestResultsRequest. */ + interface IListContinuousTestResultsRequest { - /** CreateEnvironmentRequest parent */ + /** ListContinuousTestResultsRequest parent */ parent?: (string|null); - /** CreateEnvironmentRequest environment */ - environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); + /** ListContinuousTestResultsRequest pageSize */ + pageSize?: (number|null); + + /** ListContinuousTestResultsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a CreateEnvironmentRequest. */ - class CreateEnvironmentRequest implements ICreateEnvironmentRequest { + /** Represents a ListContinuousTestResultsRequest. */ + class ListContinuousTestResultsRequest implements IListContinuousTestResultsRequest { /** - * Constructs a new CreateEnvironmentRequest. + * Constructs a new ListContinuousTestResultsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest); - /** CreateEnvironmentRequest parent. */ + /** ListContinuousTestResultsRequest parent. */ public parent: string; - /** CreateEnvironmentRequest environment. */ - public environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); + /** ListContinuousTestResultsRequest pageSize. */ + public pageSize: number; + + /** ListContinuousTestResultsRequest pageToken. */ + public pageToken: string; /** - * Creates a new CreateEnvironmentRequest instance using the specified properties. + * Creates a new ListContinuousTestResultsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateEnvironmentRequest instance + * @returns ListContinuousTestResultsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest): google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest): google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest; /** - * Encodes the specified CreateEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest.verify|verify} messages. - * @param message CreateEnvironmentRequest message or plain object to encode + * Encodes the specified ListContinuousTestResultsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest.verify|verify} messages. + * @param message ListContinuousTestResultsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest.verify|verify} messages. - * @param message CreateEnvironmentRequest message or plain object to encode + * Encodes the specified ListContinuousTestResultsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest.verify|verify} messages. + * @param message ListContinuousTestResultsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateEnvironmentRequest message from the specified reader or buffer. + * Decodes a ListContinuousTestResultsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateEnvironmentRequest + * @returns ListContinuousTestResultsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest; /** - * Decodes a CreateEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes a ListContinuousTestResultsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateEnvironmentRequest + * @returns ListContinuousTestResultsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest; /** - * Verifies a CreateEnvironmentRequest message. + * Verifies a ListContinuousTestResultsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListContinuousTestResultsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateEnvironmentRequest + * @returns ListContinuousTestResultsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest; /** - * Creates a plain object from a CreateEnvironmentRequest message. Also converts values to other types if specified. - * @param message CreateEnvironmentRequest + * Creates a plain object from a ListContinuousTestResultsRequest message. Also converts values to other types if specified. + * @param message ListContinuousTestResultsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateEnvironmentRequest to JSON. + * Converts this ListContinuousTestResultsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateEnvironmentRequest. */ - interface IUpdateEnvironmentRequest { + /** Properties of a ListContinuousTestResultsResponse. */ + interface IListContinuousTestResultsResponse { - /** UpdateEnvironmentRequest environment */ - environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); + /** ListContinuousTestResultsResponse continuousTestResults */ + continuousTestResults?: (google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult[]|null); - /** UpdateEnvironmentRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** ListContinuousTestResultsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an UpdateEnvironmentRequest. */ - class UpdateEnvironmentRequest implements IUpdateEnvironmentRequest { + /** Represents a ListContinuousTestResultsResponse. */ + class ListContinuousTestResultsResponse implements IListContinuousTestResultsResponse { /** - * Constructs a new UpdateEnvironmentRequest. + * Constructs a new ListContinuousTestResultsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsResponse); - /** UpdateEnvironmentRequest environment. */ - public environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); + /** ListContinuousTestResultsResponse continuousTestResults. */ + public continuousTestResults: google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult[]; - /** UpdateEnvironmentRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** ListContinuousTestResultsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new UpdateEnvironmentRequest instance using the specified properties. + * Creates a new ListContinuousTestResultsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateEnvironmentRequest instance + * @returns ListContinuousTestResultsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest): google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsResponse): google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse; /** - * Encodes the specified UpdateEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest.verify|verify} messages. - * @param message UpdateEnvironmentRequest message or plain object to encode + * Encodes the specified ListContinuousTestResultsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse.verify|verify} messages. + * @param message ListContinuousTestResultsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest.verify|verify} messages. - * @param message UpdateEnvironmentRequest message or plain object to encode + * Encodes the specified ListContinuousTestResultsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse.verify|verify} messages. + * @param message ListContinuousTestResultsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer. + * Decodes a ListContinuousTestResultsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateEnvironmentRequest + * @returns ListContinuousTestResultsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse; /** - * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes a ListContinuousTestResultsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateEnvironmentRequest + * @returns ListContinuousTestResultsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse; /** - * Verifies an UpdateEnvironmentRequest message. + * Verifies a ListContinuousTestResultsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListContinuousTestResultsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateEnvironmentRequest + * @returns ListContinuousTestResultsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse; /** - * Creates a plain object from an UpdateEnvironmentRequest message. Also converts values to other types if specified. - * @param message UpdateEnvironmentRequest + * Creates a plain object from a ListContinuousTestResultsResponse message. Also converts values to other types if specified. + * @param message ListContinuousTestResultsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateEnvironmentRequest to JSON. + * Converts this ListContinuousTestResultsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteEnvironmentRequest. */ - interface IDeleteEnvironmentRequest { + /** Properties of a DeployFlowRequest. */ + interface IDeployFlowRequest { - /** DeleteEnvironmentRequest name */ - name?: (string|null); + /** DeployFlowRequest environment */ + environment?: (string|null); + + /** DeployFlowRequest flowVersion */ + flowVersion?: (string|null); } - /** Represents a DeleteEnvironmentRequest. */ - class DeleteEnvironmentRequest implements IDeleteEnvironmentRequest { + /** Represents a DeployFlowRequest. */ + class DeployFlowRequest implements IDeployFlowRequest { /** - * Constructs a new DeleteEnvironmentRequest. + * Constructs a new DeployFlowRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest); - /** DeleteEnvironmentRequest name. */ - public name: string; + /** DeployFlowRequest environment. */ + public environment: string; + + /** DeployFlowRequest flowVersion. */ + public flowVersion: string; /** - * Creates a new DeleteEnvironmentRequest instance using the specified properties. + * Creates a new DeployFlowRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteEnvironmentRequest instance + * @returns DeployFlowRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest): google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest): google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest; /** - * Encodes the specified DeleteEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest.verify|verify} messages. - * @param message DeleteEnvironmentRequest message or plain object to encode + * Encodes the specified DeployFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest.verify|verify} messages. + * @param message DeployFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest.verify|verify} messages. - * @param message DeleteEnvironmentRequest message or plain object to encode + * Encodes the specified DeployFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest.verify|verify} messages. + * @param message DeployFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer. + * Decodes a DeployFlowRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteEnvironmentRequest + * @returns DeployFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest; /** - * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes a DeployFlowRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteEnvironmentRequest + * @returns DeployFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest; /** - * Verifies a DeleteEnvironmentRequest message. + * Verifies a DeployFlowRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeployFlowRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteEnvironmentRequest + * @returns DeployFlowRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest; /** - * Creates a plain object from a DeleteEnvironmentRequest message. Also converts values to other types if specified. - * @param message DeleteEnvironmentRequest + * Creates a plain object from a DeployFlowRequest message. Also converts values to other types if specified. + * @param message DeployFlowRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteEnvironmentRequest to JSON. + * Converts this DeployFlowRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a LookupEnvironmentHistoryRequest. */ - interface ILookupEnvironmentHistoryRequest { - - /** LookupEnvironmentHistoryRequest name */ - name?: (string|null); + /** Properties of a DeployFlowResponse. */ + interface IDeployFlowResponse { - /** LookupEnvironmentHistoryRequest pageSize */ - pageSize?: (number|null); + /** DeployFlowResponse environment */ + environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); - /** LookupEnvironmentHistoryRequest pageToken */ - pageToken?: (string|null); + /** DeployFlowResponse deployment */ + deployment?: (string|null); } - /** Represents a LookupEnvironmentHistoryRequest. */ - class LookupEnvironmentHistoryRequest implements ILookupEnvironmentHistoryRequest { + /** Represents a DeployFlowResponse. */ + class DeployFlowResponse implements IDeployFlowResponse { /** - * Constructs a new LookupEnvironmentHistoryRequest. + * Constructs a new DeployFlowResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest); - - /** LookupEnvironmentHistoryRequest name. */ - public name: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeployFlowResponse); - /** LookupEnvironmentHistoryRequest pageSize. */ - public pageSize: number; + /** DeployFlowResponse environment. */ + public environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); - /** LookupEnvironmentHistoryRequest pageToken. */ - public pageToken: string; + /** DeployFlowResponse deployment. */ + public deployment: string; /** - * Creates a new LookupEnvironmentHistoryRequest instance using the specified properties. + * Creates a new DeployFlowResponse instance using the specified properties. * @param [properties] Properties to set - * @returns LookupEnvironmentHistoryRequest instance + * @returns DeployFlowResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeployFlowResponse): google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse; /** - * Encodes the specified LookupEnvironmentHistoryRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest.verify|verify} messages. - * @param message LookupEnvironmentHistoryRequest message or plain object to encode + * Encodes the specified DeployFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse.verify|verify} messages. + * @param message DeployFlowResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeployFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LookupEnvironmentHistoryRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest.verify|verify} messages. - * @param message LookupEnvironmentHistoryRequest message or plain object to encode + * Encodes the specified DeployFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse.verify|verify} messages. + * @param message DeployFlowResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeployFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LookupEnvironmentHistoryRequest message from the specified reader or buffer. + * Decodes a DeployFlowResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns LookupEnvironmentHistoryRequest + * @returns DeployFlowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse; /** - * Decodes a LookupEnvironmentHistoryRequest message from the specified reader or buffer, length delimited. + * Decodes a DeployFlowResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LookupEnvironmentHistoryRequest + * @returns DeployFlowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse; /** - * Verifies a LookupEnvironmentHistoryRequest message. + * Verifies a DeployFlowResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a LookupEnvironmentHistoryRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeployFlowResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LookupEnvironmentHistoryRequest + * @returns DeployFlowResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse; /** - * Creates a plain object from a LookupEnvironmentHistoryRequest message. Also converts values to other types if specified. - * @param message LookupEnvironmentHistoryRequest + * Creates a plain object from a DeployFlowResponse message. Also converts values to other types if specified. + * @param message DeployFlowResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LookupEnvironmentHistoryRequest to JSON. + * Converts this DeployFlowResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a LookupEnvironmentHistoryResponse. */ - interface ILookupEnvironmentHistoryResponse { - - /** LookupEnvironmentHistoryResponse environments */ - environments?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment[]|null); + /** Properties of a DeployFlowMetadata. */ + interface IDeployFlowMetadata { - /** LookupEnvironmentHistoryResponse nextPageToken */ - nextPageToken?: (string|null); + /** DeployFlowMetadata testErrors */ + testErrors?: (google.cloud.dialogflow.cx.v3beta1.ITestError[]|null); } - /** Represents a LookupEnvironmentHistoryResponse. */ - class LookupEnvironmentHistoryResponse implements ILookupEnvironmentHistoryResponse { + /** Represents a DeployFlowMetadata. */ + class DeployFlowMetadata implements IDeployFlowMetadata { /** - * Constructs a new LookupEnvironmentHistoryResponse. + * Constructs a new DeployFlowMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse); - - /** LookupEnvironmentHistoryResponse environments. */ - public environments: google.cloud.dialogflow.cx.v3beta1.IEnvironment[]; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeployFlowMetadata); - /** LookupEnvironmentHistoryResponse nextPageToken. */ - public nextPageToken: string; + /** DeployFlowMetadata testErrors. */ + public testErrors: google.cloud.dialogflow.cx.v3beta1.ITestError[]; /** - * Creates a new LookupEnvironmentHistoryResponse instance using the specified properties. + * Creates a new DeployFlowMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns LookupEnvironmentHistoryResponse instance + * @returns DeployFlowMetadata instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeployFlowMetadata): google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata; /** - * Encodes the specified LookupEnvironmentHistoryResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse.verify|verify} messages. - * @param message LookupEnvironmentHistoryResponse message or plain object to encode + * Encodes the specified DeployFlowMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata.verify|verify} messages. + * @param message DeployFlowMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeployFlowMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LookupEnvironmentHistoryResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse.verify|verify} messages. - * @param message LookupEnvironmentHistoryResponse message or plain object to encode + * Encodes the specified DeployFlowMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata.verify|verify} messages. + * @param message DeployFlowMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeployFlowMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LookupEnvironmentHistoryResponse message from the specified reader or buffer. + * Decodes a DeployFlowMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns LookupEnvironmentHistoryResponse + * @returns DeployFlowMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata; /** - * Decodes a LookupEnvironmentHistoryResponse message from the specified reader or buffer, length delimited. + * Decodes a DeployFlowMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LookupEnvironmentHistoryResponse + * @returns DeployFlowMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata; /** - * Verifies a LookupEnvironmentHistoryResponse message. + * Verifies a DeployFlowMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a LookupEnvironmentHistoryResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeployFlowMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LookupEnvironmentHistoryResponse + * @returns DeployFlowMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata; /** - * Creates a plain object from a LookupEnvironmentHistoryResponse message. Also converts values to other types if specified. - * @param message LookupEnvironmentHistoryResponse + * Creates a plain object from a DeployFlowMetadata message. Also converts values to other types if specified. + * @param message DeployFlowMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LookupEnvironmentHistoryResponse to JSON. + * Converts this DeployFlowMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ContinuousTestResult. */ - interface IContinuousTestResult { - - /** ContinuousTestResult name */ - name?: (string|null); - - /** ContinuousTestResult result */ - result?: (google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult|keyof typeof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult|null); - - /** ContinuousTestResult testCaseResults */ - testCaseResults?: (string[]|null); - - /** ContinuousTestResult runTime */ - runTime?: (google.protobuf.ITimestamp|null); - } - - /** Represents a ContinuousTestResult. */ - class ContinuousTestResult implements IContinuousTestResult { + /** Represents a TestCases */ + class TestCases extends $protobuf.rpc.Service { /** - * Constructs a new ContinuousTestResult. - * @param [properties] Properties to set + * Constructs a new TestCases service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult); - - /** ContinuousTestResult name. */ - public name: string; - - /** ContinuousTestResult result. */ - public result: (google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult|keyof typeof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult); - - /** ContinuousTestResult testCaseResults. */ - public testCaseResults: string[]; - - /** ContinuousTestResult runTime. */ - public runTime?: (google.protobuf.ITimestamp|null); + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates a new ContinuousTestResult instance using the specified properties. - * @param [properties] Properties to set - * @returns ContinuousTestResult instance + * Creates new TestCases service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult): google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): TestCases; /** - * Encodes the specified ContinuousTestResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.verify|verify} messages. - * @param message ContinuousTestResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListTestCases. + * @param request ListTestCasesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListTestCasesResponse */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult, writer?: $protobuf.Writer): $protobuf.Writer; + public listTestCases(request: google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.ListTestCasesCallback): void; /** - * Encodes the specified ContinuousTestResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.verify|verify} messages. - * @param message ContinuousTestResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListTestCases. + * @param request ListTestCasesRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult, writer?: $protobuf.Writer): $protobuf.Writer; + public listTestCases(request: google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest): Promise; /** - * Decodes a ContinuousTestResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ContinuousTestResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls BatchDeleteTestCases. + * @param request BatchDeleteTestCasesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult; + public batchDeleteTestCases(request: google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.BatchDeleteTestCasesCallback): void; /** - * Decodes a ContinuousTestResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ContinuousTestResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls BatchDeleteTestCases. + * @param request BatchDeleteTestCasesRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult; + public batchDeleteTestCases(request: google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest): Promise; /** - * Verifies a ContinuousTestResult message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls GetTestCase. + * @param request GetTestCaseRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestCase */ - public static verify(message: { [k: string]: any }): (string|null); + public getTestCase(request: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.GetTestCaseCallback): void; /** - * Creates a ContinuousTestResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ContinuousTestResult + * Calls GetTestCase. + * @param request GetTestCaseRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult; + public getTestCase(request: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest): Promise; /** - * Creates a plain object from a ContinuousTestResult message. Also converts values to other types if specified. - * @param message ContinuousTestResult - * @param [options] Conversion options - * @returns Plain object + * Calls CreateTestCase. + * @param request CreateTestCaseRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestCase */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public createTestCase(request: google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.CreateTestCaseCallback): void; /** - * Converts this ContinuousTestResult to JSON. - * @returns JSON object + * Calls CreateTestCase. + * @param request CreateTestCaseRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; - } - - namespace ContinuousTestResult { - - /** AggregatedTestResult enum. */ - enum AggregatedTestResult { - AGGREGATED_TEST_RESULT_UNSPECIFIED = 0, - PASSED = 1, - FAILED = 2 - } - } - - /** Properties of a RunContinuousTestRequest. */ - interface IRunContinuousTestRequest { - - /** RunContinuousTestRequest environment */ - environment?: (string|null); - } - - /** Represents a RunContinuousTestRequest. */ - class RunContinuousTestRequest implements IRunContinuousTestRequest { + public createTestCase(request: google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest): Promise; /** - * Constructs a new RunContinuousTestRequest. - * @param [properties] Properties to set + * Calls UpdateTestCase. + * @param request UpdateTestCaseRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestCase */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest); + public updateTestCase(request: google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.UpdateTestCaseCallback): void; - /** RunContinuousTestRequest environment. */ - public environment: string; + /** + * Calls UpdateTestCase. + * @param request UpdateTestCaseRequest message or plain object + * @returns Promise + */ + public updateTestCase(request: google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest): Promise; /** - * Creates a new RunContinuousTestRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RunContinuousTestRequest instance + * Calls RunTestCase. + * @param request RunTestCaseRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest; + public runTestCase(request: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.RunTestCaseCallback): void; /** - * Encodes the specified RunContinuousTestRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest.verify|verify} messages. - * @param message RunContinuousTestRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls RunTestCase. + * @param request RunTestCaseRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public runTestCase(request: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest): Promise; /** - * Encodes the specified RunContinuousTestRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest.verify|verify} messages. - * @param message RunContinuousTestRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls BatchRunTestCases. + * @param request BatchRunTestCasesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public batchRunTestCases(request: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.BatchRunTestCasesCallback): void; /** - * Decodes a RunContinuousTestRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RunContinuousTestRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls BatchRunTestCases. + * @param request BatchRunTestCasesRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest; + public batchRunTestCases(request: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest): Promise; /** - * Decodes a RunContinuousTestRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RunContinuousTestRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CalculateCoverage. + * @param request CalculateCoverageRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CalculateCoverageResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest; + public calculateCoverage(request: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.CalculateCoverageCallback): void; /** - * Verifies a RunContinuousTestRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls CalculateCoverage. + * @param request CalculateCoverageRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public calculateCoverage(request: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest): Promise; /** - * Creates a RunContinuousTestRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RunContinuousTestRequest + * Calls ImportTestCases. + * @param request ImportTestCasesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest; + public importTestCases(request: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.ImportTestCasesCallback): void; /** - * Creates a plain object from a RunContinuousTestRequest message. Also converts values to other types if specified. - * @param message RunContinuousTestRequest - * @param [options] Conversion options - * @returns Plain object + * Calls ImportTestCases. + * @param request ImportTestCasesRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public importTestCases(request: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest): Promise; /** - * Converts this RunContinuousTestRequest to JSON. - * @returns JSON object + * Calls ExportTestCases. + * @param request ExportTestCasesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public toJSON(): { [k: string]: any }; - } + public exportTestCases(request: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.ExportTestCasesCallback): void; - /** Properties of a RunContinuousTestResponse. */ - interface IRunContinuousTestResponse { + /** + * Calls ExportTestCases. + * @param request ExportTestCasesRequest message or plain object + * @returns Promise + */ + public exportTestCases(request: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest): Promise; - /** RunContinuousTestResponse continuousTestResult */ - continuousTestResult?: (google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult|null); + /** + * Calls ListTestCaseResults. + * @param request ListTestCaseResultsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListTestCaseResultsResponse + */ + public listTestCaseResults(request: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.ListTestCaseResultsCallback): void; + + /** + * Calls ListTestCaseResults. + * @param request ListTestCaseResultsRequest message or plain object + * @returns Promise + */ + public listTestCaseResults(request: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest): Promise; + + /** + * Calls GetTestCaseResult. + * @param request GetTestCaseResultRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestCaseResult + */ + public getTestCaseResult(request: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.GetTestCaseResultCallback): void; + + /** + * Calls GetTestCaseResult. + * @param request GetTestCaseResultRequest message or plain object + * @returns Promise + */ + public getTestCaseResult(request: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest): Promise; } - /** Represents a RunContinuousTestResponse. */ - class RunContinuousTestResponse implements IRunContinuousTestResponse { + namespace TestCases { /** - * Constructs a new RunContinuousTestResponse. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#listTestCases}. + * @param error Error, if any + * @param [response] ListTestCasesResponse */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestResponse); + type ListTestCasesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse) => void; - /** RunContinuousTestResponse continuousTestResult. */ - public continuousTestResult?: (google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult|null); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#batchDeleteTestCases}. + * @param error Error, if any + * @param [response] Empty + */ + type BatchDeleteTestCasesCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Creates a new RunContinuousTestResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns RunContinuousTestResponse instance + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#getTestCase}. + * @param error Error, if any + * @param [response] TestCase */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestResponse): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse; + type GetTestCaseCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TestCase) => void; /** - * Encodes the specified RunContinuousTestResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse.verify|verify} messages. - * @param message RunContinuousTestResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#createTestCase}. + * @param error Error, if any + * @param [response] TestCase */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestResponse, writer?: $protobuf.Writer): $protobuf.Writer; + type CreateTestCaseCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TestCase) => void; /** - * Encodes the specified RunContinuousTestResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse.verify|verify} messages. - * @param message RunContinuousTestResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#updateTestCase}. + * @param error Error, if any + * @param [response] TestCase */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestResponse, writer?: $protobuf.Writer): $protobuf.Writer; + type UpdateTestCaseCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TestCase) => void; /** - * Decodes a RunContinuousTestResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RunContinuousTestResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#runTestCase}. + * @param error Error, if any + * @param [response] Operation */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse; + type RunTestCaseCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes a RunContinuousTestResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RunContinuousTestResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#batchRunTestCases}. + * @param error Error, if any + * @param [response] Operation */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse; + type BatchRunTestCasesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Verifies a RunContinuousTestResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#calculateCoverage}. + * @param error Error, if any + * @param [response] CalculateCoverageResponse */ - public static verify(message: { [k: string]: any }): (string|null); + type CalculateCoverageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse) => void; /** - * Creates a RunContinuousTestResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RunContinuousTestResponse + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#importTestCases}. + * @param error Error, if any + * @param [response] Operation */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse; + type ImportTestCasesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a plain object from a RunContinuousTestResponse message. Also converts values to other types if specified. - * @param message RunContinuousTestResponse - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#exportTestCases}. + * @param error Error, if any + * @param [response] Operation */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type ExportTestCasesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Converts this RunContinuousTestResponse to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#listTestCaseResults}. + * @param error Error, if any + * @param [response] ListTestCaseResultsResponse */ - public toJSON(): { [k: string]: any }; + type ListTestCaseResultsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#getTestCaseResult}. + * @param error Error, if any + * @param [response] TestCaseResult + */ + type GetTestCaseResultCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TestCaseResult) => void; } - /** Properties of a RunContinuousTestMetadata. */ - interface IRunContinuousTestMetadata { + /** Properties of a TestCase. */ + interface ITestCase { - /** RunContinuousTestMetadata errors */ - errors?: (google.cloud.dialogflow.cx.v3beta1.ITestError[]|null); + /** TestCase name */ + name?: (string|null); + + /** TestCase tags */ + tags?: (string[]|null); + + /** TestCase displayName */ + displayName?: (string|null); + + /** TestCase notes */ + notes?: (string|null); + + /** TestCase testConfig */ + testConfig?: (google.cloud.dialogflow.cx.v3beta1.ITestConfig|null); + + /** TestCase testCaseConversationTurns */ + testCaseConversationTurns?: (google.cloud.dialogflow.cx.v3beta1.IConversationTurn[]|null); + + /** TestCase creationTime */ + creationTime?: (google.protobuf.ITimestamp|null); + + /** TestCase lastTestResult */ + lastTestResult?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null); } - /** Represents a RunContinuousTestMetadata. */ - class RunContinuousTestMetadata implements IRunContinuousTestMetadata { + /** Represents a TestCase. */ + class TestCase implements ITestCase { /** - * Constructs a new RunContinuousTestMetadata. + * Constructs a new TestCase. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestMetadata); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITestCase); - /** RunContinuousTestMetadata errors. */ - public errors: google.cloud.dialogflow.cx.v3beta1.ITestError[]; + /** TestCase name. */ + public name: string; + + /** TestCase tags. */ + public tags: string[]; + + /** TestCase displayName. */ + public displayName: string; + + /** TestCase notes. */ + public notes: string; + + /** TestCase testConfig. */ + public testConfig?: (google.cloud.dialogflow.cx.v3beta1.ITestConfig|null); + + /** TestCase testCaseConversationTurns. */ + public testCaseConversationTurns: google.cloud.dialogflow.cx.v3beta1.IConversationTurn[]; + + /** TestCase creationTime. */ + public creationTime?: (google.protobuf.ITimestamp|null); + + /** TestCase lastTestResult. */ + public lastTestResult?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null); /** - * Creates a new RunContinuousTestMetadata instance using the specified properties. + * Creates a new TestCase instance using the specified properties. * @param [properties] Properties to set - * @returns RunContinuousTestMetadata instance + * @returns TestCase instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestMetadata): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITestCase): google.cloud.dialogflow.cx.v3beta1.TestCase; /** - * Encodes the specified RunContinuousTestMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata.verify|verify} messages. - * @param message RunContinuousTestMetadata message or plain object to encode + * Encodes the specified TestCase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCase.verify|verify} messages. + * @param message TestCase message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITestCase, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RunContinuousTestMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata.verify|verify} messages. - * @param message RunContinuousTestMetadata message or plain object to encode + * Encodes the specified TestCase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCase.verify|verify} messages. + * @param message TestCase message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITestCase, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RunContinuousTestMetadata message from the specified reader or buffer. + * Decodes a TestCase message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RunContinuousTestMetadata + * @returns TestCase * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TestCase; /** - * Decodes a RunContinuousTestMetadata message from the specified reader or buffer, length delimited. + * Decodes a TestCase message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RunContinuousTestMetadata + * @returns TestCase * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TestCase; /** - * Verifies a RunContinuousTestMetadata message. + * Verifies a TestCase message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RunContinuousTestMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a TestCase message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RunContinuousTestMetadata + * @returns TestCase */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TestCase; /** - * Creates a plain object from a RunContinuousTestMetadata message. Also converts values to other types if specified. - * @param message RunContinuousTestMetadata + * Creates a plain object from a TestCase message. Also converts values to other types if specified. + * @param message TestCase * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TestCase, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RunContinuousTestMetadata to JSON. + * Converts this TestCase to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListContinuousTestResultsRequest. */ - interface IListContinuousTestResultsRequest { + /** Properties of a TestCaseResult. */ + interface ITestCaseResult { - /** ListContinuousTestResultsRequest parent */ - parent?: (string|null); + /** TestCaseResult name */ + name?: (string|null); - /** ListContinuousTestResultsRequest pageSize */ - pageSize?: (number|null); + /** TestCaseResult environment */ + environment?: (string|null); - /** ListContinuousTestResultsRequest pageToken */ - pageToken?: (string|null); + /** TestCaseResult conversationTurns */ + conversationTurns?: (google.cloud.dialogflow.cx.v3beta1.IConversationTurn[]|null); + + /** TestCaseResult testResult */ + testResult?: (google.cloud.dialogflow.cx.v3beta1.TestResult|keyof typeof google.cloud.dialogflow.cx.v3beta1.TestResult|null); + + /** TestCaseResult testTime */ + testTime?: (google.protobuf.ITimestamp|null); } - /** Represents a ListContinuousTestResultsRequest. */ - class ListContinuousTestResultsRequest implements IListContinuousTestResultsRequest { + /** Represents a TestCaseResult. */ + class TestCaseResult implements ITestCaseResult { /** - * Constructs a new ListContinuousTestResultsRequest. + * Constructs a new TestCaseResult. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITestCaseResult); - /** ListContinuousTestResultsRequest parent. */ - public parent: string; + /** TestCaseResult name. */ + public name: string; - /** ListContinuousTestResultsRequest pageSize. */ - public pageSize: number; + /** TestCaseResult environment. */ + public environment: string; - /** ListContinuousTestResultsRequest pageToken. */ - public pageToken: string; + /** TestCaseResult conversationTurns. */ + public conversationTurns: google.cloud.dialogflow.cx.v3beta1.IConversationTurn[]; + + /** TestCaseResult testResult. */ + public testResult: (google.cloud.dialogflow.cx.v3beta1.TestResult|keyof typeof google.cloud.dialogflow.cx.v3beta1.TestResult); + + /** TestCaseResult testTime. */ + public testTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new ListContinuousTestResultsRequest instance using the specified properties. + * Creates a new TestCaseResult instance using the specified properties. * @param [properties] Properties to set - * @returns ListContinuousTestResultsRequest instance + * @returns TestCaseResult instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest): google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITestCaseResult): google.cloud.dialogflow.cx.v3beta1.TestCaseResult; /** - * Encodes the specified ListContinuousTestResultsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest.verify|verify} messages. - * @param message ListContinuousTestResultsRequest message or plain object to encode + * Encodes the specified TestCaseResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCaseResult.verify|verify} messages. + * @param message TestCaseResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITestCaseResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListContinuousTestResultsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest.verify|verify} messages. - * @param message ListContinuousTestResultsRequest message or plain object to encode + * Encodes the specified TestCaseResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCaseResult.verify|verify} messages. + * @param message TestCaseResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITestCaseResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListContinuousTestResultsRequest message from the specified reader or buffer. + * Decodes a TestCaseResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListContinuousTestResultsRequest + * @returns TestCaseResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TestCaseResult; /** - * Decodes a ListContinuousTestResultsRequest message from the specified reader or buffer, length delimited. + * Decodes a TestCaseResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListContinuousTestResultsRequest + * @returns TestCaseResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TestCaseResult; /** - * Verifies a ListContinuousTestResultsRequest message. + * Verifies a TestCaseResult message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListContinuousTestResultsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestCaseResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListContinuousTestResultsRequest + * @returns TestCaseResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TestCaseResult; /** - * Creates a plain object from a ListContinuousTestResultsRequest message. Also converts values to other types if specified. - * @param message ListContinuousTestResultsRequest + * Creates a plain object from a TestCaseResult message. Also converts values to other types if specified. + * @param message TestCaseResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TestCaseResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListContinuousTestResultsRequest to JSON. + * Converts this TestCaseResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListContinuousTestResultsResponse. */ - interface IListContinuousTestResultsResponse { + /** Properties of a TestConfig. */ + interface ITestConfig { - /** ListContinuousTestResultsResponse continuousTestResults */ - continuousTestResults?: (google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult[]|null); + /** TestConfig trackingParameters */ + trackingParameters?: (string[]|null); - /** ListContinuousTestResultsResponse nextPageToken */ - nextPageToken?: (string|null); + /** TestConfig flow */ + flow?: (string|null); } - /** Represents a ListContinuousTestResultsResponse. */ - class ListContinuousTestResultsResponse implements IListContinuousTestResultsResponse { + /** Represents a TestConfig. */ + class TestConfig implements ITestConfig { /** - * Constructs a new ListContinuousTestResultsResponse. + * Constructs a new TestConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITestConfig); - /** ListContinuousTestResultsResponse continuousTestResults. */ - public continuousTestResults: google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult[]; + /** TestConfig trackingParameters. */ + public trackingParameters: string[]; - /** ListContinuousTestResultsResponse nextPageToken. */ - public nextPageToken: string; + /** TestConfig flow. */ + public flow: string; /** - * Creates a new ListContinuousTestResultsResponse instance using the specified properties. + * Creates a new TestConfig instance using the specified properties. * @param [properties] Properties to set - * @returns ListContinuousTestResultsResponse instance + * @returns TestConfig instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsResponse): google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITestConfig): google.cloud.dialogflow.cx.v3beta1.TestConfig; /** - * Encodes the specified ListContinuousTestResultsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse.verify|verify} messages. - * @param message ListContinuousTestResultsResponse message or plain object to encode + * Encodes the specified TestConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestConfig.verify|verify} messages. + * @param message TestConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITestConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListContinuousTestResultsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse.verify|verify} messages. - * @param message ListContinuousTestResultsResponse message or plain object to encode + * Encodes the specified TestConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestConfig.verify|verify} messages. + * @param message TestConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITestConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListContinuousTestResultsResponse message from the specified reader or buffer. + * Decodes a TestConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListContinuousTestResultsResponse + * @returns TestConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TestConfig; /** - * Decodes a ListContinuousTestResultsResponse message from the specified reader or buffer, length delimited. + * Decodes a TestConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListContinuousTestResultsResponse + * @returns TestConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TestConfig; /** - * Verifies a ListContinuousTestResultsResponse message. + * Verifies a TestConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListContinuousTestResultsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TestConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListContinuousTestResultsResponse + * @returns TestConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TestConfig; /** - * Creates a plain object from a ListContinuousTestResultsResponse message. Also converts values to other types if specified. - * @param message ListContinuousTestResultsResponse + * Creates a plain object from a TestConfig message. Also converts values to other types if specified. + * @param message TestConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TestConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListContinuousTestResultsResponse to JSON. + * Converts this TestConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeployFlowRequest. */ - interface IDeployFlowRequest { + /** Properties of a ConversationTurn. */ + interface IConversationTurn { - /** DeployFlowRequest environment */ - environment?: (string|null); + /** ConversationTurn userInput */ + userInput?: (google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput|null); - /** DeployFlowRequest flowVersion */ - flowVersion?: (string|null); + /** ConversationTurn virtualAgentOutput */ + virtualAgentOutput?: (google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput|null); } - /** Represents a DeployFlowRequest. */ - class DeployFlowRequest implements IDeployFlowRequest { + /** Represents a ConversationTurn. */ + class ConversationTurn implements IConversationTurn { /** - * Constructs a new DeployFlowRequest. + * Constructs a new ConversationTurn. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest); - - /** DeployFlowRequest environment. */ - public environment: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IConversationTurn); - /** DeployFlowRequest flowVersion. */ - public flowVersion: string; + /** ConversationTurn userInput. */ + public userInput?: (google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput|null); + + /** ConversationTurn virtualAgentOutput. */ + public virtualAgentOutput?: (google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput|null); /** - * Creates a new DeployFlowRequest instance using the specified properties. + * Creates a new ConversationTurn instance using the specified properties. * @param [properties] Properties to set - * @returns DeployFlowRequest instance + * @returns ConversationTurn instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest): google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IConversationTurn): google.cloud.dialogflow.cx.v3beta1.ConversationTurn; /** - * Encodes the specified DeployFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest.verify|verify} messages. - * @param message DeployFlowRequest message or plain object to encode + * Encodes the specified ConversationTurn message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.verify|verify} messages. + * @param message ConversationTurn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IConversationTurn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest.verify|verify} messages. - * @param message DeployFlowRequest message or plain object to encode + * Encodes the specified ConversationTurn message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.verify|verify} messages. + * @param message ConversationTurn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IConversationTurn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployFlowRequest message from the specified reader or buffer. + * Decodes a ConversationTurn message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployFlowRequest + * @returns ConversationTurn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ConversationTurn; /** - * Decodes a DeployFlowRequest message from the specified reader or buffer, length delimited. + * Decodes a ConversationTurn message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployFlowRequest + * @returns ConversationTurn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ConversationTurn; /** - * Verifies a DeployFlowRequest message. + * Verifies a ConversationTurn message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeployFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ConversationTurn message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployFlowRequest + * @returns ConversationTurn */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ConversationTurn; /** - * Creates a plain object from a DeployFlowRequest message. Also converts values to other types if specified. - * @param message DeployFlowRequest + * Creates a plain object from a ConversationTurn message. Also converts values to other types if specified. + * @param message ConversationTurn * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ConversationTurn, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployFlowRequest to JSON. + * Converts this ConversationTurn to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeployFlowResponse. */ - interface IDeployFlowResponse { + namespace ConversationTurn { - /** DeployFlowResponse environment */ - environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); + /** Properties of a UserInput. */ + interface IUserInput { - /** DeployFlowResponse deployment */ - deployment?: (string|null); + /** UserInput input */ + input?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); + + /** UserInput injectedParameters */ + injectedParameters?: (google.protobuf.IStruct|null); + + /** UserInput isWebhookEnabled */ + isWebhookEnabled?: (boolean|null); + + /** UserInput enableSentimentAnalysis */ + enableSentimentAnalysis?: (boolean|null); + } + + /** Represents a UserInput. */ + class UserInput implements IUserInput { + + /** + * Constructs a new UserInput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput); + + /** UserInput input. */ + public input?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); + + /** UserInput injectedParameters. */ + public injectedParameters?: (google.protobuf.IStruct|null); + + /** UserInput isWebhookEnabled. */ + public isWebhookEnabled: boolean; + + /** UserInput enableSentimentAnalysis. */ + public enableSentimentAnalysis: boolean; + + /** + * Creates a new UserInput instance using the specified properties. + * @param [properties] Properties to set + * @returns UserInput instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput; + + /** + * Encodes the specified UserInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.verify|verify} messages. + * @param message UserInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UserInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.verify|verify} messages. + * @param message UserInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a UserInput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UserInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput; + + /** + * Decodes a UserInput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UserInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput; + + /** + * Verifies a UserInput message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a UserInput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UserInput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput; + + /** + * Creates a plain object from a UserInput message. Also converts values to other types if specified. + * @param message UserInput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UserInput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a VirtualAgentOutput. */ + interface IVirtualAgentOutput { + + /** VirtualAgentOutput sessionParameters */ + sessionParameters?: (google.protobuf.IStruct|null); + + /** VirtualAgentOutput differences */ + differences?: (google.cloud.dialogflow.cx.v3beta1.ITestRunDifference[]|null); + + /** VirtualAgentOutput diagnosticInfo */ + diagnosticInfo?: (google.protobuf.IStruct|null); + + /** VirtualAgentOutput triggeredIntent */ + triggeredIntent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); + + /** VirtualAgentOutput currentPage */ + currentPage?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + + /** VirtualAgentOutput textResponses */ + textResponses?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText[]|null); + + /** VirtualAgentOutput status */ + status?: (google.rpc.IStatus|null); + } + + /** Represents a VirtualAgentOutput. */ + class VirtualAgentOutput implements IVirtualAgentOutput { + + /** + * Constructs a new VirtualAgentOutput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput); + + /** VirtualAgentOutput sessionParameters. */ + public sessionParameters?: (google.protobuf.IStruct|null); + + /** VirtualAgentOutput differences. */ + public differences: google.cloud.dialogflow.cx.v3beta1.ITestRunDifference[]; + + /** VirtualAgentOutput diagnosticInfo. */ + public diagnosticInfo?: (google.protobuf.IStruct|null); + + /** VirtualAgentOutput triggeredIntent. */ + public triggeredIntent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); + + /** VirtualAgentOutput currentPage. */ + public currentPage?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + + /** VirtualAgentOutput textResponses. */ + public textResponses: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText[]; + + /** VirtualAgentOutput status. */ + public status?: (google.rpc.IStatus|null); + + /** + * Creates a new VirtualAgentOutput instance using the specified properties. + * @param [properties] Properties to set + * @returns VirtualAgentOutput instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput; + + /** + * Encodes the specified VirtualAgentOutput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.verify|verify} messages. + * @param message VirtualAgentOutput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VirtualAgentOutput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.verify|verify} messages. + * @param message VirtualAgentOutput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VirtualAgentOutput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VirtualAgentOutput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput; + + /** + * Decodes a VirtualAgentOutput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VirtualAgentOutput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput; + + /** + * Verifies a VirtualAgentOutput message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VirtualAgentOutput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VirtualAgentOutput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput; + + /** + * Creates a plain object from a VirtualAgentOutput message. Also converts values to other types if specified. + * @param message VirtualAgentOutput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VirtualAgentOutput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Represents a DeployFlowResponse. */ - class DeployFlowResponse implements IDeployFlowResponse { + /** Properties of a TestRunDifference. */ + interface ITestRunDifference { + + /** TestRunDifference type */ + type?: (google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType|keyof typeof google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType|null); + + /** TestRunDifference description */ + description?: (string|null); + } + + /** Represents a TestRunDifference. */ + class TestRunDifference implements ITestRunDifference { /** - * Constructs a new DeployFlowResponse. + * Constructs a new TestRunDifference. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeployFlowResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITestRunDifference); - /** DeployFlowResponse environment. */ - public environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); + /** TestRunDifference type. */ + public type: (google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType|keyof typeof google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType); - /** DeployFlowResponse deployment. */ - public deployment: string; + /** TestRunDifference description. */ + public description: string; /** - * Creates a new DeployFlowResponse instance using the specified properties. + * Creates a new TestRunDifference instance using the specified properties. * @param [properties] Properties to set - * @returns DeployFlowResponse instance + * @returns TestRunDifference instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeployFlowResponse): google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITestRunDifference): google.cloud.dialogflow.cx.v3beta1.TestRunDifference; /** - * Encodes the specified DeployFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse.verify|verify} messages. - * @param message DeployFlowResponse message or plain object to encode + * Encodes the specified TestRunDifference message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestRunDifference.verify|verify} messages. + * @param message TestRunDifference message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeployFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITestRunDifference, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse.verify|verify} messages. - * @param message DeployFlowResponse message or plain object to encode + * Encodes the specified TestRunDifference message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestRunDifference.verify|verify} messages. + * @param message TestRunDifference message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeployFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITestRunDifference, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployFlowResponse message from the specified reader or buffer. + * Decodes a TestRunDifference message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployFlowResponse + * @returns TestRunDifference * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TestRunDifference; /** - * Decodes a DeployFlowResponse message from the specified reader or buffer, length delimited. + * Decodes a TestRunDifference message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployFlowResponse + * @returns TestRunDifference * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TestRunDifference; /** - * Verifies a DeployFlowResponse message. + * Verifies a TestRunDifference message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeployFlowResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TestRunDifference message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployFlowResponse + * @returns TestRunDifference */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TestRunDifference; /** - * Creates a plain object from a DeployFlowResponse message. Also converts values to other types if specified. - * @param message DeployFlowResponse + * Creates a plain object from a TestRunDifference message. Also converts values to other types if specified. + * @param message TestRunDifference * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TestRunDifference, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployFlowResponse to JSON. + * Converts this TestRunDifference to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeployFlowMetadata. */ - interface IDeployFlowMetadata { + namespace TestRunDifference { - /** DeployFlowMetadata testErrors */ - testErrors?: (google.cloud.dialogflow.cx.v3beta1.ITestError[]|null); + /** DiffType enum. */ + enum DiffType { + DIFF_TYPE_UNSPECIFIED = 0, + INTENT = 1, + PAGE = 2, + PARAMETERS = 3, + UTTERANCE = 4 + } } - /** Represents a DeployFlowMetadata. */ - class DeployFlowMetadata implements IDeployFlowMetadata { + /** Properties of a TransitionCoverage. */ + interface ITransitionCoverage { + + /** TransitionCoverage transitions */ + transitions?: (google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition[]|null); + + /** TransitionCoverage coverageScore */ + coverageScore?: (number|null); + } + + /** Represents a TransitionCoverage. */ + class TransitionCoverage implements ITransitionCoverage { /** - * Constructs a new DeployFlowMetadata. + * Constructs a new TransitionCoverage. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeployFlowMetadata); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage); - /** DeployFlowMetadata testErrors. */ - public testErrors: google.cloud.dialogflow.cx.v3beta1.ITestError[]; + /** TransitionCoverage transitions. */ + public transitions: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition[]; + + /** TransitionCoverage coverageScore. */ + public coverageScore: number; /** - * Creates a new DeployFlowMetadata instance using the specified properties. + * Creates a new TransitionCoverage instance using the specified properties. * @param [properties] Properties to set - * @returns DeployFlowMetadata instance + * @returns TransitionCoverage instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeployFlowMetadata): google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage; /** - * Encodes the specified DeployFlowMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata.verify|verify} messages. - * @param message DeployFlowMetadata message or plain object to encode + * Encodes the specified TransitionCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.verify|verify} messages. + * @param message TransitionCoverage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeployFlowMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployFlowMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata.verify|verify} messages. - * @param message DeployFlowMetadata message or plain object to encode + * Encodes the specified TransitionCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.verify|verify} messages. + * @param message TransitionCoverage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeployFlowMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployFlowMetadata message from the specified reader or buffer. + * Decodes a TransitionCoverage message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployFlowMetadata + * @returns TransitionCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage; /** - * Decodes a DeployFlowMetadata message from the specified reader or buffer, length delimited. + * Decodes a TransitionCoverage message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployFlowMetadata + * @returns TransitionCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage; /** - * Verifies a DeployFlowMetadata message. + * Verifies a TransitionCoverage message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeployFlowMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a TransitionCoverage message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployFlowMetadata + * @returns TransitionCoverage */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage; /** - * Creates a plain object from a DeployFlowMetadata message. Also converts values to other types if specified. - * @param message DeployFlowMetadata + * Creates a plain object from a TransitionCoverage message. Also converts values to other types if specified. + * @param message TransitionCoverage * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployFlowMetadata to JSON. + * Converts this TransitionCoverage to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a TestCases */ - class TestCases extends $protobuf.rpc.Service { + namespace TransitionCoverage { - /** - * Constructs a new TestCases service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** Properties of a TransitionNode. */ + interface ITransitionNode { - /** - * Creates new TestCases service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): TestCases; + /** TransitionNode page */ + page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); - /** - * Calls ListTestCases. - * @param request ListTestCasesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListTestCasesResponse - */ - public listTestCases(request: google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.ListTestCasesCallback): void; + /** TransitionNode flow */ + flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); + } - /** - * Calls ListTestCases. - * @param request ListTestCasesRequest message or plain object - * @returns Promise - */ - public listTestCases(request: google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest): Promise; + /** Represents a TransitionNode. */ + class TransitionNode implements ITransitionNode { - /** - * Calls BatchDeleteTestCases. - * @param request BatchDeleteTestCasesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public batchDeleteTestCases(request: google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.BatchDeleteTestCasesCallback): void; + /** + * Constructs a new TransitionNode. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode); - /** - * Calls BatchDeleteTestCases. - * @param request BatchDeleteTestCasesRequest message or plain object - * @returns Promise - */ - public batchDeleteTestCases(request: google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest): Promise; + /** TransitionNode page. */ + public page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); - /** - * Calls GetTestCase. - * @param request GetTestCaseRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TestCase - */ - public getTestCase(request: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.GetTestCaseCallback): void; - - /** - * Calls GetTestCase. - * @param request GetTestCaseRequest message or plain object - * @returns Promise - */ - public getTestCase(request: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest): Promise; - - /** - * Calls CreateTestCase. - * @param request CreateTestCaseRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TestCase - */ - public createTestCase(request: google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.CreateTestCaseCallback): void; - - /** - * Calls CreateTestCase. - * @param request CreateTestCaseRequest message or plain object - * @returns Promise - */ - public createTestCase(request: google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest): Promise; + /** TransitionNode flow. */ + public flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); - /** - * Calls UpdateTestCase. - * @param request UpdateTestCaseRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TestCase - */ - public updateTestCase(request: google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.UpdateTestCaseCallback): void; + /** TransitionNode kind. */ + public kind?: ("page"|"flow"); - /** - * Calls UpdateTestCase. - * @param request UpdateTestCaseRequest message or plain object - * @returns Promise - */ - public updateTestCase(request: google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest): Promise; + /** + * Creates a new TransitionNode instance using the specified properties. + * @param [properties] Properties to set + * @returns TransitionNode instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode; - /** - * Calls RunTestCase. - * @param request RunTestCaseRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public runTestCase(request: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.RunTestCaseCallback): void; + /** + * Encodes the specified TransitionNode message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.verify|verify} messages. + * @param message TransitionNode message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Calls RunTestCase. - * @param request RunTestCaseRequest message or plain object - * @returns Promise - */ - public runTestCase(request: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest): Promise; + /** + * Encodes the specified TransitionNode message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.verify|verify} messages. + * @param message TransitionNode message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Calls BatchRunTestCases. - * @param request BatchRunTestCasesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public batchRunTestCases(request: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.BatchRunTestCasesCallback): void; + /** + * Decodes a TransitionNode message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TransitionNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode; - /** - * Calls BatchRunTestCases. - * @param request BatchRunTestCasesRequest message or plain object - * @returns Promise - */ - public batchRunTestCases(request: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest): Promise; + /** + * Decodes a TransitionNode message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TransitionNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode; - /** - * Calls CalculateCoverage. - * @param request CalculateCoverageRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CalculateCoverageResponse - */ - public calculateCoverage(request: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.CalculateCoverageCallback): void; + /** + * Verifies a TransitionNode message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Calls CalculateCoverage. - * @param request CalculateCoverageRequest message or plain object - * @returns Promise - */ - public calculateCoverage(request: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest): Promise; + /** + * Creates a TransitionNode message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TransitionNode + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode; - /** - * Calls ImportTestCases. - * @param request ImportTestCasesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public importTestCases(request: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.ImportTestCasesCallback): void; + /** + * Creates a plain object from a TransitionNode message. Also converts values to other types if specified. + * @param message TransitionNode + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Calls ImportTestCases. - * @param request ImportTestCasesRequest message or plain object - * @returns Promise - */ - public importTestCases(request: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest): Promise; + /** + * Converts this TransitionNode to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Calls ExportTestCases. - * @param request ExportTestCasesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public exportTestCases(request: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.ExportTestCasesCallback): void; + /** Properties of a Transition. */ + interface ITransition { - /** - * Calls ExportTestCases. - * @param request ExportTestCasesRequest message or plain object - * @returns Promise - */ - public exportTestCases(request: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest): Promise; + /** Transition source */ + source?: (google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null); - /** - * Calls ListTestCaseResults. - * @param request ListTestCaseResultsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListTestCaseResultsResponse - */ - public listTestCaseResults(request: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.ListTestCaseResultsCallback): void; + /** Transition index */ + index?: (number|null); - /** - * Calls ListTestCaseResults. - * @param request ListTestCaseResultsRequest message or plain object - * @returns Promise - */ - public listTestCaseResults(request: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest): Promise; + /** Transition target */ + target?: (google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null); - /** - * Calls GetTestCaseResult. - * @param request GetTestCaseResultRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TestCaseResult - */ - public getTestCaseResult(request: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.GetTestCaseResultCallback): void; + /** Transition covered */ + covered?: (boolean|null); - /** - * Calls GetTestCaseResult. - * @param request GetTestCaseResultRequest message or plain object - * @returns Promise - */ - public getTestCaseResult(request: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest): Promise; - } + /** Transition transitionRoute */ + transitionRoute?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null); - namespace TestCases { + /** Transition eventHandler */ + eventHandler?: (google.cloud.dialogflow.cx.v3beta1.IEventHandler|null); + } - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#listTestCases}. - * @param error Error, if any - * @param [response] ListTestCasesResponse - */ - type ListTestCasesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse) => void; + /** Represents a Transition. */ + class Transition implements ITransition { - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#batchDeleteTestCases}. - * @param error Error, if any - * @param [response] Empty - */ - type BatchDeleteTestCasesCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + /** + * Constructs a new Transition. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition); - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#getTestCase}. - * @param error Error, if any - * @param [response] TestCase - */ - type GetTestCaseCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TestCase) => void; + /** Transition source. */ + public source?: (google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null); - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#createTestCase}. - * @param error Error, if any - * @param [response] TestCase - */ - type CreateTestCaseCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TestCase) => void; + /** Transition index. */ + public index: number; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#updateTestCase}. - * @param error Error, if any - * @param [response] TestCase - */ - type UpdateTestCaseCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TestCase) => void; + /** Transition target. */ + public target?: (google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null); - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#runTestCase}. - * @param error Error, if any - * @param [response] Operation - */ - type RunTestCaseCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** Transition covered. */ + public covered: boolean; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#batchRunTestCases}. - * @param error Error, if any - * @param [response] Operation - */ - type BatchRunTestCasesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** Transition transitionRoute. */ + public transitionRoute?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null); - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#calculateCoverage}. - * @param error Error, if any - * @param [response] CalculateCoverageResponse - */ - type CalculateCoverageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse) => void; + /** Transition eventHandler. */ + public eventHandler?: (google.cloud.dialogflow.cx.v3beta1.IEventHandler|null); - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#importTestCases}. - * @param error Error, if any - * @param [response] Operation - */ - type ImportTestCasesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** Transition detail. */ + public detail?: ("transitionRoute"|"eventHandler"); - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#exportTestCases}. - * @param error Error, if any - * @param [response] Operation - */ - type ExportTestCasesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Creates a new Transition instance using the specified properties. + * @param [properties] Properties to set + * @returns Transition instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#listTestCaseResults}. - * @param error Error, if any - * @param [response] ListTestCaseResultsResponse - */ - type ListTestCaseResultsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse) => void; + /** + * Encodes the specified Transition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.verify|verify} messages. + * @param message Transition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#getTestCaseResult}. - * @param error Error, if any - * @param [response] TestCaseResult - */ - type GetTestCaseResultCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TestCaseResult) => void; - } + /** + * Encodes the specified Transition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.verify|verify} messages. + * @param message Transition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a TestCase. */ - interface ITestCase { + /** + * Decodes a Transition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Transition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition; - /** TestCase name */ - name?: (string|null); + /** + * Decodes a Transition message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Transition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition; - /** TestCase tags */ - tags?: (string[]|null); + /** + * Verifies a Transition message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** TestCase displayName */ - displayName?: (string|null); + /** + * Creates a Transition message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Transition + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition; - /** TestCase notes */ - notes?: (string|null); + /** + * Creates a plain object from a Transition message. Also converts values to other types if specified. + * @param message Transition + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** TestCase testConfig */ - testConfig?: (google.cloud.dialogflow.cx.v3beta1.ITestConfig|null); + /** + * Converts this Transition to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } - /** TestCase testCaseConversationTurns */ - testCaseConversationTurns?: (google.cloud.dialogflow.cx.v3beta1.IConversationTurn[]|null); + /** Properties of a TransitionRouteGroupCoverage. */ + interface ITransitionRouteGroupCoverage { - /** TestCase creationTime */ - creationTime?: (google.protobuf.ITimestamp|null); + /** TransitionRouteGroupCoverage coverages */ + coverages?: (google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage[]|null); - /** TestCase lastTestResult */ - lastTestResult?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null); + /** TransitionRouteGroupCoverage coverageScore */ + coverageScore?: (number|null); } - /** Represents a TestCase. */ - class TestCase implements ITestCase { + /** Represents a TransitionRouteGroupCoverage. */ + class TransitionRouteGroupCoverage implements ITransitionRouteGroupCoverage { /** - * Constructs a new TestCase. + * Constructs a new TransitionRouteGroupCoverage. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITestCase); - - /** TestCase name. */ - public name: string; - - /** TestCase tags. */ - public tags: string[]; - - /** TestCase displayName. */ - public displayName: string; - - /** TestCase notes. */ - public notes: string; - - /** TestCase testConfig. */ - public testConfig?: (google.cloud.dialogflow.cx.v3beta1.ITestConfig|null); - - /** TestCase testCaseConversationTurns. */ - public testCaseConversationTurns: google.cloud.dialogflow.cx.v3beta1.IConversationTurn[]; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage); - /** TestCase creationTime. */ - public creationTime?: (google.protobuf.ITimestamp|null); + /** TransitionRouteGroupCoverage coverages. */ + public coverages: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage[]; - /** TestCase lastTestResult. */ - public lastTestResult?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null); + /** TransitionRouteGroupCoverage coverageScore. */ + public coverageScore: number; /** - * Creates a new TestCase instance using the specified properties. + * Creates a new TransitionRouteGroupCoverage instance using the specified properties. * @param [properties] Properties to set - * @returns TestCase instance + * @returns TransitionRouteGroupCoverage instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITestCase): google.cloud.dialogflow.cx.v3beta1.TestCase; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage; /** - * Encodes the specified TestCase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCase.verify|verify} messages. - * @param message TestCase message or plain object to encode + * Encodes the specified TransitionRouteGroupCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.verify|verify} messages. + * @param message TransitionRouteGroupCoverage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITestCase, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TestCase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCase.verify|verify} messages. - * @param message TestCase message or plain object to encode + * Encodes the specified TransitionRouteGroupCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.verify|verify} messages. + * @param message TransitionRouteGroupCoverage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITestCase, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TestCase message from the specified reader or buffer. + * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TestCase + * @returns TransitionRouteGroupCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TestCase; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage; /** - * Decodes a TestCase message from the specified reader or buffer, length delimited. + * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TestCase + * @returns TransitionRouteGroupCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TestCase; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage; /** - * Verifies a TestCase message. + * Verifies a TransitionRouteGroupCoverage message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TestCase message from a plain object. Also converts values to their respective internal types. + * Creates a TransitionRouteGroupCoverage message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TestCase + * @returns TransitionRouteGroupCoverage */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TestCase; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage; /** - * Creates a plain object from a TestCase message. Also converts values to other types if specified. - * @param message TestCase + * Creates a plain object from a TransitionRouteGroupCoverage message. Also converts values to other types if specified. + * @param message TransitionRouteGroupCoverage * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TestCase, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TestCase to JSON. + * Converts this TransitionRouteGroupCoverage to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TestCaseResult. */ - interface ITestCaseResult { - - /** TestCaseResult name */ - name?: (string|null); + namespace TransitionRouteGroupCoverage { - /** TestCaseResult environment */ - environment?: (string|null); + /** Properties of a Coverage. */ + interface ICoverage { - /** TestCaseResult conversationTurns */ - conversationTurns?: (google.cloud.dialogflow.cx.v3beta1.IConversationTurn[]|null); + /** Coverage routeGroup */ + routeGroup?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null); - /** TestCaseResult testResult */ - testResult?: (google.cloud.dialogflow.cx.v3beta1.TestResult|keyof typeof google.cloud.dialogflow.cx.v3beta1.TestResult|null); + /** Coverage transitions */ + transitions?: (google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition[]|null); - /** TestCaseResult testTime */ - testTime?: (google.protobuf.ITimestamp|null); - } + /** Coverage coverageScore */ + coverageScore?: (number|null); + } - /** Represents a TestCaseResult. */ - class TestCaseResult implements ITestCaseResult { + /** Represents a Coverage. */ + class Coverage implements ICoverage { - /** - * Constructs a new TestCaseResult. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITestCaseResult); + /** + * Constructs a new Coverage. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage); - /** TestCaseResult name. */ - public name: string; + /** Coverage routeGroup. */ + public routeGroup?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null); - /** TestCaseResult environment. */ - public environment: string; + /** Coverage transitions. */ + public transitions: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition[]; - /** TestCaseResult conversationTurns. */ - public conversationTurns: google.cloud.dialogflow.cx.v3beta1.IConversationTurn[]; + /** Coverage coverageScore. */ + public coverageScore: number; - /** TestCaseResult testResult. */ - public testResult: (google.cloud.dialogflow.cx.v3beta1.TestResult|keyof typeof google.cloud.dialogflow.cx.v3beta1.TestResult); + /** + * Creates a new Coverage instance using the specified properties. + * @param [properties] Properties to set + * @returns Coverage instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage; - /** TestCaseResult testTime. */ - public testTime?: (google.protobuf.ITimestamp|null); + /** + * Encodes the specified Coverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.verify|verify} messages. + * @param message Coverage message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Coverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.verify|verify} messages. + * @param message Coverage message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Coverage message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Coverage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage; + + /** + * Decodes a Coverage message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Coverage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage; + + /** + * Verifies a Coverage message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Coverage message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Coverage + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage; + + /** + * Creates a plain object from a Coverage message. Also converts values to other types if specified. + * @param message Coverage + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Coverage to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace Coverage { + + /** Properties of a Transition. */ + interface ITransition { + + /** Transition transitionRoute */ + transitionRoute?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null); + + /** Transition covered */ + covered?: (boolean|null); + } + + /** Represents a Transition. */ + class Transition implements ITransition { + + /** + * Constructs a new Transition. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition); + + /** Transition transitionRoute. */ + public transitionRoute?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null); + + /** Transition covered. */ + public covered: boolean; + + /** + * Creates a new Transition instance using the specified properties. + * @param [properties] Properties to set + * @returns Transition instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition; + + /** + * Encodes the specified Transition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.verify|verify} messages. + * @param message Transition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Transition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.verify|verify} messages. + * @param message Transition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Transition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Transition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition; + + /** + * Decodes a Transition message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Transition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition; + + /** + * Verifies a Transition message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Transition message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Transition + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition; + + /** + * Creates a plain object from a Transition message. Also converts values to other types if specified. + * @param message Transition + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Transition to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + + /** Properties of an IntentCoverage. */ + interface IIntentCoverage { + + /** IntentCoverage intents */ + intents?: (google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent[]|null); + + /** IntentCoverage coverageScore */ + coverageScore?: (number|null); + } + + /** Represents an IntentCoverage. */ + class IntentCoverage implements IIntentCoverage { /** - * Creates a new TestCaseResult instance using the specified properties. + * Constructs a new IntentCoverage. * @param [properties] Properties to set - * @returns TestCaseResult instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITestCaseResult): google.cloud.dialogflow.cx.v3beta1.TestCaseResult; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IIntentCoverage); + + /** IntentCoverage intents. */ + public intents: google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent[]; + + /** IntentCoverage coverageScore. */ + public coverageScore: number; /** - * Encodes the specified TestCaseResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCaseResult.verify|verify} messages. - * @param message TestCaseResult message or plain object to encode + * Creates a new IntentCoverage instance using the specified properties. + * @param [properties] Properties to set + * @returns IntentCoverage instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IIntentCoverage): google.cloud.dialogflow.cx.v3beta1.IntentCoverage; + + /** + * Encodes the specified IntentCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentCoverage.verify|verify} messages. + * @param message IntentCoverage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITestCaseResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IIntentCoverage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TestCaseResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCaseResult.verify|verify} messages. - * @param message TestCaseResult message or plain object to encode + * Encodes the specified IntentCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentCoverage.verify|verify} messages. + * @param message IntentCoverage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITestCaseResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IIntentCoverage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TestCaseResult message from the specified reader or buffer. + * Decodes an IntentCoverage message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TestCaseResult + * @returns IntentCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TestCaseResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.IntentCoverage; /** - * Decodes a TestCaseResult message from the specified reader or buffer, length delimited. + * Decodes an IntentCoverage message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TestCaseResult + * @returns IntentCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TestCaseResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.IntentCoverage; /** - * Verifies a TestCaseResult message. + * Verifies an IntentCoverage message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TestCaseResult message from a plain object. Also converts values to their respective internal types. + * Creates an IntentCoverage message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TestCaseResult + * @returns IntentCoverage */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TestCaseResult; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.IntentCoverage; /** - * Creates a plain object from a TestCaseResult message. Also converts values to other types if specified. - * @param message TestCaseResult + * Creates a plain object from an IntentCoverage message. Also converts values to other types if specified. + * @param message IntentCoverage * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TestCaseResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.IntentCoverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TestCaseResult to JSON. + * Converts this IntentCoverage to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TestConfig. */ - interface ITestConfig { + namespace IntentCoverage { - /** TestConfig trackingParameters */ - trackingParameters?: (string[]|null); + /** Properties of an Intent. */ + interface IIntent { - /** TestConfig flow */ - flow?: (string|null); + /** Intent intent */ + intent?: (string|null); + + /** Intent covered */ + covered?: (boolean|null); + } + + /** Represents an Intent. */ + class Intent implements IIntent { + + /** + * Constructs a new Intent. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent); + + /** Intent intent. */ + public intent: string; + + /** Intent covered. */ + public covered: boolean; + + /** + * Creates a new Intent instance using the specified properties. + * @param [properties] Properties to set + * @returns Intent instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent): google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent; + + /** + * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.verify|verify} messages. + * @param message Intent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.verify|verify} messages. + * @param message Intent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Intent message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Intent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent; + + /** + * Decodes an Intent message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Intent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent; + + /** + * Verifies an Intent message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an Intent message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Intent + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent; + + /** + * Creates a plain object from an Intent message. Also converts values to other types if specified. + * @param message Intent + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Intent to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Represents a TestConfig. */ - class TestConfig implements ITestConfig { + /** Properties of a CalculateCoverageRequest. */ + interface ICalculateCoverageRequest { + + /** CalculateCoverageRequest agent */ + agent?: (string|null); + + /** CalculateCoverageRequest type */ + type?: (google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType|keyof typeof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType|null); + } + + /** Represents a CalculateCoverageRequest. */ + class CalculateCoverageRequest implements ICalculateCoverageRequest { /** - * Constructs a new TestConfig. + * Constructs a new CalculateCoverageRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITestConfig); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest); - /** TestConfig trackingParameters. */ - public trackingParameters: string[]; + /** CalculateCoverageRequest agent. */ + public agent: string; - /** TestConfig flow. */ - public flow: string; + /** CalculateCoverageRequest type. */ + public type: (google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType|keyof typeof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType); /** - * Creates a new TestConfig instance using the specified properties. + * Creates a new CalculateCoverageRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TestConfig instance + * @returns CalculateCoverageRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITestConfig): google.cloud.dialogflow.cx.v3beta1.TestConfig; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest; /** - * Encodes the specified TestConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestConfig.verify|verify} messages. - * @param message TestConfig message or plain object to encode + * Encodes the specified CalculateCoverageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.verify|verify} messages. + * @param message CalculateCoverageRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITestConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TestConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestConfig.verify|verify} messages. - * @param message TestConfig message or plain object to encode + * Encodes the specified CalculateCoverageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.verify|verify} messages. + * @param message CalculateCoverageRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITestConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TestConfig message from the specified reader or buffer. + * Decodes a CalculateCoverageRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TestConfig + * @returns CalculateCoverageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TestConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest; /** - * Decodes a TestConfig message from the specified reader or buffer, length delimited. + * Decodes a CalculateCoverageRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TestConfig + * @returns CalculateCoverageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TestConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest; /** - * Verifies a TestConfig message. + * Verifies a CalculateCoverageRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TestConfig message from a plain object. Also converts values to their respective internal types. + * Creates a CalculateCoverageRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TestConfig + * @returns CalculateCoverageRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TestConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest; /** - * Creates a plain object from a TestConfig message. Also converts values to other types if specified. - * @param message TestConfig + * Creates a plain object from a CalculateCoverageRequest message. Also converts values to other types if specified. + * @param message CalculateCoverageRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TestConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TestConfig to JSON. + * Converts this CalculateCoverageRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ConversationTurn. */ - interface IConversationTurn { + namespace CalculateCoverageRequest { - /** ConversationTurn userInput */ - userInput?: (google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput|null); + /** CoverageType enum. */ + enum CoverageType { + COVERAGE_TYPE_UNSPECIFIED = 0, + INTENT = 1, + PAGE_TRANSITION = 2, + TRANSITION_ROUTE_GROUP = 3 + } + } - /** ConversationTurn virtualAgentOutput */ - virtualAgentOutput?: (google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput|null); + /** Properties of a CalculateCoverageResponse. */ + interface ICalculateCoverageResponse { + + /** CalculateCoverageResponse agent */ + agent?: (string|null); + + /** CalculateCoverageResponse intentCoverage */ + intentCoverage?: (google.cloud.dialogflow.cx.v3beta1.IIntentCoverage|null); + + /** CalculateCoverageResponse transitionCoverage */ + transitionCoverage?: (google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage|null); + + /** CalculateCoverageResponse routeGroupCoverage */ + routeGroupCoverage?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage|null); } - /** Represents a ConversationTurn. */ - class ConversationTurn implements IConversationTurn { + /** Represents a CalculateCoverageResponse. */ + class CalculateCoverageResponse implements ICalculateCoverageResponse { /** - * Constructs a new ConversationTurn. + * Constructs a new CalculateCoverageResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IConversationTurn); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse); - /** ConversationTurn userInput. */ - public userInput?: (google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput|null); + /** CalculateCoverageResponse agent. */ + public agent: string; - /** ConversationTurn virtualAgentOutput. */ - public virtualAgentOutput?: (google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput|null); + /** CalculateCoverageResponse intentCoverage. */ + public intentCoverage?: (google.cloud.dialogflow.cx.v3beta1.IIntentCoverage|null); + + /** CalculateCoverageResponse transitionCoverage. */ + public transitionCoverage?: (google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage|null); + + /** CalculateCoverageResponse routeGroupCoverage. */ + public routeGroupCoverage?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage|null); + + /** CalculateCoverageResponse coverageType. */ + public coverageType?: ("intentCoverage"|"transitionCoverage"|"routeGroupCoverage"); /** - * Creates a new ConversationTurn instance using the specified properties. + * Creates a new CalculateCoverageResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ConversationTurn instance + * @returns CalculateCoverageResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IConversationTurn): google.cloud.dialogflow.cx.v3beta1.ConversationTurn; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse; /** - * Encodes the specified ConversationTurn message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.verify|verify} messages. - * @param message ConversationTurn message or plain object to encode + * Encodes the specified CalculateCoverageResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse.verify|verify} messages. + * @param message CalculateCoverageResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IConversationTurn, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ConversationTurn message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.verify|verify} messages. - * @param message ConversationTurn message or plain object to encode + * Encodes the specified CalculateCoverageResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse.verify|verify} messages. + * @param message CalculateCoverageResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IConversationTurn, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ConversationTurn message from the specified reader or buffer. + * Decodes a CalculateCoverageResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ConversationTurn + * @returns CalculateCoverageResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ConversationTurn; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse; /** - * Decodes a ConversationTurn message from the specified reader or buffer, length delimited. + * Decodes a CalculateCoverageResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ConversationTurn + * @returns CalculateCoverageResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ConversationTurn; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse; /** - * Verifies a ConversationTurn message. + * Verifies a CalculateCoverageResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ConversationTurn message from a plain object. Also converts values to their respective internal types. + * Creates a CalculateCoverageResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ConversationTurn + * @returns CalculateCoverageResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ConversationTurn; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse; /** - * Creates a plain object from a ConversationTurn message. Also converts values to other types if specified. - * @param message ConversationTurn + * Creates a plain object from a CalculateCoverageResponse message. Also converts values to other types if specified. + * @param message CalculateCoverageResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ConversationTurn, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ConversationTurn to JSON. + * Converts this CalculateCoverageResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace ConversationTurn { - - /** Properties of a UserInput. */ - interface IUserInput { - - /** UserInput input */ - input?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); - - /** UserInput injectedParameters */ - injectedParameters?: (google.protobuf.IStruct|null); - - /** UserInput isWebhookEnabled */ - isWebhookEnabled?: (boolean|null); - - /** UserInput enableSentimentAnalysis */ - enableSentimentAnalysis?: (boolean|null); - } - - /** Represents a UserInput. */ - class UserInput implements IUserInput { - - /** - * Constructs a new UserInput. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput); - - /** UserInput input. */ - public input?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); - - /** UserInput injectedParameters. */ - public injectedParameters?: (google.protobuf.IStruct|null); - - /** UserInput isWebhookEnabled. */ - public isWebhookEnabled: boolean; - - /** UserInput enableSentimentAnalysis. */ - public enableSentimentAnalysis: boolean; - - /** - * Creates a new UserInput instance using the specified properties. - * @param [properties] Properties to set - * @returns UserInput instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput; - - /** - * Encodes the specified UserInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.verify|verify} messages. - * @param message UserInput message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UserInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.verify|verify} messages. - * @param message UserInput message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a UserInput message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UserInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput; - - /** - * Decodes a UserInput message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UserInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput; - - /** - * Verifies a UserInput message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a UserInput message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UserInput - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput; - - /** - * Creates a plain object from a UserInput message. Also converts values to other types if specified. - * @param message UserInput - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UserInput to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a VirtualAgentOutput. */ - interface IVirtualAgentOutput { - - /** VirtualAgentOutput sessionParameters */ - sessionParameters?: (google.protobuf.IStruct|null); - - /** VirtualAgentOutput differences */ - differences?: (google.cloud.dialogflow.cx.v3beta1.ITestRunDifference[]|null); - - /** VirtualAgentOutput diagnosticInfo */ - diagnosticInfo?: (google.protobuf.IStruct|null); - - /** VirtualAgentOutput triggeredIntent */ - triggeredIntent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); + /** Properties of a ListTestCasesRequest. */ + interface IListTestCasesRequest { - /** VirtualAgentOutput currentPage */ - currentPage?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + /** ListTestCasesRequest parent */ + parent?: (string|null); - /** VirtualAgentOutput textResponses */ - textResponses?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText[]|null); + /** ListTestCasesRequest pageSize */ + pageSize?: (number|null); - /** VirtualAgentOutput status */ - status?: (google.rpc.IStatus|null); - } + /** ListTestCasesRequest pageToken */ + pageToken?: (string|null); - /** Represents a VirtualAgentOutput. */ - class VirtualAgentOutput implements IVirtualAgentOutput { + /** ListTestCasesRequest view */ + view?: (google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView|keyof typeof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView|null); + } - /** - * Constructs a new VirtualAgentOutput. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput); + /** Represents a ListTestCasesRequest. */ + class ListTestCasesRequest implements IListTestCasesRequest { - /** VirtualAgentOutput sessionParameters. */ - public sessionParameters?: (google.protobuf.IStruct|null); + /** + * Constructs a new ListTestCasesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest); - /** VirtualAgentOutput differences. */ - public differences: google.cloud.dialogflow.cx.v3beta1.ITestRunDifference[]; + /** ListTestCasesRequest parent. */ + public parent: string; - /** VirtualAgentOutput diagnosticInfo. */ - public diagnosticInfo?: (google.protobuf.IStruct|null); + /** ListTestCasesRequest pageSize. */ + public pageSize: number; - /** VirtualAgentOutput triggeredIntent. */ - public triggeredIntent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); + /** ListTestCasesRequest pageToken. */ + public pageToken: string; - /** VirtualAgentOutput currentPage. */ - public currentPage?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + /** ListTestCasesRequest view. */ + public view: (google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView|keyof typeof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView); - /** VirtualAgentOutput textResponses. */ - public textResponses: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText[]; + /** + * Creates a new ListTestCasesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListTestCasesRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest): google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest; - /** VirtualAgentOutput status. */ - public status?: (google.rpc.IStatus|null); + /** + * Encodes the specified ListTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.verify|verify} messages. + * @param message ListTestCasesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new VirtualAgentOutput instance using the specified properties. - * @param [properties] Properties to set - * @returns VirtualAgentOutput instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput; + /** + * Encodes the specified ListTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.verify|verify} messages. + * @param message ListTestCasesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified VirtualAgentOutput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.verify|verify} messages. - * @param message VirtualAgentOutput message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a ListTestCasesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListTestCasesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest; - /** - * Encodes the specified VirtualAgentOutput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.verify|verify} messages. - * @param message VirtualAgentOutput message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a ListTestCasesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListTestCasesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest; - /** - * Decodes a VirtualAgentOutput message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VirtualAgentOutput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput; + /** + * Verifies a ListTestCasesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes a VirtualAgentOutput message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VirtualAgentOutput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput; + /** + * Creates a ListTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListTestCasesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest; - /** - * Verifies a VirtualAgentOutput message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a plain object from a ListTestCasesRequest message. Also converts values to other types if specified. + * @param message ListTestCasesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a VirtualAgentOutput message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VirtualAgentOutput - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput; + /** + * Converts this ListTestCasesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Creates a plain object from a VirtualAgentOutput message. Also converts values to other types if specified. - * @param message VirtualAgentOutput - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + namespace ListTestCasesRequest { - /** - * Converts this VirtualAgentOutput to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** TestCaseView enum. */ + enum TestCaseView { + TEST_CASE_VIEW_UNSPECIFIED = 0, + BASIC = 1, + FULL = 2 } } - /** Properties of a TestRunDifference. */ - interface ITestRunDifference { + /** Properties of a ListTestCasesResponse. */ + interface IListTestCasesResponse { - /** TestRunDifference type */ - type?: (google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType|keyof typeof google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType|null); + /** ListTestCasesResponse testCases */ + testCases?: (google.cloud.dialogflow.cx.v3beta1.ITestCase[]|null); - /** TestRunDifference description */ - description?: (string|null); + /** ListTestCasesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a TestRunDifference. */ - class TestRunDifference implements ITestRunDifference { + /** Represents a ListTestCasesResponse. */ + class ListTestCasesResponse implements IListTestCasesResponse { /** - * Constructs a new TestRunDifference. + * Constructs a new ListTestCasesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITestRunDifference); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse); - /** TestRunDifference type. */ - public type: (google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType|keyof typeof google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType); + /** ListTestCasesResponse testCases. */ + public testCases: google.cloud.dialogflow.cx.v3beta1.ITestCase[]; - /** TestRunDifference description. */ - public description: string; + /** ListTestCasesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new TestRunDifference instance using the specified properties. + * Creates a new ListTestCasesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns TestRunDifference instance + * @returns ListTestCasesResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITestRunDifference): google.cloud.dialogflow.cx.v3beta1.TestRunDifference; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse): google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse; /** - * Encodes the specified TestRunDifference message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestRunDifference.verify|verify} messages. - * @param message TestRunDifference message or plain object to encode + * Encodes the specified ListTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse.verify|verify} messages. + * @param message ListTestCasesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITestRunDifference, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TestRunDifference message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestRunDifference.verify|verify} messages. - * @param message TestRunDifference message or plain object to encode + * Encodes the specified ListTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse.verify|verify} messages. + * @param message ListTestCasesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITestRunDifference, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TestRunDifference message from the specified reader or buffer. + * Decodes a ListTestCasesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TestRunDifference + * @returns ListTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TestRunDifference; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse; /** - * Decodes a TestRunDifference message from the specified reader or buffer, length delimited. + * Decodes a ListTestCasesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TestRunDifference + * @returns ListTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TestRunDifference; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse; /** - * Verifies a TestRunDifference message. + * Verifies a ListTestCasesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TestRunDifference message from a plain object. Also converts values to their respective internal types. + * Creates a ListTestCasesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TestRunDifference + * @returns ListTestCasesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TestRunDifference; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse; /** - * Creates a plain object from a TestRunDifference message. Also converts values to other types if specified. - * @param message TestRunDifference + * Creates a plain object from a ListTestCasesResponse message. Also converts values to other types if specified. + * @param message ListTestCasesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TestRunDifference, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TestRunDifference to JSON. + * Converts this ListTestCasesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace TestRunDifference { - - /** DiffType enum. */ - enum DiffType { - DIFF_TYPE_UNSPECIFIED = 0, - INTENT = 1, - PAGE = 2, - PARAMETERS = 3, - UTTERANCE = 4 - } - } - - /** Properties of a TransitionCoverage. */ - interface ITransitionCoverage { + /** Properties of a BatchDeleteTestCasesRequest. */ + interface IBatchDeleteTestCasesRequest { - /** TransitionCoverage transitions */ - transitions?: (google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition[]|null); + /** BatchDeleteTestCasesRequest parent */ + parent?: (string|null); - /** TransitionCoverage coverageScore */ - coverageScore?: (number|null); + /** BatchDeleteTestCasesRequest names */ + names?: (string[]|null); } - /** Represents a TransitionCoverage. */ - class TransitionCoverage implements ITransitionCoverage { + /** Represents a BatchDeleteTestCasesRequest. */ + class BatchDeleteTestCasesRequest implements IBatchDeleteTestCasesRequest { /** - * Constructs a new TransitionCoverage. + * Constructs a new BatchDeleteTestCasesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest); - /** TransitionCoverage transitions. */ - public transitions: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition[]; + /** BatchDeleteTestCasesRequest parent. */ + public parent: string; - /** TransitionCoverage coverageScore. */ - public coverageScore: number; + /** BatchDeleteTestCasesRequest names. */ + public names: string[]; /** - * Creates a new TransitionCoverage instance using the specified properties. + * Creates a new BatchDeleteTestCasesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TransitionCoverage instance + * @returns BatchDeleteTestCasesRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest): google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest; /** - * Encodes the specified TransitionCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.verify|verify} messages. - * @param message TransitionCoverage message or plain object to encode + * Encodes the specified BatchDeleteTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest.verify|verify} messages. + * @param message BatchDeleteTestCasesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TransitionCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.verify|verify} messages. - * @param message TransitionCoverage message or plain object to encode + * Encodes the specified BatchDeleteTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest.verify|verify} messages. + * @param message BatchDeleteTestCasesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TransitionCoverage message from the specified reader or buffer. + * Decodes a BatchDeleteTestCasesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TransitionCoverage + * @returns BatchDeleteTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest; /** - * Decodes a TransitionCoverage message from the specified reader or buffer, length delimited. + * Decodes a BatchDeleteTestCasesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TransitionCoverage + * @returns BatchDeleteTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest; /** - * Verifies a TransitionCoverage message. + * Verifies a BatchDeleteTestCasesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TransitionCoverage message from a plain object. Also converts values to their respective internal types. + * Creates a BatchDeleteTestCasesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TransitionCoverage + * @returns BatchDeleteTestCasesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest; /** - * Creates a plain object from a TransitionCoverage message. Also converts values to other types if specified. - * @param message TransitionCoverage + * Creates a plain object from a BatchDeleteTestCasesRequest message. Also converts values to other types if specified. + * @param message BatchDeleteTestCasesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TransitionCoverage to JSON. + * Converts this BatchDeleteTestCasesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace TransitionCoverage { - - /** Properties of a TransitionNode. */ - interface ITransitionNode { - - /** TransitionNode page */ - page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + /** Properties of a CreateTestCaseRequest. */ + interface ICreateTestCaseRequest { - /** TransitionNode flow */ - flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); - } + /** CreateTestCaseRequest parent */ + parent?: (string|null); - /** Represents a TransitionNode. */ - class TransitionNode implements ITransitionNode { + /** CreateTestCaseRequest testCase */ + testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); + } - /** - * Constructs a new TransitionNode. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode); + /** Represents a CreateTestCaseRequest. */ + class CreateTestCaseRequest implements ICreateTestCaseRequest { - /** TransitionNode page. */ - public page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + /** + * Constructs a new CreateTestCaseRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest); - /** TransitionNode flow. */ - public flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); + /** CreateTestCaseRequest parent. */ + public parent: string; - /** TransitionNode kind. */ - public kind?: ("page"|"flow"); + /** CreateTestCaseRequest testCase. */ + public testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); - /** - * Creates a new TransitionNode instance using the specified properties. - * @param [properties] Properties to set - * @returns TransitionNode instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode; + /** + * Creates a new CreateTestCaseRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateTestCaseRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest): google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest; - /** - * Encodes the specified TransitionNode message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.verify|verify} messages. - * @param message TransitionNode message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified CreateTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest.verify|verify} messages. + * @param message CreateTestCaseRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TransitionNode message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.verify|verify} messages. - * @param message TransitionNode message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified CreateTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest.verify|verify} messages. + * @param message CreateTestCaseRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a TransitionNode message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TransitionNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode; + /** + * Decodes a CreateTestCaseRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateTestCaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest; - /** - * Decodes a TransitionNode message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TransitionNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode; + /** + * Decodes a CreateTestCaseRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateTestCaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest; - /** - * Verifies a TransitionNode message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies a CreateTestCaseRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a TransitionNode message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TransitionNode - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode; + /** + * Creates a CreateTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateTestCaseRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest; - /** - * Creates a plain object from a TransitionNode message. Also converts values to other types if specified. - * @param message TransitionNode - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a CreateTestCaseRequest message. Also converts values to other types if specified. + * @param message CreateTestCaseRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this TransitionNode to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Converts this CreateTestCaseRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Properties of a Transition. */ - interface ITransition { + /** Properties of an UpdateTestCaseRequest. */ + interface IUpdateTestCaseRequest { - /** Transition source */ - source?: (google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null); + /** UpdateTestCaseRequest testCase */ + testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); - /** Transition index */ - index?: (number|null); + /** UpdateTestCaseRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } - /** Transition target */ - target?: (google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null); + /** Represents an UpdateTestCaseRequest. */ + class UpdateTestCaseRequest implements IUpdateTestCaseRequest { - /** Transition covered */ - covered?: (boolean|null); + /** + * Constructs a new UpdateTestCaseRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest); - /** Transition transitionRoute */ - transitionRoute?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null); + /** UpdateTestCaseRequest testCase. */ + public testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); - /** Transition eventHandler */ - eventHandler?: (google.cloud.dialogflow.cx.v3beta1.IEventHandler|null); - } + /** UpdateTestCaseRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** Represents a Transition. */ - class Transition implements ITransition { + /** + * Creates a new UpdateTestCaseRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateTestCaseRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest): google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest; - /** - * Constructs a new Transition. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition); + /** + * Encodes the specified UpdateTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest.verify|verify} messages. + * @param message UpdateTestCaseRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Transition source. */ - public source?: (google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null); + /** + * Encodes the specified UpdateTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest.verify|verify} messages. + * @param message UpdateTestCaseRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Transition index. */ - public index: number; + /** + * Decodes an UpdateTestCaseRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateTestCaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest; - /** Transition target. */ - public target?: (google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null); + /** + * Decodes an UpdateTestCaseRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateTestCaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest; - /** Transition covered. */ - public covered: boolean; + /** + * Verifies an UpdateTestCaseRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Transition transitionRoute. */ - public transitionRoute?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null); + /** + * Creates an UpdateTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateTestCaseRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest; - /** Transition eventHandler. */ - public eventHandler?: (google.cloud.dialogflow.cx.v3beta1.IEventHandler|null); + /** + * Creates a plain object from an UpdateTestCaseRequest message. Also converts values to other types if specified. + * @param message UpdateTestCaseRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Transition detail. */ - public detail?: ("transitionRoute"|"eventHandler"); + /** + * Converts this UpdateTestCaseRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Creates a new Transition instance using the specified properties. - * @param [properties] Properties to set - * @returns Transition instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition; + /** Properties of a GetTestCaseRequest. */ + interface IGetTestCaseRequest { - /** - * Encodes the specified Transition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.verify|verify} messages. - * @param message Transition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition, writer?: $protobuf.Writer): $protobuf.Writer; + /** GetTestCaseRequest name */ + name?: (string|null); + } - /** - * Encodes the specified Transition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.verify|verify} messages. - * @param message Transition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a GetTestCaseRequest. */ + class GetTestCaseRequest implements IGetTestCaseRequest { - /** - * Decodes a Transition message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Transition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition; + /** + * Constructs a new GetTestCaseRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest); - /** - * Decodes a Transition message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Transition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition; + /** GetTestCaseRequest name. */ + public name: string; - /** - * Verifies a Transition message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a new GetTestCaseRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTestCaseRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest): google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest; - /** - * Creates a Transition message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Transition - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition; + /** + * Encodes the specified GetTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest.verify|verify} messages. + * @param message GetTestCaseRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a Transition message. Also converts values to other types if specified. - * @param message Transition - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified GetTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest.verify|verify} messages. + * @param message GetTestCaseRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this Transition to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Decodes a GetTestCaseRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTestCaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest; + + /** + * Decodes a GetTestCaseRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetTestCaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest; + + /** + * Verifies a GetTestCaseRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetTestCaseRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest; + + /** + * Creates a plain object from a GetTestCaseRequest message. Also converts values to other types if specified. + * @param message GetTestCaseRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetTestCaseRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Properties of a TransitionRouteGroupCoverage. */ - interface ITransitionRouteGroupCoverage { + /** Properties of a RunTestCaseRequest. */ + interface IRunTestCaseRequest { - /** TransitionRouteGroupCoverage coverages */ - coverages?: (google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage[]|null); + /** RunTestCaseRequest name */ + name?: (string|null); - /** TransitionRouteGroupCoverage coverageScore */ - coverageScore?: (number|null); + /** RunTestCaseRequest environment */ + environment?: (string|null); } - /** Represents a TransitionRouteGroupCoverage. */ - class TransitionRouteGroupCoverage implements ITransitionRouteGroupCoverage { + /** Represents a RunTestCaseRequest. */ + class RunTestCaseRequest implements IRunTestCaseRequest { /** - * Constructs a new TransitionRouteGroupCoverage. + * Constructs a new RunTestCaseRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest); - /** TransitionRouteGroupCoverage coverages. */ - public coverages: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage[]; + /** RunTestCaseRequest name. */ + public name: string; - /** TransitionRouteGroupCoverage coverageScore. */ - public coverageScore: number; + /** RunTestCaseRequest environment. */ + public environment: string; /** - * Creates a new TransitionRouteGroupCoverage instance using the specified properties. + * Creates a new RunTestCaseRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TransitionRouteGroupCoverage instance + * @returns RunTestCaseRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest): google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest; /** - * Encodes the specified TransitionRouteGroupCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.verify|verify} messages. - * @param message TransitionRouteGroupCoverage message or plain object to encode + * Encodes the specified RunTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest.verify|verify} messages. + * @param message RunTestCaseRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TransitionRouteGroupCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.verify|verify} messages. - * @param message TransitionRouteGroupCoverage message or plain object to encode + * Encodes the specified RunTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest.verify|verify} messages. + * @param message RunTestCaseRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer. + * Decodes a RunTestCaseRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TransitionRouteGroupCoverage + * @returns RunTestCaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest; /** - * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer, length delimited. + * Decodes a RunTestCaseRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TransitionRouteGroupCoverage + * @returns RunTestCaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest; /** - * Verifies a TransitionRouteGroupCoverage message. + * Verifies a RunTestCaseRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TransitionRouteGroupCoverage message from a plain object. Also converts values to their respective internal types. + * Creates a RunTestCaseRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TransitionRouteGroupCoverage + * @returns RunTestCaseRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest; /** - * Creates a plain object from a TransitionRouteGroupCoverage message. Also converts values to other types if specified. - * @param message TransitionRouteGroupCoverage + * Creates a plain object from a RunTestCaseRequest message. Also converts values to other types if specified. + * @param message RunTestCaseRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TransitionRouteGroupCoverage to JSON. + * Converts this RunTestCaseRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace TransitionRouteGroupCoverage { - - /** Properties of a Coverage. */ - interface ICoverage { + /** Properties of a RunTestCaseResponse. */ + interface IRunTestCaseResponse { - /** Coverage routeGroup */ - routeGroup?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null); + /** RunTestCaseResponse result */ + result?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null); + } - /** Coverage transitions */ - transitions?: (google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition[]|null); + /** Represents a RunTestCaseResponse. */ + class RunTestCaseResponse implements IRunTestCaseResponse { - /** Coverage coverageScore */ - coverageScore?: (number|null); - } + /** + * Constructs a new RunTestCaseResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse); - /** Represents a Coverage. */ - class Coverage implements ICoverage { + /** RunTestCaseResponse result. */ + public result?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null); - /** - * Constructs a new Coverage. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage); + /** + * Creates a new RunTestCaseResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RunTestCaseResponse instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse): google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse; - /** Coverage routeGroup. */ - public routeGroup?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null); + /** + * Encodes the specified RunTestCaseResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse.verify|verify} messages. + * @param message RunTestCaseResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Coverage transitions. */ - public transitions: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition[]; - - /** Coverage coverageScore. */ - public coverageScore: number; - - /** - * Creates a new Coverage instance using the specified properties. - * @param [properties] Properties to set - * @returns Coverage instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage; - - /** - * Encodes the specified Coverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.verify|verify} messages. - * @param message Coverage message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Coverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.verify|verify} messages. - * @param message Coverage message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Coverage message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Coverage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage; - - /** - * Decodes a Coverage message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Coverage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage; - - /** - * Verifies a Coverage message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Coverage message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Coverage - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage; - - /** - * Creates a plain object from a Coverage message. Also converts values to other types if specified. - * @param message Coverage - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Coverage to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace Coverage { - - /** Properties of a Transition. */ - interface ITransition { - - /** Transition transitionRoute */ - transitionRoute?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null); - - /** Transition covered */ - covered?: (boolean|null); - } - - /** Represents a Transition. */ - class Transition implements ITransition { - - /** - * Constructs a new Transition. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition); - - /** Transition transitionRoute. */ - public transitionRoute?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null); - - /** Transition covered. */ - public covered: boolean; - - /** - * Creates a new Transition instance using the specified properties. - * @param [properties] Properties to set - * @returns Transition instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition; - - /** - * Encodes the specified Transition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.verify|verify} messages. - * @param message Transition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Transition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.verify|verify} messages. - * @param message Transition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Transition message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Transition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition; - - /** - * Decodes a Transition message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Transition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition; - - /** - * Verifies a Transition message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Transition message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Transition - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition; - - /** - * Creates a plain object from a Transition message. Also converts values to other types if specified. - * @param message Transition - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Transition to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - } - - /** Properties of an IntentCoverage. */ - interface IIntentCoverage { - - /** IntentCoverage intents */ - intents?: (google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent[]|null); - - /** IntentCoverage coverageScore */ - coverageScore?: (number|null); - } - - /** Represents an IntentCoverage. */ - class IntentCoverage implements IIntentCoverage { - - /** - * Constructs a new IntentCoverage. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IIntentCoverage); - - /** IntentCoverage intents. */ - public intents: google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent[]; - - /** IntentCoverage coverageScore. */ - public coverageScore: number; - - /** - * Creates a new IntentCoverage instance using the specified properties. - * @param [properties] Properties to set - * @returns IntentCoverage instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IIntentCoverage): google.cloud.dialogflow.cx.v3beta1.IntentCoverage; - - /** - * Encodes the specified IntentCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentCoverage.verify|verify} messages. - * @param message IntentCoverage message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IIntentCoverage, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified IntentCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentCoverage.verify|verify} messages. - * @param message IntentCoverage message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IIntentCoverage, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified RunTestCaseResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse.verify|verify} messages. + * @param message RunTestCaseResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IntentCoverage message from the specified reader or buffer. + * Decodes a RunTestCaseResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns IntentCoverage + * @returns RunTestCaseResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.IntentCoverage; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse; /** - * Decodes an IntentCoverage message from the specified reader or buffer, length delimited. + * Decodes a RunTestCaseResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns IntentCoverage + * @returns RunTestCaseResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.IntentCoverage; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse; /** - * Verifies an IntentCoverage message. + * Verifies a RunTestCaseResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an IntentCoverage message from a plain object. Also converts values to their respective internal types. + * Creates a RunTestCaseResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns IntentCoverage + * @returns RunTestCaseResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.IntentCoverage; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse; /** - * Creates a plain object from an IntentCoverage message. Also converts values to other types if specified. - * @param message IntentCoverage + * Creates a plain object from a RunTestCaseResponse message. Also converts values to other types if specified. + * @param message RunTestCaseResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.IntentCoverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IntentCoverage to JSON. + * Converts this RunTestCaseResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace IntentCoverage { - - /** Properties of an Intent. */ - interface IIntent { - - /** Intent intent */ - intent?: (string|null); - - /** Intent covered */ - covered?: (boolean|null); - } - - /** Represents an Intent. */ - class Intent implements IIntent { - - /** - * Constructs a new Intent. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent); - - /** Intent intent. */ - public intent: string; - - /** Intent covered. */ - public covered: boolean; - - /** - * Creates a new Intent instance using the specified properties. - * @param [properties] Properties to set - * @returns Intent instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent): google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent; - - /** - * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.verify|verify} messages. - * @param message Intent message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.verify|verify} messages. - * @param message Intent message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Intent message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Intent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent; - - /** - * Decodes an Intent message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Intent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent; - - /** - * Verifies an Intent message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an Intent message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Intent - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent; - - /** - * Creates a plain object from an Intent message. Also converts values to other types if specified. - * @param message Intent - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Intent to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of a CalculateCoverageRequest. */ - interface ICalculateCoverageRequest { - - /** CalculateCoverageRequest agent */ - agent?: (string|null); - - /** CalculateCoverageRequest type */ - type?: (google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType|keyof typeof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType|null); + /** Properties of a RunTestCaseMetadata. */ + interface IRunTestCaseMetadata { } - /** Represents a CalculateCoverageRequest. */ - class CalculateCoverageRequest implements ICalculateCoverageRequest { + /** Represents a RunTestCaseMetadata. */ + class RunTestCaseMetadata implements IRunTestCaseMetadata { /** - * Constructs a new CalculateCoverageRequest. + * Constructs a new RunTestCaseMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest); - - /** CalculateCoverageRequest agent. */ - public agent: string; - - /** CalculateCoverageRequest type. */ - public type: (google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType|keyof typeof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata); /** - * Creates a new CalculateCoverageRequest instance using the specified properties. + * Creates a new RunTestCaseMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns CalculateCoverageRequest instance + * @returns RunTestCaseMetadata instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata): google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata; /** - * Encodes the specified CalculateCoverageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.verify|verify} messages. - * @param message CalculateCoverageRequest message or plain object to encode + * Encodes the specified RunTestCaseMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata.verify|verify} messages. + * @param message RunTestCaseMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CalculateCoverageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.verify|verify} messages. - * @param message CalculateCoverageRequest message or plain object to encode + * Encodes the specified RunTestCaseMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata.verify|verify} messages. + * @param message RunTestCaseMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CalculateCoverageRequest message from the specified reader or buffer. + * Decodes a RunTestCaseMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CalculateCoverageRequest + * @returns RunTestCaseMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata; /** - * Decodes a CalculateCoverageRequest message from the specified reader or buffer, length delimited. + * Decodes a RunTestCaseMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CalculateCoverageRequest + * @returns RunTestCaseMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata; /** - * Verifies a CalculateCoverageRequest message. + * Verifies a RunTestCaseMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CalculateCoverageRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RunTestCaseMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CalculateCoverageRequest + * @returns RunTestCaseMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata; /** - * Creates a plain object from a CalculateCoverageRequest message. Also converts values to other types if specified. - * @param message CalculateCoverageRequest + * Creates a plain object from a RunTestCaseMetadata message. Also converts values to other types if specified. + * @param message RunTestCaseMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CalculateCoverageRequest to JSON. + * Converts this RunTestCaseMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace CalculateCoverageRequest { - - /** CoverageType enum. */ - enum CoverageType { - COVERAGE_TYPE_UNSPECIFIED = 0, - INTENT = 1, - PAGE_TRANSITION = 2, - TRANSITION_ROUTE_GROUP = 3 - } - } - - /** Properties of a CalculateCoverageResponse. */ - interface ICalculateCoverageResponse { - - /** CalculateCoverageResponse agent */ - agent?: (string|null); + /** Properties of a BatchRunTestCasesRequest. */ + interface IBatchRunTestCasesRequest { - /** CalculateCoverageResponse intentCoverage */ - intentCoverage?: (google.cloud.dialogflow.cx.v3beta1.IIntentCoverage|null); + /** BatchRunTestCasesRequest parent */ + parent?: (string|null); - /** CalculateCoverageResponse transitionCoverage */ - transitionCoverage?: (google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage|null); + /** BatchRunTestCasesRequest environment */ + environment?: (string|null); - /** CalculateCoverageResponse routeGroupCoverage */ - routeGroupCoverage?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage|null); + /** BatchRunTestCasesRequest testCases */ + testCases?: (string[]|null); } - /** Represents a CalculateCoverageResponse. */ - class CalculateCoverageResponse implements ICalculateCoverageResponse { + /** Represents a BatchRunTestCasesRequest. */ + class BatchRunTestCasesRequest implements IBatchRunTestCasesRequest { /** - * Constructs a new CalculateCoverageResponse. + * Constructs a new BatchRunTestCasesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse); - - /** CalculateCoverageResponse agent. */ - public agent: string; - - /** CalculateCoverageResponse intentCoverage. */ - public intentCoverage?: (google.cloud.dialogflow.cx.v3beta1.IIntentCoverage|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest); - /** CalculateCoverageResponse transitionCoverage. */ - public transitionCoverage?: (google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage|null); + /** BatchRunTestCasesRequest parent. */ + public parent: string; - /** CalculateCoverageResponse routeGroupCoverage. */ - public routeGroupCoverage?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage|null); + /** BatchRunTestCasesRequest environment. */ + public environment: string; - /** CalculateCoverageResponse coverageType. */ - public coverageType?: ("intentCoverage"|"transitionCoverage"|"routeGroupCoverage"); + /** BatchRunTestCasesRequest testCases. */ + public testCases: string[]; /** - * Creates a new CalculateCoverageResponse instance using the specified properties. + * Creates a new BatchRunTestCasesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CalculateCoverageResponse instance + * @returns BatchRunTestCasesRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest; /** - * Encodes the specified CalculateCoverageResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse.verify|verify} messages. - * @param message CalculateCoverageResponse message or plain object to encode + * Encodes the specified BatchRunTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest.verify|verify} messages. + * @param message BatchRunTestCasesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CalculateCoverageResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse.verify|verify} messages. - * @param message CalculateCoverageResponse message or plain object to encode + * Encodes the specified BatchRunTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest.verify|verify} messages. + * @param message BatchRunTestCasesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CalculateCoverageResponse message from the specified reader or buffer. + * Decodes a BatchRunTestCasesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CalculateCoverageResponse + * @returns BatchRunTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest; /** - * Decodes a CalculateCoverageResponse message from the specified reader or buffer, length delimited. + * Decodes a BatchRunTestCasesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CalculateCoverageResponse + * @returns BatchRunTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest; /** - * Verifies a CalculateCoverageResponse message. + * Verifies a BatchRunTestCasesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CalculateCoverageResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BatchRunTestCasesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CalculateCoverageResponse + * @returns BatchRunTestCasesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest; /** - * Creates a plain object from a CalculateCoverageResponse message. Also converts values to other types if specified. - * @param message CalculateCoverageResponse + * Creates a plain object from a BatchRunTestCasesRequest message. Also converts values to other types if specified. + * @param message BatchRunTestCasesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CalculateCoverageResponse to JSON. + * Converts this BatchRunTestCasesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListTestCasesRequest. */ - interface IListTestCasesRequest { - - /** ListTestCasesRequest parent */ - parent?: (string|null); - - /** ListTestCasesRequest pageSize */ - pageSize?: (number|null); - - /** ListTestCasesRequest pageToken */ - pageToken?: (string|null); + /** Properties of a BatchRunTestCasesResponse. */ + interface IBatchRunTestCasesResponse { - /** ListTestCasesRequest view */ - view?: (google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView|keyof typeof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView|null); + /** BatchRunTestCasesResponse results */ + results?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseResult[]|null); } - /** Represents a ListTestCasesRequest. */ - class ListTestCasesRequest implements IListTestCasesRequest { + /** Represents a BatchRunTestCasesResponse. */ + class BatchRunTestCasesResponse implements IBatchRunTestCasesResponse { /** - * Constructs a new ListTestCasesRequest. + * Constructs a new BatchRunTestCasesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest); - - /** ListTestCasesRequest parent. */ - public parent: string; - - /** ListTestCasesRequest pageSize. */ - public pageSize: number; - - /** ListTestCasesRequest pageToken. */ - public pageToken: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse); - /** ListTestCasesRequest view. */ - public view: (google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView|keyof typeof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView); + /** BatchRunTestCasesResponse results. */ + public results: google.cloud.dialogflow.cx.v3beta1.ITestCaseResult[]; /** - * Creates a new ListTestCasesRequest instance using the specified properties. + * Creates a new BatchRunTestCasesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListTestCasesRequest instance + * @returns BatchRunTestCasesResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest): google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse; /** - * Encodes the specified ListTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.verify|verify} messages. - * @param message ListTestCasesRequest message or plain object to encode + * Encodes the specified BatchRunTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse.verify|verify} messages. + * @param message BatchRunTestCasesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.verify|verify} messages. - * @param message ListTestCasesRequest message or plain object to encode + * Encodes the specified BatchRunTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse.verify|verify} messages. + * @param message BatchRunTestCasesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTestCasesRequest message from the specified reader or buffer. + * Decodes a BatchRunTestCasesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTestCasesRequest + * @returns BatchRunTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse; /** - * Decodes a ListTestCasesRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchRunTestCasesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTestCasesRequest + * @returns BatchRunTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse; /** - * Verifies a ListTestCasesRequest message. + * Verifies a BatchRunTestCasesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchRunTestCasesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTestCasesRequest + * @returns BatchRunTestCasesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse; /** - * Creates a plain object from a ListTestCasesRequest message. Also converts values to other types if specified. - * @param message ListTestCasesRequest + * Creates a plain object from a BatchRunTestCasesResponse message. Also converts values to other types if specified. + * @param message BatchRunTestCasesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTestCasesRequest to JSON. + * Converts this BatchRunTestCasesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace ListTestCasesRequest { - - /** TestCaseView enum. */ - enum TestCaseView { - TEST_CASE_VIEW_UNSPECIFIED = 0, - BASIC = 1, - FULL = 2 - } - } - - /** Properties of a ListTestCasesResponse. */ - interface IListTestCasesResponse { - - /** ListTestCasesResponse testCases */ - testCases?: (google.cloud.dialogflow.cx.v3beta1.ITestCase[]|null); + /** Properties of a BatchRunTestCasesMetadata. */ + interface IBatchRunTestCasesMetadata { - /** ListTestCasesResponse nextPageToken */ - nextPageToken?: (string|null); + /** BatchRunTestCasesMetadata errors */ + errors?: (google.cloud.dialogflow.cx.v3beta1.ITestError[]|null); } - /** Represents a ListTestCasesResponse. */ - class ListTestCasesResponse implements IListTestCasesResponse { + /** Represents a BatchRunTestCasesMetadata. */ + class BatchRunTestCasesMetadata implements IBatchRunTestCasesMetadata { /** - * Constructs a new ListTestCasesResponse. + * Constructs a new BatchRunTestCasesMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse); - - /** ListTestCasesResponse testCases. */ - public testCases: google.cloud.dialogflow.cx.v3beta1.ITestCase[]; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata); - /** ListTestCasesResponse nextPageToken. */ - public nextPageToken: string; + /** BatchRunTestCasesMetadata errors. */ + public errors: google.cloud.dialogflow.cx.v3beta1.ITestError[]; /** - * Creates a new ListTestCasesResponse instance using the specified properties. + * Creates a new BatchRunTestCasesMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ListTestCasesResponse instance + * @returns BatchRunTestCasesMetadata instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse): google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata; /** - * Encodes the specified ListTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse.verify|verify} messages. - * @param message ListTestCasesResponse message or plain object to encode + * Encodes the specified BatchRunTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata.verify|verify} messages. + * @param message BatchRunTestCasesMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse.verify|verify} messages. - * @param message ListTestCasesResponse message or plain object to encode + * Encodes the specified BatchRunTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata.verify|verify} messages. + * @param message BatchRunTestCasesMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTestCasesResponse message from the specified reader or buffer. + * Decodes a BatchRunTestCasesMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTestCasesResponse + * @returns BatchRunTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata; /** - * Decodes a ListTestCasesResponse message from the specified reader or buffer, length delimited. + * Decodes a BatchRunTestCasesMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTestCasesResponse + * @returns BatchRunTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata; /** - * Verifies a ListTestCasesResponse message. + * Verifies a BatchRunTestCasesMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListTestCasesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BatchRunTestCasesMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTestCasesResponse + * @returns BatchRunTestCasesMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata; /** - * Creates a plain object from a ListTestCasesResponse message. Also converts values to other types if specified. - * @param message ListTestCasesResponse + * Creates a plain object from a BatchRunTestCasesMetadata message. Also converts values to other types if specified. + * @param message BatchRunTestCasesMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTestCasesResponse to JSON. + * Converts this BatchRunTestCasesMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BatchDeleteTestCasesRequest. */ - interface IBatchDeleteTestCasesRequest { + /** Properties of a TestError. */ + interface ITestError { - /** BatchDeleteTestCasesRequest parent */ - parent?: (string|null); + /** TestError testCase */ + testCase?: (string|null); - /** BatchDeleteTestCasesRequest names */ - names?: (string[]|null); + /** TestError status */ + status?: (google.rpc.IStatus|null); + + /** TestError testTime */ + testTime?: (google.protobuf.ITimestamp|null); } - /** Represents a BatchDeleteTestCasesRequest. */ - class BatchDeleteTestCasesRequest implements IBatchDeleteTestCasesRequest { + /** Represents a TestError. */ + class TestError implements ITestError { /** - * Constructs a new BatchDeleteTestCasesRequest. + * Constructs a new TestError. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITestError); - /** BatchDeleteTestCasesRequest parent. */ - public parent: string; + /** TestError testCase. */ + public testCase: string; - /** BatchDeleteTestCasesRequest names. */ - public names: string[]; + /** TestError status. */ + public status?: (google.rpc.IStatus|null); + + /** TestError testTime. */ + public testTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new BatchDeleteTestCasesRequest instance using the specified properties. + * Creates a new TestError instance using the specified properties. * @param [properties] Properties to set - * @returns BatchDeleteTestCasesRequest instance + * @returns TestError instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest): google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITestError): google.cloud.dialogflow.cx.v3beta1.TestError; /** - * Encodes the specified BatchDeleteTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest.verify|verify} messages. - * @param message BatchDeleteTestCasesRequest message or plain object to encode + * Encodes the specified TestError message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestError.verify|verify} messages. + * @param message TestError message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITestError, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchDeleteTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest.verify|verify} messages. - * @param message BatchDeleteTestCasesRequest message or plain object to encode + * Encodes the specified TestError message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestError.verify|verify} messages. + * @param message TestError message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITestError, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchDeleteTestCasesRequest message from the specified reader or buffer. + * Decodes a TestError message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchDeleteTestCasesRequest + * @returns TestError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TestError; /** - * Decodes a BatchDeleteTestCasesRequest message from the specified reader or buffer, length delimited. + * Decodes a TestError message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchDeleteTestCasesRequest + * @returns TestError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TestError; /** - * Verifies a BatchDeleteTestCasesRequest message. + * Verifies a TestError message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchDeleteTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestError message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchDeleteTestCasesRequest + * @returns TestError */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TestError; /** - * Creates a plain object from a BatchDeleteTestCasesRequest message. Also converts values to other types if specified. - * @param message BatchDeleteTestCasesRequest + * Creates a plain object from a TestError message. Also converts values to other types if specified. + * @param message TestError * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TestError, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchDeleteTestCasesRequest to JSON. + * Converts this TestError to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateTestCaseRequest. */ - interface ICreateTestCaseRequest { + /** Properties of an ImportTestCasesRequest. */ + interface IImportTestCasesRequest { - /** CreateTestCaseRequest parent */ + /** ImportTestCasesRequest parent */ parent?: (string|null); - /** CreateTestCaseRequest testCase */ - testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); + /** ImportTestCasesRequest gcsUri */ + gcsUri?: (string|null); + + /** ImportTestCasesRequest content */ + content?: (Uint8Array|string|null); } - /** Represents a CreateTestCaseRequest. */ - class CreateTestCaseRequest implements ICreateTestCaseRequest { + /** Represents an ImportTestCasesRequest. */ + class ImportTestCasesRequest implements IImportTestCasesRequest { /** - * Constructs a new CreateTestCaseRequest. + * Constructs a new ImportTestCasesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest); - /** CreateTestCaseRequest parent. */ + /** ImportTestCasesRequest parent. */ public parent: string; - /** CreateTestCaseRequest testCase. */ - public testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); + /** ImportTestCasesRequest gcsUri. */ + public gcsUri?: (string|null); + + /** ImportTestCasesRequest content. */ + public content?: (Uint8Array|string|null); + + /** ImportTestCasesRequest source. */ + public source?: ("gcsUri"|"content"); /** - * Creates a new CreateTestCaseRequest instance using the specified properties. + * Creates a new ImportTestCasesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateTestCaseRequest instance + * @returns ImportTestCasesRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest): google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest; /** - * Encodes the specified CreateTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest.verify|verify} messages. - * @param message CreateTestCaseRequest message or plain object to encode + * Encodes the specified ImportTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest.verify|verify} messages. + * @param message ImportTestCasesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest.verify|verify} messages. - * @param message CreateTestCaseRequest message or plain object to encode + * Encodes the specified ImportTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest.verify|verify} messages. + * @param message ImportTestCasesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateTestCaseRequest message from the specified reader or buffer. + * Decodes an ImportTestCasesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateTestCaseRequest + * @returns ImportTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest; /** - * Decodes a CreateTestCaseRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportTestCasesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateTestCaseRequest + * @returns ImportTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest; /** - * Verifies a CreateTestCaseRequest message. + * Verifies an ImportTestCasesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ImportTestCasesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateTestCaseRequest + * @returns ImportTestCasesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest; /** - * Creates a plain object from a CreateTestCaseRequest message. Also converts values to other types if specified. - * @param message CreateTestCaseRequest + * Creates a plain object from an ImportTestCasesRequest message. Also converts values to other types if specified. + * @param message ImportTestCasesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateTestCaseRequest to JSON. + * Converts this ImportTestCasesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateTestCaseRequest. */ - interface IUpdateTestCaseRequest { - - /** UpdateTestCaseRequest testCase */ - testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); + /** Properties of an ImportTestCasesResponse. */ + interface IImportTestCasesResponse { - /** UpdateTestCaseRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** ImportTestCasesResponse names */ + names?: (string[]|null); } - /** Represents an UpdateTestCaseRequest. */ - class UpdateTestCaseRequest implements IUpdateTestCaseRequest { + /** Represents an ImportTestCasesResponse. */ + class ImportTestCasesResponse implements IImportTestCasesResponse { /** - * Constructs a new UpdateTestCaseRequest. + * Constructs a new ImportTestCasesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest); - - /** UpdateTestCaseRequest testCase. */ - public testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse); - /** UpdateTestCaseRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** ImportTestCasesResponse names. */ + public names: string[]; /** - * Creates a new UpdateTestCaseRequest instance using the specified properties. + * Creates a new ImportTestCasesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateTestCaseRequest instance + * @returns ImportTestCasesResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest): google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse; /** - * Encodes the specified UpdateTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest.verify|verify} messages. - * @param message UpdateTestCaseRequest message or plain object to encode + * Encodes the specified ImportTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse.verify|verify} messages. + * @param message ImportTestCasesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest.verify|verify} messages. - * @param message UpdateTestCaseRequest message or plain object to encode + * Encodes the specified ImportTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse.verify|verify} messages. + * @param message ImportTestCasesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateTestCaseRequest message from the specified reader or buffer. + * Decodes an ImportTestCasesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateTestCaseRequest + * @returns ImportTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse; /** - * Decodes an UpdateTestCaseRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportTestCasesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateTestCaseRequest + * @returns ImportTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse; /** - * Verifies an UpdateTestCaseRequest message. + * Verifies an ImportTestCasesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ImportTestCasesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateTestCaseRequest + * @returns ImportTestCasesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse; /** - * Creates a plain object from an UpdateTestCaseRequest message. Also converts values to other types if specified. - * @param message UpdateTestCaseRequest + * Creates a plain object from an ImportTestCasesResponse message. Also converts values to other types if specified. + * @param message ImportTestCasesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateTestCaseRequest to JSON. + * Converts this ImportTestCasesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetTestCaseRequest. */ - interface IGetTestCaseRequest { + /** Properties of an ImportTestCasesMetadata. */ + interface IImportTestCasesMetadata { - /** GetTestCaseRequest name */ - name?: (string|null); + /** ImportTestCasesMetadata errors */ + errors?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseError[]|null); } - /** Represents a GetTestCaseRequest. */ - class GetTestCaseRequest implements IGetTestCaseRequest { + /** Represents an ImportTestCasesMetadata. */ + class ImportTestCasesMetadata implements IImportTestCasesMetadata { /** - * Constructs a new GetTestCaseRequest. + * Constructs a new ImportTestCasesMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata); - /** GetTestCaseRequest name. */ - public name: string; + /** ImportTestCasesMetadata errors. */ + public errors: google.cloud.dialogflow.cx.v3beta1.ITestCaseError[]; /** - * Creates a new GetTestCaseRequest instance using the specified properties. + * Creates a new ImportTestCasesMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns GetTestCaseRequest instance + * @returns ImportTestCasesMetadata instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest): google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata; /** - * Encodes the specified GetTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest.verify|verify} messages. - * @param message GetTestCaseRequest message or plain object to encode + * Encodes the specified ImportTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata.verify|verify} messages. + * @param message ImportTestCasesMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest.verify|verify} messages. - * @param message GetTestCaseRequest message or plain object to encode + * Encodes the specified ImportTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata.verify|verify} messages. + * @param message ImportTestCasesMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTestCaseRequest message from the specified reader or buffer. + * Decodes an ImportTestCasesMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetTestCaseRequest + * @returns ImportTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata; /** - * Decodes a GetTestCaseRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportTestCasesMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTestCaseRequest + * @returns ImportTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata; /** - * Verifies a GetTestCaseRequest message. + * Verifies an ImportTestCasesMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ImportTestCasesMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTestCaseRequest + * @returns ImportTestCasesMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata; /** - * Creates a plain object from a GetTestCaseRequest message. Also converts values to other types if specified. - * @param message GetTestCaseRequest + * Creates a plain object from an ImportTestCasesMetadata message. Also converts values to other types if specified. + * @param message ImportTestCasesMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTestCaseRequest to JSON. + * Converts this ImportTestCasesMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RunTestCaseRequest. */ - interface IRunTestCaseRequest { + /** Properties of a TestCaseError. */ + interface ITestCaseError { - /** RunTestCaseRequest name */ - name?: (string|null); + /** TestCaseError testCase */ + testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); - /** RunTestCaseRequest environment */ - environment?: (string|null); + /** TestCaseError status */ + status?: (google.rpc.IStatus|null); } - /** Represents a RunTestCaseRequest. */ - class RunTestCaseRequest implements IRunTestCaseRequest { + /** Represents a TestCaseError. */ + class TestCaseError implements ITestCaseError { /** - * Constructs a new RunTestCaseRequest. + * Constructs a new TestCaseError. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITestCaseError); - /** RunTestCaseRequest name. */ - public name: string; + /** TestCaseError testCase. */ + public testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); - /** RunTestCaseRequest environment. */ - public environment: string; + /** TestCaseError status. */ + public status?: (google.rpc.IStatus|null); /** - * Creates a new RunTestCaseRequest instance using the specified properties. + * Creates a new TestCaseError instance using the specified properties. * @param [properties] Properties to set - * @returns RunTestCaseRequest instance + * @returns TestCaseError instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest): google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITestCaseError): google.cloud.dialogflow.cx.v3beta1.TestCaseError; /** - * Encodes the specified RunTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest.verify|verify} messages. - * @param message RunTestCaseRequest message or plain object to encode + * Encodes the specified TestCaseError message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCaseError.verify|verify} messages. + * @param message TestCaseError message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITestCaseError, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RunTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest.verify|verify} messages. - * @param message RunTestCaseRequest message or plain object to encode + * Encodes the specified TestCaseError message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCaseError.verify|verify} messages. + * @param message TestCaseError message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITestCaseError, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RunTestCaseRequest message from the specified reader or buffer. + * Decodes a TestCaseError message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RunTestCaseRequest + * @returns TestCaseError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TestCaseError; /** - * Decodes a RunTestCaseRequest message from the specified reader or buffer, length delimited. + * Decodes a TestCaseError message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RunTestCaseRequest + * @returns TestCaseError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TestCaseError; /** - * Verifies a RunTestCaseRequest message. + * Verifies a TestCaseError message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RunTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestCaseError message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RunTestCaseRequest + * @returns TestCaseError */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TestCaseError; /** - * Creates a plain object from a RunTestCaseRequest message. Also converts values to other types if specified. - * @param message RunTestCaseRequest + * Creates a plain object from a TestCaseError message. Also converts values to other types if specified. + * @param message TestCaseError * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TestCaseError, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RunTestCaseRequest to JSON. + * Converts this TestCaseError to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RunTestCaseResponse. */ - interface IRunTestCaseResponse { + /** Properties of an ExportTestCasesRequest. */ + interface IExportTestCasesRequest { - /** RunTestCaseResponse result */ - result?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null); + /** ExportTestCasesRequest parent */ + parent?: (string|null); + + /** ExportTestCasesRequest gcsUri */ + gcsUri?: (string|null); + + /** ExportTestCasesRequest dataFormat */ + dataFormat?: (google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat|keyof typeof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat|null); + + /** ExportTestCasesRequest filter */ + filter?: (string|null); } - /** Represents a RunTestCaseResponse. */ - class RunTestCaseResponse implements IRunTestCaseResponse { + /** Represents an ExportTestCasesRequest. */ + class ExportTestCasesRequest implements IExportTestCasesRequest { /** - * Constructs a new RunTestCaseResponse. + * Constructs a new ExportTestCasesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest); - /** RunTestCaseResponse result. */ - public result?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null); + /** ExportTestCasesRequest parent. */ + public parent: string; + + /** ExportTestCasesRequest gcsUri. */ + public gcsUri?: (string|null); + + /** ExportTestCasesRequest dataFormat. */ + public dataFormat: (google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat|keyof typeof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat); + + /** ExportTestCasesRequest filter. */ + public filter: string; + + /** ExportTestCasesRequest destination. */ + public destination?: "gcsUri"; /** - * Creates a new RunTestCaseResponse instance using the specified properties. + * Creates a new ExportTestCasesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RunTestCaseResponse instance + * @returns ExportTestCasesRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse): google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest; /** - * Encodes the specified RunTestCaseResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse.verify|verify} messages. - * @param message RunTestCaseResponse message or plain object to encode + * Encodes the specified ExportTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.verify|verify} messages. + * @param message ExportTestCasesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RunTestCaseResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse.verify|verify} messages. - * @param message RunTestCaseResponse message or plain object to encode + * Encodes the specified ExportTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.verify|verify} messages. + * @param message ExportTestCasesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RunTestCaseResponse message from the specified reader or buffer. + * Decodes an ExportTestCasesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RunTestCaseResponse + * @returns ExportTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest; /** - * Decodes a RunTestCaseResponse message from the specified reader or buffer, length delimited. + * Decodes an ExportTestCasesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RunTestCaseResponse + * @returns ExportTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest; /** - * Verifies a RunTestCaseResponse message. + * Verifies an ExportTestCasesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RunTestCaseResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExportTestCasesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RunTestCaseResponse + * @returns ExportTestCasesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest; /** - * Creates a plain object from a RunTestCaseResponse message. Also converts values to other types if specified. - * @param message RunTestCaseResponse + * Creates a plain object from an ExportTestCasesRequest message. Also converts values to other types if specified. + * @param message ExportTestCasesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RunTestCaseResponse to JSON. + * Converts this ExportTestCasesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RunTestCaseMetadata. */ - interface IRunTestCaseMetadata { + namespace ExportTestCasesRequest { + + /** DataFormat enum. */ + enum DataFormat { + DATA_FORMAT_UNSPECIFIED = 0, + BLOB = 1, + JSON = 2 + } } - /** Represents a RunTestCaseMetadata. */ - class RunTestCaseMetadata implements IRunTestCaseMetadata { + /** Properties of an ExportTestCasesResponse. */ + interface IExportTestCasesResponse { + + /** ExportTestCasesResponse gcsUri */ + gcsUri?: (string|null); + + /** ExportTestCasesResponse content */ + content?: (Uint8Array|string|null); + } + + /** Represents an ExportTestCasesResponse. */ + class ExportTestCasesResponse implements IExportTestCasesResponse { /** - * Constructs a new RunTestCaseMetadata. + * Constructs a new ExportTestCasesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse); + + /** ExportTestCasesResponse gcsUri. */ + public gcsUri?: (string|null); + + /** ExportTestCasesResponse content. */ + public content?: (Uint8Array|string|null); + + /** ExportTestCasesResponse destination. */ + public destination?: ("gcsUri"|"content"); /** - * Creates a new RunTestCaseMetadata instance using the specified properties. + * Creates a new ExportTestCasesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RunTestCaseMetadata instance + * @returns ExportTestCasesResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata): google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse; /** - * Encodes the specified RunTestCaseMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata.verify|verify} messages. - * @param message RunTestCaseMetadata message or plain object to encode + * Encodes the specified ExportTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse.verify|verify} messages. + * @param message ExportTestCasesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RunTestCaseMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata.verify|verify} messages. - * @param message RunTestCaseMetadata message or plain object to encode + * Encodes the specified ExportTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse.verify|verify} messages. + * @param message ExportTestCasesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RunTestCaseMetadata message from the specified reader or buffer. + * Decodes an ExportTestCasesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RunTestCaseMetadata + * @returns ExportTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse; /** - * Decodes a RunTestCaseMetadata message from the specified reader or buffer, length delimited. + * Decodes an ExportTestCasesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RunTestCaseMetadata + * @returns ExportTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse; /** - * Verifies a RunTestCaseMetadata message. + * Verifies an ExportTestCasesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RunTestCaseMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an ExportTestCasesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RunTestCaseMetadata + * @returns ExportTestCasesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse; /** - * Creates a plain object from a RunTestCaseMetadata message. Also converts values to other types if specified. - * @param message RunTestCaseMetadata + * Creates a plain object from an ExportTestCasesResponse message. Also converts values to other types if specified. + * @param message ExportTestCasesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RunTestCaseMetadata to JSON. + * Converts this ExportTestCasesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BatchRunTestCasesRequest. */ - interface IBatchRunTestCasesRequest { - - /** BatchRunTestCasesRequest parent */ - parent?: (string|null); - - /** BatchRunTestCasesRequest environment */ - environment?: (string|null); - - /** BatchRunTestCasesRequest testCases */ - testCases?: (string[]|null); + /** Properties of an ExportTestCasesMetadata. */ + interface IExportTestCasesMetadata { } - /** Represents a BatchRunTestCasesRequest. */ - class BatchRunTestCasesRequest implements IBatchRunTestCasesRequest { + /** Represents an ExportTestCasesMetadata. */ + class ExportTestCasesMetadata implements IExportTestCasesMetadata { /** - * Constructs a new BatchRunTestCasesRequest. + * Constructs a new ExportTestCasesMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest); - - /** BatchRunTestCasesRequest parent. */ - public parent: string; - - /** BatchRunTestCasesRequest environment. */ - public environment: string; - - /** BatchRunTestCasesRequest testCases. */ - public testCases: string[]; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata); /** - * Creates a new BatchRunTestCasesRequest instance using the specified properties. + * Creates a new ExportTestCasesMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns BatchRunTestCasesRequest instance + * @returns ExportTestCasesMetadata instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata; /** - * Encodes the specified BatchRunTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest.verify|verify} messages. - * @param message BatchRunTestCasesRequest message or plain object to encode + * Encodes the specified ExportTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata.verify|verify} messages. + * @param message ExportTestCasesMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchRunTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest.verify|verify} messages. - * @param message BatchRunTestCasesRequest message or plain object to encode + * Encodes the specified ExportTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata.verify|verify} messages. + * @param message ExportTestCasesMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchRunTestCasesRequest message from the specified reader or buffer. + * Decodes an ExportTestCasesMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchRunTestCasesRequest + * @returns ExportTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata; /** - * Decodes a BatchRunTestCasesRequest message from the specified reader or buffer, length delimited. + * Decodes an ExportTestCasesMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchRunTestCasesRequest + * @returns ExportTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata; /** - * Verifies a BatchRunTestCasesRequest message. + * Verifies an ExportTestCasesMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchRunTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExportTestCasesMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchRunTestCasesRequest + * @returns ExportTestCasesMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata; /** - * Creates a plain object from a BatchRunTestCasesRequest message. Also converts values to other types if specified. - * @param message BatchRunTestCasesRequest + * Creates a plain object from an ExportTestCasesMetadata message. Also converts values to other types if specified. + * @param message ExportTestCasesMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchRunTestCasesRequest to JSON. + * Converts this ExportTestCasesMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BatchRunTestCasesResponse. */ - interface IBatchRunTestCasesResponse { + /** Properties of a ListTestCaseResultsRequest. */ + interface IListTestCaseResultsRequest { - /** BatchRunTestCasesResponse results */ - results?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseResult[]|null); + /** ListTestCaseResultsRequest parent */ + parent?: (string|null); + + /** ListTestCaseResultsRequest pageSize */ + pageSize?: (number|null); + + /** ListTestCaseResultsRequest pageToken */ + pageToken?: (string|null); + + /** ListTestCaseResultsRequest filter */ + filter?: (string|null); } - /** Represents a BatchRunTestCasesResponse. */ - class BatchRunTestCasesResponse implements IBatchRunTestCasesResponse { + /** Represents a ListTestCaseResultsRequest. */ + class ListTestCaseResultsRequest implements IListTestCaseResultsRequest { /** - * Constructs a new BatchRunTestCasesResponse. + * Constructs a new ListTestCaseResultsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest); - /** BatchRunTestCasesResponse results. */ - public results: google.cloud.dialogflow.cx.v3beta1.ITestCaseResult[]; + /** ListTestCaseResultsRequest parent. */ + public parent: string; + + /** ListTestCaseResultsRequest pageSize. */ + public pageSize: number; + + /** ListTestCaseResultsRequest pageToken. */ + public pageToken: string; + + /** ListTestCaseResultsRequest filter. */ + public filter: string; /** - * Creates a new BatchRunTestCasesResponse instance using the specified properties. + * Creates a new ListTestCaseResultsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BatchRunTestCasesResponse instance + * @returns ListTestCaseResultsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest; /** - * Encodes the specified BatchRunTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse.verify|verify} messages. - * @param message BatchRunTestCasesResponse message or plain object to encode + * Encodes the specified ListTestCaseResultsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest.verify|verify} messages. + * @param message ListTestCaseResultsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchRunTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse.verify|verify} messages. - * @param message BatchRunTestCasesResponse message or plain object to encode + * Encodes the specified ListTestCaseResultsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest.verify|verify} messages. + * @param message ListTestCaseResultsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchRunTestCasesResponse message from the specified reader or buffer. + * Decodes a ListTestCaseResultsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchRunTestCasesResponse + * @returns ListTestCaseResultsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest; /** - * Decodes a BatchRunTestCasesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListTestCaseResultsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchRunTestCasesResponse + * @returns ListTestCaseResultsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest; /** - * Verifies a BatchRunTestCasesResponse message. + * Verifies a ListTestCaseResultsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchRunTestCasesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListTestCaseResultsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchRunTestCasesResponse + * @returns ListTestCaseResultsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest; /** - * Creates a plain object from a BatchRunTestCasesResponse message. Also converts values to other types if specified. - * @param message BatchRunTestCasesResponse + * Creates a plain object from a ListTestCaseResultsRequest message. Also converts values to other types if specified. + * @param message ListTestCaseResultsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchRunTestCasesResponse to JSON. + * Converts this ListTestCaseResultsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BatchRunTestCasesMetadata. */ - interface IBatchRunTestCasesMetadata { + /** Properties of a ListTestCaseResultsResponse. */ + interface IListTestCaseResultsResponse { - /** BatchRunTestCasesMetadata errors */ - errors?: (google.cloud.dialogflow.cx.v3beta1.ITestError[]|null); + /** ListTestCaseResultsResponse testCaseResults */ + testCaseResults?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseResult[]|null); + + /** ListTestCaseResultsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a BatchRunTestCasesMetadata. */ - class BatchRunTestCasesMetadata implements IBatchRunTestCasesMetadata { + /** Represents a ListTestCaseResultsResponse. */ + class ListTestCaseResultsResponse implements IListTestCaseResultsResponse { /** - * Constructs a new BatchRunTestCasesMetadata. + * Constructs a new ListTestCaseResultsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse); - /** BatchRunTestCasesMetadata errors. */ - public errors: google.cloud.dialogflow.cx.v3beta1.ITestError[]; + /** ListTestCaseResultsResponse testCaseResults. */ + public testCaseResults: google.cloud.dialogflow.cx.v3beta1.ITestCaseResult[]; + + /** ListTestCaseResultsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new BatchRunTestCasesMetadata instance using the specified properties. + * Creates a new ListTestCaseResultsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns BatchRunTestCasesMetadata instance + * @returns ListTestCaseResultsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse; /** - * Encodes the specified BatchRunTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata.verify|verify} messages. - * @param message BatchRunTestCasesMetadata message or plain object to encode + * Encodes the specified ListTestCaseResultsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse.verify|verify} messages. + * @param message ListTestCaseResultsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchRunTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata.verify|verify} messages. - * @param message BatchRunTestCasesMetadata message or plain object to encode + * Encodes the specified ListTestCaseResultsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse.verify|verify} messages. + * @param message ListTestCaseResultsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchRunTestCasesMetadata message from the specified reader or buffer. + * Decodes a ListTestCaseResultsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchRunTestCasesMetadata + * @returns ListTestCaseResultsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse; /** - * Decodes a BatchRunTestCasesMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListTestCaseResultsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchRunTestCasesMetadata + * @returns ListTestCaseResultsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse; /** - * Verifies a BatchRunTestCasesMetadata message. + * Verifies a ListTestCaseResultsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchRunTestCasesMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListTestCaseResultsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchRunTestCasesMetadata + * @returns ListTestCaseResultsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse; /** - * Creates a plain object from a BatchRunTestCasesMetadata message. Also converts values to other types if specified. - * @param message BatchRunTestCasesMetadata + * Creates a plain object from a ListTestCaseResultsResponse message. Also converts values to other types if specified. + * @param message ListTestCaseResultsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchRunTestCasesMetadata to JSON. + * Converts this ListTestCaseResultsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TestError. */ - interface ITestError { - - /** TestError testCase */ - testCase?: (string|null); - - /** TestError status */ - status?: (google.rpc.IStatus|null); + /** Properties of a GetTestCaseResultRequest. */ + interface IGetTestCaseResultRequest { - /** TestError testTime */ - testTime?: (google.protobuf.ITimestamp|null); + /** GetTestCaseResultRequest name */ + name?: (string|null); } - /** Represents a TestError. */ - class TestError implements ITestError { + /** Represents a GetTestCaseResultRequest. */ + class GetTestCaseResultRequest implements IGetTestCaseResultRequest { /** - * Constructs a new TestError. + * Constructs a new GetTestCaseResultRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITestError); - - /** TestError testCase. */ - public testCase: string; - - /** TestError status. */ - public status?: (google.rpc.IStatus|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest); - /** TestError testTime. */ - public testTime?: (google.protobuf.ITimestamp|null); + /** GetTestCaseResultRequest name. */ + public name: string; /** - * Creates a new TestError instance using the specified properties. + * Creates a new GetTestCaseResultRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TestError instance + * @returns GetTestCaseResultRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITestError): google.cloud.dialogflow.cx.v3beta1.TestError; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest): google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest; /** - * Encodes the specified TestError message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestError.verify|verify} messages. - * @param message TestError message or plain object to encode + * Encodes the specified GetTestCaseResultRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest.verify|verify} messages. + * @param message GetTestCaseResultRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITestError, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TestError message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestError.verify|verify} messages. - * @param message TestError message or plain object to encode + * Encodes the specified GetTestCaseResultRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest.verify|verify} messages. + * @param message GetTestCaseResultRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITestError, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TestError message from the specified reader or buffer. + * Decodes a GetTestCaseResultRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TestError + * @returns GetTestCaseResultRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TestError; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest; /** - * Decodes a TestError message from the specified reader or buffer, length delimited. + * Decodes a GetTestCaseResultRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TestError + * @returns GetTestCaseResultRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TestError; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest; /** - * Verifies a TestError message. + * Verifies a GetTestCaseResultRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TestError message from a plain object. Also converts values to their respective internal types. + * Creates a GetTestCaseResultRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TestError + * @returns GetTestCaseResultRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TestError; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest; /** - * Creates a plain object from a TestError message. Also converts values to other types if specified. - * @param message TestError + * Creates a plain object from a GetTestCaseResultRequest message. Also converts values to other types if specified. + * @param message GetTestCaseResultRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TestError, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TestError to JSON. + * Converts this GetTestCaseResultRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ImportTestCasesRequest. */ - interface IImportTestCasesRequest { - - /** ImportTestCasesRequest parent */ - parent?: (string|null); - - /** ImportTestCasesRequest gcsUri */ - gcsUri?: (string|null); - - /** ImportTestCasesRequest content */ - content?: (Uint8Array|string|null); + /** TestResult enum. */ + enum TestResult { + TEST_RESULT_UNSPECIFIED = 0, + PASSED = 1, + FAILED = 2 } - /** Represents an ImportTestCasesRequest. */ - class ImportTestCasesRequest implements IImportTestCasesRequest { - - /** - * Constructs a new ImportTestCasesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest); - - /** ImportTestCasesRequest parent. */ - public parent: string; - - /** ImportTestCasesRequest gcsUri. */ - public gcsUri?: (string|null); - - /** ImportTestCasesRequest content. */ - public content?: (Uint8Array|string|null); - - /** ImportTestCasesRequest source. */ - public source?: ("gcsUri"|"content"); - - /** - * Creates a new ImportTestCasesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ImportTestCasesRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest; + /** Represents an Intents */ + class Intents extends $protobuf.rpc.Service { /** - * Encodes the specified ImportTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest.verify|verify} messages. - * @param message ImportTestCasesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Constructs a new Intents service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Encodes the specified ImportTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest.verify|verify} messages. - * @param message ImportTestCasesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Creates new Intents service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Intents; /** - * Decodes an ImportTestCasesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImportTestCasesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListIntents. + * @param request ListIntentsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListIntentsResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest; + public listIntents(request: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Intents.ListIntentsCallback): void; /** - * Decodes an ImportTestCasesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImportTestCasesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListIntents. + * @param request ListIntentsRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest; + public listIntents(request: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest): Promise; /** - * Verifies an ImportTestCasesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls GetIntent. + * @param request GetIntentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Intent */ - public static verify(message: { [k: string]: any }): (string|null); + public getIntent(request: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Intents.GetIntentCallback): void; /** - * Creates an ImportTestCasesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImportTestCasesRequest + * Calls GetIntent. + * @param request GetIntentRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest; + public getIntent(request: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest): Promise; /** - * Creates a plain object from an ImportTestCasesRequest message. Also converts values to other types if specified. - * @param message ImportTestCasesRequest - * @param [options] Conversion options - * @returns Plain object + * Calls CreateIntent. + * @param request CreateIntentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Intent */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public createIntent(request: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Intents.CreateIntentCallback): void; /** - * Converts this ImportTestCasesRequest to JSON. - * @returns JSON object + * Calls CreateIntent. + * @param request CreateIntentRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an ImportTestCasesResponse. */ - interface IImportTestCasesResponse { - - /** ImportTestCasesResponse names */ - names?: (string[]|null); - } - - /** Represents an ImportTestCasesResponse. */ - class ImportTestCasesResponse implements IImportTestCasesResponse { + public createIntent(request: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest): Promise; /** - * Constructs a new ImportTestCasesResponse. - * @param [properties] Properties to set + * Calls UpdateIntent. + * @param request UpdateIntentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Intent */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse); - - /** ImportTestCasesResponse names. */ - public names: string[]; + public updateIntent(request: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Intents.UpdateIntentCallback): void; /** - * Creates a new ImportTestCasesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ImportTestCasesResponse instance + * Calls UpdateIntent. + * @param request UpdateIntentRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse; + public updateIntent(request: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest): Promise; /** - * Encodes the specified ImportTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse.verify|verify} messages. - * @param message ImportTestCasesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls DeleteIntent. + * @param request DeleteIntentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public deleteIntent(request: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Intents.DeleteIntentCallback): void; /** - * Encodes the specified ImportTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse.verify|verify} messages. - * @param message ImportTestCasesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls DeleteIntent. + * @param request DeleteIntentRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public deleteIntent(request: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest): Promise; + } - /** - * Decodes an ImportTestCasesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImportTestCasesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse; + namespace Intents { /** - * Decodes an ImportTestCasesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImportTestCasesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#listIntents}. + * @param error Error, if any + * @param [response] ListIntentsResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse; + type ListIntentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse) => void; /** - * Verifies an ImportTestCasesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#getIntent}. + * @param error Error, if any + * @param [response] Intent */ - public static verify(message: { [k: string]: any }): (string|null); + type GetIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Intent) => void; /** - * Creates an ImportTestCasesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImportTestCasesResponse + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#createIntent}. + * @param error Error, if any + * @param [response] Intent */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse; + type CreateIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Intent) => void; /** - * Creates a plain object from an ImportTestCasesResponse message. Also converts values to other types if specified. - * @param message ImportTestCasesResponse - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#updateIntent}. + * @param error Error, if any + * @param [response] Intent */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type UpdateIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Intent) => void; /** - * Converts this ImportTestCasesResponse to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#deleteIntent}. + * @param error Error, if any + * @param [response] Empty */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an ImportTestCasesMetadata. */ - interface IImportTestCasesMetadata { - - /** ImportTestCasesMetadata errors */ - errors?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseError[]|null); + type DeleteIntentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } - /** Represents an ImportTestCasesMetadata. */ - class ImportTestCasesMetadata implements IImportTestCasesMetadata { + /** Properties of an Intent. */ + interface IIntent { - /** - * Constructs a new ImportTestCasesMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata); + /** Intent name */ + name?: (string|null); - /** ImportTestCasesMetadata errors. */ - public errors: google.cloud.dialogflow.cx.v3beta1.ITestCaseError[]; + /** Intent displayName */ + displayName?: (string|null); - /** - * Creates a new ImportTestCasesMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns ImportTestCasesMetadata instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata; + /** Intent trainingPhrases */ + trainingPhrases?: (google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase[]|null); - /** - * Encodes the specified ImportTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata.verify|verify} messages. - * @param message ImportTestCasesMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** Intent parameters */ + parameters?: (google.cloud.dialogflow.cx.v3beta1.Intent.IParameter[]|null); - /** - * Encodes the specified ImportTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata.verify|verify} messages. - * @param message ImportTestCasesMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** Intent priority */ + priority?: (number|null); - /** - * Decodes an ImportTestCasesMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImportTestCasesMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata; + /** Intent isFallback */ + isFallback?: (boolean|null); - /** - * Decodes an ImportTestCasesMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImportTestCasesMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata; + /** Intent labels */ + labels?: ({ [k: string]: string }|null); - /** - * Verifies an ImportTestCasesMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Intent description */ + description?: (string|null); + } - /** - * Creates an ImportTestCasesMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImportTestCasesMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata; + /** Represents an Intent. */ + class Intent implements IIntent { /** - * Creates a plain object from an ImportTestCasesMetadata message. Also converts values to other types if specified. - * @param message ImportTestCasesMetadata - * @param [options] Conversion options - * @returns Plain object + * Constructs a new Intent. + * @param [properties] Properties to set */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IIntent); - /** - * Converts this ImportTestCasesMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Intent name. */ + public name: string; - /** Properties of a TestCaseError. */ - interface ITestCaseError { + /** Intent displayName. */ + public displayName: string; - /** TestCaseError testCase */ - testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); + /** Intent trainingPhrases. */ + public trainingPhrases: google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase[]; - /** TestCaseError status */ - status?: (google.rpc.IStatus|null); - } + /** Intent parameters. */ + public parameters: google.cloud.dialogflow.cx.v3beta1.Intent.IParameter[]; - /** Represents a TestCaseError. */ - class TestCaseError implements ITestCaseError { + /** Intent priority. */ + public priority: number; - /** - * Constructs a new TestCaseError. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITestCaseError); + /** Intent isFallback. */ + public isFallback: boolean; - /** TestCaseError testCase. */ - public testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); + /** Intent labels. */ + public labels: { [k: string]: string }; - /** TestCaseError status. */ - public status?: (google.rpc.IStatus|null); + /** Intent description. */ + public description: string; /** - * Creates a new TestCaseError instance using the specified properties. + * Creates a new Intent instance using the specified properties. * @param [properties] Properties to set - * @returns TestCaseError instance + * @returns Intent instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITestCaseError): google.cloud.dialogflow.cx.v3beta1.TestCaseError; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IIntent): google.cloud.dialogflow.cx.v3beta1.Intent; /** - * Encodes the specified TestCaseError message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCaseError.verify|verify} messages. - * @param message TestCaseError message or plain object to encode + * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.verify|verify} messages. + * @param message Intent message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITestCaseError, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TestCaseError message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCaseError.verify|verify} messages. - * @param message TestCaseError message or plain object to encode + * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.verify|verify} messages. + * @param message Intent message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITestCaseError, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TestCaseError message from the specified reader or buffer. + * Decodes an Intent message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TestCaseError + * @returns Intent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TestCaseError; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Intent; /** - * Decodes a TestCaseError message from the specified reader or buffer, length delimited. + * Decodes an Intent message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TestCaseError + * @returns Intent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TestCaseError; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Intent; /** - * Verifies a TestCaseError message. + * Verifies an Intent message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TestCaseError message from a plain object. Also converts values to their respective internal types. + * Creates an Intent message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TestCaseError + * @returns Intent */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TestCaseError; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Intent; /** - * Creates a plain object from a TestCaseError message. Also converts values to other types if specified. - * @param message TestCaseError + * Creates a plain object from an Intent message. Also converts values to other types if specified. + * @param message Intent * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TestCaseError, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Intent, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TestCaseError to JSON. + * Converts this Intent to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ExportTestCasesRequest. */ - interface IExportTestCasesRequest { + namespace Intent { - /** ExportTestCasesRequest parent */ - parent?: (string|null); + /** Properties of a TrainingPhrase. */ + interface ITrainingPhrase { - /** ExportTestCasesRequest gcsUri */ - gcsUri?: (string|null); + /** TrainingPhrase id */ + id?: (string|null); - /** ExportTestCasesRequest dataFormat */ - dataFormat?: (google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat|keyof typeof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat|null); + /** TrainingPhrase parts */ + parts?: (google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart[]|null); - /** ExportTestCasesRequest filter */ - filter?: (string|null); - } + /** TrainingPhrase repeatCount */ + repeatCount?: (number|null); + } - /** Represents an ExportTestCasesRequest. */ - class ExportTestCasesRequest implements IExportTestCasesRequest { + /** Represents a TrainingPhrase. */ + class TrainingPhrase implements ITrainingPhrase { - /** - * Constructs a new ExportTestCasesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest); + /** + * Constructs a new TrainingPhrase. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase); - /** ExportTestCasesRequest parent. */ - public parent: string; + /** TrainingPhrase id. */ + public id: string; - /** ExportTestCasesRequest gcsUri. */ - public gcsUri?: (string|null); + /** TrainingPhrase parts. */ + public parts: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart[]; - /** ExportTestCasesRequest dataFormat. */ - public dataFormat: (google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat|keyof typeof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat); + /** TrainingPhrase repeatCount. */ + public repeatCount: number; - /** ExportTestCasesRequest filter. */ - public filter: string; + /** + * Creates a new TrainingPhrase instance using the specified properties. + * @param [properties] Properties to set + * @returns TrainingPhrase instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase; - /** ExportTestCasesRequest destination. */ - public destination?: "gcsUri"; + /** + * Encodes the specified TrainingPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.verify|verify} messages. + * @param message TrainingPhrase message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new ExportTestCasesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExportTestCasesRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest; + /** + * Encodes the specified TrainingPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.verify|verify} messages. + * @param message TrainingPhrase message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ExportTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.verify|verify} messages. - * @param message ExportTestCasesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a TrainingPhrase message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TrainingPhrase + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase; - /** - * Encodes the specified ExportTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.verify|verify} messages. - * @param message ExportTestCasesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a TrainingPhrase message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TrainingPhrase + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase; - /** - * Decodes an ExportTestCasesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExportTestCasesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest; + /** + * Verifies a TrainingPhrase message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes an ExportTestCasesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExportTestCasesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest; + /** + * Creates a TrainingPhrase message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TrainingPhrase + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase; - /** - * Verifies an ExportTestCasesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a plain object from a TrainingPhrase message. Also converts values to other types if specified. + * @param message TrainingPhrase + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates an ExportTestCasesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExportTestCasesRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest; + /** + * Converts this TrainingPhrase to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Creates a plain object from an ExportTestCasesRequest message. Also converts values to other types if specified. - * @param message ExportTestCasesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + namespace TrainingPhrase { - /** - * Converts this ExportTestCasesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Properties of a Part. */ + interface IPart { - namespace ExportTestCasesRequest { + /** Part text */ + text?: (string|null); - /** DataFormat enum. */ - enum DataFormat { - DATA_FORMAT_UNSPECIFIED = 0, - BLOB = 1, - JSON = 2 + /** Part parameterId */ + parameterId?: (string|null); + } + + /** Represents a Part. */ + class Part implements IPart { + + /** + * Constructs a new Part. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart); + + /** Part text. */ + public text: string; + + /** Part parameterId. */ + public parameterId: string; + + /** + * Creates a new Part instance using the specified properties. + * @param [properties] Properties to set + * @returns Part instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part; + + /** + * Encodes the specified Part message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.verify|verify} messages. + * @param message Part message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Part message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.verify|verify} messages. + * @param message Part message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Part message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Part + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part; + + /** + * Decodes a Part message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Part + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part; + + /** + * Verifies a Part message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Part message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Part + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part; + + /** + * Creates a plain object from a Part message. Also converts values to other types if specified. + * @param message Part + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Part to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a Parameter. */ + interface IParameter { + + /** Parameter id */ + id?: (string|null); + + /** Parameter entityType */ + entityType?: (string|null); + + /** Parameter isList */ + isList?: (boolean|null); + + /** Parameter redact */ + redact?: (boolean|null); + } + + /** Represents a Parameter. */ + class Parameter implements IParameter { + + /** + * Constructs a new Parameter. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.IParameter); + + /** Parameter id. */ + public id: string; + + /** Parameter entityType. */ + public entityType: string; + + /** Parameter isList. */ + public isList: boolean; + + /** Parameter redact. */ + public redact: boolean; + + /** + * Creates a new Parameter instance using the specified properties. + * @param [properties] Properties to set + * @returns Parameter instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.IParameter): google.cloud.dialogflow.cx.v3beta1.Intent.Parameter; + + /** + * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.verify|verify} messages. + * @param message Parameter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Intent.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.verify|verify} messages. + * @param message Parameter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Intent.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Parameter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Parameter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Intent.Parameter; + + /** + * Decodes a Parameter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Parameter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Intent.Parameter; + + /** + * Verifies a Parameter message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Parameter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Parameter + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Intent.Parameter; + + /** + * Creates a plain object from a Parameter message. Also converts values to other types if specified. + * @param message Parameter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Intent.Parameter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Parameter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } } - /** Properties of an ExportTestCasesResponse. */ - interface IExportTestCasesResponse { + /** Properties of a ListIntentsRequest. */ + interface IListIntentsRequest { - /** ExportTestCasesResponse gcsUri */ - gcsUri?: (string|null); + /** ListIntentsRequest parent */ + parent?: (string|null); - /** ExportTestCasesResponse content */ - content?: (Uint8Array|string|null); + /** ListIntentsRequest languageCode */ + languageCode?: (string|null); + + /** ListIntentsRequest intentView */ + intentView?: (google.cloud.dialogflow.cx.v3beta1.IntentView|keyof typeof google.cloud.dialogflow.cx.v3beta1.IntentView|null); + + /** ListIntentsRequest pageSize */ + pageSize?: (number|null); + + /** ListIntentsRequest pageToken */ + pageToken?: (string|null); } - /** Represents an ExportTestCasesResponse. */ - class ExportTestCasesResponse implements IExportTestCasesResponse { + /** Represents a ListIntentsRequest. */ + class ListIntentsRequest implements IListIntentsRequest { /** - * Constructs a new ExportTestCasesResponse. + * Constructs a new ListIntentsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest); - /** ExportTestCasesResponse gcsUri. */ - public gcsUri?: (string|null); + /** ListIntentsRequest parent. */ + public parent: string; - /** ExportTestCasesResponse content. */ - public content?: (Uint8Array|string|null); + /** ListIntentsRequest languageCode. */ + public languageCode: string; - /** ExportTestCasesResponse destination. */ - public destination?: ("gcsUri"|"content"); + /** ListIntentsRequest intentView. */ + public intentView: (google.cloud.dialogflow.cx.v3beta1.IntentView|keyof typeof google.cloud.dialogflow.cx.v3beta1.IntentView); + + /** ListIntentsRequest pageSize. */ + public pageSize: number; + + /** ListIntentsRequest pageToken. */ + public pageToken: string; /** - * Creates a new ExportTestCasesResponse instance using the specified properties. + * Creates a new ListIntentsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExportTestCasesResponse instance + * @returns ListIntentsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest): google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest; /** - * Encodes the specified ExportTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse.verify|verify} messages. - * @param message ExportTestCasesResponse message or plain object to encode + * Encodes the specified ListIntentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest.verify|verify} messages. + * @param message ListIntentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse.verify|verify} messages. - * @param message ExportTestCasesResponse message or plain object to encode + * Encodes the specified ListIntentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest.verify|verify} messages. + * @param message ListIntentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportTestCasesResponse message from the specified reader or buffer. + * Decodes a ListIntentsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportTestCasesResponse + * @returns ListIntentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest; /** - * Decodes an ExportTestCasesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListIntentsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportTestCasesResponse + * @returns ListIntentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest; /** - * Verifies an ExportTestCasesResponse message. + * Verifies a ListIntentsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ExportTestCasesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListIntentsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportTestCasesResponse + * @returns ListIntentsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest; /** - * Creates a plain object from an ExportTestCasesResponse message. Also converts values to other types if specified. - * @param message ExportTestCasesResponse + * Creates a plain object from a ListIntentsRequest message. Also converts values to other types if specified. + * @param message ListIntentsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportTestCasesResponse to JSON. + * Converts this ListIntentsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ExportTestCasesMetadata. */ - interface IExportTestCasesMetadata { + /** Properties of a ListIntentsResponse. */ + interface IListIntentsResponse { + + /** ListIntentsResponse intents */ + intents?: (google.cloud.dialogflow.cx.v3beta1.IIntent[]|null); + + /** ListIntentsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an ExportTestCasesMetadata. */ - class ExportTestCasesMetadata implements IExportTestCasesMetadata { + /** Represents a ListIntentsResponse. */ + class ListIntentsResponse implements IListIntentsResponse { /** - * Constructs a new ExportTestCasesMetadata. + * Constructs a new ListIntentsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse); + + /** ListIntentsResponse intents. */ + public intents: google.cloud.dialogflow.cx.v3beta1.IIntent[]; + + /** ListIntentsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ExportTestCasesMetadata instance using the specified properties. + * Creates a new ListIntentsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ExportTestCasesMetadata instance + * @returns ListIntentsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse): google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse; /** - * Encodes the specified ExportTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata.verify|verify} messages. - * @param message ExportTestCasesMetadata message or plain object to encode + * Encodes the specified ListIntentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse.verify|verify} messages. + * @param message ListIntentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata.verify|verify} messages. - * @param message ExportTestCasesMetadata message or plain object to encode + * Encodes the specified ListIntentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse.verify|verify} messages. + * @param message ListIntentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportTestCasesMetadata message from the specified reader or buffer. + * Decodes a ListIntentsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportTestCasesMetadata + * @returns ListIntentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse; /** - * Decodes an ExportTestCasesMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListIntentsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportTestCasesMetadata + * @returns ListIntentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse; /** - * Verifies an ExportTestCasesMetadata message. + * Verifies a ListIntentsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ExportTestCasesMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListIntentsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportTestCasesMetadata + * @returns ListIntentsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse; /** - * Creates a plain object from an ExportTestCasesMetadata message. Also converts values to other types if specified. - * @param message ExportTestCasesMetadata + * Creates a plain object from a ListIntentsResponse message. Also converts values to other types if specified. + * @param message ListIntentsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportTestCasesMetadata to JSON. + * Converts this ListIntentsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListTestCaseResultsRequest. */ - interface IListTestCaseResultsRequest { - - /** ListTestCaseResultsRequest parent */ - parent?: (string|null); - - /** ListTestCaseResultsRequest pageSize */ - pageSize?: (number|null); + /** Properties of a GetIntentRequest. */ + interface IGetIntentRequest { - /** ListTestCaseResultsRequest pageToken */ - pageToken?: (string|null); + /** GetIntentRequest name */ + name?: (string|null); - /** ListTestCaseResultsRequest filter */ - filter?: (string|null); + /** GetIntentRequest languageCode */ + languageCode?: (string|null); } - /** Represents a ListTestCaseResultsRequest. */ - class ListTestCaseResultsRequest implements IListTestCaseResultsRequest { + /** Represents a GetIntentRequest. */ + class GetIntentRequest implements IGetIntentRequest { /** - * Constructs a new ListTestCaseResultsRequest. + * Constructs a new GetIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest); - - /** ListTestCaseResultsRequest parent. */ - public parent: string; - - /** ListTestCaseResultsRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest); - /** ListTestCaseResultsRequest pageToken. */ - public pageToken: string; + /** GetIntentRequest name. */ + public name: string; - /** ListTestCaseResultsRequest filter. */ - public filter: string; + /** GetIntentRequest languageCode. */ + public languageCode: string; /** - * Creates a new ListTestCaseResultsRequest instance using the specified properties. + * Creates a new GetIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListTestCaseResultsRequest instance + * @returns GetIntentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest): google.cloud.dialogflow.cx.v3beta1.GetIntentRequest; /** - * Encodes the specified ListTestCaseResultsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest.verify|verify} messages. - * @param message ListTestCaseResultsRequest message or plain object to encode + * Encodes the specified GetIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetIntentRequest.verify|verify} messages. + * @param message GetIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTestCaseResultsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest.verify|verify} messages. - * @param message ListTestCaseResultsRequest message or plain object to encode + * Encodes the specified GetIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetIntentRequest.verify|verify} messages. + * @param message GetIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTestCaseResultsRequest message from the specified reader or buffer. + * Decodes a GetIntentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTestCaseResultsRequest + * @returns GetIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetIntentRequest; /** - * Decodes a ListTestCaseResultsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetIntentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTestCaseResultsRequest + * @returns GetIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetIntentRequest; /** - * Verifies a ListTestCaseResultsRequest message. + * Verifies a GetIntentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListTestCaseResultsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetIntentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTestCaseResultsRequest + * @returns GetIntentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetIntentRequest; /** - * Creates a plain object from a ListTestCaseResultsRequest message. Also converts values to other types if specified. - * @param message ListTestCaseResultsRequest + * Creates a plain object from a GetIntentRequest message. Also converts values to other types if specified. + * @param message GetIntentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTestCaseResultsRequest to JSON. + * Converts this GetIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListTestCaseResultsResponse. */ - interface IListTestCaseResultsResponse { + /** Properties of a CreateIntentRequest. */ + interface ICreateIntentRequest { - /** ListTestCaseResultsResponse testCaseResults */ - testCaseResults?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseResult[]|null); + /** CreateIntentRequest parent */ + parent?: (string|null); - /** ListTestCaseResultsResponse nextPageToken */ - nextPageToken?: (string|null); + /** CreateIntentRequest intent */ + intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); + + /** CreateIntentRequest languageCode */ + languageCode?: (string|null); } - /** Represents a ListTestCaseResultsResponse. */ - class ListTestCaseResultsResponse implements IListTestCaseResultsResponse { + /** Represents a CreateIntentRequest. */ + class CreateIntentRequest implements ICreateIntentRequest { /** - * Constructs a new ListTestCaseResultsResponse. + * Constructs a new CreateIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest); - /** ListTestCaseResultsResponse testCaseResults. */ - public testCaseResults: google.cloud.dialogflow.cx.v3beta1.ITestCaseResult[]; + /** CreateIntentRequest parent. */ + public parent: string; - /** ListTestCaseResultsResponse nextPageToken. */ - public nextPageToken: string; + /** CreateIntentRequest intent. */ + public intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); + + /** CreateIntentRequest languageCode. */ + public languageCode: string; /** - * Creates a new ListTestCaseResultsResponse instance using the specified properties. + * Creates a new CreateIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListTestCaseResultsResponse instance + * @returns CreateIntentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest): google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest; /** - * Encodes the specified ListTestCaseResultsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse.verify|verify} messages. - * @param message ListTestCaseResultsResponse message or plain object to encode + * Encodes the specified CreateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest.verify|verify} messages. + * @param message CreateIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTestCaseResultsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse.verify|verify} messages. - * @param message ListTestCaseResultsResponse message or plain object to encode + * Encodes the specified CreateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest.verify|verify} messages. + * @param message CreateIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTestCaseResultsResponse message from the specified reader or buffer. + * Decodes a CreateIntentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTestCaseResultsResponse + * @returns CreateIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest; /** - * Decodes a ListTestCaseResultsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateIntentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTestCaseResultsResponse + * @returns CreateIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest; /** - * Verifies a ListTestCaseResultsResponse message. + * Verifies a CreateIntentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListTestCaseResultsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateIntentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTestCaseResultsResponse + * @returns CreateIntentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest; /** - * Creates a plain object from a ListTestCaseResultsResponse message. Also converts values to other types if specified. - * @param message ListTestCaseResultsResponse + * Creates a plain object from a CreateIntentRequest message. Also converts values to other types if specified. + * @param message CreateIntentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTestCaseResultsResponse to JSON. + * Converts this CreateIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetTestCaseResultRequest. */ - interface IGetTestCaseResultRequest { + /** Properties of an UpdateIntentRequest. */ + interface IUpdateIntentRequest { - /** GetTestCaseResultRequest name */ + /** UpdateIntentRequest intent */ + intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); + + /** UpdateIntentRequest languageCode */ + languageCode?: (string|null); + + /** UpdateIntentRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateIntentRequest. */ + class UpdateIntentRequest implements IUpdateIntentRequest { + + /** + * Constructs a new UpdateIntentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest); + + /** UpdateIntentRequest intent. */ + public intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); + + /** UpdateIntentRequest languageCode. */ + public languageCode: string; + + /** UpdateIntentRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdateIntentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateIntentRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest): google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest; + + /** + * Encodes the specified UpdateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest.verify|verify} messages. + * @param message UpdateIntentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest.verify|verify} messages. + * @param message UpdateIntentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateIntentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateIntentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest; + + /** + * Decodes an UpdateIntentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateIntentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest; + + /** + * Verifies an UpdateIntentRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UpdateIntentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateIntentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest; + + /** + * Creates a plain object from an UpdateIntentRequest message. Also converts values to other types if specified. + * @param message UpdateIntentRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateIntentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeleteIntentRequest. */ + interface IDeleteIntentRequest { + + /** DeleteIntentRequest name */ name?: (string|null); } - /** Represents a GetTestCaseResultRequest. */ - class GetTestCaseResultRequest implements IGetTestCaseResultRequest { + /** Represents a DeleteIntentRequest. */ + class DeleteIntentRequest implements IDeleteIntentRequest { /** - * Constructs a new GetTestCaseResultRequest. + * Constructs a new DeleteIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest); - /** GetTestCaseResultRequest name. */ + /** DeleteIntentRequest name. */ public name: string; /** - * Creates a new GetTestCaseResultRequest instance using the specified properties. + * Creates a new DeleteIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetTestCaseResultRequest instance + * @returns DeleteIntentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest): google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest): google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest; /** - * Encodes the specified GetTestCaseResultRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest.verify|verify} messages. - * @param message GetTestCaseResultRequest message or plain object to encode + * Encodes the specified DeleteIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest.verify|verify} messages. + * @param message DeleteIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTestCaseResultRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest.verify|verify} messages. - * @param message GetTestCaseResultRequest message or plain object to encode + * Encodes the specified DeleteIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest.verify|verify} messages. + * @param message DeleteIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTestCaseResultRequest message from the specified reader or buffer. + * Decodes a DeleteIntentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetTestCaseResultRequest + * @returns DeleteIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest; /** - * Decodes a GetTestCaseResultRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteIntentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTestCaseResultRequest + * @returns DeleteIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest; /** - * Verifies a GetTestCaseResultRequest message. + * Verifies a DeleteIntentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetTestCaseResultRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteIntentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTestCaseResultRequest + * @returns DeleteIntentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest; /** - * Creates a plain object from a GetTestCaseResultRequest message. Also converts values to other types if specified. - * @param message GetTestCaseResultRequest + * Creates a plain object from a DeleteIntentRequest message. Also converts values to other types if specified. + * @param message DeleteIntentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTestCaseResultRequest to JSON. + * Converts this DeleteIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** TestResult enum. */ - enum TestResult { - TEST_RESULT_UNSPECIFIED = 0, - PASSED = 1, - FAILED = 2 + /** IntentView enum. */ + enum IntentView { + INTENT_VIEW_UNSPECIFIED = 0, + INTENT_VIEW_PARTIAL = 1, + INTENT_VIEW_FULL = 2 } - /** Represents an Intents */ - class Intents extends $protobuf.rpc.Service { + /** Represents a Sessions */ + class Sessions extends $protobuf.rpc.Service { /** - * Constructs a new Intents service. + * Constructs a new Sessions service. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited @@ -44957,4268 +45186,3919 @@ export namespace google { constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates new Intents service using the specified rpc implementation. + * Creates new Sessions service using the specified rpc implementation. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Intents; - - /** - * Calls ListIntents. - * @param request ListIntentsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListIntentsResponse - */ - public listIntents(request: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Intents.ListIntentsCallback): void; - - /** - * Calls ListIntents. - * @param request ListIntentsRequest message or plain object - * @returns Promise - */ - public listIntents(request: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest): Promise; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Sessions; /** - * Calls GetIntent. - * @param request GetIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Intent + * Calls DetectIntent. + * @param request DetectIntentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DetectIntentResponse */ - public getIntent(request: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Intents.GetIntentCallback): void; + public detectIntent(request: google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Sessions.DetectIntentCallback): void; /** - * Calls GetIntent. - * @param request GetIntentRequest message or plain object + * Calls DetectIntent. + * @param request DetectIntentRequest message or plain object * @returns Promise */ - public getIntent(request: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest): Promise; + public detectIntent(request: google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest): Promise; /** - * Calls CreateIntent. - * @param request CreateIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Intent + * Calls StreamingDetectIntent. + * @param request StreamingDetectIntentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and StreamingDetectIntentResponse */ - public createIntent(request: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Intents.CreateIntentCallback): void; + public streamingDetectIntent(request: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Sessions.StreamingDetectIntentCallback): void; /** - * Calls CreateIntent. - * @param request CreateIntentRequest message or plain object + * Calls StreamingDetectIntent. + * @param request StreamingDetectIntentRequest message or plain object * @returns Promise */ - public createIntent(request: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest): Promise; + public streamingDetectIntent(request: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest): Promise; /** - * Calls UpdateIntent. - * @param request UpdateIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Intent + * Calls MatchIntent. + * @param request MatchIntentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MatchIntentResponse */ - public updateIntent(request: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Intents.UpdateIntentCallback): void; + public matchIntent(request: google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntentCallback): void; /** - * Calls UpdateIntent. - * @param request UpdateIntentRequest message or plain object + * Calls MatchIntent. + * @param request MatchIntentRequest message or plain object * @returns Promise */ - public updateIntent(request: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest): Promise; + public matchIntent(request: google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest): Promise; /** - * Calls DeleteIntent. - * @param request DeleteIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Calls FulfillIntent. + * @param request FulfillIntentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and FulfillIntentResponse */ - public deleteIntent(request: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Intents.DeleteIntentCallback): void; + public fulfillIntent(request: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Sessions.FulfillIntentCallback): void; /** - * Calls DeleteIntent. - * @param request DeleteIntentRequest message or plain object + * Calls FulfillIntent. + * @param request FulfillIntentRequest message or plain object * @returns Promise */ - public deleteIntent(request: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest): Promise; + public fulfillIntent(request: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest): Promise; } - namespace Intents { - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#listIntents}. - * @param error Error, if any - * @param [response] ListIntentsResponse - */ - type ListIntentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse) => void; + namespace Sessions { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#getIntent}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#detectIntent}. * @param error Error, if any - * @param [response] Intent + * @param [response] DetectIntentResponse */ - type GetIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Intent) => void; + type DetectIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#createIntent}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#streamingDetectIntent}. * @param error Error, if any - * @param [response] Intent + * @param [response] StreamingDetectIntentResponse */ - type CreateIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Intent) => void; + type StreamingDetectIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#updateIntent}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#matchIntent}. * @param error Error, if any - * @param [response] Intent + * @param [response] MatchIntentResponse */ - type UpdateIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Intent) => void; + type MatchIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#deleteIntent}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#fulfillIntent}. * @param error Error, if any - * @param [response] Empty + * @param [response] FulfillIntentResponse */ - type DeleteIntentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + type FulfillIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse) => void; } - /** Properties of an Intent. */ - interface IIntent { - - /** Intent name */ - name?: (string|null); - - /** Intent displayName */ - displayName?: (string|null); - - /** Intent trainingPhrases */ - trainingPhrases?: (google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase[]|null); - - /** Intent parameters */ - parameters?: (google.cloud.dialogflow.cx.v3beta1.Intent.IParameter[]|null); + /** Properties of a DetectIntentRequest. */ + interface IDetectIntentRequest { - /** Intent priority */ - priority?: (number|null); + /** DetectIntentRequest session */ + session?: (string|null); - /** Intent isFallback */ - isFallback?: (boolean|null); + /** DetectIntentRequest queryParams */ + queryParams?: (google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null); - /** Intent labels */ - labels?: ({ [k: string]: string }|null); + /** DetectIntentRequest queryInput */ + queryInput?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); - /** Intent description */ - description?: (string|null); + /** DetectIntentRequest outputAudioConfig */ + outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); } - /** Represents an Intent. */ - class Intent implements IIntent { + /** Represents a DetectIntentRequest. */ + class DetectIntentRequest implements IDetectIntentRequest { /** - * Constructs a new Intent. + * Constructs a new DetectIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IIntent); - - /** Intent name. */ - public name: string; - - /** Intent displayName. */ - public displayName: string; - - /** Intent trainingPhrases. */ - public trainingPhrases: google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase[]; - - /** Intent parameters. */ - public parameters: google.cloud.dialogflow.cx.v3beta1.Intent.IParameter[]; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest); - /** Intent priority. */ - public priority: number; + /** DetectIntentRequest session. */ + public session: string; - /** Intent isFallback. */ - public isFallback: boolean; + /** DetectIntentRequest queryParams. */ + public queryParams?: (google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null); - /** Intent labels. */ - public labels: { [k: string]: string }; + /** DetectIntentRequest queryInput. */ + public queryInput?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); - /** Intent description. */ - public description: string; + /** DetectIntentRequest outputAudioConfig. */ + public outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); /** - * Creates a new Intent instance using the specified properties. + * Creates a new DetectIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Intent instance + * @returns DetectIntentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IIntent): google.cloud.dialogflow.cx.v3beta1.Intent; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest): google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest; /** - * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.verify|verify} messages. - * @param message Intent message or plain object to encode + * Encodes the specified DetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.verify|verify} messages. + * @param message DetectIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.verify|verify} messages. - * @param message Intent message or plain object to encode + * Encodes the specified DetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.verify|verify} messages. + * @param message DetectIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Intent message from the specified reader or buffer. + * Decodes a DetectIntentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Intent + * @returns DetectIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Intent; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest; /** - * Decodes an Intent message from the specified reader or buffer, length delimited. + * Decodes a DetectIntentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Intent + * @returns DetectIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Intent; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest; /** - * Verifies an Intent message. + * Verifies a DetectIntentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an Intent message from a plain object. Also converts values to their respective internal types. + * Creates a DetectIntentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Intent + * @returns DetectIntentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Intent; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest; /** - * Creates a plain object from an Intent message. Also converts values to other types if specified. - * @param message Intent + * Creates a plain object from a DetectIntentRequest message. Also converts values to other types if specified. + * @param message DetectIntentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Intent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Intent to JSON. + * Converts this DetectIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Intent { + /** Properties of a DetectIntentResponse. */ + interface IDetectIntentResponse { - /** Properties of a TrainingPhrase. */ - interface ITrainingPhrase { + /** DetectIntentResponse responseId */ + responseId?: (string|null); - /** TrainingPhrase id */ - id?: (string|null); + /** DetectIntentResponse queryResult */ + queryResult?: (google.cloud.dialogflow.cx.v3beta1.IQueryResult|null); - /** TrainingPhrase parts */ - parts?: (google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart[]|null); + /** DetectIntentResponse outputAudio */ + outputAudio?: (Uint8Array|string|null); - /** TrainingPhrase repeatCount */ - repeatCount?: (number|null); - } + /** DetectIntentResponse outputAudioConfig */ + outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); - /** Represents a TrainingPhrase. */ - class TrainingPhrase implements ITrainingPhrase { - - /** - * Constructs a new TrainingPhrase. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase); - - /** TrainingPhrase id. */ - public id: string; - - /** TrainingPhrase parts. */ - public parts: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart[]; - - /** TrainingPhrase repeatCount. */ - public repeatCount: number; - - /** - * Creates a new TrainingPhrase instance using the specified properties. - * @param [properties] Properties to set - * @returns TrainingPhrase instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase; - - /** - * Encodes the specified TrainingPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.verify|verify} messages. - * @param message TrainingPhrase message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TrainingPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.verify|verify} messages. - * @param message TrainingPhrase message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TrainingPhrase message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TrainingPhrase - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase; - - /** - * Decodes a TrainingPhrase message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TrainingPhrase - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase; - - /** - * Verifies a TrainingPhrase message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a TrainingPhrase message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TrainingPhrase - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase; - - /** - * Creates a plain object from a TrainingPhrase message. Also converts values to other types if specified. - * @param message TrainingPhrase - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this TrainingPhrase to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace TrainingPhrase { - - /** Properties of a Part. */ - interface IPart { - - /** Part text */ - text?: (string|null); - - /** Part parameterId */ - parameterId?: (string|null); - } - - /** Represents a Part. */ - class Part implements IPart { - - /** - * Constructs a new Part. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart); - - /** Part text. */ - public text: string; - - /** Part parameterId. */ - public parameterId: string; - - /** - * Creates a new Part instance using the specified properties. - * @param [properties] Properties to set - * @returns Part instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part; - - /** - * Encodes the specified Part message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.verify|verify} messages. - * @param message Part message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Part message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.verify|verify} messages. - * @param message Part message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Part message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Part - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part; - - /** - * Decodes a Part message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Part - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part; - - /** - * Verifies a Part message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Part message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Part - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part; - - /** - * Creates a plain object from a Part message. Also converts values to other types if specified. - * @param message Part - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Part to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of a Parameter. */ - interface IParameter { - - /** Parameter id */ - id?: (string|null); - - /** Parameter entityType */ - entityType?: (string|null); - - /** Parameter isList */ - isList?: (boolean|null); - - /** Parameter redact */ - redact?: (boolean|null); - } - - /** Represents a Parameter. */ - class Parameter implements IParameter { - - /** - * Constructs a new Parameter. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.IParameter); - - /** Parameter id. */ - public id: string; - - /** Parameter entityType. */ - public entityType: string; - - /** Parameter isList. */ - public isList: boolean; - - /** Parameter redact. */ - public redact: boolean; - - /** - * Creates a new Parameter instance using the specified properties. - * @param [properties] Properties to set - * @returns Parameter instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.IParameter): google.cloud.dialogflow.cx.v3beta1.Intent.Parameter; - - /** - * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.verify|verify} messages. - * @param message Parameter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Intent.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.verify|verify} messages. - * @param message Parameter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Intent.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Parameter message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Parameter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Intent.Parameter; - - /** - * Decodes a Parameter message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Parameter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Intent.Parameter; - - /** - * Verifies a Parameter message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Parameter message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Parameter - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Intent.Parameter; - - /** - * Creates a plain object from a Parameter message. Also converts values to other types if specified. - * @param message Parameter - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Intent.Parameter, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Parameter to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of a ListIntentsRequest. */ - interface IListIntentsRequest { - - /** ListIntentsRequest parent */ - parent?: (string|null); - - /** ListIntentsRequest languageCode */ - languageCode?: (string|null); - - /** ListIntentsRequest intentView */ - intentView?: (google.cloud.dialogflow.cx.v3beta1.IntentView|keyof typeof google.cloud.dialogflow.cx.v3beta1.IntentView|null); - - /** ListIntentsRequest pageSize */ - pageSize?: (number|null); + /** DetectIntentResponse responseType */ + responseType?: (google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType|keyof typeof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType|null); - /** ListIntentsRequest pageToken */ - pageToken?: (string|null); + /** DetectIntentResponse allowCancellation */ + allowCancellation?: (boolean|null); } - /** Represents a ListIntentsRequest. */ - class ListIntentsRequest implements IListIntentsRequest { + /** Represents a DetectIntentResponse. */ + class DetectIntentResponse implements IDetectIntentResponse { /** - * Constructs a new ListIntentsRequest. + * Constructs a new DetectIntentResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse); - /** ListIntentsRequest parent. */ - public parent: string; + /** DetectIntentResponse responseId. */ + public responseId: string; - /** ListIntentsRequest languageCode. */ - public languageCode: string; + /** DetectIntentResponse queryResult. */ + public queryResult?: (google.cloud.dialogflow.cx.v3beta1.IQueryResult|null); - /** ListIntentsRequest intentView. */ - public intentView: (google.cloud.dialogflow.cx.v3beta1.IntentView|keyof typeof google.cloud.dialogflow.cx.v3beta1.IntentView); + /** DetectIntentResponse outputAudio. */ + public outputAudio: (Uint8Array|string); - /** ListIntentsRequest pageSize. */ - public pageSize: number; + /** DetectIntentResponse outputAudioConfig. */ + public outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); - /** ListIntentsRequest pageToken. */ - public pageToken: string; + /** DetectIntentResponse responseType. */ + public responseType: (google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType|keyof typeof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType); + + /** DetectIntentResponse allowCancellation. */ + public allowCancellation: boolean; /** - * Creates a new ListIntentsRequest instance using the specified properties. + * Creates a new DetectIntentResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListIntentsRequest instance + * @returns DetectIntentResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest): google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse): google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse; /** - * Encodes the specified ListIntentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest.verify|verify} messages. - * @param message ListIntentsRequest message or plain object to encode + * Encodes the specified DetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.verify|verify} messages. + * @param message DetectIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListIntentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest.verify|verify} messages. - * @param message ListIntentsRequest message or plain object to encode + * Encodes the specified DetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.verify|verify} messages. + * @param message DetectIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListIntentsRequest message from the specified reader or buffer. + * Decodes a DetectIntentResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListIntentsRequest + * @returns DetectIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse; /** - * Decodes a ListIntentsRequest message from the specified reader or buffer, length delimited. + * Decodes a DetectIntentResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListIntentsRequest + * @returns DetectIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse; /** - * Verifies a ListIntentsRequest message. + * Verifies a DetectIntentResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListIntentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DetectIntentResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListIntentsRequest + * @returns DetectIntentResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse; /** - * Creates a plain object from a ListIntentsRequest message. Also converts values to other types if specified. - * @param message ListIntentsRequest + * Creates a plain object from a DetectIntentResponse message. Also converts values to other types if specified. + * @param message DetectIntentResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListIntentsRequest to JSON. + * Converts this DetectIntentResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListIntentsResponse. */ - interface IListIntentsResponse { + namespace DetectIntentResponse { - /** ListIntentsResponse intents */ - intents?: (google.cloud.dialogflow.cx.v3beta1.IIntent[]|null); + /** ResponseType enum. */ + enum ResponseType { + RESPONSE_TYPE_UNSPECIFIED = 0, + PARTIAL = 1, + FINAL = 2 + } + } - /** ListIntentsResponse nextPageToken */ - nextPageToken?: (string|null); + /** Properties of a StreamingDetectIntentRequest. */ + interface IStreamingDetectIntentRequest { + + /** StreamingDetectIntentRequest session */ + session?: (string|null); + + /** StreamingDetectIntentRequest queryParams */ + queryParams?: (google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null); + + /** StreamingDetectIntentRequest queryInput */ + queryInput?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); + + /** StreamingDetectIntentRequest outputAudioConfig */ + outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); + + /** StreamingDetectIntentRequest enablePartialResponse */ + enablePartialResponse?: (boolean|null); } - /** Represents a ListIntentsResponse. */ - class ListIntentsResponse implements IListIntentsResponse { + /** Represents a StreamingDetectIntentRequest. */ + class StreamingDetectIntentRequest implements IStreamingDetectIntentRequest { /** - * Constructs a new ListIntentsResponse. + * Constructs a new StreamingDetectIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest); - /** ListIntentsResponse intents. */ - public intents: google.cloud.dialogflow.cx.v3beta1.IIntent[]; + /** StreamingDetectIntentRequest session. */ + public session: string; - /** ListIntentsResponse nextPageToken. */ - public nextPageToken: string; + /** StreamingDetectIntentRequest queryParams. */ + public queryParams?: (google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null); + + /** StreamingDetectIntentRequest queryInput. */ + public queryInput?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); + + /** StreamingDetectIntentRequest outputAudioConfig. */ + public outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); + + /** StreamingDetectIntentRequest enablePartialResponse. */ + public enablePartialResponse: boolean; /** - * Creates a new ListIntentsResponse instance using the specified properties. + * Creates a new StreamingDetectIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListIntentsResponse instance + * @returns StreamingDetectIntentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse): google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest; /** - * Encodes the specified ListIntentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse.verify|verify} messages. - * @param message ListIntentsResponse message or plain object to encode + * Encodes the specified StreamingDetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.verify|verify} messages. + * @param message StreamingDetectIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListIntentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse.verify|verify} messages. - * @param message ListIntentsResponse message or plain object to encode + * Encodes the specified StreamingDetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.verify|verify} messages. + * @param message StreamingDetectIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListIntentsResponse message from the specified reader or buffer. + * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListIntentsResponse + * @returns StreamingDetectIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest; /** - * Decodes a ListIntentsResponse message from the specified reader or buffer, length delimited. + * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListIntentsResponse + * @returns StreamingDetectIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest; /** - * Verifies a ListIntentsResponse message. + * Verifies a StreamingDetectIntentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListIntentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingDetectIntentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListIntentsResponse + * @returns StreamingDetectIntentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest; /** - * Creates a plain object from a ListIntentsResponse message. Also converts values to other types if specified. - * @param message ListIntentsResponse + * Creates a plain object from a StreamingDetectIntentRequest message. Also converts values to other types if specified. + * @param message StreamingDetectIntentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListIntentsResponse to JSON. + * Converts this StreamingDetectIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetIntentRequest. */ - interface IGetIntentRequest { + /** Properties of a StreamingDetectIntentResponse. */ + interface IStreamingDetectIntentResponse { - /** GetIntentRequest name */ - name?: (string|null); + /** StreamingDetectIntentResponse recognitionResult */ + recognitionResult?: (google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult|null); - /** GetIntentRequest languageCode */ - languageCode?: (string|null); + /** StreamingDetectIntentResponse detectIntentResponse */ + detectIntentResponse?: (google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse|null); } - /** Represents a GetIntentRequest. */ - class GetIntentRequest implements IGetIntentRequest { + /** Represents a StreamingDetectIntentResponse. */ + class StreamingDetectIntentResponse implements IStreamingDetectIntentResponse { /** - * Constructs a new GetIntentRequest. + * Constructs a new StreamingDetectIntentResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse); - /** GetIntentRequest name. */ - public name: string; + /** StreamingDetectIntentResponse recognitionResult. */ + public recognitionResult?: (google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult|null); - /** GetIntentRequest languageCode. */ - public languageCode: string; + /** StreamingDetectIntentResponse detectIntentResponse. */ + public detectIntentResponse?: (google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse|null); + + /** StreamingDetectIntentResponse response. */ + public response?: ("recognitionResult"|"detectIntentResponse"); /** - * Creates a new GetIntentRequest instance using the specified properties. + * Creates a new StreamingDetectIntentResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetIntentRequest instance + * @returns StreamingDetectIntentResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest): google.cloud.dialogflow.cx.v3beta1.GetIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse; /** - * Encodes the specified GetIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetIntentRequest.verify|verify} messages. - * @param message GetIntentRequest message or plain object to encode + * Encodes the specified StreamingDetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse.verify|verify} messages. + * @param message StreamingDetectIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetIntentRequest.verify|verify} messages. - * @param message GetIntentRequest message or plain object to encode + * Encodes the specified StreamingDetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse.verify|verify} messages. + * @param message StreamingDetectIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetIntentRequest message from the specified reader or buffer. + * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetIntentRequest + * @returns StreamingDetectIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse; /** - * Decodes a GetIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetIntentRequest + * @returns StreamingDetectIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse; /** - * Verifies a GetIntentRequest message. + * Verifies a StreamingDetectIntentResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingDetectIntentResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetIntentRequest + * @returns StreamingDetectIntentResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse; /** - * Creates a plain object from a GetIntentRequest message. Also converts values to other types if specified. - * @param message GetIntentRequest + * Creates a plain object from a StreamingDetectIntentResponse message. Also converts values to other types if specified. + * @param message StreamingDetectIntentResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetIntentRequest to JSON. + * Converts this StreamingDetectIntentResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateIntentRequest. */ - interface ICreateIntentRequest { + /** Properties of a StreamingRecognitionResult. */ + interface IStreamingRecognitionResult { - /** CreateIntentRequest parent */ - parent?: (string|null); + /** StreamingRecognitionResult messageType */ + messageType?: (google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType|keyof typeof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType|null); - /** CreateIntentRequest intent */ - intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); + /** StreamingRecognitionResult transcript */ + transcript?: (string|null); - /** CreateIntentRequest languageCode */ + /** StreamingRecognitionResult isFinal */ + isFinal?: (boolean|null); + + /** StreamingRecognitionResult confidence */ + confidence?: (number|null); + + /** StreamingRecognitionResult stability */ + stability?: (number|null); + + /** StreamingRecognitionResult speechWordInfo */ + speechWordInfo?: (google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo[]|null); + + /** StreamingRecognitionResult speechEndOffset */ + speechEndOffset?: (google.protobuf.IDuration|null); + + /** StreamingRecognitionResult languageCode */ languageCode?: (string|null); } - /** Represents a CreateIntentRequest. */ - class CreateIntentRequest implements ICreateIntentRequest { + /** Represents a StreamingRecognitionResult. */ + class StreamingRecognitionResult implements IStreamingRecognitionResult { /** - * Constructs a new CreateIntentRequest. + * Constructs a new StreamingRecognitionResult. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult); - /** CreateIntentRequest parent. */ - public parent: string; + /** StreamingRecognitionResult messageType. */ + public messageType: (google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType|keyof typeof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType); - /** CreateIntentRequest intent. */ - public intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); + /** StreamingRecognitionResult transcript. */ + public transcript: string; - /** CreateIntentRequest languageCode. */ + /** StreamingRecognitionResult isFinal. */ + public isFinal: boolean; + + /** StreamingRecognitionResult confidence. */ + public confidence: number; + + /** StreamingRecognitionResult stability. */ + public stability: number; + + /** StreamingRecognitionResult speechWordInfo. */ + public speechWordInfo: google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo[]; + + /** StreamingRecognitionResult speechEndOffset. */ + public speechEndOffset?: (google.protobuf.IDuration|null); + + /** StreamingRecognitionResult languageCode. */ public languageCode: string; /** - * Creates a new CreateIntentRequest instance using the specified properties. + * Creates a new StreamingRecognitionResult instance using the specified properties. * @param [properties] Properties to set - * @returns CreateIntentRequest instance + * @returns StreamingRecognitionResult instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest): google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult): google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult; /** - * Encodes the specified CreateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest.verify|verify} messages. - * @param message CreateIntentRequest message or plain object to encode + * Encodes the specified StreamingRecognitionResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.verify|verify} messages. + * @param message StreamingRecognitionResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest.verify|verify} messages. - * @param message CreateIntentRequest message or plain object to encode + * Encodes the specified StreamingRecognitionResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.verify|verify} messages. + * @param message StreamingRecognitionResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateIntentRequest message from the specified reader or buffer. + * Decodes a StreamingRecognitionResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateIntentRequest + * @returns StreamingRecognitionResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult; /** - * Decodes a CreateIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a StreamingRecognitionResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateIntentRequest + * @returns StreamingRecognitionResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult; /** - * Verifies a CreateIntentRequest message. + * Verifies a StreamingRecognitionResult message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingRecognitionResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateIntentRequest + * @returns StreamingRecognitionResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult; /** - * Creates a plain object from a CreateIntentRequest message. Also converts values to other types if specified. - * @param message CreateIntentRequest + * Creates a plain object from a StreamingRecognitionResult message. Also converts values to other types if specified. + * @param message StreamingRecognitionResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateIntentRequest to JSON. + * Converts this StreamingRecognitionResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateIntentRequest. */ - interface IUpdateIntentRequest { + namespace StreamingRecognitionResult { - /** UpdateIntentRequest intent */ - intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); + /** MessageType enum. */ + enum MessageType { + MESSAGE_TYPE_UNSPECIFIED = 0, + TRANSCRIPT = 1, + END_OF_SINGLE_UTTERANCE = 2 + } + } - /** UpdateIntentRequest languageCode */ - languageCode?: (string|null); + /** Properties of a QueryParameters. */ + interface IQueryParameters { - /** UpdateIntentRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** QueryParameters timeZone */ + timeZone?: (string|null); + + /** QueryParameters geoLocation */ + geoLocation?: (google.type.ILatLng|null); + + /** QueryParameters sessionEntityTypes */ + sessionEntityTypes?: (google.cloud.dialogflow.cx.v3beta1.ISessionEntityType[]|null); + + /** QueryParameters payload */ + payload?: (google.protobuf.IStruct|null); + + /** QueryParameters parameters */ + parameters?: (google.protobuf.IStruct|null); + + /** QueryParameters currentPage */ + currentPage?: (string|null); + + /** QueryParameters disableWebhook */ + disableWebhook?: (boolean|null); + + /** QueryParameters analyzeQueryTextSentiment */ + analyzeQueryTextSentiment?: (boolean|null); + + /** QueryParameters webhookHeaders */ + webhookHeaders?: ({ [k: string]: string }|null); + + /** QueryParameters flowVersions */ + flowVersions?: (string[]|null); } - /** Represents an UpdateIntentRequest. */ - class UpdateIntentRequest implements IUpdateIntentRequest { + /** Represents a QueryParameters. */ + class QueryParameters implements IQueryParameters { /** - * Constructs a new UpdateIntentRequest. + * Constructs a new QueryParameters. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IQueryParameters); - /** UpdateIntentRequest intent. */ - public intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); + /** QueryParameters timeZone. */ + public timeZone: string; - /** UpdateIntentRequest languageCode. */ - public languageCode: string; + /** QueryParameters geoLocation. */ + public geoLocation?: (google.type.ILatLng|null); - /** UpdateIntentRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** QueryParameters sessionEntityTypes. */ + public sessionEntityTypes: google.cloud.dialogflow.cx.v3beta1.ISessionEntityType[]; + + /** QueryParameters payload. */ + public payload?: (google.protobuf.IStruct|null); + + /** QueryParameters parameters. */ + public parameters?: (google.protobuf.IStruct|null); + + /** QueryParameters currentPage. */ + public currentPage: string; + + /** QueryParameters disableWebhook. */ + public disableWebhook: boolean; + + /** QueryParameters analyzeQueryTextSentiment. */ + public analyzeQueryTextSentiment: boolean; + + /** QueryParameters webhookHeaders. */ + public webhookHeaders: { [k: string]: string }; + + /** QueryParameters flowVersions. */ + public flowVersions: string[]; /** - * Creates a new UpdateIntentRequest instance using the specified properties. + * Creates a new QueryParameters instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateIntentRequest instance + * @returns QueryParameters instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest): google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IQueryParameters): google.cloud.dialogflow.cx.v3beta1.QueryParameters; /** - * Encodes the specified UpdateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest.verify|verify} messages. - * @param message UpdateIntentRequest message or plain object to encode + * Encodes the specified QueryParameters message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify|verify} messages. + * @param message QueryParameters message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IQueryParameters, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest.verify|verify} messages. - * @param message UpdateIntentRequest message or plain object to encode + * Encodes the specified QueryParameters message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify|verify} messages. + * @param message QueryParameters message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IQueryParameters, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateIntentRequest message from the specified reader or buffer. + * Decodes a QueryParameters message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateIntentRequest + * @returns QueryParameters * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.QueryParameters; /** - * Decodes an UpdateIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryParameters message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateIntentRequest + * @returns QueryParameters * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.QueryParameters; /** - * Verifies an UpdateIntentRequest message. + * Verifies a QueryParameters message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryParameters message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateIntentRequest + * @returns QueryParameters */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.QueryParameters; /** - * Creates a plain object from an UpdateIntentRequest message. Also converts values to other types if specified. - * @param message UpdateIntentRequest + * Creates a plain object from a QueryParameters message. Also converts values to other types if specified. + * @param message QueryParameters * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.QueryParameters, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateIntentRequest to JSON. + * Converts this QueryParameters to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteIntentRequest. */ - interface IDeleteIntentRequest { + /** Properties of a QueryInput. */ + interface IQueryInput { - /** DeleteIntentRequest name */ - name?: (string|null); + /** QueryInput text */ + text?: (google.cloud.dialogflow.cx.v3beta1.ITextInput|null); + + /** QueryInput intent */ + intent?: (google.cloud.dialogflow.cx.v3beta1.IIntentInput|null); + + /** QueryInput audio */ + audio?: (google.cloud.dialogflow.cx.v3beta1.IAudioInput|null); + + /** QueryInput event */ + event?: (google.cloud.dialogflow.cx.v3beta1.IEventInput|null); + + /** QueryInput dtmf */ + dtmf?: (google.cloud.dialogflow.cx.v3beta1.IDtmfInput|null); + + /** QueryInput languageCode */ + languageCode?: (string|null); } - /** Represents a DeleteIntentRequest. */ - class DeleteIntentRequest implements IDeleteIntentRequest { + /** Represents a QueryInput. */ + class QueryInput implements IQueryInput { /** - * Constructs a new DeleteIntentRequest. + * Constructs a new QueryInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IQueryInput); - /** DeleteIntentRequest name. */ - public name: string; + /** QueryInput text. */ + public text?: (google.cloud.dialogflow.cx.v3beta1.ITextInput|null); + + /** QueryInput intent. */ + public intent?: (google.cloud.dialogflow.cx.v3beta1.IIntentInput|null); + + /** QueryInput audio. */ + public audio?: (google.cloud.dialogflow.cx.v3beta1.IAudioInput|null); + + /** QueryInput event. */ + public event?: (google.cloud.dialogflow.cx.v3beta1.IEventInput|null); + + /** QueryInput dtmf. */ + public dtmf?: (google.cloud.dialogflow.cx.v3beta1.IDtmfInput|null); + + /** QueryInput languageCode. */ + public languageCode: string; + + /** QueryInput input. */ + public input?: ("text"|"intent"|"audio"|"event"|"dtmf"); /** - * Creates a new DeleteIntentRequest instance using the specified properties. + * Creates a new QueryInput instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteIntentRequest instance + * @returns QueryInput instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest): google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IQueryInput): google.cloud.dialogflow.cx.v3beta1.QueryInput; /** - * Encodes the specified DeleteIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest.verify|verify} messages. - * @param message DeleteIntentRequest message or plain object to encode + * Encodes the specified QueryInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryInput.verify|verify} messages. + * @param message QueryInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IQueryInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest.verify|verify} messages. - * @param message DeleteIntentRequest message or plain object to encode + * Encodes the specified QueryInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryInput.verify|verify} messages. + * @param message QueryInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IQueryInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteIntentRequest message from the specified reader or buffer. + * Decodes a QueryInput message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteIntentRequest + * @returns QueryInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.QueryInput; /** - * Decodes a DeleteIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryInput message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteIntentRequest + * @returns QueryInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.QueryInput; /** - * Verifies a DeleteIntentRequest message. + * Verifies a QueryInput message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryInput message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteIntentRequest + * @returns QueryInput */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.QueryInput; /** - * Creates a plain object from a DeleteIntentRequest message. Also converts values to other types if specified. - * @param message DeleteIntentRequest + * Creates a plain object from a QueryInput message. Also converts values to other types if specified. + * @param message QueryInput * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.QueryInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteIntentRequest to JSON. + * Converts this QueryInput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** IntentView enum. */ - enum IntentView { - INTENT_VIEW_UNSPECIFIED = 0, - INTENT_VIEW_PARTIAL = 1, - INTENT_VIEW_FULL = 2 - } + /** Properties of a QueryResult. */ + interface IQueryResult { - /** Represents a Sessions */ - class Sessions extends $protobuf.rpc.Service { + /** QueryResult text */ + text?: (string|null); - /** - * Constructs a new Sessions service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** QueryResult triggerIntent */ + triggerIntent?: (string|null); - /** - * Creates new Sessions service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Sessions; + /** QueryResult transcript */ + transcript?: (string|null); - /** - * Calls DetectIntent. - * @param request DetectIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DetectIntentResponse - */ - public detectIntent(request: google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Sessions.DetectIntentCallback): void; + /** QueryResult triggerEvent */ + triggerEvent?: (string|null); - /** - * Calls DetectIntent. - * @param request DetectIntentRequest message or plain object - * @returns Promise - */ - public detectIntent(request: google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest): Promise; + /** QueryResult dtmf */ + dtmf?: (google.cloud.dialogflow.cx.v3beta1.IDtmfInput|null); - /** - * Calls StreamingDetectIntent. - * @param request StreamingDetectIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and StreamingDetectIntentResponse - */ - public streamingDetectIntent(request: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Sessions.StreamingDetectIntentCallback): void; + /** QueryResult languageCode */ + languageCode?: (string|null); - /** - * Calls StreamingDetectIntent. - * @param request StreamingDetectIntentRequest message or plain object - * @returns Promise - */ - public streamingDetectIntent(request: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest): Promise; + /** QueryResult parameters */ + parameters?: (google.protobuf.IStruct|null); - /** - * Calls MatchIntent. - * @param request MatchIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and MatchIntentResponse - */ - public matchIntent(request: google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntentCallback): void; + /** QueryResult responseMessages */ + responseMessages?: (google.cloud.dialogflow.cx.v3beta1.IResponseMessage[]|null); - /** - * Calls MatchIntent. - * @param request MatchIntentRequest message or plain object - * @returns Promise - */ - public matchIntent(request: google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest): Promise; + /** QueryResult webhookStatuses */ + webhookStatuses?: (google.rpc.IStatus[]|null); - /** - * Calls FulfillIntent. - * @param request FulfillIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and FulfillIntentResponse - */ - public fulfillIntent(request: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Sessions.FulfillIntentCallback): void; + /** QueryResult webhookPayloads */ + webhookPayloads?: (google.protobuf.IStruct[]|null); - /** - * Calls FulfillIntent. - * @param request FulfillIntentRequest message or plain object - * @returns Promise - */ - public fulfillIntent(request: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest): Promise; - } + /** QueryResult currentPage */ + currentPage?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); - namespace Sessions { + /** QueryResult intent */ + intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#detectIntent}. - * @param error Error, if any - * @param [response] DetectIntentResponse - */ - type DetectIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse) => void; + /** QueryResult intentDetectionConfidence */ + intentDetectionConfidence?: (number|null); - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#streamingDetectIntent}. - * @param error Error, if any - * @param [response] StreamingDetectIntentResponse - */ - type StreamingDetectIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse) => void; + /** QueryResult match */ + match?: (google.cloud.dialogflow.cx.v3beta1.IMatch|null); - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#matchIntent}. - * @param error Error, if any - * @param [response] MatchIntentResponse - */ - type MatchIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse) => void; + /** QueryResult diagnosticInfo */ + diagnosticInfo?: (google.protobuf.IStruct|null); + + /** QueryResult sentimentAnalysisResult */ + sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult|null); + } + + /** Represents a QueryResult. */ + class QueryResult implements IQueryResult { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#fulfillIntent}. - * @param error Error, if any - * @param [response] FulfillIntentResponse + * Constructs a new QueryResult. + * @param [properties] Properties to set */ - type FulfillIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse) => void; - } + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IQueryResult); - /** Properties of a DetectIntentRequest. */ - interface IDetectIntentRequest { + /** QueryResult text. */ + public text?: (string|null); - /** DetectIntentRequest session */ - session?: (string|null); + /** QueryResult triggerIntent. */ + public triggerIntent?: (string|null); - /** DetectIntentRequest queryParams */ - queryParams?: (google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null); + /** QueryResult transcript. */ + public transcript?: (string|null); - /** DetectIntentRequest queryInput */ - queryInput?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); + /** QueryResult triggerEvent. */ + public triggerEvent?: (string|null); - /** DetectIntentRequest outputAudioConfig */ - outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); - } + /** QueryResult dtmf. */ + public dtmf?: (google.cloud.dialogflow.cx.v3beta1.IDtmfInput|null); - /** Represents a DetectIntentRequest. */ - class DetectIntentRequest implements IDetectIntentRequest { + /** QueryResult languageCode. */ + public languageCode: string; - /** - * Constructs a new DetectIntentRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest); + /** QueryResult parameters. */ + public parameters?: (google.protobuf.IStruct|null); - /** DetectIntentRequest session. */ - public session: string; + /** QueryResult responseMessages. */ + public responseMessages: google.cloud.dialogflow.cx.v3beta1.IResponseMessage[]; - /** DetectIntentRequest queryParams. */ - public queryParams?: (google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null); + /** QueryResult webhookStatuses. */ + public webhookStatuses: google.rpc.IStatus[]; - /** DetectIntentRequest queryInput. */ - public queryInput?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); + /** QueryResult webhookPayloads. */ + public webhookPayloads: google.protobuf.IStruct[]; - /** DetectIntentRequest outputAudioConfig. */ - public outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); + /** QueryResult currentPage. */ + public currentPage?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + + /** QueryResult intent. */ + public intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); + + /** QueryResult intentDetectionConfidence. */ + public intentDetectionConfidence: number; + + /** QueryResult match. */ + public match?: (google.cloud.dialogflow.cx.v3beta1.IMatch|null); + + /** QueryResult diagnosticInfo. */ + public diagnosticInfo?: (google.protobuf.IStruct|null); + + /** QueryResult sentimentAnalysisResult. */ + public sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult|null); + + /** QueryResult query. */ + public query?: ("text"|"triggerIntent"|"transcript"|"triggerEvent"|"dtmf"); /** - * Creates a new DetectIntentRequest instance using the specified properties. + * Creates a new QueryResult instance using the specified properties. * @param [properties] Properties to set - * @returns DetectIntentRequest instance + * @returns QueryResult instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest): google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IQueryResult): google.cloud.dialogflow.cx.v3beta1.QueryResult; /** - * Encodes the specified DetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.verify|verify} messages. - * @param message DetectIntentRequest message or plain object to encode + * Encodes the specified QueryResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryResult.verify|verify} messages. + * @param message QueryResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.verify|verify} messages. - * @param message DetectIntentRequest message or plain object to encode + * Encodes the specified QueryResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryResult.verify|verify} messages. + * @param message QueryResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DetectIntentRequest message from the specified reader or buffer. + * Decodes a QueryResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DetectIntentRequest + * @returns QueryResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.QueryResult; /** - * Decodes a DetectIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DetectIntentRequest + * @returns QueryResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.QueryResult; /** - * Verifies a DetectIntentRequest message. + * Verifies a QueryResult message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DetectIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DetectIntentRequest + * @returns QueryResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.QueryResult; /** - * Creates a plain object from a DetectIntentRequest message. Also converts values to other types if specified. - * @param message DetectIntentRequest + * Creates a plain object from a QueryResult message. Also converts values to other types if specified. + * @param message QueryResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.QueryResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DetectIntentRequest to JSON. + * Converts this QueryResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DetectIntentResponse. */ - interface IDetectIntentResponse { - - /** DetectIntentResponse responseId */ - responseId?: (string|null); - - /** DetectIntentResponse queryResult */ - queryResult?: (google.cloud.dialogflow.cx.v3beta1.IQueryResult|null); - - /** DetectIntentResponse outputAudio */ - outputAudio?: (Uint8Array|string|null); - - /** DetectIntentResponse outputAudioConfig */ - outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); - - /** DetectIntentResponse responseType */ - responseType?: (google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType|keyof typeof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType|null); + /** Properties of a TextInput. */ + interface ITextInput { - /** DetectIntentResponse allowCancellation */ - allowCancellation?: (boolean|null); + /** TextInput text */ + text?: (string|null); } - /** Represents a DetectIntentResponse. */ - class DetectIntentResponse implements IDetectIntentResponse { + /** Represents a TextInput. */ + class TextInput implements ITextInput { /** - * Constructs a new DetectIntentResponse. + * Constructs a new TextInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse); - - /** DetectIntentResponse responseId. */ - public responseId: string; - - /** DetectIntentResponse queryResult. */ - public queryResult?: (google.cloud.dialogflow.cx.v3beta1.IQueryResult|null); - - /** DetectIntentResponse outputAudio. */ - public outputAudio: (Uint8Array|string); - - /** DetectIntentResponse outputAudioConfig. */ - public outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); - - /** DetectIntentResponse responseType. */ - public responseType: (google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType|keyof typeof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITextInput); - /** DetectIntentResponse allowCancellation. */ - public allowCancellation: boolean; + /** TextInput text. */ + public text: string; /** - * Creates a new DetectIntentResponse instance using the specified properties. + * Creates a new TextInput instance using the specified properties. * @param [properties] Properties to set - * @returns DetectIntentResponse instance + * @returns TextInput instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse): google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITextInput): google.cloud.dialogflow.cx.v3beta1.TextInput; /** - * Encodes the specified DetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.verify|verify} messages. - * @param message DetectIntentResponse message or plain object to encode + * Encodes the specified TextInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TextInput.verify|verify} messages. + * @param message TextInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITextInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.verify|verify} messages. - * @param message DetectIntentResponse message or plain object to encode + * Encodes the specified TextInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TextInput.verify|verify} messages. + * @param message TextInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITextInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DetectIntentResponse message from the specified reader or buffer. + * Decodes a TextInput message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DetectIntentResponse + * @returns TextInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TextInput; /** - * Decodes a DetectIntentResponse message from the specified reader or buffer, length delimited. + * Decodes a TextInput message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DetectIntentResponse + * @returns TextInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TextInput; /** - * Verifies a DetectIntentResponse message. + * Verifies a TextInput message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DetectIntentResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TextInput message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DetectIntentResponse + * @returns TextInput */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TextInput; /** - * Creates a plain object from a DetectIntentResponse message. Also converts values to other types if specified. - * @param message DetectIntentResponse + * Creates a plain object from a TextInput message. Also converts values to other types if specified. + * @param message TextInput * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TextInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DetectIntentResponse to JSON. + * Converts this TextInput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace DetectIntentResponse { - - /** ResponseType enum. */ - enum ResponseType { - RESPONSE_TYPE_UNSPECIFIED = 0, - PARTIAL = 1, - FINAL = 2 - } - } - - /** Properties of a StreamingDetectIntentRequest. */ - interface IStreamingDetectIntentRequest { - - /** StreamingDetectIntentRequest session */ - session?: (string|null); - - /** StreamingDetectIntentRequest queryParams */ - queryParams?: (google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null); - - /** StreamingDetectIntentRequest queryInput */ - queryInput?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); - - /** StreamingDetectIntentRequest outputAudioConfig */ - outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); + /** Properties of an IntentInput. */ + interface IIntentInput { - /** StreamingDetectIntentRequest enablePartialResponse */ - enablePartialResponse?: (boolean|null); + /** IntentInput intent */ + intent?: (string|null); } - /** Represents a StreamingDetectIntentRequest. */ - class StreamingDetectIntentRequest implements IStreamingDetectIntentRequest { + /** Represents an IntentInput. */ + class IntentInput implements IIntentInput { /** - * Constructs a new StreamingDetectIntentRequest. + * Constructs a new IntentInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest); - - /** StreamingDetectIntentRequest session. */ - public session: string; - - /** StreamingDetectIntentRequest queryParams. */ - public queryParams?: (google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null); - - /** StreamingDetectIntentRequest queryInput. */ - public queryInput?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); - - /** StreamingDetectIntentRequest outputAudioConfig. */ - public outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IIntentInput); - /** StreamingDetectIntentRequest enablePartialResponse. */ - public enablePartialResponse: boolean; + /** IntentInput intent. */ + public intent: string; /** - * Creates a new StreamingDetectIntentRequest instance using the specified properties. + * Creates a new IntentInput instance using the specified properties. * @param [properties] Properties to set - * @returns StreamingDetectIntentRequest instance + * @returns IntentInput instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IIntentInput): google.cloud.dialogflow.cx.v3beta1.IntentInput; /** - * Encodes the specified StreamingDetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.verify|verify} messages. - * @param message StreamingDetectIntentRequest message or plain object to encode + * Encodes the specified IntentInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentInput.verify|verify} messages. + * @param message IntentInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IIntentInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StreamingDetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.verify|verify} messages. - * @param message StreamingDetectIntentRequest message or plain object to encode + * Encodes the specified IntentInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentInput.verify|verify} messages. + * @param message IntentInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IIntentInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer. + * Decodes an IntentInput message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StreamingDetectIntentRequest + * @returns IntentInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.IntentInput; /** - * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer, length delimited. + * Decodes an IntentInput message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StreamingDetectIntentRequest + * @returns IntentInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.IntentInput; /** - * Verifies a StreamingDetectIntentRequest message. + * Verifies an IntentInput message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StreamingDetectIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates an IntentInput message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StreamingDetectIntentRequest + * @returns IntentInput */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.IntentInput; /** - * Creates a plain object from a StreamingDetectIntentRequest message. Also converts values to other types if specified. - * @param message StreamingDetectIntentRequest + * Creates a plain object from an IntentInput message. Also converts values to other types if specified. + * @param message IntentInput * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.IntentInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StreamingDetectIntentRequest to JSON. + * Converts this IntentInput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a StreamingDetectIntentResponse. */ - interface IStreamingDetectIntentResponse { + /** Properties of an AudioInput. */ + interface IAudioInput { - /** StreamingDetectIntentResponse recognitionResult */ - recognitionResult?: (google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult|null); + /** AudioInput config */ + config?: (google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig|null); - /** StreamingDetectIntentResponse detectIntentResponse */ - detectIntentResponse?: (google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse|null); + /** AudioInput audio */ + audio?: (Uint8Array|string|null); } - /** Represents a StreamingDetectIntentResponse. */ - class StreamingDetectIntentResponse implements IStreamingDetectIntentResponse { + /** Represents an AudioInput. */ + class AudioInput implements IAudioInput { /** - * Constructs a new StreamingDetectIntentResponse. + * Constructs a new AudioInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse); - - /** StreamingDetectIntentResponse recognitionResult. */ - public recognitionResult?: (google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IAudioInput); - /** StreamingDetectIntentResponse detectIntentResponse. */ - public detectIntentResponse?: (google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse|null); + /** AudioInput config. */ + public config?: (google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig|null); - /** StreamingDetectIntentResponse response. */ - public response?: ("recognitionResult"|"detectIntentResponse"); + /** AudioInput audio. */ + public audio: (Uint8Array|string); /** - * Creates a new StreamingDetectIntentResponse instance using the specified properties. + * Creates a new AudioInput instance using the specified properties. * @param [properties] Properties to set - * @returns StreamingDetectIntentResponse instance + * @returns AudioInput instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IAudioInput): google.cloud.dialogflow.cx.v3beta1.AudioInput; /** - * Encodes the specified StreamingDetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse.verify|verify} messages. - * @param message StreamingDetectIntentResponse message or plain object to encode + * Encodes the specified AudioInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AudioInput.verify|verify} messages. + * @param message AudioInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IAudioInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StreamingDetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse.verify|verify} messages. - * @param message StreamingDetectIntentResponse message or plain object to encode + * Encodes the specified AudioInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AudioInput.verify|verify} messages. + * @param message AudioInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IAudioInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer. + * Decodes an AudioInput message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StreamingDetectIntentResponse + * @returns AudioInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.AudioInput; /** - * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer, length delimited. + * Decodes an AudioInput message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StreamingDetectIntentResponse + * @returns AudioInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.AudioInput; /** - * Verifies a StreamingDetectIntentResponse message. + * Verifies an AudioInput message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StreamingDetectIntentResponse message from a plain object. Also converts values to their respective internal types. + * Creates an AudioInput message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StreamingDetectIntentResponse + * @returns AudioInput */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.AudioInput; /** - * Creates a plain object from a StreamingDetectIntentResponse message. Also converts values to other types if specified. - * @param message StreamingDetectIntentResponse + * Creates a plain object from an AudioInput message. Also converts values to other types if specified. + * @param message AudioInput * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.AudioInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StreamingDetectIntentResponse to JSON. + * Converts this AudioInput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a StreamingRecognitionResult. */ - interface IStreamingRecognitionResult { - - /** StreamingRecognitionResult messageType */ - messageType?: (google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType|keyof typeof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType|null); - - /** StreamingRecognitionResult transcript */ - transcript?: (string|null); - - /** StreamingRecognitionResult isFinal */ - isFinal?: (boolean|null); - - /** StreamingRecognitionResult confidence */ - confidence?: (number|null); - - /** StreamingRecognitionResult stability */ - stability?: (number|null); - - /** StreamingRecognitionResult speechWordInfo */ - speechWordInfo?: (google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo[]|null); - - /** StreamingRecognitionResult speechEndOffset */ - speechEndOffset?: (google.protobuf.IDuration|null); + /** Properties of an EventInput. */ + interface IEventInput { - /** StreamingRecognitionResult languageCode */ - languageCode?: (string|null); + /** EventInput event */ + event?: (string|null); } - /** Represents a StreamingRecognitionResult. */ - class StreamingRecognitionResult implements IStreamingRecognitionResult { + /** Represents an EventInput. */ + class EventInput implements IEventInput { /** - * Constructs a new StreamingRecognitionResult. + * Constructs a new EventInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult); - - /** StreamingRecognitionResult messageType. */ - public messageType: (google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType|keyof typeof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType); - - /** StreamingRecognitionResult transcript. */ - public transcript: string; - - /** StreamingRecognitionResult isFinal. */ - public isFinal: boolean; - - /** StreamingRecognitionResult confidence. */ - public confidence: number; - - /** StreamingRecognitionResult stability. */ - public stability: number; - - /** StreamingRecognitionResult speechWordInfo. */ - public speechWordInfo: google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo[]; - - /** StreamingRecognitionResult speechEndOffset. */ - public speechEndOffset?: (google.protobuf.IDuration|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IEventInput); - /** StreamingRecognitionResult languageCode. */ - public languageCode: string; + /** EventInput event. */ + public event: string; /** - * Creates a new StreamingRecognitionResult instance using the specified properties. + * Creates a new EventInput instance using the specified properties. * @param [properties] Properties to set - * @returns StreamingRecognitionResult instance + * @returns EventInput instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult): google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IEventInput): google.cloud.dialogflow.cx.v3beta1.EventInput; /** - * Encodes the specified StreamingRecognitionResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.verify|verify} messages. - * @param message StreamingRecognitionResult message or plain object to encode + * Encodes the specified EventInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventInput.verify|verify} messages. + * @param message EventInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IEventInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StreamingRecognitionResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.verify|verify} messages. - * @param message StreamingRecognitionResult message or plain object to encode + * Encodes the specified EventInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventInput.verify|verify} messages. + * @param message EventInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IEventInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StreamingRecognitionResult message from the specified reader or buffer. + * Decodes an EventInput message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StreamingRecognitionResult + * @returns EventInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.EventInput; /** - * Decodes a StreamingRecognitionResult message from the specified reader or buffer, length delimited. + * Decodes an EventInput message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StreamingRecognitionResult + * @returns EventInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.EventInput; /** - * Verifies a StreamingRecognitionResult message. + * Verifies an EventInput message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StreamingRecognitionResult message from a plain object. Also converts values to their respective internal types. + * Creates an EventInput message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StreamingRecognitionResult + * @returns EventInput */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.EventInput; /** - * Creates a plain object from a StreamingRecognitionResult message. Also converts values to other types if specified. - * @param message StreamingRecognitionResult + * Creates a plain object from an EventInput message. Also converts values to other types if specified. + * @param message EventInput * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.EventInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StreamingRecognitionResult to JSON. + * Converts this EventInput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace StreamingRecognitionResult { - - /** MessageType enum. */ - enum MessageType { - MESSAGE_TYPE_UNSPECIFIED = 0, - TRANSCRIPT = 1, - END_OF_SINGLE_UTTERANCE = 2 - } - } - - /** Properties of a QueryParameters. */ - interface IQueryParameters { - - /** QueryParameters timeZone */ - timeZone?: (string|null); - - /** QueryParameters geoLocation */ - geoLocation?: (google.type.ILatLng|null); - - /** QueryParameters sessionEntityTypes */ - sessionEntityTypes?: (google.cloud.dialogflow.cx.v3beta1.ISessionEntityType[]|null); - - /** QueryParameters payload */ - payload?: (google.protobuf.IStruct|null); - - /** QueryParameters parameters */ - parameters?: (google.protobuf.IStruct|null); - - /** QueryParameters currentPage */ - currentPage?: (string|null); - - /** QueryParameters disableWebhook */ - disableWebhook?: (boolean|null); - - /** QueryParameters analyzeQueryTextSentiment */ - analyzeQueryTextSentiment?: (boolean|null); + /** Properties of a DtmfInput. */ + interface IDtmfInput { - /** QueryParameters webhookHeaders */ - webhookHeaders?: ({ [k: string]: string }|null); + /** DtmfInput digits */ + digits?: (string|null); - /** QueryParameters flowVersions */ - flowVersions?: (string[]|null); + /** DtmfInput finishDigit */ + finishDigit?: (string|null); } - /** Represents a QueryParameters. */ - class QueryParameters implements IQueryParameters { + /** Represents a DtmfInput. */ + class DtmfInput implements IDtmfInput { /** - * Constructs a new QueryParameters. + * Constructs a new DtmfInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IQueryParameters); - - /** QueryParameters timeZone. */ - public timeZone: string; - - /** QueryParameters geoLocation. */ - public geoLocation?: (google.type.ILatLng|null); - - /** QueryParameters sessionEntityTypes. */ - public sessionEntityTypes: google.cloud.dialogflow.cx.v3beta1.ISessionEntityType[]; - - /** QueryParameters payload. */ - public payload?: (google.protobuf.IStruct|null); - - /** QueryParameters parameters. */ - public parameters?: (google.protobuf.IStruct|null); - - /** QueryParameters currentPage. */ - public currentPage: string; - - /** QueryParameters disableWebhook. */ - public disableWebhook: boolean; - - /** QueryParameters analyzeQueryTextSentiment. */ - public analyzeQueryTextSentiment: boolean; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDtmfInput); - /** QueryParameters webhookHeaders. */ - public webhookHeaders: { [k: string]: string }; + /** DtmfInput digits. */ + public digits: string; - /** QueryParameters flowVersions. */ - public flowVersions: string[]; + /** DtmfInput finishDigit. */ + public finishDigit: string; /** - * Creates a new QueryParameters instance using the specified properties. + * Creates a new DtmfInput instance using the specified properties. * @param [properties] Properties to set - * @returns QueryParameters instance + * @returns DtmfInput instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IQueryParameters): google.cloud.dialogflow.cx.v3beta1.QueryParameters; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDtmfInput): google.cloud.dialogflow.cx.v3beta1.DtmfInput; /** - * Encodes the specified QueryParameters message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify|verify} messages. - * @param message QueryParameters message or plain object to encode + * Encodes the specified DtmfInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DtmfInput.verify|verify} messages. + * @param message DtmfInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IQueryParameters, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDtmfInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryParameters message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify|verify} messages. - * @param message QueryParameters message or plain object to encode + * Encodes the specified DtmfInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DtmfInput.verify|verify} messages. + * @param message DtmfInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IQueryParameters, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDtmfInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryParameters message from the specified reader or buffer. + * Decodes a DtmfInput message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryParameters + * @returns DtmfInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.QueryParameters; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DtmfInput; /** - * Decodes a QueryParameters message from the specified reader or buffer, length delimited. + * Decodes a DtmfInput message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryParameters + * @returns DtmfInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.QueryParameters; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DtmfInput; /** - * Verifies a QueryParameters message. + * Verifies a DtmfInput message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryParameters message from a plain object. Also converts values to their respective internal types. + * Creates a DtmfInput message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryParameters + * @returns DtmfInput */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.QueryParameters; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DtmfInput; /** - * Creates a plain object from a QueryParameters message. Also converts values to other types if specified. - * @param message QueryParameters + * Creates a plain object from a DtmfInput message. Also converts values to other types if specified. + * @param message DtmfInput * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.QueryParameters, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DtmfInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryParameters to JSON. + * Converts this DtmfInput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryInput. */ - interface IQueryInput { + /** Properties of a Match. */ + interface IMatch { - /** QueryInput text */ - text?: (google.cloud.dialogflow.cx.v3beta1.ITextInput|null); + /** Match intent */ + intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); - /** QueryInput intent */ - intent?: (google.cloud.dialogflow.cx.v3beta1.IIntentInput|null); + /** Match event */ + event?: (string|null); - /** QueryInput audio */ - audio?: (google.cloud.dialogflow.cx.v3beta1.IAudioInput|null); + /** Match parameters */ + parameters?: (google.protobuf.IStruct|null); - /** QueryInput event */ - event?: (google.cloud.dialogflow.cx.v3beta1.IEventInput|null); + /** Match resolvedInput */ + resolvedInput?: (string|null); - /** QueryInput dtmf */ - dtmf?: (google.cloud.dialogflow.cx.v3beta1.IDtmfInput|null); + /** Match matchType */ + matchType?: (google.cloud.dialogflow.cx.v3beta1.Match.MatchType|keyof typeof google.cloud.dialogflow.cx.v3beta1.Match.MatchType|null); - /** QueryInput languageCode */ - languageCode?: (string|null); + /** Match confidence */ + confidence?: (number|null); } - /** Represents a QueryInput. */ - class QueryInput implements IQueryInput { + /** Represents a Match. */ + class Match implements IMatch { /** - * Constructs a new QueryInput. + * Constructs a new Match. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IQueryInput); - - /** QueryInput text. */ - public text?: (google.cloud.dialogflow.cx.v3beta1.ITextInput|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IMatch); - /** QueryInput intent. */ - public intent?: (google.cloud.dialogflow.cx.v3beta1.IIntentInput|null); + /** Match intent. */ + public intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); - /** QueryInput audio. */ - public audio?: (google.cloud.dialogflow.cx.v3beta1.IAudioInput|null); + /** Match event. */ + public event: string; - /** QueryInput event. */ - public event?: (google.cloud.dialogflow.cx.v3beta1.IEventInput|null); + /** Match parameters. */ + public parameters?: (google.protobuf.IStruct|null); - /** QueryInput dtmf. */ - public dtmf?: (google.cloud.dialogflow.cx.v3beta1.IDtmfInput|null); + /** Match resolvedInput. */ + public resolvedInput: string; - /** QueryInput languageCode. */ - public languageCode: string; + /** Match matchType. */ + public matchType: (google.cloud.dialogflow.cx.v3beta1.Match.MatchType|keyof typeof google.cloud.dialogflow.cx.v3beta1.Match.MatchType); - /** QueryInput input. */ - public input?: ("text"|"intent"|"audio"|"event"|"dtmf"); + /** Match confidence. */ + public confidence: number; /** - * Creates a new QueryInput instance using the specified properties. + * Creates a new Match instance using the specified properties. * @param [properties] Properties to set - * @returns QueryInput instance + * @returns Match instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IQueryInput): google.cloud.dialogflow.cx.v3beta1.QueryInput; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IMatch): google.cloud.dialogflow.cx.v3beta1.Match; /** - * Encodes the specified QueryInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryInput.verify|verify} messages. - * @param message QueryInput message or plain object to encode + * Encodes the specified Match message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Match.verify|verify} messages. + * @param message Match message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IQueryInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IMatch, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryInput.verify|verify} messages. - * @param message QueryInput message or plain object to encode + * Encodes the specified Match message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Match.verify|verify} messages. + * @param message Match message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IQueryInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IMatch, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryInput message from the specified reader or buffer. + * Decodes a Match message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryInput + * @returns Match * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.QueryInput; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Match; /** - * Decodes a QueryInput message from the specified reader or buffer, length delimited. + * Decodes a Match message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryInput + * @returns Match * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.QueryInput; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Match; /** - * Verifies a QueryInput message. + * Verifies a Match message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryInput message from a plain object. Also converts values to their respective internal types. + * Creates a Match message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryInput + * @returns Match */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.QueryInput; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Match; /** - * Creates a plain object from a QueryInput message. Also converts values to other types if specified. - * @param message QueryInput + * Creates a plain object from a Match message. Also converts values to other types if specified. + * @param message Match * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.QueryInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Match, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryInput to JSON. + * Converts this Match to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryResult. */ - interface IQueryResult { - - /** QueryResult text */ - text?: (string|null); - - /** QueryResult triggerIntent */ - triggerIntent?: (string|null); - - /** QueryResult transcript */ - transcript?: (string|null); - - /** QueryResult triggerEvent */ - triggerEvent?: (string|null); - - /** QueryResult dtmf */ - dtmf?: (google.cloud.dialogflow.cx.v3beta1.IDtmfInput|null); - - /** QueryResult languageCode */ - languageCode?: (string|null); - - /** QueryResult parameters */ - parameters?: (google.protobuf.IStruct|null); - - /** QueryResult responseMessages */ - responseMessages?: (google.cloud.dialogflow.cx.v3beta1.IResponseMessage[]|null); - - /** QueryResult webhookStatuses */ - webhookStatuses?: (google.rpc.IStatus[]|null); - - /** QueryResult webhookPayloads */ - webhookPayloads?: (google.protobuf.IStruct[]|null); - - /** QueryResult currentPage */ - currentPage?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + namespace Match { - /** QueryResult intent */ - intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); + /** MatchType enum. */ + enum MatchType { + MATCH_TYPE_UNSPECIFIED = 0, + INTENT = 1, + DIRECT_INTENT = 2, + PARAMETER_FILLING = 3, + NO_MATCH = 4, + NO_INPUT = 5, + EVENT = 6 + } + } - /** QueryResult intentDetectionConfidence */ - intentDetectionConfidence?: (number|null); + /** Properties of a MatchIntentRequest. */ + interface IMatchIntentRequest { - /** QueryResult match */ - match?: (google.cloud.dialogflow.cx.v3beta1.IMatch|null); + /** MatchIntentRequest session */ + session?: (string|null); - /** QueryResult diagnosticInfo */ - diagnosticInfo?: (google.protobuf.IStruct|null); + /** MatchIntentRequest queryParams */ + queryParams?: (google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null); - /** QueryResult sentimentAnalysisResult */ - sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult|null); + /** MatchIntentRequest queryInput */ + queryInput?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); } - /** Represents a QueryResult. */ - class QueryResult implements IQueryResult { + /** Represents a MatchIntentRequest. */ + class MatchIntentRequest implements IMatchIntentRequest { /** - * Constructs a new QueryResult. + * Constructs a new MatchIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IQueryResult); - - /** QueryResult text. */ - public text?: (string|null); - - /** QueryResult triggerIntent. */ - public triggerIntent?: (string|null); - - /** QueryResult transcript. */ - public transcript?: (string|null); - - /** QueryResult triggerEvent. */ - public triggerEvent?: (string|null); - - /** QueryResult dtmf. */ - public dtmf?: (google.cloud.dialogflow.cx.v3beta1.IDtmfInput|null); - - /** QueryResult languageCode. */ - public languageCode: string; - - /** QueryResult parameters. */ - public parameters?: (google.protobuf.IStruct|null); - - /** QueryResult responseMessages. */ - public responseMessages: google.cloud.dialogflow.cx.v3beta1.IResponseMessage[]; - - /** QueryResult webhookStatuses. */ - public webhookStatuses: google.rpc.IStatus[]; - - /** QueryResult webhookPayloads. */ - public webhookPayloads: google.protobuf.IStruct[]; - - /** QueryResult currentPage. */ - public currentPage?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); - - /** QueryResult intent. */ - public intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); - - /** QueryResult intentDetectionConfidence. */ - public intentDetectionConfidence: number; - - /** QueryResult match. */ - public match?: (google.cloud.dialogflow.cx.v3beta1.IMatch|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest); - /** QueryResult diagnosticInfo. */ - public diagnosticInfo?: (google.protobuf.IStruct|null); + /** MatchIntentRequest session. */ + public session: string; - /** QueryResult sentimentAnalysisResult. */ - public sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult|null); + /** MatchIntentRequest queryParams. */ + public queryParams?: (google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null); - /** QueryResult query. */ - public query?: ("text"|"triggerIntent"|"transcript"|"triggerEvent"|"dtmf"); + /** MatchIntentRequest queryInput. */ + public queryInput?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); /** - * Creates a new QueryResult instance using the specified properties. + * Creates a new MatchIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns QueryResult instance + * @returns MatchIntentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IQueryResult): google.cloud.dialogflow.cx.v3beta1.QueryResult; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest): google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest; /** - * Encodes the specified QueryResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryResult.verify|verify} messages. - * @param message QueryResult message or plain object to encode + * Encodes the specified MatchIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.verify|verify} messages. + * @param message MatchIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryResult.verify|verify} messages. - * @param message QueryResult message or plain object to encode + * Encodes the specified MatchIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.verify|verify} messages. + * @param message MatchIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryResult message from the specified reader or buffer. + * Decodes a MatchIntentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryResult + * @returns MatchIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.QueryResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest; /** - * Decodes a QueryResult message from the specified reader or buffer, length delimited. + * Decodes a MatchIntentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryResult + * @returns MatchIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.QueryResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest; /** - * Verifies a QueryResult message. + * Verifies a MatchIntentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryResult message from a plain object. Also converts values to their respective internal types. + * Creates a MatchIntentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryResult + * @returns MatchIntentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.QueryResult; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest; /** - * Creates a plain object from a QueryResult message. Also converts values to other types if specified. - * @param message QueryResult + * Creates a plain object from a MatchIntentRequest message. Also converts values to other types if specified. + * @param message MatchIntentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.QueryResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryResult to JSON. + * Converts this MatchIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TextInput. */ - interface ITextInput { + /** Properties of a MatchIntentResponse. */ + interface IMatchIntentResponse { - /** TextInput text */ + /** MatchIntentResponse text */ text?: (string|null); + + /** MatchIntentResponse triggerIntent */ + triggerIntent?: (string|null); + + /** MatchIntentResponse transcript */ + transcript?: (string|null); + + /** MatchIntentResponse triggerEvent */ + triggerEvent?: (string|null); + + /** MatchIntentResponse matches */ + matches?: (google.cloud.dialogflow.cx.v3beta1.IMatch[]|null); + + /** MatchIntentResponse currentPage */ + currentPage?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); } - /** Represents a TextInput. */ - class TextInput implements ITextInput { + /** Represents a MatchIntentResponse. */ + class MatchIntentResponse implements IMatchIntentResponse { /** - * Constructs a new TextInput. + * Constructs a new MatchIntentResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITextInput); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse); - /** TextInput text. */ - public text: string; + /** MatchIntentResponse text. */ + public text?: (string|null); + + /** MatchIntentResponse triggerIntent. */ + public triggerIntent?: (string|null); + + /** MatchIntentResponse transcript. */ + public transcript?: (string|null); + + /** MatchIntentResponse triggerEvent. */ + public triggerEvent?: (string|null); + + /** MatchIntentResponse matches. */ + public matches: google.cloud.dialogflow.cx.v3beta1.IMatch[]; + + /** MatchIntentResponse currentPage. */ + public currentPage?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + + /** MatchIntentResponse query. */ + public query?: ("text"|"triggerIntent"|"transcript"|"triggerEvent"); /** - * Creates a new TextInput instance using the specified properties. + * Creates a new MatchIntentResponse instance using the specified properties. * @param [properties] Properties to set - * @returns TextInput instance + * @returns MatchIntentResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITextInput): google.cloud.dialogflow.cx.v3beta1.TextInput; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse): google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse; /** - * Encodes the specified TextInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TextInput.verify|verify} messages. - * @param message TextInput message or plain object to encode + * Encodes the specified MatchIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.verify|verify} messages. + * @param message MatchIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITextInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TextInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TextInput.verify|verify} messages. - * @param message TextInput message or plain object to encode + * Encodes the specified MatchIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.verify|verify} messages. + * @param message MatchIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITextInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TextInput message from the specified reader or buffer. + * Decodes a MatchIntentResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TextInput + * @returns MatchIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TextInput; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse; /** - * Decodes a TextInput message from the specified reader or buffer, length delimited. + * Decodes a MatchIntentResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TextInput + * @returns MatchIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TextInput; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse; /** - * Verifies a TextInput message. + * Verifies a MatchIntentResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TextInput message from a plain object. Also converts values to their respective internal types. + * Creates a MatchIntentResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TextInput + * @returns MatchIntentResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TextInput; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse; /** - * Creates a plain object from a TextInput message. Also converts values to other types if specified. - * @param message TextInput + * Creates a plain object from a MatchIntentResponse message. Also converts values to other types if specified. + * @param message MatchIntentResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TextInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TextInput to JSON. + * Converts this MatchIntentResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an IntentInput. */ - interface IIntentInput { + /** Properties of a FulfillIntentRequest. */ + interface IFulfillIntentRequest { - /** IntentInput intent */ - intent?: (string|null); + /** FulfillIntentRequest matchIntentRequest */ + matchIntentRequest?: (google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest|null); + + /** FulfillIntentRequest match */ + match?: (google.cloud.dialogflow.cx.v3beta1.IMatch|null); + + /** FulfillIntentRequest outputAudioConfig */ + outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); } - /** Represents an IntentInput. */ - class IntentInput implements IIntentInput { + /** Represents a FulfillIntentRequest. */ + class FulfillIntentRequest implements IFulfillIntentRequest { /** - * Constructs a new IntentInput. + * Constructs a new FulfillIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IIntentInput); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest); - /** IntentInput intent. */ - public intent: string; + /** FulfillIntentRequest matchIntentRequest. */ + public matchIntentRequest?: (google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest|null); + + /** FulfillIntentRequest match. */ + public match?: (google.cloud.dialogflow.cx.v3beta1.IMatch|null); + + /** FulfillIntentRequest outputAudioConfig. */ + public outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); /** - * Creates a new IntentInput instance using the specified properties. + * Creates a new FulfillIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns IntentInput instance + * @returns FulfillIntentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IIntentInput): google.cloud.dialogflow.cx.v3beta1.IntentInput; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest): google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest; /** - * Encodes the specified IntentInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentInput.verify|verify} messages. - * @param message IntentInput message or plain object to encode + * Encodes the specified FulfillIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.verify|verify} messages. + * @param message FulfillIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IIntentInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified IntentInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentInput.verify|verify} messages. - * @param message IntentInput message or plain object to encode + * Encodes the specified FulfillIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.verify|verify} messages. + * @param message FulfillIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IIntentInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IntentInput message from the specified reader or buffer. + * Decodes a FulfillIntentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns IntentInput + * @returns FulfillIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.IntentInput; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest; /** - * Decodes an IntentInput message from the specified reader or buffer, length delimited. + * Decodes a FulfillIntentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns IntentInput + * @returns FulfillIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.IntentInput; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest; /** - * Verifies an IntentInput message. + * Verifies a FulfillIntentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an IntentInput message from a plain object. Also converts values to their respective internal types. + * Creates a FulfillIntentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns IntentInput + * @returns FulfillIntentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.IntentInput; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest; /** - * Creates a plain object from an IntentInput message. Also converts values to other types if specified. - * @param message IntentInput + * Creates a plain object from a FulfillIntentRequest message. Also converts values to other types if specified. + * @param message FulfillIntentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.IntentInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IntentInput to JSON. + * Converts this FulfillIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an AudioInput. */ - interface IAudioInput { + /** Properties of a FulfillIntentResponse. */ + interface IFulfillIntentResponse { - /** AudioInput config */ - config?: (google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig|null); + /** FulfillIntentResponse responseId */ + responseId?: (string|null); - /** AudioInput audio */ - audio?: (Uint8Array|string|null); + /** FulfillIntentResponse queryResult */ + queryResult?: (google.cloud.dialogflow.cx.v3beta1.IQueryResult|null); + + /** FulfillIntentResponse outputAudio */ + outputAudio?: (Uint8Array|string|null); + + /** FulfillIntentResponse outputAudioConfig */ + outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); } - /** Represents an AudioInput. */ - class AudioInput implements IAudioInput { + /** Represents a FulfillIntentResponse. */ + class FulfillIntentResponse implements IFulfillIntentResponse { /** - * Constructs a new AudioInput. + * Constructs a new FulfillIntentResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IAudioInput); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse); - /** AudioInput config. */ - public config?: (google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig|null); + /** FulfillIntentResponse responseId. */ + public responseId: string; - /** AudioInput audio. */ - public audio: (Uint8Array|string); + /** FulfillIntentResponse queryResult. */ + public queryResult?: (google.cloud.dialogflow.cx.v3beta1.IQueryResult|null); + + /** FulfillIntentResponse outputAudio. */ + public outputAudio: (Uint8Array|string); + + /** FulfillIntentResponse outputAudioConfig. */ + public outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); /** - * Creates a new AudioInput instance using the specified properties. + * Creates a new FulfillIntentResponse instance using the specified properties. * @param [properties] Properties to set - * @returns AudioInput instance + * @returns FulfillIntentResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IAudioInput): google.cloud.dialogflow.cx.v3beta1.AudioInput; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse): google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse; /** - * Encodes the specified AudioInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AudioInput.verify|verify} messages. - * @param message AudioInput message or plain object to encode + * Encodes the specified FulfillIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse.verify|verify} messages. + * @param message FulfillIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IAudioInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AudioInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AudioInput.verify|verify} messages. - * @param message AudioInput message or plain object to encode + * Encodes the specified FulfillIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse.verify|verify} messages. + * @param message FulfillIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IAudioInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AudioInput message from the specified reader or buffer. + * Decodes a FulfillIntentResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AudioInput + * @returns FulfillIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.AudioInput; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse; /** - * Decodes an AudioInput message from the specified reader or buffer, length delimited. + * Decodes a FulfillIntentResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AudioInput + * @returns FulfillIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.AudioInput; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse; /** - * Verifies an AudioInput message. + * Verifies a FulfillIntentResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an AudioInput message from a plain object. Also converts values to their respective internal types. + * Creates a FulfillIntentResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AudioInput + * @returns FulfillIntentResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.AudioInput; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse; /** - * Creates a plain object from an AudioInput message. Also converts values to other types if specified. - * @param message AudioInput + * Creates a plain object from a FulfillIntentResponse message. Also converts values to other types if specified. + * @param message FulfillIntentResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.AudioInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AudioInput to JSON. + * Converts this FulfillIntentResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an EventInput. */ - interface IEventInput { + /** Properties of a SentimentAnalysisResult. */ + interface ISentimentAnalysisResult { - /** EventInput event */ - event?: (string|null); + /** SentimentAnalysisResult score */ + score?: (number|null); + + /** SentimentAnalysisResult magnitude */ + magnitude?: (number|null); } - /** Represents an EventInput. */ - class EventInput implements IEventInput { + /** Represents a SentimentAnalysisResult. */ + class SentimentAnalysisResult implements ISentimentAnalysisResult { /** - * Constructs a new EventInput. + * Constructs a new SentimentAnalysisResult. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IEventInput); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult); - /** EventInput event. */ - public event: string; + /** SentimentAnalysisResult score. */ + public score: number; + + /** SentimentAnalysisResult magnitude. */ + public magnitude: number; /** - * Creates a new EventInput instance using the specified properties. + * Creates a new SentimentAnalysisResult instance using the specified properties. * @param [properties] Properties to set - * @returns EventInput instance + * @returns SentimentAnalysisResult instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IEventInput): google.cloud.dialogflow.cx.v3beta1.EventInput; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult): google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult; /** - * Encodes the specified EventInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventInput.verify|verify} messages. - * @param message EventInput message or plain object to encode + * Encodes the specified SentimentAnalysisResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.verify|verify} messages. + * @param message SentimentAnalysisResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IEventInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EventInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventInput.verify|verify} messages. - * @param message EventInput message or plain object to encode + * Encodes the specified SentimentAnalysisResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.verify|verify} messages. + * @param message SentimentAnalysisResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IEventInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EventInput message from the specified reader or buffer. + * Decodes a SentimentAnalysisResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EventInput + * @returns SentimentAnalysisResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.EventInput; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult; /** - * Decodes an EventInput message from the specified reader or buffer, length delimited. + * Decodes a SentimentAnalysisResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EventInput + * @returns SentimentAnalysisResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.EventInput; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult; /** - * Verifies an EventInput message. + * Verifies a SentimentAnalysisResult message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an EventInput message from a plain object. Also converts values to their respective internal types. + * Creates a SentimentAnalysisResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EventInput + * @returns SentimentAnalysisResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.EventInput; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult; /** - * Creates a plain object from an EventInput message. Also converts values to other types if specified. - * @param message EventInput + * Creates a plain object from a SentimentAnalysisResult message. Also converts values to other types if specified. + * @param message SentimentAnalysisResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.EventInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EventInput to JSON. + * Converts this SentimentAnalysisResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DtmfInput. */ - interface IDtmfInput { - - /** DtmfInput digits */ - digits?: (string|null); + /** Represents a SessionEntityTypes */ + class SessionEntityTypes extends $protobuf.rpc.Service { - /** DtmfInput finishDigit */ - finishDigit?: (string|null); - } + /** + * Constructs a new SessionEntityTypes service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** Represents a DtmfInput. */ - class DtmfInput implements IDtmfInput { + /** + * Creates new SessionEntityTypes service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SessionEntityTypes; /** - * Constructs a new DtmfInput. - * @param [properties] Properties to set + * Calls ListSessionEntityTypes. + * @param request ListSessionEntityTypesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListSessionEntityTypesResponse */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDtmfInput); + public listSessionEntityTypes(request: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest, callback: google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.ListSessionEntityTypesCallback): void; - /** DtmfInput digits. */ - public digits: string; + /** + * Calls ListSessionEntityTypes. + * @param request ListSessionEntityTypesRequest message or plain object + * @returns Promise + */ + public listSessionEntityTypes(request: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest): Promise; - /** DtmfInput finishDigit. */ - public finishDigit: string; + /** + * Calls GetSessionEntityType. + * @param request GetSessionEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SessionEntityType + */ + public getSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.GetSessionEntityTypeCallback): void; /** - * Creates a new DtmfInput instance using the specified properties. - * @param [properties] Properties to set - * @returns DtmfInput instance + * Calls GetSessionEntityType. + * @param request GetSessionEntityTypeRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDtmfInput): google.cloud.dialogflow.cx.v3beta1.DtmfInput; + public getSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest): Promise; /** - * Encodes the specified DtmfInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DtmfInput.verify|verify} messages. - * @param message DtmfInput message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreateSessionEntityType. + * @param request CreateSessionEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SessionEntityType */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDtmfInput, writer?: $protobuf.Writer): $protobuf.Writer; + public createSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.CreateSessionEntityTypeCallback): void; /** - * Encodes the specified DtmfInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DtmfInput.verify|verify} messages. - * @param message DtmfInput message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreateSessionEntityType. + * @param request CreateSessionEntityTypeRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDtmfInput, writer?: $protobuf.Writer): $protobuf.Writer; + public createSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest): Promise; /** - * Decodes a DtmfInput message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DtmfInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls UpdateSessionEntityType. + * @param request UpdateSessionEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SessionEntityType */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DtmfInput; + public updateSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.UpdateSessionEntityTypeCallback): void; /** - * Decodes a DtmfInput message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DtmfInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls UpdateSessionEntityType. + * @param request UpdateSessionEntityTypeRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DtmfInput; + public updateSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest): Promise; /** - * Verifies a DtmfInput message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls DeleteSessionEntityType. + * @param request DeleteSessionEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static verify(message: { [k: string]: any }): (string|null); + public deleteSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.DeleteSessionEntityTypeCallback): void; /** - * Creates a DtmfInput message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DtmfInput + * Calls DeleteSessionEntityType. + * @param request DeleteSessionEntityTypeRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DtmfInput; + public deleteSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest): Promise; + } + + namespace SessionEntityTypes { /** - * Creates a plain object from a DtmfInput message. Also converts values to other types if specified. - * @param message DtmfInput - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#listSessionEntityTypes}. + * @param error Error, if any + * @param [response] ListSessionEntityTypesResponse */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DtmfInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type ListSessionEntityTypesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse) => void; /** - * Converts this DtmfInput to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#getSessionEntityType}. + * @param error Error, if any + * @param [response] SessionEntityType */ - public toJSON(): { [k: string]: any }; - } + type GetSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.SessionEntityType) => void; - /** Properties of a Match. */ - interface IMatch { + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#createSessionEntityType}. + * @param error Error, if any + * @param [response] SessionEntityType + */ + type CreateSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.SessionEntityType) => void; - /** Match intent */ - intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#updateSessionEntityType}. + * @param error Error, if any + * @param [response] SessionEntityType + */ + type UpdateSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.SessionEntityType) => void; - /** Match event */ - event?: (string|null); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#deleteSessionEntityType}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteSessionEntityTypeCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + } - /** Match parameters */ - parameters?: (google.protobuf.IStruct|null); + /** Properties of a SessionEntityType. */ + interface ISessionEntityType { - /** Match resolvedInput */ - resolvedInput?: (string|null); + /** SessionEntityType name */ + name?: (string|null); - /** Match matchType */ - matchType?: (google.cloud.dialogflow.cx.v3beta1.Match.MatchType|keyof typeof google.cloud.dialogflow.cx.v3beta1.Match.MatchType|null); + /** SessionEntityType entityOverrideMode */ + entityOverrideMode?: (google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode|keyof typeof google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode|null); - /** Match confidence */ - confidence?: (number|null); + /** SessionEntityType entities */ + entities?: (google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity[]|null); } - /** Represents a Match. */ - class Match implements IMatch { + /** Represents a SessionEntityType. */ + class SessionEntityType implements ISessionEntityType { /** - * Constructs a new Match. + * Constructs a new SessionEntityType. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IMatch); - - /** Match intent. */ - public intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); - - /** Match event. */ - public event: string; - - /** Match parameters. */ - public parameters?: (google.protobuf.IStruct|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISessionEntityType); - /** Match resolvedInput. */ - public resolvedInput: string; + /** SessionEntityType name. */ + public name: string; - /** Match matchType. */ - public matchType: (google.cloud.dialogflow.cx.v3beta1.Match.MatchType|keyof typeof google.cloud.dialogflow.cx.v3beta1.Match.MatchType); + /** SessionEntityType entityOverrideMode. */ + public entityOverrideMode: (google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode|keyof typeof google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode); - /** Match confidence. */ - public confidence: number; + /** SessionEntityType entities. */ + public entities: google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity[]; /** - * Creates a new Match instance using the specified properties. + * Creates a new SessionEntityType instance using the specified properties. * @param [properties] Properties to set - * @returns Match instance + * @returns SessionEntityType instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IMatch): google.cloud.dialogflow.cx.v3beta1.Match; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ISessionEntityType): google.cloud.dialogflow.cx.v3beta1.SessionEntityType; /** - * Encodes the specified Match message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Match.verify|verify} messages. - * @param message Match message or plain object to encode + * Encodes the specified SessionEntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify|verify} messages. + * @param message SessionEntityType message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IMatch, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ISessionEntityType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Match message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Match.verify|verify} messages. - * @param message Match message or plain object to encode + * Encodes the specified SessionEntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify|verify} messages. + * @param message SessionEntityType message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IMatch, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ISessionEntityType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Match message from the specified reader or buffer. + * Decodes a SessionEntityType message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Match + * @returns SessionEntityType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Match; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.SessionEntityType; /** - * Decodes a Match message from the specified reader or buffer, length delimited. + * Decodes a SessionEntityType message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Match + * @returns SessionEntityType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Match; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.SessionEntityType; /** - * Verifies a Match message. + * Verifies a SessionEntityType message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Match message from a plain object. Also converts values to their respective internal types. + * Creates a SessionEntityType message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Match + * @returns SessionEntityType */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Match; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SessionEntityType; /** - * Creates a plain object from a Match message. Also converts values to other types if specified. - * @param message Match + * Creates a plain object from a SessionEntityType message. Also converts values to other types if specified. + * @param message SessionEntityType * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Match, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.SessionEntityType, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Match to JSON. + * Converts this SessionEntityType to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Match { + namespace SessionEntityType { - /** MatchType enum. */ - enum MatchType { - MATCH_TYPE_UNSPECIFIED = 0, - INTENT = 1, - DIRECT_INTENT = 2, - PARAMETER_FILLING = 3, - NO_MATCH = 4, - NO_INPUT = 5, - EVENT = 6 + /** EntityOverrideMode enum. */ + enum EntityOverrideMode { + ENTITY_OVERRIDE_MODE_UNSPECIFIED = 0, + ENTITY_OVERRIDE_MODE_OVERRIDE = 1, + ENTITY_OVERRIDE_MODE_SUPPLEMENT = 2 } } - /** Properties of a MatchIntentRequest. */ - interface IMatchIntentRequest { + /** Properties of a ListSessionEntityTypesRequest. */ + interface IListSessionEntityTypesRequest { - /** MatchIntentRequest session */ - session?: (string|null); + /** ListSessionEntityTypesRequest parent */ + parent?: (string|null); - /** MatchIntentRequest queryParams */ - queryParams?: (google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null); + /** ListSessionEntityTypesRequest pageSize */ + pageSize?: (number|null); - /** MatchIntentRequest queryInput */ - queryInput?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); + /** ListSessionEntityTypesRequest pageToken */ + pageToken?: (string|null); } - /** Represents a MatchIntentRequest. */ - class MatchIntentRequest implements IMatchIntentRequest { + /** Represents a ListSessionEntityTypesRequest. */ + class ListSessionEntityTypesRequest implements IListSessionEntityTypesRequest { /** - * Constructs a new MatchIntentRequest. + * Constructs a new ListSessionEntityTypesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest); - /** MatchIntentRequest session. */ - public session: string; + /** ListSessionEntityTypesRequest parent. */ + public parent: string; - /** MatchIntentRequest queryParams. */ - public queryParams?: (google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null); + /** ListSessionEntityTypesRequest pageSize. */ + public pageSize: number; - /** MatchIntentRequest queryInput. */ - public queryInput?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); + /** ListSessionEntityTypesRequest pageToken. */ + public pageToken: string; /** - * Creates a new MatchIntentRequest instance using the specified properties. + * Creates a new ListSessionEntityTypesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MatchIntentRequest instance + * @returns ListSessionEntityTypesRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest): google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest; /** - * Encodes the specified MatchIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.verify|verify} messages. - * @param message MatchIntentRequest message or plain object to encode + * Encodes the specified ListSessionEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest.verify|verify} messages. + * @param message ListSessionEntityTypesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MatchIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.verify|verify} messages. - * @param message MatchIntentRequest message or plain object to encode + * Encodes the specified ListSessionEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest.verify|verify} messages. + * @param message ListSessionEntityTypesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MatchIntentRequest message from the specified reader or buffer. + * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MatchIntentRequest + * @returns ListSessionEntityTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest; /** - * Decodes a MatchIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MatchIntentRequest + * @returns ListSessionEntityTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest; /** - * Verifies a MatchIntentRequest message. + * Verifies a ListSessionEntityTypesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MatchIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListSessionEntityTypesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MatchIntentRequest + * @returns ListSessionEntityTypesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest; /** - * Creates a plain object from a MatchIntentRequest message. Also converts values to other types if specified. - * @param message MatchIntentRequest + * Creates a plain object from a ListSessionEntityTypesRequest message. Also converts values to other types if specified. + * @param message ListSessionEntityTypesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MatchIntentRequest to JSON. + * Converts this ListSessionEntityTypesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MatchIntentResponse. */ - interface IMatchIntentResponse { - - /** MatchIntentResponse text */ - text?: (string|null); - - /** MatchIntentResponse triggerIntent */ - triggerIntent?: (string|null); - - /** MatchIntentResponse transcript */ - transcript?: (string|null); - - /** MatchIntentResponse triggerEvent */ - triggerEvent?: (string|null); + /** Properties of a ListSessionEntityTypesResponse. */ + interface IListSessionEntityTypesResponse { - /** MatchIntentResponse matches */ - matches?: (google.cloud.dialogflow.cx.v3beta1.IMatch[]|null); + /** ListSessionEntityTypesResponse sessionEntityTypes */ + sessionEntityTypes?: (google.cloud.dialogflow.cx.v3beta1.ISessionEntityType[]|null); - /** MatchIntentResponse currentPage */ - currentPage?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + /** ListSessionEntityTypesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a MatchIntentResponse. */ - class MatchIntentResponse implements IMatchIntentResponse { + /** Represents a ListSessionEntityTypesResponse. */ + class ListSessionEntityTypesResponse implements IListSessionEntityTypesResponse { /** - * Constructs a new MatchIntentResponse. + * Constructs a new ListSessionEntityTypesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse); - - /** MatchIntentResponse text. */ - public text?: (string|null); - - /** MatchIntentResponse triggerIntent. */ - public triggerIntent?: (string|null); - - /** MatchIntentResponse transcript. */ - public transcript?: (string|null); - - /** MatchIntentResponse triggerEvent. */ - public triggerEvent?: (string|null); - - /** MatchIntentResponse matches. */ - public matches: google.cloud.dialogflow.cx.v3beta1.IMatch[]; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse); - /** MatchIntentResponse currentPage. */ - public currentPage?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + /** ListSessionEntityTypesResponse sessionEntityTypes. */ + public sessionEntityTypes: google.cloud.dialogflow.cx.v3beta1.ISessionEntityType[]; - /** MatchIntentResponse query. */ - public query?: ("text"|"triggerIntent"|"transcript"|"triggerEvent"); + /** ListSessionEntityTypesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new MatchIntentResponse instance using the specified properties. + * Creates a new ListSessionEntityTypesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns MatchIntentResponse instance + * @returns ListSessionEntityTypesResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse): google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse; /** - * Encodes the specified MatchIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.verify|verify} messages. - * @param message MatchIntentResponse message or plain object to encode + * Encodes the specified ListSessionEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse.verify|verify} messages. + * @param message ListSessionEntityTypesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MatchIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.verify|verify} messages. - * @param message MatchIntentResponse message or plain object to encode + * Encodes the specified ListSessionEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse.verify|verify} messages. + * @param message ListSessionEntityTypesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MatchIntentResponse message from the specified reader or buffer. + * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MatchIntentResponse + * @returns ListSessionEntityTypesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse; /** - * Decodes a MatchIntentResponse message from the specified reader or buffer, length delimited. + * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MatchIntentResponse + * @returns ListSessionEntityTypesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse; /** - * Verifies a MatchIntentResponse message. + * Verifies a ListSessionEntityTypesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MatchIntentResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListSessionEntityTypesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MatchIntentResponse + * @returns ListSessionEntityTypesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse; /** - * Creates a plain object from a MatchIntentResponse message. Also converts values to other types if specified. - * @param message MatchIntentResponse + * Creates a plain object from a ListSessionEntityTypesResponse message. Also converts values to other types if specified. + * @param message ListSessionEntityTypesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MatchIntentResponse to JSON. + * Converts this ListSessionEntityTypesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a FulfillIntentRequest. */ - interface IFulfillIntentRequest { - - /** FulfillIntentRequest matchIntentRequest */ - matchIntentRequest?: (google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest|null); - - /** FulfillIntentRequest match */ - match?: (google.cloud.dialogflow.cx.v3beta1.IMatch|null); + /** Properties of a GetSessionEntityTypeRequest. */ + interface IGetSessionEntityTypeRequest { - /** FulfillIntentRequest outputAudioConfig */ - outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); + /** GetSessionEntityTypeRequest name */ + name?: (string|null); } - /** Represents a FulfillIntentRequest. */ - class FulfillIntentRequest implements IFulfillIntentRequest { + /** Represents a GetSessionEntityTypeRequest. */ + class GetSessionEntityTypeRequest implements IGetSessionEntityTypeRequest { /** - * Constructs a new FulfillIntentRequest. + * Constructs a new GetSessionEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest); - - /** FulfillIntentRequest matchIntentRequest. */ - public matchIntentRequest?: (google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest|null); - - /** FulfillIntentRequest match. */ - public match?: (google.cloud.dialogflow.cx.v3beta1.IMatch|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest); - /** FulfillIntentRequest outputAudioConfig. */ - public outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); + /** GetSessionEntityTypeRequest name. */ + public name: string; /** - * Creates a new FulfillIntentRequest instance using the specified properties. + * Creates a new GetSessionEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FulfillIntentRequest instance + * @returns GetSessionEntityTypeRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest): google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest; /** - * Encodes the specified FulfillIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.verify|verify} messages. - * @param message FulfillIntentRequest message or plain object to encode + * Encodes the specified GetSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest.verify|verify} messages. + * @param message GetSessionEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FulfillIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.verify|verify} messages. - * @param message FulfillIntentRequest message or plain object to encode + * Encodes the specified GetSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest.verify|verify} messages. + * @param message GetSessionEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FulfillIntentRequest message from the specified reader or buffer. + * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FulfillIntentRequest + * @returns GetSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest; /** - * Decodes a FulfillIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FulfillIntentRequest + * @returns GetSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest; /** - * Verifies a FulfillIntentRequest message. + * Verifies a GetSessionEntityTypeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FulfillIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FulfillIntentRequest + * @returns GetSessionEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest; /** - * Creates a plain object from a FulfillIntentRequest message. Also converts values to other types if specified. - * @param message FulfillIntentRequest + * Creates a plain object from a GetSessionEntityTypeRequest message. Also converts values to other types if specified. + * @param message GetSessionEntityTypeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FulfillIntentRequest to JSON. + * Converts this GetSessionEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a FulfillIntentResponse. */ - interface IFulfillIntentResponse { - - /** FulfillIntentResponse responseId */ - responseId?: (string|null); - - /** FulfillIntentResponse queryResult */ - queryResult?: (google.cloud.dialogflow.cx.v3beta1.IQueryResult|null); + /** Properties of a CreateSessionEntityTypeRequest. */ + interface ICreateSessionEntityTypeRequest { - /** FulfillIntentResponse outputAudio */ - outputAudio?: (Uint8Array|string|null); + /** CreateSessionEntityTypeRequest parent */ + parent?: (string|null); - /** FulfillIntentResponse outputAudioConfig */ - outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); + /** CreateSessionEntityTypeRequest sessionEntityType */ + sessionEntityType?: (google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null); } - /** Represents a FulfillIntentResponse. */ - class FulfillIntentResponse implements IFulfillIntentResponse { + /** Represents a CreateSessionEntityTypeRequest. */ + class CreateSessionEntityTypeRequest implements ICreateSessionEntityTypeRequest { /** - * Constructs a new FulfillIntentResponse. + * Constructs a new CreateSessionEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse); - - /** FulfillIntentResponse responseId. */ - public responseId: string; - - /** FulfillIntentResponse queryResult. */ - public queryResult?: (google.cloud.dialogflow.cx.v3beta1.IQueryResult|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest); - /** FulfillIntentResponse outputAudio. */ - public outputAudio: (Uint8Array|string); + /** CreateSessionEntityTypeRequest parent. */ + public parent: string; - /** FulfillIntentResponse outputAudioConfig. */ - public outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); + /** CreateSessionEntityTypeRequest sessionEntityType. */ + public sessionEntityType?: (google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null); /** - * Creates a new FulfillIntentResponse instance using the specified properties. + * Creates a new CreateSessionEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FulfillIntentResponse instance + * @returns CreateSessionEntityTypeRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse): google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest; /** - * Encodes the specified FulfillIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse.verify|verify} messages. - * @param message FulfillIntentResponse message or plain object to encode + * Encodes the specified CreateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest.verify|verify} messages. + * @param message CreateSessionEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FulfillIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse.verify|verify} messages. - * @param message FulfillIntentResponse message or plain object to encode + * Encodes the specified CreateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest.verify|verify} messages. + * @param message CreateSessionEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FulfillIntentResponse message from the specified reader or buffer. + * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FulfillIntentResponse + * @returns CreateSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest; /** - * Decodes a FulfillIntentResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FulfillIntentResponse + * @returns CreateSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest; /** - * Verifies a FulfillIntentResponse message. + * Verifies a CreateSessionEntityTypeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FulfillIntentResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FulfillIntentResponse + * @returns CreateSessionEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest; /** - * Creates a plain object from a FulfillIntentResponse message. Also converts values to other types if specified. - * @param message FulfillIntentResponse + * Creates a plain object from a CreateSessionEntityTypeRequest message. Also converts values to other types if specified. + * @param message CreateSessionEntityTypeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FulfillIntentResponse to JSON. + * Converts this CreateSessionEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SentimentAnalysisResult. */ - interface ISentimentAnalysisResult { + /** Properties of an UpdateSessionEntityTypeRequest. */ + interface IUpdateSessionEntityTypeRequest { - /** SentimentAnalysisResult score */ - score?: (number|null); + /** UpdateSessionEntityTypeRequest sessionEntityType */ + sessionEntityType?: (google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null); - /** SentimentAnalysisResult magnitude */ - magnitude?: (number|null); + /** UpdateSessionEntityTypeRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a SentimentAnalysisResult. */ - class SentimentAnalysisResult implements ISentimentAnalysisResult { + /** Represents an UpdateSessionEntityTypeRequest. */ + class UpdateSessionEntityTypeRequest implements IUpdateSessionEntityTypeRequest { /** - * Constructs a new SentimentAnalysisResult. + * Constructs a new UpdateSessionEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest); - /** SentimentAnalysisResult score. */ - public score: number; + /** UpdateSessionEntityTypeRequest sessionEntityType. */ + public sessionEntityType?: (google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null); - /** SentimentAnalysisResult magnitude. */ - public magnitude: number; + /** UpdateSessionEntityTypeRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new SentimentAnalysisResult instance using the specified properties. + * Creates a new UpdateSessionEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SentimentAnalysisResult instance + * @returns UpdateSessionEntityTypeRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult): google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest; /** - * Encodes the specified SentimentAnalysisResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.verify|verify} messages. - * @param message SentimentAnalysisResult message or plain object to encode + * Encodes the specified UpdateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest.verify|verify} messages. + * @param message UpdateSessionEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SentimentAnalysisResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.verify|verify} messages. - * @param message SentimentAnalysisResult message or plain object to encode + * Encodes the specified UpdateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest.verify|verify} messages. + * @param message UpdateSessionEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SentimentAnalysisResult message from the specified reader or buffer. + * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SentimentAnalysisResult + * @returns UpdateSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest; /** - * Decodes a SentimentAnalysisResult message from the specified reader or buffer, length delimited. + * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SentimentAnalysisResult + * @returns UpdateSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest; /** - * Verifies a SentimentAnalysisResult message. + * Verifies an UpdateSessionEntityTypeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SentimentAnalysisResult message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SentimentAnalysisResult + * @returns UpdateSessionEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest; /** - * Creates a plain object from a SentimentAnalysisResult message. Also converts values to other types if specified. - * @param message SentimentAnalysisResult + * Creates a plain object from an UpdateSessionEntityTypeRequest message. Also converts values to other types if specified. + * @param message UpdateSessionEntityTypeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SentimentAnalysisResult to JSON. + * Converts this UpdateSessionEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a SessionEntityTypes */ - class SessionEntityTypes extends $protobuf.rpc.Service { + /** Properties of a DeleteSessionEntityTypeRequest. */ + interface IDeleteSessionEntityTypeRequest { + + /** DeleteSessionEntityTypeRequest name */ + name?: (string|null); + } + + /** Represents a DeleteSessionEntityTypeRequest. */ + class DeleteSessionEntityTypeRequest implements IDeleteSessionEntityTypeRequest { /** - * Constructs a new SessionEntityTypes service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited + * Constructs a new DeleteSessionEntityTypeRequest. + * @param [properties] Properties to set */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest); + + /** DeleteSessionEntityTypeRequest name. */ + public name: string; /** - * Creates new SessionEntityTypes service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. + * Creates a new DeleteSessionEntityTypeRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteSessionEntityTypeRequest instance */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SessionEntityTypes; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest; /** - * Calls ListSessionEntityTypes. - * @param request ListSessionEntityTypesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListSessionEntityTypesResponse + * Encodes the specified DeleteSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest.verify|verify} messages. + * @param message DeleteSessionEntityTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listSessionEntityTypes(request: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest, callback: google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.ListSessionEntityTypesCallback): void; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListSessionEntityTypes. - * @param request ListSessionEntityTypesRequest message or plain object - * @returns Promise + * Encodes the specified DeleteSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest.verify|verify} messages. + * @param message DeleteSessionEntityTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listSessionEntityTypes(request: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest): Promise; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetSessionEntityType. - * @param request GetSessionEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SessionEntityType + * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteSessionEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.GetSessionEntityTypeCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest; /** - * Calls GetSessionEntityType. - * @param request GetSessionEntityTypeRequest message or plain object - * @returns Promise + * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteSessionEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest; /** - * Calls CreateSessionEntityType. - * @param request CreateSessionEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SessionEntityType + * Verifies a DeleteSessionEntityTypeRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public createSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.CreateSessionEntityTypeCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls CreateSessionEntityType. - * @param request CreateSessionEntityTypeRequest message or plain object - * @returns Promise + * Creates a DeleteSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteSessionEntityTypeRequest */ - public createSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest; /** - * Calls UpdateSessionEntityType. - * @param request UpdateSessionEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SessionEntityType + * Creates a plain object from a DeleteSessionEntityTypeRequest message. Also converts values to other types if specified. + * @param message DeleteSessionEntityTypeRequest + * @param [options] Conversion options + * @returns Plain object */ - public updateSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.UpdateSessionEntityTypeCallback): void; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls UpdateSessionEntityType. - * @param request UpdateSessionEntityTypeRequest message or plain object + * Converts this DeleteSessionEntityTypeRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Represents a TransitionRouteGroups */ + class TransitionRouteGroups extends $protobuf.rpc.Service { + + /** + * Constructs a new TransitionRouteGroups service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new TransitionRouteGroups service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): TransitionRouteGroups; + + /** + * Calls ListTransitionRouteGroups. + * @param request ListTransitionRouteGroupsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListTransitionRouteGroupsResponse + */ + public listTransitionRouteGroups(request: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest, callback: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.ListTransitionRouteGroupsCallback): void; + + /** + * Calls ListTransitionRouteGroups. + * @param request ListTransitionRouteGroupsRequest message or plain object * @returns Promise */ - public updateSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest): Promise; + public listTransitionRouteGroups(request: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest): Promise; /** - * Calls DeleteSessionEntityType. - * @param request DeleteSessionEntityTypeRequest message or plain object + * Calls GetTransitionRouteGroup. + * @param request GetTransitionRouteGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TransitionRouteGroup + */ + public getTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.GetTransitionRouteGroupCallback): void; + + /** + * Calls GetTransitionRouteGroup. + * @param request GetTransitionRouteGroupRequest message or plain object + * @returns Promise + */ + public getTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest): Promise; + + /** + * Calls CreateTransitionRouteGroup. + * @param request CreateTransitionRouteGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TransitionRouteGroup + */ + public createTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.CreateTransitionRouteGroupCallback): void; + + /** + * Calls CreateTransitionRouteGroup. + * @param request CreateTransitionRouteGroupRequest message or plain object + * @returns Promise + */ + public createTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest): Promise; + + /** + * Calls UpdateTransitionRouteGroup. + * @param request UpdateTransitionRouteGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TransitionRouteGroup + */ + public updateTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.UpdateTransitionRouteGroupCallback): void; + + /** + * Calls UpdateTransitionRouteGroup. + * @param request UpdateTransitionRouteGroupRequest message or plain object + * @returns Promise + */ + public updateTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest): Promise; + + /** + * Calls DeleteTransitionRouteGroup. + * @param request DeleteTransitionRouteGroupRequest message or plain object * @param callback Node-style callback called with the error, if any, and Empty */ - public deleteSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.DeleteSessionEntityTypeCallback): void; + public deleteTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.DeleteTransitionRouteGroupCallback): void; /** - * Calls DeleteSessionEntityType. - * @param request DeleteSessionEntityTypeRequest message or plain object + * Calls DeleteTransitionRouteGroup. + * @param request DeleteTransitionRouteGroupRequest message or plain object * @returns Promise */ - public deleteSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest): Promise; + public deleteTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest): Promise; } - namespace SessionEntityTypes { + namespace TransitionRouteGroups { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#listSessionEntityTypes}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#listTransitionRouteGroups}. * @param error Error, if any - * @param [response] ListSessionEntityTypesResponse + * @param [response] ListTransitionRouteGroupsResponse */ - type ListSessionEntityTypesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse) => void; + type ListTransitionRouteGroupsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#getSessionEntityType}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#getTransitionRouteGroup}. * @param error Error, if any - * @param [response] SessionEntityType + * @param [response] TransitionRouteGroup */ - type GetSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.SessionEntityType) => void; + type GetTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#createSessionEntityType}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#createTransitionRouteGroup}. * @param error Error, if any - * @param [response] SessionEntityType + * @param [response] TransitionRouteGroup */ - type CreateSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.SessionEntityType) => void; + type CreateTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#updateSessionEntityType}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#updateTransitionRouteGroup}. * @param error Error, if any - * @param [response] SessionEntityType + * @param [response] TransitionRouteGroup */ - type UpdateSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.SessionEntityType) => void; + type UpdateTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#deleteSessionEntityType}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#deleteTransitionRouteGroup}. * @param error Error, if any * @param [response] Empty */ - type DeleteSessionEntityTypeCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + type DeleteTransitionRouteGroupCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } - /** Properties of a SessionEntityType. */ - interface ISessionEntityType { + /** Properties of a TransitionRouteGroup. */ + interface ITransitionRouteGroup { - /** SessionEntityType name */ + /** TransitionRouteGroup name */ name?: (string|null); - /** SessionEntityType entityOverrideMode */ - entityOverrideMode?: (google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode|keyof typeof google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode|null); + /** TransitionRouteGroup displayName */ + displayName?: (string|null); - /** SessionEntityType entities */ - entities?: (google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity[]|null); + /** TransitionRouteGroup transitionRoutes */ + transitionRoutes?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute[]|null); } - /** Represents a SessionEntityType. */ - class SessionEntityType implements ISessionEntityType { + /** Represents a TransitionRouteGroup. */ + class TransitionRouteGroup implements ITransitionRouteGroup { /** - * Constructs a new SessionEntityType. + * Constructs a new TransitionRouteGroup. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISessionEntityType); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup); - /** SessionEntityType name. */ + /** TransitionRouteGroup name. */ public name: string; - /** SessionEntityType entityOverrideMode. */ - public entityOverrideMode: (google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode|keyof typeof google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode); + /** TransitionRouteGroup displayName. */ + public displayName: string; - /** SessionEntityType entities. */ - public entities: google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity[]; + /** TransitionRouteGroup transitionRoutes. */ + public transitionRoutes: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute[]; /** - * Creates a new SessionEntityType instance using the specified properties. + * Creates a new TransitionRouteGroup instance using the specified properties. * @param [properties] Properties to set - * @returns SessionEntityType instance + * @returns TransitionRouteGroup instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ISessionEntityType): google.cloud.dialogflow.cx.v3beta1.SessionEntityType; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup; /** - * Encodes the specified SessionEntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify|verify} messages. - * @param message SessionEntityType message or plain object to encode + * Encodes the specified TransitionRouteGroup message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify|verify} messages. + * @param message TransitionRouteGroup message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ISessionEntityType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SessionEntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify|verify} messages. - * @param message SessionEntityType message or plain object to encode + * Encodes the specified TransitionRouteGroup message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify|verify} messages. + * @param message TransitionRouteGroup message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ISessionEntityType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SessionEntityType message from the specified reader or buffer. + * Decodes a TransitionRouteGroup message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SessionEntityType + * @returns TransitionRouteGroup * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.SessionEntityType; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup; /** - * Decodes a SessionEntityType message from the specified reader or buffer, length delimited. + * Decodes a TransitionRouteGroup message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SessionEntityType + * @returns TransitionRouteGroup * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.SessionEntityType; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup; /** - * Verifies a SessionEntityType message. + * Verifies a TransitionRouteGroup message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SessionEntityType message from a plain object. Also converts values to their respective internal types. + * Creates a TransitionRouteGroup message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SessionEntityType + * @returns TransitionRouteGroup */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SessionEntityType; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup; /** - * Creates a plain object from a SessionEntityType message. Also converts values to other types if specified. - * @param message SessionEntityType + * Creates a plain object from a TransitionRouteGroup message. Also converts values to other types if specified. + * @param message TransitionRouteGroup * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.SessionEntityType, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SessionEntityType to JSON. + * Converts this TransitionRouteGroup to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace SessionEntityType { - - /** EntityOverrideMode enum. */ - enum EntityOverrideMode { - ENTITY_OVERRIDE_MODE_UNSPECIFIED = 0, - ENTITY_OVERRIDE_MODE_OVERRIDE = 1, - ENTITY_OVERRIDE_MODE_SUPPLEMENT = 2 - } - } - - /** Properties of a ListSessionEntityTypesRequest. */ - interface IListSessionEntityTypesRequest { + /** Properties of a ListTransitionRouteGroupsRequest. */ + interface IListTransitionRouteGroupsRequest { - /** ListSessionEntityTypesRequest parent */ + /** ListTransitionRouteGroupsRequest parent */ parent?: (string|null); - /** ListSessionEntityTypesRequest pageSize */ + /** ListTransitionRouteGroupsRequest pageSize */ pageSize?: (number|null); - /** ListSessionEntityTypesRequest pageToken */ + /** ListTransitionRouteGroupsRequest pageToken */ pageToken?: (string|null); + + /** ListTransitionRouteGroupsRequest languageCode */ + languageCode?: (string|null); } - /** Represents a ListSessionEntityTypesRequest. */ - class ListSessionEntityTypesRequest implements IListSessionEntityTypesRequest { + /** Represents a ListTransitionRouteGroupsRequest. */ + class ListTransitionRouteGroupsRequest implements IListTransitionRouteGroupsRequest { /** - * Constructs a new ListSessionEntityTypesRequest. + * Constructs a new ListTransitionRouteGroupsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest); - /** ListSessionEntityTypesRequest parent. */ + /** ListTransitionRouteGroupsRequest parent. */ public parent: string; - /** ListSessionEntityTypesRequest pageSize. */ + /** ListTransitionRouteGroupsRequest pageSize. */ public pageSize: number; - /** ListSessionEntityTypesRequest pageToken. */ + /** ListTransitionRouteGroupsRequest pageToken. */ public pageToken: string; + /** ListTransitionRouteGroupsRequest languageCode. */ + public languageCode: string; + /** - * Creates a new ListSessionEntityTypesRequest instance using the specified properties. + * Creates a new ListTransitionRouteGroupsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListSessionEntityTypesRequest instance + * @returns ListTransitionRouteGroupsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest; /** - * Encodes the specified ListSessionEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest.verify|verify} messages. - * @param message ListSessionEntityTypesRequest message or plain object to encode + * Encodes the specified ListTransitionRouteGroupsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest.verify|verify} messages. + * @param message ListTransitionRouteGroupsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListSessionEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest.verify|verify} messages. - * @param message ListSessionEntityTypesRequest message or plain object to encode + * Encodes the specified ListTransitionRouteGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest.verify|verify} messages. + * @param message ListTransitionRouteGroupsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer. + * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListSessionEntityTypesRequest + * @returns ListTransitionRouteGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest; /** - * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListSessionEntityTypesRequest + * @returns ListTransitionRouteGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest; /** - * Verifies a ListSessionEntityTypesRequest message. + * Verifies a ListTransitionRouteGroupsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListSessionEntityTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListTransitionRouteGroupsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListSessionEntityTypesRequest + * @returns ListTransitionRouteGroupsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest; /** - * Creates a plain object from a ListSessionEntityTypesRequest message. Also converts values to other types if specified. - * @param message ListSessionEntityTypesRequest + * Creates a plain object from a ListTransitionRouteGroupsRequest message. Also converts values to other types if specified. + * @param message ListTransitionRouteGroupsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListSessionEntityTypesRequest to JSON. + * Converts this ListTransitionRouteGroupsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListSessionEntityTypesResponse. */ - interface IListSessionEntityTypesResponse { + /** Properties of a ListTransitionRouteGroupsResponse. */ + interface IListTransitionRouteGroupsResponse { - /** ListSessionEntityTypesResponse sessionEntityTypes */ - sessionEntityTypes?: (google.cloud.dialogflow.cx.v3beta1.ISessionEntityType[]|null); + /** ListTransitionRouteGroupsResponse transitionRouteGroups */ + transitionRouteGroups?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup[]|null); - /** ListSessionEntityTypesResponse nextPageToken */ + /** ListTransitionRouteGroupsResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a ListSessionEntityTypesResponse. */ - class ListSessionEntityTypesResponse implements IListSessionEntityTypesResponse { + /** Represents a ListTransitionRouteGroupsResponse. */ + class ListTransitionRouteGroupsResponse implements IListTransitionRouteGroupsResponse { /** - * Constructs a new ListSessionEntityTypesResponse. + * Constructs a new ListTransitionRouteGroupsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse); - /** ListSessionEntityTypesResponse sessionEntityTypes. */ - public sessionEntityTypes: google.cloud.dialogflow.cx.v3beta1.ISessionEntityType[]; + /** ListTransitionRouteGroupsResponse transitionRouteGroups. */ + public transitionRouteGroups: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup[]; - /** ListSessionEntityTypesResponse nextPageToken. */ + /** ListTransitionRouteGroupsResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new ListSessionEntityTypesResponse instance using the specified properties. + * Creates a new ListTransitionRouteGroupsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListSessionEntityTypesResponse instance + * @returns ListTransitionRouteGroupsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse; /** - * Encodes the specified ListSessionEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse.verify|verify} messages. - * @param message ListSessionEntityTypesResponse message or plain object to encode + * Encodes the specified ListTransitionRouteGroupsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse.verify|verify} messages. + * @param message ListTransitionRouteGroupsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListSessionEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse.verify|verify} messages. - * @param message ListSessionEntityTypesResponse message or plain object to encode + * Encodes the specified ListTransitionRouteGroupsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse.verify|verify} messages. + * @param message ListTransitionRouteGroupsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer. + * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListSessionEntityTypesResponse + * @returns ListTransitionRouteGroupsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse; /** - * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListSessionEntityTypesResponse + * @returns ListTransitionRouteGroupsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse; /** - * Verifies a ListSessionEntityTypesResponse message. + * Verifies a ListTransitionRouteGroupsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListSessionEntityTypesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListTransitionRouteGroupsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListSessionEntityTypesResponse + * @returns ListTransitionRouteGroupsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse; /** - * Creates a plain object from a ListSessionEntityTypesResponse message. Also converts values to other types if specified. - * @param message ListSessionEntityTypesResponse + * Creates a plain object from a ListTransitionRouteGroupsResponse message. Also converts values to other types if specified. + * @param message ListTransitionRouteGroupsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListSessionEntityTypesResponse to JSON. + * Converts this ListTransitionRouteGroupsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetSessionEntityTypeRequest. */ - interface IGetSessionEntityTypeRequest { + /** Properties of a GetTransitionRouteGroupRequest. */ + interface IGetTransitionRouteGroupRequest { - /** GetSessionEntityTypeRequest name */ + /** GetTransitionRouteGroupRequest name */ name?: (string|null); + + /** GetTransitionRouteGroupRequest languageCode */ + languageCode?: (string|null); } - /** Represents a GetSessionEntityTypeRequest. */ - class GetSessionEntityTypeRequest implements IGetSessionEntityTypeRequest { + /** Represents a GetTransitionRouteGroupRequest. */ + class GetTransitionRouteGroupRequest implements IGetTransitionRouteGroupRequest { /** - * Constructs a new GetSessionEntityTypeRequest. + * Constructs a new GetTransitionRouteGroupRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest); - /** GetSessionEntityTypeRequest name. */ + /** GetTransitionRouteGroupRequest name. */ public name: string; + /** GetTransitionRouteGroupRequest languageCode. */ + public languageCode: string; + /** - * Creates a new GetSessionEntityTypeRequest instance using the specified properties. + * Creates a new GetTransitionRouteGroupRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetSessionEntityTypeRequest instance + * @returns GetTransitionRouteGroupRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest; /** - * Encodes the specified GetSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest.verify|verify} messages. - * @param message GetSessionEntityTypeRequest message or plain object to encode + * Encodes the specified GetTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest.verify|verify} messages. + * @param message GetTransitionRouteGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest.verify|verify} messages. - * @param message GetSessionEntityTypeRequest message or plain object to encode + * Encodes the specified GetTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest.verify|verify} messages. + * @param message GetTransitionRouteGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer. + * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetSessionEntityTypeRequest + * @returns GetTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest; /** - * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetSessionEntityTypeRequest + * @returns GetTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest; /** - * Verifies a GetSessionEntityTypeRequest message. + * Verifies a GetTransitionRouteGroupRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetSessionEntityTypeRequest + * @returns GetTransitionRouteGroupRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest; /** - * Creates a plain object from a GetSessionEntityTypeRequest message. Also converts values to other types if specified. - * @param message GetSessionEntityTypeRequest + * Creates a plain object from a GetTransitionRouteGroupRequest message. Also converts values to other types if specified. + * @param message GetTransitionRouteGroupRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSessionEntityTypeRequest to JSON. + * Converts this GetTransitionRouteGroupRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateSessionEntityTypeRequest. */ - interface ICreateSessionEntityTypeRequest { + /** Properties of a CreateTransitionRouteGroupRequest. */ + interface ICreateTransitionRouteGroupRequest { - /** CreateSessionEntityTypeRequest parent */ + /** CreateTransitionRouteGroupRequest parent */ parent?: (string|null); - /** CreateSessionEntityTypeRequest sessionEntityType */ - sessionEntityType?: (google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null); + /** CreateTransitionRouteGroupRequest transitionRouteGroup */ + transitionRouteGroup?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null); + + /** CreateTransitionRouteGroupRequest languageCode */ + languageCode?: (string|null); } - /** Represents a CreateSessionEntityTypeRequest. */ - class CreateSessionEntityTypeRequest implements ICreateSessionEntityTypeRequest { + /** Represents a CreateTransitionRouteGroupRequest. */ + class CreateTransitionRouteGroupRequest implements ICreateTransitionRouteGroupRequest { /** - * Constructs a new CreateSessionEntityTypeRequest. + * Constructs a new CreateTransitionRouteGroupRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest); - /** CreateSessionEntityTypeRequest parent. */ + /** CreateTransitionRouteGroupRequest parent. */ public parent: string; - /** CreateSessionEntityTypeRequest sessionEntityType. */ - public sessionEntityType?: (google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null); + /** CreateTransitionRouteGroupRequest transitionRouteGroup. */ + public transitionRouteGroup?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null); + + /** CreateTransitionRouteGroupRequest languageCode. */ + public languageCode: string; /** - * Creates a new CreateSessionEntityTypeRequest instance using the specified properties. + * Creates a new CreateTransitionRouteGroupRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateSessionEntityTypeRequest instance + * @returns CreateTransitionRouteGroupRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest; /** - * Encodes the specified CreateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest.verify|verify} messages. - * @param message CreateSessionEntityTypeRequest message or plain object to encode + * Encodes the specified CreateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest.verify|verify} messages. + * @param message CreateTransitionRouteGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest.verify|verify} messages. - * @param message CreateSessionEntityTypeRequest message or plain object to encode + * Encodes the specified CreateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest.verify|verify} messages. + * @param message CreateTransitionRouteGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer. + * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateSessionEntityTypeRequest + * @returns CreateTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest; /** - * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateSessionEntityTypeRequest + * @returns CreateTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest; /** - * Verifies a CreateSessionEntityTypeRequest message. + * Verifies a CreateTransitionRouteGroupRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateSessionEntityTypeRequest + * @returns CreateTransitionRouteGroupRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest; /** - * Creates a plain object from a CreateSessionEntityTypeRequest message. Also converts values to other types if specified. - * @param message CreateSessionEntityTypeRequest + * Creates a plain object from a CreateTransitionRouteGroupRequest message. Also converts values to other types if specified. + * @param message CreateTransitionRouteGroupRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateSessionEntityTypeRequest to JSON. + * Converts this CreateTransitionRouteGroupRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateSessionEntityTypeRequest. */ - interface IUpdateSessionEntityTypeRequest { + /** Properties of an UpdateTransitionRouteGroupRequest. */ + interface IUpdateTransitionRouteGroupRequest { - /** UpdateSessionEntityTypeRequest sessionEntityType */ - sessionEntityType?: (google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null); + /** UpdateTransitionRouteGroupRequest transitionRouteGroup */ + transitionRouteGroup?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null); - /** UpdateSessionEntityTypeRequest updateMask */ + /** UpdateTransitionRouteGroupRequest updateMask */ updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateTransitionRouteGroupRequest languageCode */ + languageCode?: (string|null); } - /** Represents an UpdateSessionEntityTypeRequest. */ - class UpdateSessionEntityTypeRequest implements IUpdateSessionEntityTypeRequest { + /** Represents an UpdateTransitionRouteGroupRequest. */ + class UpdateTransitionRouteGroupRequest implements IUpdateTransitionRouteGroupRequest { /** - * Constructs a new UpdateSessionEntityTypeRequest. + * Constructs a new UpdateTransitionRouteGroupRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest); - /** UpdateSessionEntityTypeRequest sessionEntityType. */ - public sessionEntityType?: (google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null); + /** UpdateTransitionRouteGroupRequest transitionRouteGroup. */ + public transitionRouteGroup?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null); - /** UpdateSessionEntityTypeRequest updateMask. */ + /** UpdateTransitionRouteGroupRequest updateMask. */ public updateMask?: (google.protobuf.IFieldMask|null); + /** UpdateTransitionRouteGroupRequest languageCode. */ + public languageCode: string; + /** - * Creates a new UpdateSessionEntityTypeRequest instance using the specified properties. + * Creates a new UpdateTransitionRouteGroupRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateSessionEntityTypeRequest instance + * @returns UpdateTransitionRouteGroupRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest; /** - * Encodes the specified UpdateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest.verify|verify} messages. - * @param message UpdateSessionEntityTypeRequest message or plain object to encode + * Encodes the specified UpdateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest.verify|verify} messages. + * @param message UpdateTransitionRouteGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest.verify|verify} messages. - * @param message UpdateSessionEntityTypeRequest message or plain object to encode + * Encodes the specified UpdateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest.verify|verify} messages. + * @param message UpdateTransitionRouteGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer. + * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateSessionEntityTypeRequest + * @returns UpdateTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest; /** - * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateSessionEntityTypeRequest + * @returns UpdateTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest; /** - * Verifies an UpdateSessionEntityTypeRequest message. + * Verifies an UpdateTransitionRouteGroupRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateSessionEntityTypeRequest + * @returns UpdateTransitionRouteGroupRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest; /** - * Creates a plain object from an UpdateSessionEntityTypeRequest message. Also converts values to other types if specified. - * @param message UpdateSessionEntityTypeRequest + * Creates a plain object from an UpdateTransitionRouteGroupRequest message. Also converts values to other types if specified. + * @param message UpdateTransitionRouteGroupRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateSessionEntityTypeRequest to JSON. + * Converts this UpdateTransitionRouteGroupRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteSessionEntityTypeRequest. */ - interface IDeleteSessionEntityTypeRequest { + /** Properties of a DeleteTransitionRouteGroupRequest. */ + interface IDeleteTransitionRouteGroupRequest { - /** DeleteSessionEntityTypeRequest name */ + /** DeleteTransitionRouteGroupRequest name */ name?: (string|null); + + /** DeleteTransitionRouteGroupRequest force */ + force?: (boolean|null); } - /** Represents a DeleteSessionEntityTypeRequest. */ - class DeleteSessionEntityTypeRequest implements IDeleteSessionEntityTypeRequest { + /** Represents a DeleteTransitionRouteGroupRequest. */ + class DeleteTransitionRouteGroupRequest implements IDeleteTransitionRouteGroupRequest { /** - * Constructs a new DeleteSessionEntityTypeRequest. + * Constructs a new DeleteTransitionRouteGroupRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest); - /** DeleteSessionEntityTypeRequest name. */ + /** DeleteTransitionRouteGroupRequest name. */ public name: string; + /** DeleteTransitionRouteGroupRequest force. */ + public force: boolean; + /** - * Creates a new DeleteSessionEntityTypeRequest instance using the specified properties. + * Creates a new DeleteTransitionRouteGroupRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteSessionEntityTypeRequest instance + * @returns DeleteTransitionRouteGroupRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest; /** - * Encodes the specified DeleteSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest.verify|verify} messages. - * @param message DeleteSessionEntityTypeRequest message or plain object to encode + * Encodes the specified DeleteTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest.verify|verify} messages. + * @param message DeleteTransitionRouteGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest.verify|verify} messages. - * @param message DeleteSessionEntityTypeRequest message or plain object to encode + * Encodes the specified DeleteTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest.verify|verify} messages. + * @param message DeleteTransitionRouteGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer. + * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteSessionEntityTypeRequest + * @returns DeleteTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest; /** - * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteSessionEntityTypeRequest + * @returns DeleteTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest; /** - * Verifies a DeleteSessionEntityTypeRequest message. + * Verifies a DeleteTransitionRouteGroupRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteSessionEntityTypeRequest + * @returns DeleteTransitionRouteGroupRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest; /** - * Creates a plain object from a DeleteSessionEntityTypeRequest message. Also converts values to other types if specified. - * @param message DeleteSessionEntityTypeRequest + * Creates a plain object from a DeleteTransitionRouteGroupRequest message. Also converts values to other types if specified. + * @param message DeleteTransitionRouteGroupRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteSessionEntityTypeRequest to JSON. + * Converts this DeleteTransitionRouteGroupRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a TransitionRouteGroups */ - class TransitionRouteGroups extends $protobuf.rpc.Service { + /** Represents an Experiments */ + class Experiments extends $protobuf.rpc.Service { /** - * Constructs a new TransitionRouteGroups service. + * Constructs a new Experiments service. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited @@ -49226,6588 +49106,6708 @@ export namespace google { constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates new TransitionRouteGroups service using the specified rpc implementation. + * Creates new Experiments service using the specified rpc implementation. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): TransitionRouteGroups; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Experiments; /** - * Calls ListTransitionRouteGroups. - * @param request ListTransitionRouteGroupsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListTransitionRouteGroupsResponse + * Calls ListExperiments. + * @param request ListExperimentsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListExperimentsResponse */ - public listTransitionRouteGroups(request: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest, callback: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.ListTransitionRouteGroupsCallback): void; + public listExperiments(request: google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Experiments.ListExperimentsCallback): void; /** - * Calls ListTransitionRouteGroups. - * @param request ListTransitionRouteGroupsRequest message or plain object + * Calls ListExperiments. + * @param request ListExperimentsRequest message or plain object * @returns Promise */ - public listTransitionRouteGroups(request: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest): Promise; + public listExperiments(request: google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest): Promise; /** - * Calls GetTransitionRouteGroup. - * @param request GetTransitionRouteGroupRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TransitionRouteGroup + * Calls GetExperiment. + * @param request GetExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Experiment */ - public getTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.GetTransitionRouteGroupCallback): void; + public getExperiment(request: google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Experiments.GetExperimentCallback): void; /** - * Calls GetTransitionRouteGroup. - * @param request GetTransitionRouteGroupRequest message or plain object + * Calls GetExperiment. + * @param request GetExperimentRequest message or plain object * @returns Promise */ - public getTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest): Promise; + public getExperiment(request: google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest): Promise; /** - * Calls CreateTransitionRouteGroup. - * @param request CreateTransitionRouteGroupRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TransitionRouteGroup + * Calls CreateExperiment. + * @param request CreateExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Experiment */ - public createTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.CreateTransitionRouteGroupCallback): void; + public createExperiment(request: google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Experiments.CreateExperimentCallback): void; /** - * Calls CreateTransitionRouteGroup. - * @param request CreateTransitionRouteGroupRequest message or plain object + * Calls CreateExperiment. + * @param request CreateExperimentRequest message or plain object * @returns Promise */ - public createTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest): Promise; + public createExperiment(request: google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest): Promise; /** - * Calls UpdateTransitionRouteGroup. - * @param request UpdateTransitionRouteGroupRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TransitionRouteGroup + * Calls UpdateExperiment. + * @param request UpdateExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Experiment */ - public updateTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.UpdateTransitionRouteGroupCallback): void; + public updateExperiment(request: google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Experiments.UpdateExperimentCallback): void; /** - * Calls UpdateTransitionRouteGroup. - * @param request UpdateTransitionRouteGroupRequest message or plain object + * Calls UpdateExperiment. + * @param request UpdateExperimentRequest message or plain object * @returns Promise */ - public updateTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest): Promise; + public updateExperiment(request: google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest): Promise; /** - * Calls DeleteTransitionRouteGroup. - * @param request DeleteTransitionRouteGroupRequest message or plain object + * Calls DeleteExperiment. + * @param request DeleteExperimentRequest message or plain object * @param callback Node-style callback called with the error, if any, and Empty */ - public deleteTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.DeleteTransitionRouteGroupCallback): void; + public deleteExperiment(request: google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Experiments.DeleteExperimentCallback): void; /** - * Calls DeleteTransitionRouteGroup. - * @param request DeleteTransitionRouteGroupRequest message or plain object + * Calls DeleteExperiment. + * @param request DeleteExperimentRequest message or plain object * @returns Promise */ - public deleteTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest): Promise; + public deleteExperiment(request: google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest): Promise; + + /** + * Calls StartExperiment. + * @param request StartExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Experiment + */ + public startExperiment(request: google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Experiments.StartExperimentCallback): void; + + /** + * Calls StartExperiment. + * @param request StartExperimentRequest message or plain object + * @returns Promise + */ + public startExperiment(request: google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest): Promise; + + /** + * Calls StopExperiment. + * @param request StopExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Experiment + */ + public stopExperiment(request: google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Experiments.StopExperimentCallback): void; + + /** + * Calls StopExperiment. + * @param request StopExperimentRequest message or plain object + * @returns Promise + */ + public stopExperiment(request: google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest): Promise; } - namespace TransitionRouteGroups { + namespace Experiments { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#listTransitionRouteGroups}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#listExperiments}. * @param error Error, if any - * @param [response] ListTransitionRouteGroupsResponse + * @param [response] ListExperimentsResponse */ - type ListTransitionRouteGroupsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse) => void; + type ListExperimentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#getTransitionRouteGroup}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#getExperiment}. * @param error Error, if any - * @param [response] TransitionRouteGroup + * @param [response] Experiment */ - type GetTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup) => void; + type GetExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Experiment) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#createTransitionRouteGroup}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#createExperiment}. * @param error Error, if any - * @param [response] TransitionRouteGroup + * @param [response] Experiment */ - type CreateTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup) => void; + type CreateExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Experiment) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#updateTransitionRouteGroup}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#updateExperiment}. * @param error Error, if any - * @param [response] TransitionRouteGroup + * @param [response] Experiment */ - type UpdateTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup) => void; + type UpdateExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Experiment) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#deleteTransitionRouteGroup}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#deleteExperiment}. * @param error Error, if any * @param [response] Empty */ - type DeleteTransitionRouteGroupCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + type DeleteExperimentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#startExperiment}. + * @param error Error, if any + * @param [response] Experiment + */ + type StartExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Experiment) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#stopExperiment}. + * @param error Error, if any + * @param [response] Experiment + */ + type StopExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Experiment) => void; } - /** Properties of a TransitionRouteGroup. */ - interface ITransitionRouteGroup { + /** Properties of an Experiment. */ + interface IExperiment { - /** TransitionRouteGroup name */ + /** Experiment name */ name?: (string|null); - /** TransitionRouteGroup displayName */ + /** Experiment displayName */ displayName?: (string|null); - /** TransitionRouteGroup transitionRoutes */ - transitionRoutes?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute[]|null); - } + /** Experiment description */ + description?: (string|null); - /** Represents a TransitionRouteGroup. */ - class TransitionRouteGroup implements ITransitionRouteGroup { + /** Experiment state */ + state?: (google.cloud.dialogflow.cx.v3beta1.Experiment.State|keyof typeof google.cloud.dialogflow.cx.v3beta1.Experiment.State|null); - /** - * Constructs a new TransitionRouteGroup. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup); + /** Experiment definition */ + definition?: (google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition|null); - /** TransitionRouteGroup name. */ - public name: string; + /** Experiment rolloutConfig */ + rolloutConfig?: (google.cloud.dialogflow.cx.v3beta1.IRolloutConfig|null); - /** TransitionRouteGroup displayName. */ - public displayName: string; + /** Experiment rolloutState */ + rolloutState?: (google.cloud.dialogflow.cx.v3beta1.IRolloutState|null); - /** TransitionRouteGroup transitionRoutes. */ - public transitionRoutes: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute[]; + /** Experiment rolloutFailureReason */ + rolloutFailureReason?: (string|null); - /** - * Creates a new TransitionRouteGroup instance using the specified properties. - * @param [properties] Properties to set - * @returns TransitionRouteGroup instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup; + /** Experiment result */ + result?: (google.cloud.dialogflow.cx.v3beta1.Experiment.IResult|null); - /** - * Encodes the specified TransitionRouteGroup message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify|verify} messages. - * @param message TransitionRouteGroup message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup, writer?: $protobuf.Writer): $protobuf.Writer; + /** Experiment createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified TransitionRouteGroup message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify|verify} messages. - * @param message TransitionRouteGroup message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup, writer?: $protobuf.Writer): $protobuf.Writer; + /** Experiment startTime */ + startTime?: (google.protobuf.ITimestamp|null); - /** - * Decodes a TransitionRouteGroup message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TransitionRouteGroup - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup; + /** Experiment endTime */ + endTime?: (google.protobuf.ITimestamp|null); - /** - * Decodes a TransitionRouteGroup message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TransitionRouteGroup - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup; + /** Experiment lastUpdateTime */ + lastUpdateTime?: (google.protobuf.ITimestamp|null); - /** - * Verifies a TransitionRouteGroup message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Experiment experimentLength */ + experimentLength?: (google.protobuf.IDuration|null); - /** - * Creates a TransitionRouteGroup message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TransitionRouteGroup - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup; + /** Experiment variantsHistory */ + variantsHistory?: (google.cloud.dialogflow.cx.v3beta1.IVariantsHistory[]|null); + } - /** - * Creates a plain object from a TransitionRouteGroup message. Also converts values to other types if specified. - * @param message TransitionRouteGroup - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents an Experiment. */ + class Experiment implements IExperiment { /** - * Converts this TransitionRouteGroup to JSON. - * @returns JSON object + * Constructs a new Experiment. + * @param [properties] Properties to set */ - public toJSON(): { [k: string]: any }; - } + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExperiment); - /** Properties of a ListTransitionRouteGroupsRequest. */ - interface IListTransitionRouteGroupsRequest { + /** Experiment name. */ + public name: string; - /** ListTransitionRouteGroupsRequest parent */ - parent?: (string|null); + /** Experiment displayName. */ + public displayName: string; - /** ListTransitionRouteGroupsRequest pageSize */ - pageSize?: (number|null); + /** Experiment description. */ + public description: string; - /** ListTransitionRouteGroupsRequest pageToken */ - pageToken?: (string|null); + /** Experiment state. */ + public state: (google.cloud.dialogflow.cx.v3beta1.Experiment.State|keyof typeof google.cloud.dialogflow.cx.v3beta1.Experiment.State); - /** ListTransitionRouteGroupsRequest languageCode */ - languageCode?: (string|null); - } + /** Experiment definition. */ + public definition?: (google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition|null); - /** Represents a ListTransitionRouteGroupsRequest. */ - class ListTransitionRouteGroupsRequest implements IListTransitionRouteGroupsRequest { + /** Experiment rolloutConfig. */ + public rolloutConfig?: (google.cloud.dialogflow.cx.v3beta1.IRolloutConfig|null); - /** - * Constructs a new ListTransitionRouteGroupsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest); + /** Experiment rolloutState. */ + public rolloutState?: (google.cloud.dialogflow.cx.v3beta1.IRolloutState|null); - /** ListTransitionRouteGroupsRequest parent. */ - public parent: string; + /** Experiment rolloutFailureReason. */ + public rolloutFailureReason: string; - /** ListTransitionRouteGroupsRequest pageSize. */ - public pageSize: number; + /** Experiment result. */ + public result?: (google.cloud.dialogflow.cx.v3beta1.Experiment.IResult|null); - /** ListTransitionRouteGroupsRequest pageToken. */ - public pageToken: string; + /** Experiment createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** ListTransitionRouteGroupsRequest languageCode. */ - public languageCode: string; + /** Experiment startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** Experiment endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** Experiment lastUpdateTime. */ + public lastUpdateTime?: (google.protobuf.ITimestamp|null); + + /** Experiment experimentLength. */ + public experimentLength?: (google.protobuf.IDuration|null); + + /** Experiment variantsHistory. */ + public variantsHistory: google.cloud.dialogflow.cx.v3beta1.IVariantsHistory[]; /** - * Creates a new ListTransitionRouteGroupsRequest instance using the specified properties. + * Creates a new Experiment instance using the specified properties. * @param [properties] Properties to set - * @returns ListTransitionRouteGroupsRequest instance + * @returns Experiment instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IExperiment): google.cloud.dialogflow.cx.v3beta1.Experiment; /** - * Encodes the specified ListTransitionRouteGroupsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest.verify|verify} messages. - * @param message ListTransitionRouteGroupsRequest message or plain object to encode + * Encodes the specified Experiment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.verify|verify} messages. + * @param message Experiment message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IExperiment, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTransitionRouteGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest.verify|verify} messages. - * @param message ListTransitionRouteGroupsRequest message or plain object to encode + * Encodes the specified Experiment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.verify|verify} messages. + * @param message Experiment message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IExperiment, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer. + * Decodes an Experiment message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTransitionRouteGroupsRequest + * @returns Experiment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Experiment; /** - * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer, length delimited. + * Decodes an Experiment message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTransitionRouteGroupsRequest + * @returns Experiment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Experiment; /** - * Verifies a ListTransitionRouteGroupsRequest message. + * Verifies an Experiment message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListTransitionRouteGroupsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an Experiment message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTransitionRouteGroupsRequest + * @returns Experiment */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Experiment; /** - * Creates a plain object from a ListTransitionRouteGroupsRequest message. Also converts values to other types if specified. - * @param message ListTransitionRouteGroupsRequest + * Creates a plain object from an Experiment message. Also converts values to other types if specified. + * @param message Experiment * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Experiment, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTransitionRouteGroupsRequest to JSON. + * Converts this Experiment to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListTransitionRouteGroupsResponse. */ - interface IListTransitionRouteGroupsResponse { - - /** ListTransitionRouteGroupsResponse transitionRouteGroups */ - transitionRouteGroups?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup[]|null); + namespace Experiment { - /** ListTransitionRouteGroupsResponse nextPageToken */ - nextPageToken?: (string|null); - } + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + DRAFT = 1, + RUNNING = 2, + DONE = 3, + ROLLOUT_FAILED = 4 + } - /** Represents a ListTransitionRouteGroupsResponse. */ - class ListTransitionRouteGroupsResponse implements IListTransitionRouteGroupsResponse { + /** Properties of a Definition. */ + interface IDefinition { - /** - * Constructs a new ListTransitionRouteGroupsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse); + /** Definition condition */ + condition?: (string|null); - /** ListTransitionRouteGroupsResponse transitionRouteGroups. */ - public transitionRouteGroups: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup[]; + /** Definition versionVariants */ + versionVariants?: (google.cloud.dialogflow.cx.v3beta1.IVersionVariants|null); + } - /** ListTransitionRouteGroupsResponse nextPageToken. */ - public nextPageToken: string; + /** Represents a Definition. */ + class Definition implements IDefinition { - /** - * Creates a new ListTransitionRouteGroupsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListTransitionRouteGroupsResponse instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse; + /** + * Constructs a new Definition. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition); - /** - * Encodes the specified ListTransitionRouteGroupsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse.verify|verify} messages. - * @param message ListTransitionRouteGroupsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** Definition condition. */ + public condition: string; - /** - * Encodes the specified ListTransitionRouteGroupsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse.verify|verify} messages. - * @param message ListTransitionRouteGroupsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** Definition versionVariants. */ + public versionVariants?: (google.cloud.dialogflow.cx.v3beta1.IVersionVariants|null); - /** - * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListTransitionRouteGroupsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse; + /** Definition variants. */ + public variants?: "versionVariants"; - /** - * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListTransitionRouteGroupsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse; + /** + * Creates a new Definition instance using the specified properties. + * @param [properties] Properties to set + * @returns Definition instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition): google.cloud.dialogflow.cx.v3beta1.Experiment.Definition; - /** - * Verifies a ListTransitionRouteGroupsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Encodes the specified Definition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.verify|verify} messages. + * @param message Definition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a ListTransitionRouteGroupsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListTransitionRouteGroupsResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse; + /** + * Encodes the specified Definition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.verify|verify} messages. + * @param message Definition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a ListTransitionRouteGroupsResponse message. Also converts values to other types if specified. - * @param message ListTransitionRouteGroupsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a Definition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Definition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Experiment.Definition; - /** - * Converts this ListTransitionRouteGroupsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Decodes a Definition message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Definition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Experiment.Definition; - /** Properties of a GetTransitionRouteGroupRequest. */ - interface IGetTransitionRouteGroupRequest { + /** + * Verifies a Definition message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** GetTransitionRouteGroupRequest name */ - name?: (string|null); + /** + * Creates a Definition message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Definition + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Experiment.Definition; - /** GetTransitionRouteGroupRequest languageCode */ - languageCode?: (string|null); - } + /** + * Creates a plain object from a Definition message. Also converts values to other types if specified. + * @param message Definition + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Definition, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Represents a GetTransitionRouteGroupRequest. */ - class GetTransitionRouteGroupRequest implements IGetTransitionRouteGroupRequest { + /** + * Converts this Definition to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Constructs a new GetTransitionRouteGroupRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest); + /** Properties of a Result. */ + interface IResult { - /** GetTransitionRouteGroupRequest name. */ - public name: string; + /** Result versionMetrics */ + versionMetrics?: (google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics[]|null); - /** GetTransitionRouteGroupRequest languageCode. */ - public languageCode: string; + /** Result lastUpdateTime */ + lastUpdateTime?: (google.protobuf.ITimestamp|null); + } - /** - * Creates a new GetTransitionRouteGroupRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetTransitionRouteGroupRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest; + /** Represents a Result. */ + class Result implements IResult { - /** - * Encodes the specified GetTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest.verify|verify} messages. - * @param message GetTransitionRouteGroupRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new Result. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.IResult); - /** - * Encodes the specified GetTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest.verify|verify} messages. - * @param message GetTransitionRouteGroupRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Result versionMetrics. */ + public versionMetrics: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics[]; - /** - * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetTransitionRouteGroupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest; + /** Result lastUpdateTime. */ + public lastUpdateTime?: (google.protobuf.ITimestamp|null); - /** - * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetTransitionRouteGroupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest; + /** + * Creates a new Result instance using the specified properties. + * @param [properties] Properties to set + * @returns Result instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.IResult): google.cloud.dialogflow.cx.v3beta1.Experiment.Result; - /** - * Verifies a GetTransitionRouteGroupRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Encodes the specified Result message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.verify|verify} messages. + * @param message Result message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Experiment.IResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a GetTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetTransitionRouteGroupRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest; + /** + * Encodes the specified Result message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.verify|verify} messages. + * @param message Result message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Experiment.IResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a GetTransitionRouteGroupRequest message. Also converts values to other types if specified. - * @param message GetTransitionRouteGroupRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a Result message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Result + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Experiment.Result; - /** - * Converts this GetTransitionRouteGroupRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Decodes a Result message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Result + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Experiment.Result; - /** Properties of a CreateTransitionRouteGroupRequest. */ - interface ICreateTransitionRouteGroupRequest { + /** + * Verifies a Result message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** CreateTransitionRouteGroupRequest parent */ - parent?: (string|null); + /** + * Creates a Result message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Result + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Experiment.Result; - /** CreateTransitionRouteGroupRequest transitionRouteGroup */ - transitionRouteGroup?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null); + /** + * Creates a plain object from a Result message. Also converts values to other types if specified. + * @param message Result + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** CreateTransitionRouteGroupRequest languageCode */ - languageCode?: (string|null); - } + /** + * Converts this Result to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Represents a CreateTransitionRouteGroupRequest. */ - class CreateTransitionRouteGroupRequest implements ICreateTransitionRouteGroupRequest { + namespace Result { - /** - * Constructs a new CreateTransitionRouteGroupRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest); + /** MetricType enum. */ + enum MetricType { + METRIC_UNSPECIFIED = 0, + CONTAINED_SESSION_NO_CALLBACK_RATE = 1, + LIVE_AGENT_HANDOFF_RATE = 2, + CALLBACK_SESSION_RATE = 3, + ABANDONED_SESSION_RATE = 4, + SESSION_END_RATE = 5 + } - /** CreateTransitionRouteGroupRequest parent. */ - public parent: string; + /** CountType enum. */ + enum CountType { + COUNT_TYPE_UNSPECIFIED = 0, + TOTAL_NO_MATCH_COUNT = 1, + TOTAL_TURN_COUNT = 2, + AVERAGE_TURN_COUNT = 3 + } - /** CreateTransitionRouteGroupRequest transitionRouteGroup. */ - public transitionRouteGroup?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null); + /** Properties of a ConfidenceInterval. */ + interface IConfidenceInterval { - /** CreateTransitionRouteGroupRequest languageCode. */ - public languageCode: string; + /** ConfidenceInterval confidenceLevel */ + confidenceLevel?: (number|null); - /** - * Creates a new CreateTransitionRouteGroupRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateTransitionRouteGroupRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest; + /** ConfidenceInterval ratio */ + ratio?: (number|null); - /** - * Encodes the specified CreateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest.verify|verify} messages. - * @param message CreateTransitionRouteGroupRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** ConfidenceInterval lowerBound */ + lowerBound?: (number|null); - /** - * Encodes the specified CreateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest.verify|verify} messages. - * @param message CreateTransitionRouteGroupRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** ConfidenceInterval upperBound */ + upperBound?: (number|null); + } - /** - * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateTransitionRouteGroupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest; + /** Represents a ConfidenceInterval. */ + class ConfidenceInterval implements IConfidenceInterval { - /** - * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateTransitionRouteGroupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest; + /** + * Constructs a new ConfidenceInterval. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval); - /** - * Verifies a CreateTransitionRouteGroupRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** ConfidenceInterval confidenceLevel. */ + public confidenceLevel: number; - /** - * Creates a CreateTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateTransitionRouteGroupRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest; + /** ConfidenceInterval ratio. */ + public ratio: number; - /** - * Creates a plain object from a CreateTransitionRouteGroupRequest message. Also converts values to other types if specified. - * @param message CreateTransitionRouteGroupRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ConfidenceInterval lowerBound. */ + public lowerBound: number; - /** - * Converts this CreateTransitionRouteGroupRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** ConfidenceInterval upperBound. */ + public upperBound: number; - /** Properties of an UpdateTransitionRouteGroupRequest. */ - interface IUpdateTransitionRouteGroupRequest { + /** + * Creates a new ConfidenceInterval instance using the specified properties. + * @param [properties] Properties to set + * @returns ConfidenceInterval instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval; - /** UpdateTransitionRouteGroupRequest transitionRouteGroup */ - transitionRouteGroup?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null); + /** + * Encodes the specified ConfidenceInterval message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.verify|verify} messages. + * @param message ConfidenceInterval message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval, writer?: $protobuf.Writer): $protobuf.Writer; - /** UpdateTransitionRouteGroupRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** + * Encodes the specified ConfidenceInterval message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.verify|verify} messages. + * @param message ConfidenceInterval message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval, writer?: $protobuf.Writer): $protobuf.Writer; - /** UpdateTransitionRouteGroupRequest languageCode */ - languageCode?: (string|null); - } + /** + * Decodes a ConfidenceInterval message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConfidenceInterval + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval; - /** Represents an UpdateTransitionRouteGroupRequest. */ - class UpdateTransitionRouteGroupRequest implements IUpdateTransitionRouteGroupRequest { + /** + * Decodes a ConfidenceInterval message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConfidenceInterval + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval; - /** - * Constructs a new UpdateTransitionRouteGroupRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest); + /** + * Verifies a ConfidenceInterval message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** UpdateTransitionRouteGroupRequest transitionRouteGroup. */ - public transitionRouteGroup?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null); + /** + * Creates a ConfidenceInterval message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConfidenceInterval + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval; - /** UpdateTransitionRouteGroupRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** + * Creates a plain object from a ConfidenceInterval message. Also converts values to other types if specified. + * @param message ConfidenceInterval + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** UpdateTransitionRouteGroupRequest languageCode. */ - public languageCode: string; + /** + * Converts this ConfidenceInterval to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Metric. */ + interface IMetric { + + /** Metric type */ + type?: (google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType|keyof typeof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType|null); + + /** Metric countType */ + countType?: (google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType|keyof typeof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType|null); + + /** Metric ratio */ + ratio?: (number|null); + + /** Metric count */ + count?: (number|null); + + /** Metric confidenceInterval */ + confidenceInterval?: (google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval|null); + } + + /** Represents a Metric. */ + class Metric implements IMetric { + + /** + * Constructs a new Metric. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric); + + /** Metric type. */ + public type: (google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType|keyof typeof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType); + + /** Metric countType. */ + public countType: (google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType|keyof typeof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType); + + /** Metric ratio. */ + public ratio?: (number|null); + + /** Metric count. */ + public count?: (number|null); + + /** Metric confidenceInterval. */ + public confidenceInterval?: (google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval|null); + + /** Metric value. */ + public value?: ("ratio"|"count"); + + /** + * Creates a new Metric instance using the specified properties. + * @param [properties] Properties to set + * @returns Metric instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric; + + /** + * Encodes the specified Metric message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.verify|verify} messages. + * @param message Metric message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.verify|verify} messages. + * @param message Metric message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Metric message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Metric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric; + + /** + * Decodes a Metric message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Metric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric; + + /** + * Verifies a Metric message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Metric message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Metric + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric; + + /** + * Creates a plain object from a Metric message. Also converts values to other types if specified. + * @param message Metric + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Metric to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a VersionMetrics. */ + interface IVersionMetrics { + + /** VersionMetrics version */ + version?: (string|null); + + /** VersionMetrics metrics */ + metrics?: (google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric[]|null); + + /** VersionMetrics sessionCount */ + sessionCount?: (number|null); + } + + /** Represents a VersionMetrics. */ + class VersionMetrics implements IVersionMetrics { + + /** + * Constructs a new VersionMetrics. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics); + + /** VersionMetrics version. */ + public version: string; + + /** VersionMetrics metrics. */ + public metrics: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric[]; + + /** VersionMetrics sessionCount. */ + public sessionCount: number; + + /** + * Creates a new VersionMetrics instance using the specified properties. + * @param [properties] Properties to set + * @returns VersionMetrics instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics; + + /** + * Encodes the specified VersionMetrics message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.verify|verify} messages. + * @param message VersionMetrics message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VersionMetrics message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.verify|verify} messages. + * @param message VersionMetrics message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VersionMetrics message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VersionMetrics + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics; + + /** + * Decodes a VersionMetrics message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VersionMetrics + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics; + + /** + * Verifies a VersionMetrics message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VersionMetrics message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VersionMetrics + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics; + + /** + * Creates a plain object from a VersionMetrics message. Also converts values to other types if specified. + * @param message VersionMetrics + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VersionMetrics to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + + /** Properties of a VersionVariants. */ + interface IVersionVariants { + + /** VersionVariants variants */ + variants?: (google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant[]|null); + } + + /** Represents a VersionVariants. */ + class VersionVariants implements IVersionVariants { /** - * Creates a new UpdateTransitionRouteGroupRequest instance using the specified properties. + * Constructs a new VersionVariants. * @param [properties] Properties to set - * @returns UpdateTransitionRouteGroupRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IVersionVariants); + + /** VersionVariants variants. */ + public variants: google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant[]; /** - * Encodes the specified UpdateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest.verify|verify} messages. - * @param message UpdateTransitionRouteGroupRequest message or plain object to encode + * Creates a new VersionVariants instance using the specified properties. + * @param [properties] Properties to set + * @returns VersionVariants instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IVersionVariants): google.cloud.dialogflow.cx.v3beta1.VersionVariants; + + /** + * Encodes the specified VersionVariants message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VersionVariants.verify|verify} messages. + * @param message VersionVariants message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IVersionVariants, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest.verify|verify} messages. - * @param message UpdateTransitionRouteGroupRequest message or plain object to encode + * Encodes the specified VersionVariants message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VersionVariants.verify|verify} messages. + * @param message VersionVariants message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IVersionVariants, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer. + * Decodes a VersionVariants message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateTransitionRouteGroupRequest + * @returns VersionVariants * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.VersionVariants; /** - * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. + * Decodes a VersionVariants message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateTransitionRouteGroupRequest + * @returns VersionVariants * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.VersionVariants; /** - * Verifies an UpdateTransitionRouteGroupRequest message. + * Verifies a VersionVariants message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VersionVariants message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateTransitionRouteGroupRequest + * @returns VersionVariants */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.VersionVariants; /** - * Creates a plain object from an UpdateTransitionRouteGroupRequest message. Also converts values to other types if specified. - * @param message UpdateTransitionRouteGroupRequest + * Creates a plain object from a VersionVariants message. Also converts values to other types if specified. + * @param message VersionVariants * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.VersionVariants, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateTransitionRouteGroupRequest to JSON. + * Converts this VersionVariants to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteTransitionRouteGroupRequest. */ - interface IDeleteTransitionRouteGroupRequest { + namespace VersionVariants { - /** DeleteTransitionRouteGroupRequest name */ - name?: (string|null); + /** Properties of a Variant. */ + interface IVariant { - /** DeleteTransitionRouteGroupRequest force */ - force?: (boolean|null); + /** Variant version */ + version?: (string|null); + + /** Variant trafficAllocation */ + trafficAllocation?: (number|null); + + /** Variant isControlGroup */ + isControlGroup?: (boolean|null); + } + + /** Represents a Variant. */ + class Variant implements IVariant { + + /** + * Constructs a new Variant. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant); + + /** Variant version. */ + public version: string; + + /** Variant trafficAllocation. */ + public trafficAllocation: number; + + /** Variant isControlGroup. */ + public isControlGroup: boolean; + + /** + * Creates a new Variant instance using the specified properties. + * @param [properties] Properties to set + * @returns Variant instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant): google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant; + + /** + * Encodes the specified Variant message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.verify|verify} messages. + * @param message Variant message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Variant message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.verify|verify} messages. + * @param message Variant message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Variant message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Variant + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant; + + /** + * Decodes a Variant message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Variant + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant; + + /** + * Verifies a Variant message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Variant message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Variant + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant; + + /** + * Creates a plain object from a Variant message. Also converts values to other types if specified. + * @param message Variant + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Variant to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Represents a DeleteTransitionRouteGroupRequest. */ - class DeleteTransitionRouteGroupRequest implements IDeleteTransitionRouteGroupRequest { + /** Properties of a RolloutConfig. */ + interface IRolloutConfig { + + /** RolloutConfig rolloutSteps */ + rolloutSteps?: (google.cloud.dialogflow.cx.v3beta1.RolloutConfig.IRolloutStep[]|null); + + /** RolloutConfig rolloutCondition */ + rolloutCondition?: (string|null); + + /** RolloutConfig failureCondition */ + failureCondition?: (string|null); + } + + /** Represents a RolloutConfig. */ + class RolloutConfig implements IRolloutConfig { /** - * Constructs a new DeleteTransitionRouteGroupRequest. + * Constructs a new RolloutConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRolloutConfig); - /** DeleteTransitionRouteGroupRequest name. */ - public name: string; + /** RolloutConfig rolloutSteps. */ + public rolloutSteps: google.cloud.dialogflow.cx.v3beta1.RolloutConfig.IRolloutStep[]; - /** DeleteTransitionRouteGroupRequest force. */ - public force: boolean; + /** RolloutConfig rolloutCondition. */ + public rolloutCondition: string; + + /** RolloutConfig failureCondition. */ + public failureCondition: string; /** - * Creates a new DeleteTransitionRouteGroupRequest instance using the specified properties. + * Creates a new RolloutConfig instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteTransitionRouteGroupRequest instance + * @returns RolloutConfig instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IRolloutConfig): google.cloud.dialogflow.cx.v3beta1.RolloutConfig; /** - * Encodes the specified DeleteTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest.verify|verify} messages. - * @param message DeleteTransitionRouteGroupRequest message or plain object to encode + * Encodes the specified RolloutConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RolloutConfig.verify|verify} messages. + * @param message RolloutConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IRolloutConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest.verify|verify} messages. - * @param message DeleteTransitionRouteGroupRequest message or plain object to encode + * Encodes the specified RolloutConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RolloutConfig.verify|verify} messages. + * @param message RolloutConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IRolloutConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer. + * Decodes a RolloutConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteTransitionRouteGroupRequest + * @returns RolloutConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RolloutConfig; /** - * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. + * Decodes a RolloutConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteTransitionRouteGroupRequest + * @returns RolloutConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.RolloutConfig; /** - * Verifies a DeleteTransitionRouteGroupRequest message. + * Verifies a RolloutConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RolloutConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteTransitionRouteGroupRequest + * @returns RolloutConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RolloutConfig; /** - * Creates a plain object from a DeleteTransitionRouteGroupRequest message. Also converts values to other types if specified. - * @param message DeleteTransitionRouteGroupRequest + * Creates a plain object from a RolloutConfig message. Also converts values to other types if specified. + * @param message RolloutConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RolloutConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteTransitionRouteGroupRequest to JSON. + * Converts this RolloutConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a Webhooks */ - class Webhooks extends $protobuf.rpc.Service { + namespace RolloutConfig { - /** - * Constructs a new Webhooks service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** Properties of a RolloutStep. */ + interface IRolloutStep { - /** - * Creates new Webhooks service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Webhooks; + /** RolloutStep displayName */ + displayName?: (string|null); + + /** RolloutStep trafficPercent */ + trafficPercent?: (number|null); + + /** RolloutStep minDuration */ + minDuration?: (google.protobuf.IDuration|null); + } + + /** Represents a RolloutStep. */ + class RolloutStep implements IRolloutStep { + + /** + * Constructs a new RolloutStep. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.RolloutConfig.IRolloutStep); + + /** RolloutStep displayName. */ + public displayName: string; + + /** RolloutStep trafficPercent. */ + public trafficPercent: number; + + /** RolloutStep minDuration. */ + public minDuration?: (google.protobuf.IDuration|null); + + /** + * Creates a new RolloutStep instance using the specified properties. + * @param [properties] Properties to set + * @returns RolloutStep instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.RolloutConfig.IRolloutStep): google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep; + + /** + * Encodes the specified RolloutStep message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep.verify|verify} messages. + * @param message RolloutStep message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.RolloutConfig.IRolloutStep, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RolloutStep message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep.verify|verify} messages. + * @param message RolloutStep message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.RolloutConfig.IRolloutStep, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RolloutStep message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RolloutStep + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep; + + /** + * Decodes a RolloutStep message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RolloutStep + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep; + + /** + * Verifies a RolloutStep message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RolloutStep message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RolloutStep + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep; + + /** + * Creates a plain object from a RolloutStep message. Also converts values to other types if specified. + * @param message RolloutStep + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RolloutStep to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a RolloutState. */ + interface IRolloutState { + + /** RolloutState step */ + step?: (string|null); + + /** RolloutState stepIndex */ + stepIndex?: (number|null); + + /** RolloutState startTime */ + startTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a RolloutState. */ + class RolloutState implements IRolloutState { /** - * Calls ListWebhooks. - * @param request ListWebhooksRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListWebhooksResponse + * Constructs a new RolloutState. + * @param [properties] Properties to set */ - public listWebhooks(request: google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest, callback: google.cloud.dialogflow.cx.v3beta1.Webhooks.ListWebhooksCallback): void; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRolloutState); + + /** RolloutState step. */ + public step: string; + + /** RolloutState stepIndex. */ + public stepIndex: number; + + /** RolloutState startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); /** - * Calls ListWebhooks. - * @param request ListWebhooksRequest message or plain object - * @returns Promise + * Creates a new RolloutState instance using the specified properties. + * @param [properties] Properties to set + * @returns RolloutState instance */ - public listWebhooks(request: google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest): Promise; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IRolloutState): google.cloud.dialogflow.cx.v3beta1.RolloutState; /** - * Calls GetWebhook. - * @param request GetWebhookRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Webhook + * Encodes the specified RolloutState message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RolloutState.verify|verify} messages. + * @param message RolloutState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getWebhook(request: google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest, callback: google.cloud.dialogflow.cx.v3beta1.Webhooks.GetWebhookCallback): void; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IRolloutState, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetWebhook. - * @param request GetWebhookRequest message or plain object - * @returns Promise + * Encodes the specified RolloutState message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RolloutState.verify|verify} messages. + * @param message RolloutState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getWebhook(request: google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest): Promise; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IRolloutState, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateWebhook. - * @param request CreateWebhookRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Webhook + * Decodes a RolloutState message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RolloutState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public createWebhook(request: google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest, callback: google.cloud.dialogflow.cx.v3beta1.Webhooks.CreateWebhookCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RolloutState; /** - * Calls CreateWebhook. - * @param request CreateWebhookRequest message or plain object - * @returns Promise + * Decodes a RolloutState message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RolloutState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public createWebhook(request: google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.RolloutState; /** - * Calls UpdateWebhook. - * @param request UpdateWebhookRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Webhook + * Verifies a RolloutState message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public updateWebhook(request: google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest, callback: google.cloud.dialogflow.cx.v3beta1.Webhooks.UpdateWebhookCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls UpdateWebhook. - * @param request UpdateWebhookRequest message or plain object - * @returns Promise + * Creates a RolloutState message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RolloutState */ - public updateWebhook(request: google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RolloutState; /** - * Calls DeleteWebhook. - * @param request DeleteWebhookRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Creates a plain object from a RolloutState message. Also converts values to other types if specified. + * @param message RolloutState + * @param [options] Conversion options + * @returns Plain object */ - public deleteWebhook(request: google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest, callback: google.cloud.dialogflow.cx.v3beta1.Webhooks.DeleteWebhookCallback): void; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RolloutState, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls DeleteWebhook. - * @param request DeleteWebhookRequest message or plain object - * @returns Promise + * Converts this RolloutState to JSON. + * @returns JSON object */ - public deleteWebhook(request: google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest): Promise; + public toJSON(): { [k: string]: any }; } - namespace Webhooks { + /** Properties of a VariantsHistory. */ + interface IVariantsHistory { + + /** VariantsHistory versionVariants */ + versionVariants?: (google.cloud.dialogflow.cx.v3beta1.IVersionVariants|null); + + /** VariantsHistory updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a VariantsHistory. */ + class VariantsHistory implements IVariantsHistory { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Webhooks#listWebhooks}. - * @param error Error, if any - * @param [response] ListWebhooksResponse + * Constructs a new VariantsHistory. + * @param [properties] Properties to set */ - type ListWebhooksCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse) => void; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IVariantsHistory); + + /** VariantsHistory versionVariants. */ + public versionVariants?: (google.cloud.dialogflow.cx.v3beta1.IVersionVariants|null); + + /** VariantsHistory updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** VariantsHistory variants. */ + public variants?: "versionVariants"; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Webhooks#getWebhook}. - * @param error Error, if any - * @param [response] Webhook + * Creates a new VariantsHistory instance using the specified properties. + * @param [properties] Properties to set + * @returns VariantsHistory instance */ - type GetWebhookCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Webhook) => void; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IVariantsHistory): google.cloud.dialogflow.cx.v3beta1.VariantsHistory; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Webhooks#createWebhook}. - * @param error Error, if any - * @param [response] Webhook + * Encodes the specified VariantsHistory message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VariantsHistory.verify|verify} messages. + * @param message VariantsHistory message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type CreateWebhookCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Webhook) => void; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IVariantsHistory, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Webhooks#updateWebhook}. - * @param error Error, if any - * @param [response] Webhook + * Encodes the specified VariantsHistory message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VariantsHistory.verify|verify} messages. + * @param message VariantsHistory message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type UpdateWebhookCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Webhook) => void; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IVariantsHistory, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Webhooks#deleteWebhook}. - * @param error Error, if any - * @param [response] Empty + * Decodes a VariantsHistory message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VariantsHistory + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type DeleteWebhookCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - } + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.VariantsHistory; - /** Properties of a Webhook. */ - interface IWebhook { + /** + * Decodes a VariantsHistory message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VariantsHistory + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.VariantsHistory; - /** Webhook name */ - name?: (string|null); + /** + * Verifies a VariantsHistory message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Webhook displayName */ - displayName?: (string|null); + /** + * Creates a VariantsHistory message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VariantsHistory + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.VariantsHistory; - /** Webhook genericWebService */ - genericWebService?: (google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService|null); + /** + * Creates a plain object from a VariantsHistory message. Also converts values to other types if specified. + * @param message VariantsHistory + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.VariantsHistory, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Webhook serviceDirectory */ - serviceDirectory?: (google.cloud.dialogflow.cx.v3beta1.Webhook.IServiceDirectoryConfig|null); + /** + * Converts this VariantsHistory to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Webhook timeout */ - timeout?: (google.protobuf.IDuration|null); + /** Properties of a ListExperimentsRequest. */ + interface IListExperimentsRequest { - /** Webhook disabled */ - disabled?: (boolean|null); + /** ListExperimentsRequest parent */ + parent?: (string|null); + + /** ListExperimentsRequest pageSize */ + pageSize?: (number|null); + + /** ListExperimentsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a Webhook. */ - class Webhook implements IWebhook { + /** Represents a ListExperimentsRequest. */ + class ListExperimentsRequest implements IListExperimentsRequest { /** - * Constructs a new Webhook. + * Constructs a new ListExperimentsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IWebhook); - - /** Webhook name. */ - public name: string; - - /** Webhook displayName. */ - public displayName: string; - - /** Webhook genericWebService. */ - public genericWebService?: (google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService|null); - - /** Webhook serviceDirectory. */ - public serviceDirectory?: (google.cloud.dialogflow.cx.v3beta1.Webhook.IServiceDirectoryConfig|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest); - /** Webhook timeout. */ - public timeout?: (google.protobuf.IDuration|null); + /** ListExperimentsRequest parent. */ + public parent: string; - /** Webhook disabled. */ - public disabled: boolean; + /** ListExperimentsRequest pageSize. */ + public pageSize: number; - /** Webhook webhook. */ - public webhook?: ("genericWebService"|"serviceDirectory"); + /** ListExperimentsRequest pageToken. */ + public pageToken: string; /** - * Creates a new Webhook instance using the specified properties. + * Creates a new ListExperimentsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Webhook instance + * @returns ListExperimentsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IWebhook): google.cloud.dialogflow.cx.v3beta1.Webhook; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest): google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest; /** - * Encodes the specified Webhook message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Webhook.verify|verify} messages. - * @param message Webhook message or plain object to encode + * Encodes the specified ListExperimentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest.verify|verify} messages. + * @param message ListExperimentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IWebhook, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Webhook message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Webhook.verify|verify} messages. - * @param message Webhook message or plain object to encode + * Encodes the specified ListExperimentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest.verify|verify} messages. + * @param message ListExperimentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IWebhook, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Webhook message from the specified reader or buffer. + * Decodes a ListExperimentsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Webhook + * @returns ListExperimentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Webhook; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest; /** - * Decodes a Webhook message from the specified reader or buffer, length delimited. + * Decodes a ListExperimentsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Webhook + * @returns ListExperimentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Webhook; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest; /** - * Verifies a Webhook message. + * Verifies a ListExperimentsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Webhook message from a plain object. Also converts values to their respective internal types. + * Creates a ListExperimentsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Webhook + * @returns ListExperimentsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Webhook; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest; /** - * Creates a plain object from a Webhook message. Also converts values to other types if specified. - * @param message Webhook + * Creates a plain object from a ListExperimentsRequest message. Also converts values to other types if specified. + * @param message ListExperimentsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Webhook, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Webhook to JSON. + * Converts this ListExperimentsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Webhook { - - /** Properties of a GenericWebService. */ - interface IGenericWebService { + /** Properties of a ListExperimentsResponse. */ + interface IListExperimentsResponse { - /** GenericWebService uri */ - uri?: (string|null); + /** ListExperimentsResponse experiments */ + experiments?: (google.cloud.dialogflow.cx.v3beta1.IExperiment[]|null); - /** GenericWebService username */ - username?: (string|null); + /** ListExperimentsResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** GenericWebService password */ - password?: (string|null); + /** Represents a ListExperimentsResponse. */ + class ListExperimentsResponse implements IListExperimentsResponse { - /** GenericWebService requestHeaders */ - requestHeaders?: ({ [k: string]: string }|null); + /** + * Constructs a new ListExperimentsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListExperimentsResponse); - /** GenericWebService allowedCaCerts */ - allowedCaCerts?: (Uint8Array[]|null); - } + /** ListExperimentsResponse experiments. */ + public experiments: google.cloud.dialogflow.cx.v3beta1.IExperiment[]; - /** Represents a GenericWebService. */ - class GenericWebService implements IGenericWebService { + /** ListExperimentsResponse nextPageToken. */ + public nextPageToken: string; - /** - * Constructs a new GenericWebService. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService); + /** + * Creates a new ListExperimentsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListExperimentsResponse instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListExperimentsResponse): google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse; - /** GenericWebService uri. */ - public uri: string; + /** + * Encodes the specified ListExperimentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse.verify|verify} messages. + * @param message ListExperimentsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListExperimentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** GenericWebService username. */ - public username: string; + /** + * Encodes the specified ListExperimentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse.verify|verify} messages. + * @param message ListExperimentsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListExperimentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** GenericWebService password. */ - public password: string; + /** + * Decodes a ListExperimentsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListExperimentsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse; - /** GenericWebService requestHeaders. */ - public requestHeaders: { [k: string]: string }; + /** + * Decodes a ListExperimentsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListExperimentsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse; - /** GenericWebService allowedCaCerts. */ - public allowedCaCerts: Uint8Array[]; + /** + * Verifies a ListExperimentsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a new GenericWebService instance using the specified properties. - * @param [properties] Properties to set - * @returns GenericWebService instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService): google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService; - - /** - * Encodes the specified GenericWebService message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.verify|verify} messages. - * @param message GenericWebService message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GenericWebService message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.verify|verify} messages. - * @param message GenericWebService message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GenericWebService message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GenericWebService - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService; - - /** - * Decodes a GenericWebService message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GenericWebService - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService; - - /** - * Verifies a GenericWebService message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GenericWebService message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GenericWebService - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService; - - /** - * Creates a plain object from a GenericWebService message. Also converts values to other types if specified. - * @param message GenericWebService - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GenericWebService to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ServiceDirectoryConfig. */ - interface IServiceDirectoryConfig { - - /** ServiceDirectoryConfig service */ - service?: (string|null); - - /** ServiceDirectoryConfig genericWebService */ - genericWebService?: (google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService|null); - } - - /** Represents a ServiceDirectoryConfig. */ - class ServiceDirectoryConfig implements IServiceDirectoryConfig { - - /** - * Constructs a new ServiceDirectoryConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Webhook.IServiceDirectoryConfig); - - /** ServiceDirectoryConfig service. */ - public service: string; - - /** ServiceDirectoryConfig genericWebService. */ - public genericWebService?: (google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService|null); - - /** - * Creates a new ServiceDirectoryConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns ServiceDirectoryConfig instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Webhook.IServiceDirectoryConfig): google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig; - - /** - * Encodes the specified ServiceDirectoryConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig.verify|verify} messages. - * @param message ServiceDirectoryConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Webhook.IServiceDirectoryConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ServiceDirectoryConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig.verify|verify} messages. - * @param message ServiceDirectoryConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Webhook.IServiceDirectoryConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServiceDirectoryConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServiceDirectoryConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig; - - /** - * Decodes a ServiceDirectoryConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ServiceDirectoryConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig; - - /** - * Verifies a ServiceDirectoryConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ServiceDirectoryConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServiceDirectoryConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig; + /** + * Creates a ListExperimentsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListExperimentsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse; - /** - * Creates a plain object from a ServiceDirectoryConfig message. Also converts values to other types if specified. - * @param message ServiceDirectoryConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a ListExperimentsResponse message. Also converts values to other types if specified. + * @param message ListExperimentsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this ServiceDirectoryConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Converts this ListExperimentsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Properties of a ListWebhooksRequest. */ - interface IListWebhooksRequest { - - /** ListWebhooksRequest parent */ - parent?: (string|null); - - /** ListWebhooksRequest pageSize */ - pageSize?: (number|null); + /** Properties of a GetExperimentRequest. */ + interface IGetExperimentRequest { - /** ListWebhooksRequest pageToken */ - pageToken?: (string|null); + /** GetExperimentRequest name */ + name?: (string|null); } - /** Represents a ListWebhooksRequest. */ - class ListWebhooksRequest implements IListWebhooksRequest { + /** Represents a GetExperimentRequest. */ + class GetExperimentRequest implements IGetExperimentRequest { /** - * Constructs a new ListWebhooksRequest. + * Constructs a new GetExperimentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest); - - /** ListWebhooksRequest parent. */ - public parent: string; - - /** ListWebhooksRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest); - /** ListWebhooksRequest pageToken. */ - public pageToken: string; + /** GetExperimentRequest name. */ + public name: string; /** - * Creates a new ListWebhooksRequest instance using the specified properties. + * Creates a new GetExperimentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListWebhooksRequest instance + * @returns GetExperimentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest): google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest): google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest; /** - * Encodes the specified ListWebhooksRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest.verify|verify} messages. - * @param message ListWebhooksRequest message or plain object to encode + * Encodes the specified GetExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest.verify|verify} messages. + * @param message GetExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListWebhooksRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest.verify|verify} messages. - * @param message ListWebhooksRequest message or plain object to encode + * Encodes the specified GetExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest.verify|verify} messages. + * @param message GetExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListWebhooksRequest message from the specified reader or buffer. + * Decodes a GetExperimentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListWebhooksRequest + * @returns GetExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest; /** - * Decodes a ListWebhooksRequest message from the specified reader or buffer, length delimited. + * Decodes a GetExperimentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListWebhooksRequest + * @returns GetExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest; /** - * Verifies a ListWebhooksRequest message. + * Verifies a GetExperimentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListWebhooksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetExperimentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListWebhooksRequest + * @returns GetExperimentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest; /** - * Creates a plain object from a ListWebhooksRequest message. Also converts values to other types if specified. - * @param message ListWebhooksRequest + * Creates a plain object from a GetExperimentRequest message. Also converts values to other types if specified. + * @param message GetExperimentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListWebhooksRequest to JSON. + * Converts this GetExperimentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListWebhooksResponse. */ - interface IListWebhooksResponse { + /** Properties of a CreateExperimentRequest. */ + interface ICreateExperimentRequest { - /** ListWebhooksResponse webhooks */ - webhooks?: (google.cloud.dialogflow.cx.v3beta1.IWebhook[]|null); + /** CreateExperimentRequest parent */ + parent?: (string|null); - /** ListWebhooksResponse nextPageToken */ - nextPageToken?: (string|null); + /** CreateExperimentRequest experiment */ + experiment?: (google.cloud.dialogflow.cx.v3beta1.IExperiment|null); } - /** Represents a ListWebhooksResponse. */ - class ListWebhooksResponse implements IListWebhooksResponse { + /** Represents a CreateExperimentRequest. */ + class CreateExperimentRequest implements ICreateExperimentRequest { /** - * Constructs a new ListWebhooksResponse. + * Constructs a new CreateExperimentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListWebhooksResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest); - /** ListWebhooksResponse webhooks. */ - public webhooks: google.cloud.dialogflow.cx.v3beta1.IWebhook[]; + /** CreateExperimentRequest parent. */ + public parent: string; - /** ListWebhooksResponse nextPageToken. */ - public nextPageToken: string; + /** CreateExperimentRequest experiment. */ + public experiment?: (google.cloud.dialogflow.cx.v3beta1.IExperiment|null); /** - * Creates a new ListWebhooksResponse instance using the specified properties. + * Creates a new CreateExperimentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListWebhooksResponse instance + * @returns CreateExperimentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListWebhooksResponse): google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest): google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest; /** - * Encodes the specified ListWebhooksResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse.verify|verify} messages. - * @param message ListWebhooksResponse message or plain object to encode + * Encodes the specified CreateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest.verify|verify} messages. + * @param message CreateExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListWebhooksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListWebhooksResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse.verify|verify} messages. - * @param message ListWebhooksResponse message or plain object to encode + * Encodes the specified CreateExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest.verify|verify} messages. + * @param message CreateExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListWebhooksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListWebhooksResponse message from the specified reader or buffer. + * Decodes a CreateExperimentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListWebhooksResponse + * @returns CreateExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest; /** - * Decodes a ListWebhooksResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateExperimentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListWebhooksResponse + * @returns CreateExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest; /** - * Verifies a ListWebhooksResponse message. + * Verifies a CreateExperimentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListWebhooksResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateExperimentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListWebhooksResponse + * @returns CreateExperimentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest; /** - * Creates a plain object from a ListWebhooksResponse message. Also converts values to other types if specified. - * @param message ListWebhooksResponse + * Creates a plain object from a CreateExperimentRequest message. Also converts values to other types if specified. + * @param message CreateExperimentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListWebhooksResponse to JSON. + * Converts this CreateExperimentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetWebhookRequest. */ - interface IGetWebhookRequest { + /** Properties of an UpdateExperimentRequest. */ + interface IUpdateExperimentRequest { - /** GetWebhookRequest name */ - name?: (string|null); + /** UpdateExperimentRequest experiment */ + experiment?: (google.cloud.dialogflow.cx.v3beta1.IExperiment|null); + + /** UpdateExperimentRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a GetWebhookRequest. */ - class GetWebhookRequest implements IGetWebhookRequest { + /** Represents an UpdateExperimentRequest. */ + class UpdateExperimentRequest implements IUpdateExperimentRequest { /** - * Constructs a new GetWebhookRequest. + * Constructs a new UpdateExperimentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest); - /** GetWebhookRequest name. */ - public name: string; + /** UpdateExperimentRequest experiment. */ + public experiment?: (google.cloud.dialogflow.cx.v3beta1.IExperiment|null); + + /** UpdateExperimentRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new GetWebhookRequest instance using the specified properties. + * Creates a new UpdateExperimentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetWebhookRequest instance + * @returns UpdateExperimentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest): google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest): google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest; /** - * Encodes the specified GetWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest.verify|verify} messages. - * @param message GetWebhookRequest message or plain object to encode + * Encodes the specified UpdateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest.verify|verify} messages. + * @param message UpdateExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest.verify|verify} messages. - * @param message GetWebhookRequest message or plain object to encode + * Encodes the specified UpdateExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest.verify|verify} messages. + * @param message UpdateExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetWebhookRequest message from the specified reader or buffer. + * Decodes an UpdateExperimentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetWebhookRequest + * @returns UpdateExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest; /** - * Decodes a GetWebhookRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateExperimentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetWebhookRequest + * @returns UpdateExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest; /** - * Verifies a GetWebhookRequest message. + * Verifies an UpdateExperimentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetWebhookRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateExperimentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetWebhookRequest + * @returns UpdateExperimentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest; /** - * Creates a plain object from a GetWebhookRequest message. Also converts values to other types if specified. - * @param message GetWebhookRequest + * Creates a plain object from an UpdateExperimentRequest message. Also converts values to other types if specified. + * @param message UpdateExperimentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetWebhookRequest to JSON. + * Converts this UpdateExperimentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateWebhookRequest. */ - interface ICreateWebhookRequest { - - /** CreateWebhookRequest parent */ - parent?: (string|null); + /** Properties of a DeleteExperimentRequest. */ + interface IDeleteExperimentRequest { - /** CreateWebhookRequest webhook */ - webhook?: (google.cloud.dialogflow.cx.v3beta1.IWebhook|null); + /** DeleteExperimentRequest name */ + name?: (string|null); } - /** Represents a CreateWebhookRequest. */ - class CreateWebhookRequest implements ICreateWebhookRequest { + /** Represents a DeleteExperimentRequest. */ + class DeleteExperimentRequest implements IDeleteExperimentRequest { /** - * Constructs a new CreateWebhookRequest. + * Constructs a new DeleteExperimentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest); - - /** CreateWebhookRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest); - /** CreateWebhookRequest webhook. */ - public webhook?: (google.cloud.dialogflow.cx.v3beta1.IWebhook|null); + /** DeleteExperimentRequest name. */ + public name: string; /** - * Creates a new CreateWebhookRequest instance using the specified properties. + * Creates a new DeleteExperimentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateWebhookRequest instance + * @returns DeleteExperimentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest): google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest): google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest; /** - * Encodes the specified CreateWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest.verify|verify} messages. - * @param message CreateWebhookRequest message or plain object to encode + * Encodes the specified DeleteExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest.verify|verify} messages. + * @param message DeleteExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest.verify|verify} messages. - * @param message CreateWebhookRequest message or plain object to encode + * Encodes the specified DeleteExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest.verify|verify} messages. + * @param message DeleteExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateWebhookRequest message from the specified reader or buffer. + * Decodes a DeleteExperimentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateWebhookRequest + * @returns DeleteExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest; /** - * Decodes a CreateWebhookRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteExperimentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateWebhookRequest + * @returns DeleteExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest; /** - * Verifies a CreateWebhookRequest message. + * Verifies a DeleteExperimentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateWebhookRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteExperimentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateWebhookRequest + * @returns DeleteExperimentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest; /** - * Creates a plain object from a CreateWebhookRequest message. Also converts values to other types if specified. - * @param message CreateWebhookRequest + * Creates a plain object from a DeleteExperimentRequest message. Also converts values to other types if specified. + * @param message DeleteExperimentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateWebhookRequest to JSON. + * Converts this DeleteExperimentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateWebhookRequest. */ - interface IUpdateWebhookRequest { - - /** UpdateWebhookRequest webhook */ - webhook?: (google.cloud.dialogflow.cx.v3beta1.IWebhook|null); + /** Properties of a StartExperimentRequest. */ + interface IStartExperimentRequest { - /** UpdateWebhookRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** StartExperimentRequest name */ + name?: (string|null); } - /** Represents an UpdateWebhookRequest. */ - class UpdateWebhookRequest implements IUpdateWebhookRequest { + /** Represents a StartExperimentRequest. */ + class StartExperimentRequest implements IStartExperimentRequest { /** - * Constructs a new UpdateWebhookRequest. + * Constructs a new StartExperimentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest); - - /** UpdateWebhookRequest webhook. */ - public webhook?: (google.cloud.dialogflow.cx.v3beta1.IWebhook|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest); - /** UpdateWebhookRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** StartExperimentRequest name. */ + public name: string; /** - * Creates a new UpdateWebhookRequest instance using the specified properties. + * Creates a new StartExperimentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateWebhookRequest instance + * @returns StartExperimentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest): google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest): google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest; /** - * Encodes the specified UpdateWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest.verify|verify} messages. - * @param message UpdateWebhookRequest message or plain object to encode + * Encodes the specified StartExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest.verify|verify} messages. + * @param message StartExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest.verify|verify} messages. - * @param message UpdateWebhookRequest message or plain object to encode + * Encodes the specified StartExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest.verify|verify} messages. + * @param message StartExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateWebhookRequest message from the specified reader or buffer. + * Decodes a StartExperimentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateWebhookRequest + * @returns StartExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest; /** - * Decodes an UpdateWebhookRequest message from the specified reader or buffer, length delimited. + * Decodes a StartExperimentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateWebhookRequest + * @returns StartExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest; /** - * Verifies an UpdateWebhookRequest message. + * Verifies a StartExperimentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateWebhookRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StartExperimentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateWebhookRequest + * @returns StartExperimentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest; /** - * Creates a plain object from an UpdateWebhookRequest message. Also converts values to other types if specified. - * @param message UpdateWebhookRequest + * Creates a plain object from a StartExperimentRequest message. Also converts values to other types if specified. + * @param message StartExperimentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateWebhookRequest to JSON. + * Converts this StartExperimentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteWebhookRequest. */ - interface IDeleteWebhookRequest { + /** Properties of a StopExperimentRequest. */ + interface IStopExperimentRequest { - /** DeleteWebhookRequest name */ + /** StopExperimentRequest name */ name?: (string|null); - - /** DeleteWebhookRequest force */ - force?: (boolean|null); } - /** Represents a DeleteWebhookRequest. */ - class DeleteWebhookRequest implements IDeleteWebhookRequest { + /** Represents a StopExperimentRequest. */ + class StopExperimentRequest implements IStopExperimentRequest { /** - * Constructs a new DeleteWebhookRequest. + * Constructs a new StopExperimentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest); - /** DeleteWebhookRequest name. */ + /** StopExperimentRequest name. */ public name: string; - /** DeleteWebhookRequest force. */ - public force: boolean; - /** - * Creates a new DeleteWebhookRequest instance using the specified properties. + * Creates a new StopExperimentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteWebhookRequest instance + * @returns StopExperimentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest): google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest): google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest; /** - * Encodes the specified DeleteWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest.verify|verify} messages. - * @param message DeleteWebhookRequest message or plain object to encode + * Encodes the specified StopExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest.verify|verify} messages. + * @param message StopExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest.verify|verify} messages. - * @param message DeleteWebhookRequest message or plain object to encode + * Encodes the specified StopExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest.verify|verify} messages. + * @param message StopExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteWebhookRequest message from the specified reader or buffer. + * Decodes a StopExperimentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteWebhookRequest + * @returns StopExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest; /** - * Decodes a DeleteWebhookRequest message from the specified reader or buffer, length delimited. + * Decodes a StopExperimentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteWebhookRequest + * @returns StopExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest; /** - * Verifies a DeleteWebhookRequest message. + * Verifies a StopExperimentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteWebhookRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StopExperimentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteWebhookRequest + * @returns StopExperimentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest; /** - * Creates a plain object from a DeleteWebhookRequest message. Also converts values to other types if specified. - * @param message DeleteWebhookRequest + * Creates a plain object from a StopExperimentRequest message. Also converts values to other types if specified. + * @param message StopExperimentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteWebhookRequest to JSON. + * Converts this StopExperimentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a WebhookRequest. */ - interface IWebhookRequest { - - /** WebhookRequest detectIntentResponseId */ - detectIntentResponseId?: (string|null); + /** Represents a SecuritySettingsService */ + class SecuritySettingsService extends $protobuf.rpc.Service { - /** WebhookRequest text */ - text?: (string|null); + /** + * Constructs a new SecuritySettingsService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** WebhookRequest triggerIntent */ - triggerIntent?: (string|null); + /** + * Creates new SecuritySettingsService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SecuritySettingsService; - /** WebhookRequest transcript */ - transcript?: (string|null); + /** + * Calls CreateSecuritySettings. + * @param request CreateSecuritySettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SecuritySettings + */ + public createSecuritySettings(request: google.cloud.dialogflow.cx.v3beta1.ICreateSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.CreateSecuritySettingsCallback): void; - /** WebhookRequest triggerEvent */ - triggerEvent?: (string|null); + /** + * Calls CreateSecuritySettings. + * @param request CreateSecuritySettingsRequest message or plain object + * @returns Promise + */ + public createSecuritySettings(request: google.cloud.dialogflow.cx.v3beta1.ICreateSecuritySettingsRequest): Promise; - /** WebhookRequest languageCode */ - languageCode?: (string|null); + /** + * Calls GetSecuritySettings. + * @param request GetSecuritySettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SecuritySettings + */ + public getSecuritySettings(request: google.cloud.dialogflow.cx.v3beta1.IGetSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.GetSecuritySettingsCallback): void; - /** WebhookRequest fulfillmentInfo */ - fulfillmentInfo?: (google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IFulfillmentInfo|null); + /** + * Calls GetSecuritySettings. + * @param request GetSecuritySettingsRequest message or plain object + * @returns Promise + */ + public getSecuritySettings(request: google.cloud.dialogflow.cx.v3beta1.IGetSecuritySettingsRequest): Promise; - /** WebhookRequest intentInfo */ - intentInfo?: (google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IIntentInfo|null); + /** + * Calls UpdateSecuritySettings. + * @param request UpdateSecuritySettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SecuritySettings + */ + public updateSecuritySettings(request: google.cloud.dialogflow.cx.v3beta1.IUpdateSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.UpdateSecuritySettingsCallback): void; - /** WebhookRequest pageInfo */ - pageInfo?: (google.cloud.dialogflow.cx.v3beta1.IPageInfo|null); + /** + * Calls UpdateSecuritySettings. + * @param request UpdateSecuritySettingsRequest message or plain object + * @returns Promise + */ + public updateSecuritySettings(request: google.cloud.dialogflow.cx.v3beta1.IUpdateSecuritySettingsRequest): Promise; - /** WebhookRequest sessionInfo */ - sessionInfo?: (google.cloud.dialogflow.cx.v3beta1.ISessionInfo|null); + /** + * Calls ListSecuritySettings. + * @param request ListSecuritySettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListSecuritySettingsResponse + */ + public listSecuritySettings(request: google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.ListSecuritySettingsCallback): void; - /** WebhookRequest messages */ - messages?: (google.cloud.dialogflow.cx.v3beta1.IResponseMessage[]|null); + /** + * Calls ListSecuritySettings. + * @param request ListSecuritySettingsRequest message or plain object + * @returns Promise + */ + public listSecuritySettings(request: google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsRequest): Promise; - /** WebhookRequest payload */ - payload?: (google.protobuf.IStruct|null); + /** + * Calls DeleteSecuritySettings. + * @param request DeleteSecuritySettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteSecuritySettings(request: google.cloud.dialogflow.cx.v3beta1.IDeleteSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.DeleteSecuritySettingsCallback): void; - /** WebhookRequest sentimentAnalysisResult */ - sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3beta1.WebhookRequest.ISentimentAnalysisResult|null); + /** + * Calls DeleteSecuritySettings. + * @param request DeleteSecuritySettingsRequest message or plain object + * @returns Promise + */ + public deleteSecuritySettings(request: google.cloud.dialogflow.cx.v3beta1.IDeleteSecuritySettingsRequest): Promise; } - /** Represents a WebhookRequest. */ - class WebhookRequest implements IWebhookRequest { + namespace SecuritySettingsService { /** - * Constructs a new WebhookRequest. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService#createSecuritySettings}. + * @param error Error, if any + * @param [response] SecuritySettings */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IWebhookRequest); - - /** WebhookRequest detectIntentResponseId. */ - public detectIntentResponseId: string; - - /** WebhookRequest text. */ - public text?: (string|null); - - /** WebhookRequest triggerIntent. */ - public triggerIntent?: (string|null); - - /** WebhookRequest transcript. */ - public transcript?: (string|null); - - /** WebhookRequest triggerEvent. */ - public triggerEvent?: (string|null); + type CreateSecuritySettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.SecuritySettings) => void; - /** WebhookRequest languageCode. */ - public languageCode: string; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService#getSecuritySettings}. + * @param error Error, if any + * @param [response] SecuritySettings + */ + type GetSecuritySettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.SecuritySettings) => void; - /** WebhookRequest fulfillmentInfo. */ - public fulfillmentInfo?: (google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IFulfillmentInfo|null); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService#updateSecuritySettings}. + * @param error Error, if any + * @param [response] SecuritySettings + */ + type UpdateSecuritySettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.SecuritySettings) => void; - /** WebhookRequest intentInfo. */ - public intentInfo?: (google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IIntentInfo|null); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService#listSecuritySettings}. + * @param error Error, if any + * @param [response] ListSecuritySettingsResponse + */ + type ListSecuritySettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse) => void; - /** WebhookRequest pageInfo. */ - public pageInfo?: (google.cloud.dialogflow.cx.v3beta1.IPageInfo|null); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService#deleteSecuritySettings}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteSecuritySettingsCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + } - /** WebhookRequest sessionInfo. */ - public sessionInfo?: (google.cloud.dialogflow.cx.v3beta1.ISessionInfo|null); + /** Properties of a GetSecuritySettingsRequest. */ + interface IGetSecuritySettingsRequest { - /** WebhookRequest messages. */ - public messages: google.cloud.dialogflow.cx.v3beta1.IResponseMessage[]; + /** GetSecuritySettingsRequest name */ + name?: (string|null); + } - /** WebhookRequest payload. */ - public payload?: (google.protobuf.IStruct|null); + /** Represents a GetSecuritySettingsRequest. */ + class GetSecuritySettingsRequest implements IGetSecuritySettingsRequest { - /** WebhookRequest sentimentAnalysisResult. */ - public sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3beta1.WebhookRequest.ISentimentAnalysisResult|null); + /** + * Constructs a new GetSecuritySettingsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetSecuritySettingsRequest); - /** WebhookRequest query. */ - public query?: ("text"|"triggerIntent"|"transcript"|"triggerEvent"); + /** GetSecuritySettingsRequest name. */ + public name: string; /** - * Creates a new WebhookRequest instance using the specified properties. + * Creates a new GetSecuritySettingsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns WebhookRequest instance + * @returns GetSecuritySettingsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IWebhookRequest): google.cloud.dialogflow.cx.v3beta1.WebhookRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetSecuritySettingsRequest): google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest; /** - * Encodes the specified WebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.verify|verify} messages. - * @param message WebhookRequest message or plain object to encode + * Encodes the specified GetSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest.verify|verify} messages. + * @param message GetSecuritySettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.verify|verify} messages. - * @param message WebhookRequest message or plain object to encode + * Encodes the specified GetSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest.verify|verify} messages. + * @param message GetSecuritySettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WebhookRequest message from the specified reader or buffer. + * Decodes a GetSecuritySettingsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WebhookRequest + * @returns GetSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.WebhookRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest; /** - * Decodes a WebhookRequest message from the specified reader or buffer, length delimited. + * Decodes a GetSecuritySettingsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WebhookRequest + * @returns GetSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.WebhookRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest; /** - * Verifies a WebhookRequest message. + * Verifies a GetSecuritySettingsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WebhookRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WebhookRequest + * @returns GetSecuritySettingsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.WebhookRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest; /** - * Creates a plain object from a WebhookRequest message. Also converts values to other types if specified. - * @param message WebhookRequest + * Creates a plain object from a GetSecuritySettingsRequest message. Also converts values to other types if specified. + * @param message GetSecuritySettingsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.WebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WebhookRequest to JSON. + * Converts this GetSecuritySettingsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace WebhookRequest { - - /** Properties of a FulfillmentInfo. */ - interface IFulfillmentInfo { + /** Properties of an UpdateSecuritySettingsRequest. */ + interface IUpdateSecuritySettingsRequest { - /** FulfillmentInfo tag */ - tag?: (string|null); - } + /** UpdateSecuritySettingsRequest securitySettings */ + securitySettings?: (google.cloud.dialogflow.cx.v3beta1.ISecuritySettings|null); - /** Represents a FulfillmentInfo. */ - class FulfillmentInfo implements IFulfillmentInfo { + /** UpdateSecuritySettingsRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } - /** - * Constructs a new FulfillmentInfo. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IFulfillmentInfo); + /** Represents an UpdateSecuritySettingsRequest. */ + class UpdateSecuritySettingsRequest implements IUpdateSecuritySettingsRequest { - /** FulfillmentInfo tag. */ - public tag: string; + /** + * Constructs a new UpdateSecuritySettingsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateSecuritySettingsRequest); - /** - * Creates a new FulfillmentInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns FulfillmentInfo instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IFulfillmentInfo): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo; + /** UpdateSecuritySettingsRequest securitySettings. */ + public securitySettings?: (google.cloud.dialogflow.cx.v3beta1.ISecuritySettings|null); - /** - * Encodes the specified FulfillmentInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.verify|verify} messages. - * @param message FulfillmentInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IFulfillmentInfo, writer?: $protobuf.Writer): $protobuf.Writer; + /** UpdateSecuritySettingsRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** - * Encodes the specified FulfillmentInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.verify|verify} messages. - * @param message FulfillmentInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IFulfillmentInfo, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new UpdateSecuritySettingsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateSecuritySettingsRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateSecuritySettingsRequest): google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest; - /** - * Decodes a FulfillmentInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FulfillmentInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo; + /** + * Encodes the specified UpdateSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest.verify|verify} messages. + * @param message UpdateSecuritySettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a FulfillmentInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FulfillmentInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo; + /** + * Encodes the specified UpdateSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest.verify|verify} messages. + * @param message UpdateSecuritySettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a FulfillmentInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes an UpdateSecuritySettingsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateSecuritySettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest; - /** - * Creates a FulfillmentInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FulfillmentInfo - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo; + /** + * Decodes an UpdateSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateSecuritySettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest; - /** - * Creates a plain object from a FulfillmentInfo message. Also converts values to other types if specified. - * @param message FulfillmentInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Verifies an UpdateSecuritySettingsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Converts this FulfillmentInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Creates an UpdateSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateSecuritySettingsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest; - /** Properties of an IntentInfo. */ - interface IIntentInfo { + /** + * Creates a plain object from an UpdateSecuritySettingsRequest message. Also converts values to other types if specified. + * @param message UpdateSecuritySettingsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** IntentInfo lastMatchedIntent */ - lastMatchedIntent?: (string|null); + /** + * Converts this UpdateSecuritySettingsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** IntentInfo displayName */ - displayName?: (string|null); + /** Properties of a ListSecuritySettingsRequest. */ + interface IListSecuritySettingsRequest { - /** IntentInfo parameters */ - parameters?: ({ [k: string]: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IIntentParameterValue }|null); + /** ListSecuritySettingsRequest parent */ + parent?: (string|null); - /** IntentInfo confidence */ - confidence?: (number|null); - } + /** ListSecuritySettingsRequest pageSize */ + pageSize?: (number|null); - /** Represents an IntentInfo. */ - class IntentInfo implements IIntentInfo { - - /** - * Constructs a new IntentInfo. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IIntentInfo); - - /** IntentInfo lastMatchedIntent. */ - public lastMatchedIntent: string; - - /** IntentInfo displayName. */ - public displayName: string; - - /** IntentInfo parameters. */ - public parameters: { [k: string]: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IIntentParameterValue }; - - /** IntentInfo confidence. */ - public confidence: number; - - /** - * Creates a new IntentInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns IntentInfo instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IIntentInfo): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo; - - /** - * Encodes the specified IntentInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.verify|verify} messages. - * @param message IntentInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IIntentInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified IntentInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.verify|verify} messages. - * @param message IntentInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IIntentInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an IntentInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns IntentInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo; - - /** - * Decodes an IntentInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns IntentInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo; - - /** - * Verifies an IntentInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an IntentInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns IntentInfo - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo; - - /** - * Creates a plain object from an IntentInfo message. Also converts values to other types if specified. - * @param message IntentInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this IntentInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace IntentInfo { - - /** Properties of an IntentParameterValue. */ - interface IIntentParameterValue { - - /** IntentParameterValue originalValue */ - originalValue?: (string|null); + /** ListSecuritySettingsRequest pageToken */ + pageToken?: (string|null); + } - /** IntentParameterValue resolvedValue */ - resolvedValue?: (google.protobuf.IValue|null); - } + /** Represents a ListSecuritySettingsRequest. */ + class ListSecuritySettingsRequest implements IListSecuritySettingsRequest { - /** Represents an IntentParameterValue. */ - class IntentParameterValue implements IIntentParameterValue { + /** + * Constructs a new ListSecuritySettingsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsRequest); - /** - * Constructs a new IntentParameterValue. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IIntentParameterValue); + /** ListSecuritySettingsRequest parent. */ + public parent: string; - /** IntentParameterValue originalValue. */ - public originalValue: string; + /** ListSecuritySettingsRequest pageSize. */ + public pageSize: number; - /** IntentParameterValue resolvedValue. */ - public resolvedValue?: (google.protobuf.IValue|null); + /** ListSecuritySettingsRequest pageToken. */ + public pageToken: string; - /** - * Creates a new IntentParameterValue instance using the specified properties. - * @param [properties] Properties to set - * @returns IntentParameterValue instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IIntentParameterValue): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue; + /** + * Creates a new ListSecuritySettingsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListSecuritySettingsRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsRequest): google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest; - /** - * Encodes the specified IntentParameterValue message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue.verify|verify} messages. - * @param message IntentParameterValue message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IIntentParameterValue, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ListSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest.verify|verify} messages. + * @param message ListSecuritySettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified IntentParameterValue message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue.verify|verify} messages. - * @param message IntentParameterValue message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IIntentParameterValue, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ListSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest.verify|verify} messages. + * @param message ListSecuritySettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an IntentParameterValue message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns IntentParameterValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue; + /** + * Decodes a ListSecuritySettingsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListSecuritySettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest; - /** - * Decodes an IntentParameterValue message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns IntentParameterValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue; + /** + * Decodes a ListSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListSecuritySettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest; - /** - * Verifies an IntentParameterValue message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies a ListSecuritySettingsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates an IntentParameterValue message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns IntentParameterValue - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue; + /** + * Creates a ListSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListSecuritySettingsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest; - /** - * Creates a plain object from an IntentParameterValue message. Also converts values to other types if specified. - * @param message IntentParameterValue - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a ListSecuritySettingsRequest message. Also converts values to other types if specified. + * @param message ListSecuritySettingsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this IntentParameterValue to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } + /** + * Converts this ListSecuritySettingsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Properties of a SentimentAnalysisResult. */ - interface ISentimentAnalysisResult { + /** Properties of a ListSecuritySettingsResponse. */ + interface IListSecuritySettingsResponse { - /** SentimentAnalysisResult score */ - score?: (number|null); + /** ListSecuritySettingsResponse securitySettings */ + securitySettings?: (google.cloud.dialogflow.cx.v3beta1.ISecuritySettings[]|null); - /** SentimentAnalysisResult magnitude */ - magnitude?: (number|null); - } + /** ListSecuritySettingsResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** Represents a SentimentAnalysisResult. */ - class SentimentAnalysisResult implements ISentimentAnalysisResult { + /** Represents a ListSecuritySettingsResponse. */ + class ListSecuritySettingsResponse implements IListSecuritySettingsResponse { - /** - * Constructs a new SentimentAnalysisResult. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.ISentimentAnalysisResult); + /** + * Constructs a new ListSecuritySettingsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsResponse); - /** SentimentAnalysisResult score. */ - public score: number; + /** ListSecuritySettingsResponse securitySettings. */ + public securitySettings: google.cloud.dialogflow.cx.v3beta1.ISecuritySettings[]; - /** SentimentAnalysisResult magnitude. */ - public magnitude: number; + /** ListSecuritySettingsResponse nextPageToken. */ + public nextPageToken: string; - /** - * Creates a new SentimentAnalysisResult instance using the specified properties. - * @param [properties] Properties to set - * @returns SentimentAnalysisResult instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.ISentimentAnalysisResult): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult; + /** + * Creates a new ListSecuritySettingsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListSecuritySettingsResponse instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsResponse): google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse; - /** - * Encodes the specified SentimentAnalysisResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult.verify|verify} messages. - * @param message SentimentAnalysisResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ListSecuritySettingsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse.verify|verify} messages. + * @param message ListSecuritySettingsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified SentimentAnalysisResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult.verify|verify} messages. - * @param message SentimentAnalysisResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ListSecuritySettingsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse.verify|verify} messages. + * @param message ListSecuritySettingsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a SentimentAnalysisResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SentimentAnalysisResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult; + /** + * Decodes a ListSecuritySettingsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListSecuritySettingsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse; - /** - * Decodes a SentimentAnalysisResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SentimentAnalysisResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult; + /** + * Decodes a ListSecuritySettingsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListSecuritySettingsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse; - /** - * Verifies a SentimentAnalysisResult message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies a ListSecuritySettingsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a SentimentAnalysisResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SentimentAnalysisResult - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult; + /** + * Creates a ListSecuritySettingsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListSecuritySettingsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse; - /** - * Creates a plain object from a SentimentAnalysisResult message. Also converts values to other types if specified. - * @param message SentimentAnalysisResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a ListSecuritySettingsResponse message. Also converts values to other types if specified. + * @param message ListSecuritySettingsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this SentimentAnalysisResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Converts this ListSecuritySettingsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Properties of a WebhookResponse. */ - interface IWebhookResponse { - - /** WebhookResponse fulfillmentResponse */ - fulfillmentResponse?: (google.cloud.dialogflow.cx.v3beta1.WebhookResponse.IFulfillmentResponse|null); - - /** WebhookResponse pageInfo */ - pageInfo?: (google.cloud.dialogflow.cx.v3beta1.IPageInfo|null); - - /** WebhookResponse sessionInfo */ - sessionInfo?: (google.cloud.dialogflow.cx.v3beta1.ISessionInfo|null); - - /** WebhookResponse payload */ - payload?: (google.protobuf.IStruct|null); + /** Properties of a CreateSecuritySettingsRequest. */ + interface ICreateSecuritySettingsRequest { - /** WebhookResponse targetPage */ - targetPage?: (string|null); + /** CreateSecuritySettingsRequest parent */ + parent?: (string|null); - /** WebhookResponse targetFlow */ - targetFlow?: (string|null); + /** CreateSecuritySettingsRequest securitySettings */ + securitySettings?: (google.cloud.dialogflow.cx.v3beta1.ISecuritySettings|null); } - /** Represents a WebhookResponse. */ - class WebhookResponse implements IWebhookResponse { + /** Represents a CreateSecuritySettingsRequest. */ + class CreateSecuritySettingsRequest implements ICreateSecuritySettingsRequest { /** - * Constructs a new WebhookResponse. + * Constructs a new CreateSecuritySettingsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IWebhookResponse); - - /** WebhookResponse fulfillmentResponse. */ - public fulfillmentResponse?: (google.cloud.dialogflow.cx.v3beta1.WebhookResponse.IFulfillmentResponse|null); - - /** WebhookResponse pageInfo. */ - public pageInfo?: (google.cloud.dialogflow.cx.v3beta1.IPageInfo|null); - - /** WebhookResponse sessionInfo. */ - public sessionInfo?: (google.cloud.dialogflow.cx.v3beta1.ISessionInfo|null); - - /** WebhookResponse payload. */ - public payload?: (google.protobuf.IStruct|null); - - /** WebhookResponse targetPage. */ - public targetPage?: (string|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateSecuritySettingsRequest); - /** WebhookResponse targetFlow. */ - public targetFlow?: (string|null); + /** CreateSecuritySettingsRequest parent. */ + public parent: string; - /** WebhookResponse transition. */ - public transition?: ("targetPage"|"targetFlow"); + /** CreateSecuritySettingsRequest securitySettings. */ + public securitySettings?: (google.cloud.dialogflow.cx.v3beta1.ISecuritySettings|null); /** - * Creates a new WebhookResponse instance using the specified properties. + * Creates a new CreateSecuritySettingsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns WebhookResponse instance + * @returns CreateSecuritySettingsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IWebhookResponse): google.cloud.dialogflow.cx.v3beta1.WebhookResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateSecuritySettingsRequest): google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest; /** - * Encodes the specified WebhookResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookResponse.verify|verify} messages. - * @param message WebhookResponse message or plain object to encode + * Encodes the specified CreateSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest.verify|verify} messages. + * @param message CreateSecuritySettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IWebhookResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WebhookResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookResponse.verify|verify} messages. - * @param message WebhookResponse message or plain object to encode + * Encodes the specified CreateSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest.verify|verify} messages. + * @param message CreateSecuritySettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IWebhookResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WebhookResponse message from the specified reader or buffer. + * Decodes a CreateSecuritySettingsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WebhookResponse + * @returns CreateSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.WebhookResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest; /** - * Decodes a WebhookResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateSecuritySettingsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WebhookResponse + * @returns CreateSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.WebhookResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest; /** - * Verifies a WebhookResponse message. + * Verifies a CreateSecuritySettingsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WebhookResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WebhookResponse + * @returns CreateSecuritySettingsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.WebhookResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest; /** - * Creates a plain object from a WebhookResponse message. Also converts values to other types if specified. - * @param message WebhookResponse + * Creates a plain object from a CreateSecuritySettingsRequest message. Also converts values to other types if specified. + * @param message CreateSecuritySettingsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.WebhookResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WebhookResponse to JSON. + * Converts this CreateSecuritySettingsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace WebhookResponse { + /** Properties of a DeleteSecuritySettingsRequest. */ + interface IDeleteSecuritySettingsRequest { - /** Properties of a FulfillmentResponse. */ - interface IFulfillmentResponse { + /** DeleteSecuritySettingsRequest name */ + name?: (string|null); + } - /** FulfillmentResponse messages */ - messages?: (google.cloud.dialogflow.cx.v3beta1.IResponseMessage[]|null); + /** Represents a DeleteSecuritySettingsRequest. */ + class DeleteSecuritySettingsRequest implements IDeleteSecuritySettingsRequest { - /** FulfillmentResponse mergeBehavior */ - mergeBehavior?: (google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior|keyof typeof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior|null); - } + /** + * Constructs a new DeleteSecuritySettingsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteSecuritySettingsRequest); - /** Represents a FulfillmentResponse. */ - class FulfillmentResponse implements IFulfillmentResponse { + /** DeleteSecuritySettingsRequest name. */ + public name: string; - /** - * Constructs a new FulfillmentResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.WebhookResponse.IFulfillmentResponse); + /** + * Creates a new DeleteSecuritySettingsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteSecuritySettingsRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteSecuritySettingsRequest): google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest; - /** FulfillmentResponse messages. */ - public messages: google.cloud.dialogflow.cx.v3beta1.IResponseMessage[]; + /** + * Encodes the specified DeleteSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest.verify|verify} messages. + * @param message DeleteSecuritySettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** FulfillmentResponse mergeBehavior. */ - public mergeBehavior: (google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior|keyof typeof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior); + /** + * Encodes the specified DeleteSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest.verify|verify} messages. + * @param message DeleteSecuritySettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new FulfillmentResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns FulfillmentResponse instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.WebhookResponse.IFulfillmentResponse): google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse; + /** + * Decodes a DeleteSecuritySettingsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteSecuritySettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest; - /** - * Encodes the specified FulfillmentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.verify|verify} messages. - * @param message FulfillmentResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.WebhookResponse.IFulfillmentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a DeleteSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteSecuritySettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest; - /** - * Encodes the specified FulfillmentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.verify|verify} messages. - * @param message FulfillmentResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.WebhookResponse.IFulfillmentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a DeleteSecuritySettingsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes a FulfillmentResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FulfillmentResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse; + /** + * Creates a DeleteSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteSecuritySettingsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest; - /** - * Decodes a FulfillmentResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FulfillmentResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse; + /** + * Creates a plain object from a DeleteSecuritySettingsRequest message. Also converts values to other types if specified. + * @param message DeleteSecuritySettingsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Verifies a FulfillmentResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Converts this DeleteSecuritySettingsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Creates a FulfillmentResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FulfillmentResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse; + /** Properties of a SecuritySettings. */ + interface ISecuritySettings { - /** - * Creates a plain object from a FulfillmentResponse message. Also converts values to other types if specified. - * @param message FulfillmentResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** SecuritySettings name */ + name?: (string|null); - /** - * Converts this FulfillmentResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** SecuritySettings displayName */ + displayName?: (string|null); - namespace FulfillmentResponse { + /** SecuritySettings redactionStrategy */ + redactionStrategy?: (google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionStrategy|keyof typeof google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionStrategy|null); - /** MergeBehavior enum. */ - enum MergeBehavior { - MERGE_BEHAVIOR_UNSPECIFIED = 0, - APPEND = 1, - REPLACE = 2 - } - } - } + /** SecuritySettings redactionScope */ + redactionScope?: (google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionScope|keyof typeof google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionScope|null); - /** Properties of a PageInfo. */ - interface IPageInfo { + /** SecuritySettings inspectTemplate */ + inspectTemplate?: (string|null); - /** PageInfo currentPage */ - currentPage?: (string|null); + /** SecuritySettings deidentifyTemplate */ + deidentifyTemplate?: (string|null); - /** PageInfo displayName */ - displayName?: (string|null); + /** SecuritySettings retentionWindowDays */ + retentionWindowDays?: (number|null); - /** PageInfo formInfo */ - formInfo?: (google.cloud.dialogflow.cx.v3beta1.PageInfo.IFormInfo|null); + /** SecuritySettings purgeDataTypes */ + purgeDataTypes?: (google.cloud.dialogflow.cx.v3beta1.SecuritySettings.PurgeDataType[]|null); + + /** SecuritySettings insightsExportSettings */ + insightsExportSettings?: (google.cloud.dialogflow.cx.v3beta1.SecuritySettings.IInsightsExportSettings|null); } - /** Represents a PageInfo. */ - class PageInfo implements IPageInfo { + /** Represents a SecuritySettings. */ + class SecuritySettings implements ISecuritySettings { /** - * Constructs a new PageInfo. + * Constructs a new SecuritySettings. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IPageInfo); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISecuritySettings); - /** PageInfo currentPage. */ - public currentPage: string; + /** SecuritySettings name. */ + public name: string; - /** PageInfo displayName. */ + /** SecuritySettings displayName. */ public displayName: string; - /** PageInfo formInfo. */ - public formInfo?: (google.cloud.dialogflow.cx.v3beta1.PageInfo.IFormInfo|null); + /** SecuritySettings redactionStrategy. */ + public redactionStrategy: (google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionStrategy|keyof typeof google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionStrategy); + + /** SecuritySettings redactionScope. */ + public redactionScope: (google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionScope|keyof typeof google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionScope); + + /** SecuritySettings inspectTemplate. */ + public inspectTemplate: string; + + /** SecuritySettings deidentifyTemplate. */ + public deidentifyTemplate: string; + + /** SecuritySettings retentionWindowDays. */ + public retentionWindowDays?: (number|null); + + /** SecuritySettings purgeDataTypes. */ + public purgeDataTypes: google.cloud.dialogflow.cx.v3beta1.SecuritySettings.PurgeDataType[]; + + /** SecuritySettings insightsExportSettings. */ + public insightsExportSettings?: (google.cloud.dialogflow.cx.v3beta1.SecuritySettings.IInsightsExportSettings|null); + + /** SecuritySettings dataRetention. */ + public dataRetention?: "retentionWindowDays"; /** - * Creates a new PageInfo instance using the specified properties. + * Creates a new SecuritySettings instance using the specified properties. * @param [properties] Properties to set - * @returns PageInfo instance + * @returns SecuritySettings instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IPageInfo): google.cloud.dialogflow.cx.v3beta1.PageInfo; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ISecuritySettings): google.cloud.dialogflow.cx.v3beta1.SecuritySettings; /** - * Encodes the specified PageInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.PageInfo.verify|verify} messages. - * @param message PageInfo message or plain object to encode + * Encodes the specified SecuritySettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettings.verify|verify} messages. + * @param message SecuritySettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IPageInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ISecuritySettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PageInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.PageInfo.verify|verify} messages. - * @param message PageInfo message or plain object to encode + * Encodes the specified SecuritySettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettings.verify|verify} messages. + * @param message SecuritySettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IPageInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ISecuritySettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PageInfo message from the specified reader or buffer. + * Decodes a SecuritySettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PageInfo + * @returns SecuritySettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.PageInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.SecuritySettings; /** - * Decodes a PageInfo message from the specified reader or buffer, length delimited. + * Decodes a SecuritySettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PageInfo + * @returns SecuritySettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.PageInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.SecuritySettings; /** - * Verifies a PageInfo message. + * Verifies a SecuritySettings message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PageInfo message from a plain object. Also converts values to their respective internal types. + * Creates a SecuritySettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PageInfo + * @returns SecuritySettings */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.PageInfo; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SecuritySettings; /** - * Creates a plain object from a PageInfo message. Also converts values to other types if specified. - * @param message PageInfo + * Creates a plain object from a SecuritySettings message. Also converts values to other types if specified. + * @param message SecuritySettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.PageInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.SecuritySettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PageInfo to JSON. + * Converts this SecuritySettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace PageInfo { + namespace SecuritySettings { - /** Properties of a FormInfo. */ - interface IFormInfo { + /** RedactionStrategy enum. */ + enum RedactionStrategy { + REDACTION_STRATEGY_UNSPECIFIED = 0, + REDACT_WITH_SERVICE = 1 + } - /** FormInfo parameterInfo */ - parameterInfo?: (google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.IParameterInfo[]|null); + /** RedactionScope enum. */ + enum RedactionScope { + REDACTION_SCOPE_UNSPECIFIED = 0, + REDACT_DISK_STORAGE = 2 } - /** Represents a FormInfo. */ - class FormInfo implements IFormInfo { + /** PurgeDataType enum. */ + enum PurgeDataType { + PURGE_DATA_TYPE_UNSPECIFIED = 0, + DIALOGFLOW_HISTORY = 1 + } + + /** Properties of an InsightsExportSettings. */ + interface IInsightsExportSettings { + + /** InsightsExportSettings enableInsightsExport */ + enableInsightsExport?: (boolean|null); + } + + /** Represents an InsightsExportSettings. */ + class InsightsExportSettings implements IInsightsExportSettings { /** - * Constructs a new FormInfo. + * Constructs a new InsightsExportSettings. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.PageInfo.IFormInfo); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.SecuritySettings.IInsightsExportSettings); - /** FormInfo parameterInfo. */ - public parameterInfo: google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.IParameterInfo[]; + /** InsightsExportSettings enableInsightsExport. */ + public enableInsightsExport: boolean; /** - * Creates a new FormInfo instance using the specified properties. + * Creates a new InsightsExportSettings instance using the specified properties. * @param [properties] Properties to set - * @returns FormInfo instance + * @returns InsightsExportSettings instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.PageInfo.IFormInfo): google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.SecuritySettings.IInsightsExportSettings): google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings; /** - * Encodes the specified FormInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.verify|verify} messages. - * @param message FormInfo message or plain object to encode + * Encodes the specified InsightsExportSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings.verify|verify} messages. + * @param message InsightsExportSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.PageInfo.IFormInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.SecuritySettings.IInsightsExportSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FormInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.verify|verify} messages. - * @param message FormInfo message or plain object to encode + * Encodes the specified InsightsExportSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings.verify|verify} messages. + * @param message InsightsExportSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.PageInfo.IFormInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.SecuritySettings.IInsightsExportSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FormInfo message from the specified reader or buffer. + * Decodes an InsightsExportSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FormInfo + * @returns InsightsExportSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings; /** - * Decodes a FormInfo message from the specified reader or buffer, length delimited. + * Decodes an InsightsExportSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FormInfo + * @returns InsightsExportSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings; /** - * Verifies a FormInfo message. + * Verifies an InsightsExportSettings message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FormInfo message from a plain object. Also converts values to their respective internal types. + * Creates an InsightsExportSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FormInfo + * @returns InsightsExportSettings */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings; /** - * Creates a plain object from a FormInfo message. Also converts values to other types if specified. - * @param message FormInfo + * Creates a plain object from an InsightsExportSettings message. Also converts values to other types if specified. + * @param message InsightsExportSettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FormInfo to JSON. + * Converts this InsightsExportSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } + } - namespace FormInfo { + /** Represents a Versions */ + class Versions extends $protobuf.rpc.Service { - /** Properties of a ParameterInfo. */ - interface IParameterInfo { + /** + * Constructs a new Versions service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** ParameterInfo displayName */ - displayName?: (string|null); + /** + * Creates new Versions service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Versions; - /** ParameterInfo required */ - required?: (boolean|null); + /** + * Calls ListVersions. + * @param request ListVersionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListVersionsResponse + */ + public listVersions(request: google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Versions.ListVersionsCallback): void; - /** ParameterInfo state */ - state?: (google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.ParameterState|keyof typeof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.ParameterState|null); + /** + * Calls ListVersions. + * @param request ListVersionsRequest message or plain object + * @returns Promise + */ + public listVersions(request: google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest): Promise; - /** ParameterInfo value */ - value?: (google.protobuf.IValue|null); + /** + * Calls GetVersion. + * @param request GetVersionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Version + */ + public getVersion(request: google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest, callback: google.cloud.dialogflow.cx.v3beta1.Versions.GetVersionCallback): void; - /** ParameterInfo justCollected */ - justCollected?: (boolean|null); - } + /** + * Calls GetVersion. + * @param request GetVersionRequest message or plain object + * @returns Promise + */ + public getVersion(request: google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest): Promise; - /** Represents a ParameterInfo. */ - class ParameterInfo implements IParameterInfo { + /** + * Calls CreateVersion. + * @param request CreateVersionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createVersion(request: google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest, callback: google.cloud.dialogflow.cx.v3beta1.Versions.CreateVersionCallback): void; - /** - * Constructs a new ParameterInfo. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.IParameterInfo); + /** + * Calls CreateVersion. + * @param request CreateVersionRequest message or plain object + * @returns Promise + */ + public createVersion(request: google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest): Promise; - /** ParameterInfo displayName. */ - public displayName: string; + /** + * Calls UpdateVersion. + * @param request UpdateVersionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Version + */ + public updateVersion(request: google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest, callback: google.cloud.dialogflow.cx.v3beta1.Versions.UpdateVersionCallback): void; - /** ParameterInfo required. */ - public required: boolean; + /** + * Calls UpdateVersion. + * @param request UpdateVersionRequest message or plain object + * @returns Promise + */ + public updateVersion(request: google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest): Promise; - /** ParameterInfo state. */ - public state: (google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.ParameterState|keyof typeof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.ParameterState); + /** + * Calls DeleteVersion. + * @param request DeleteVersionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteVersion(request: google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest, callback: google.cloud.dialogflow.cx.v3beta1.Versions.DeleteVersionCallback): void; - /** ParameterInfo value. */ - public value?: (google.protobuf.IValue|null); + /** + * Calls DeleteVersion. + * @param request DeleteVersionRequest message or plain object + * @returns Promise + */ + public deleteVersion(request: google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest): Promise; - /** ParameterInfo justCollected. */ - public justCollected: boolean; + /** + * Calls LoadVersion. + * @param request LoadVersionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public loadVersion(request: google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest, callback: google.cloud.dialogflow.cx.v3beta1.Versions.LoadVersionCallback): void; - /** - * Creates a new ParameterInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns ParameterInfo instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.IParameterInfo): google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo; + /** + * Calls LoadVersion. + * @param request LoadVersionRequest message or plain object + * @returns Promise + */ + public loadVersion(request: google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest): Promise; - /** - * Encodes the specified ParameterInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.verify|verify} messages. - * @param message ParameterInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.IParameterInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ParameterInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.verify|verify} messages. - * @param message ParameterInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.IParameterInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ParameterInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ParameterInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo; - - /** - * Decodes a ParameterInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ParameterInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo; - - /** - * Verifies a ParameterInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ParameterInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ParameterInfo - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo; - - /** - * Creates a plain object from a ParameterInfo message. Also converts values to other types if specified. - * @param message ParameterInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ParameterInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace ParameterInfo { - - /** ParameterState enum. */ - enum ParameterState { - PARAMETER_STATE_UNSPECIFIED = 0, - EMPTY = 1, - INVALID = 2, - FILLED = 3 - } - } - } - } - - /** Properties of a SessionInfo. */ - interface ISessionInfo { - - /** SessionInfo session */ - session?: (string|null); - - /** SessionInfo parameters */ - parameters?: ({ [k: string]: google.protobuf.IValue }|null); - } - - /** Represents a SessionInfo. */ - class SessionInfo implements ISessionInfo { - - /** - * Constructs a new SessionInfo. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISessionInfo); - - /** SessionInfo session. */ - public session: string; - - /** SessionInfo parameters. */ - public parameters: { [k: string]: google.protobuf.IValue }; - - /** - * Creates a new SessionInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns SessionInfo instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ISessionInfo): google.cloud.dialogflow.cx.v3beta1.SessionInfo; - - /** - * Encodes the specified SessionInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SessionInfo.verify|verify} messages. - * @param message SessionInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ISessionInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SessionInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SessionInfo.verify|verify} messages. - * @param message SessionInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ISessionInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SessionInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SessionInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.SessionInfo; - - /** - * Decodes a SessionInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SessionInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.SessionInfo; - - /** - * Verifies a SessionInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SessionInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SessionInfo - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SessionInfo; - - /** - * Creates a plain object from a SessionInfo message. Also converts values to other types if specified. - * @param message SessionInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.SessionInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SessionInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Represents an Experiments */ - class Experiments extends $protobuf.rpc.Service { - - /** - * Constructs a new Experiments service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new Experiments service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Experiments; - - /** - * Calls ListExperiments. - * @param request ListExperimentsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListExperimentsResponse - */ - public listExperiments(request: google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Experiments.ListExperimentsCallback): void; - - /** - * Calls ListExperiments. - * @param request ListExperimentsRequest message or plain object - * @returns Promise - */ - public listExperiments(request: google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest): Promise; - - /** - * Calls GetExperiment. - * @param request GetExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Experiment - */ - public getExperiment(request: google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Experiments.GetExperimentCallback): void; - - /** - * Calls GetExperiment. - * @param request GetExperimentRequest message or plain object - * @returns Promise - */ - public getExperiment(request: google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest): Promise; - - /** - * Calls CreateExperiment. - * @param request CreateExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Experiment - */ - public createExperiment(request: google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Experiments.CreateExperimentCallback): void; - - /** - * Calls CreateExperiment. - * @param request CreateExperimentRequest message or plain object - * @returns Promise - */ - public createExperiment(request: google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest): Promise; - - /** - * Calls UpdateExperiment. - * @param request UpdateExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Experiment - */ - public updateExperiment(request: google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Experiments.UpdateExperimentCallback): void; - - /** - * Calls UpdateExperiment. - * @param request UpdateExperimentRequest message or plain object - * @returns Promise - */ - public updateExperiment(request: google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest): Promise; - - /** - * Calls DeleteExperiment. - * @param request DeleteExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public deleteExperiment(request: google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Experiments.DeleteExperimentCallback): void; - - /** - * Calls DeleteExperiment. - * @param request DeleteExperimentRequest message or plain object - * @returns Promise - */ - public deleteExperiment(request: google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest): Promise; - - /** - * Calls StartExperiment. - * @param request StartExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Experiment - */ - public startExperiment(request: google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Experiments.StartExperimentCallback): void; - - /** - * Calls StartExperiment. - * @param request StartExperimentRequest message or plain object - * @returns Promise - */ - public startExperiment(request: google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest): Promise; - - /** - * Calls StopExperiment. - * @param request StopExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Experiment - */ - public stopExperiment(request: google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Experiments.StopExperimentCallback): void; + /** + * Calls CompareVersions. + * @param request CompareVersionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CompareVersionsResponse + */ + public compareVersions(request: google.cloud.dialogflow.cx.v3beta1.ICompareVersionsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Versions.CompareVersionsCallback): void; /** - * Calls StopExperiment. - * @param request StopExperimentRequest message or plain object + * Calls CompareVersions. + * @param request CompareVersionsRequest message or plain object * @returns Promise */ - public stopExperiment(request: google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest): Promise; + public compareVersions(request: google.cloud.dialogflow.cx.v3beta1.ICompareVersionsRequest): Promise; } - namespace Experiments { + namespace Versions { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#listExperiments}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#listVersions}. * @param error Error, if any - * @param [response] ListExperimentsResponse + * @param [response] ListVersionsResponse */ - type ListExperimentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse) => void; + type ListVersionsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#getExperiment}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#getVersion}. * @param error Error, if any - * @param [response] Experiment + * @param [response] Version */ - type GetExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Experiment) => void; + type GetVersionCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Version) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#createExperiment}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#createVersion}. * @param error Error, if any - * @param [response] Experiment + * @param [response] Operation */ - type CreateExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Experiment) => void; + type CreateVersionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#updateExperiment}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#updateVersion}. * @param error Error, if any - * @param [response] Experiment + * @param [response] Version */ - type UpdateExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Experiment) => void; + type UpdateVersionCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Version) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#deleteExperiment}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#deleteVersion}. * @param error Error, if any * @param [response] Empty */ - type DeleteExperimentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + type DeleteVersionCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#startExperiment}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#loadVersion}. * @param error Error, if any - * @param [response] Experiment + * @param [response] Operation */ - type StartExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Experiment) => void; + type LoadVersionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#stopExperiment}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#compareVersions}. * @param error Error, if any - * @param [response] Experiment + * @param [response] CompareVersionsResponse */ - type StopExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Experiment) => void; + type CompareVersionsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse) => void; } - /** Properties of an Experiment. */ - interface IExperiment { - - /** Experiment name */ - name?: (string|null); - - /** Experiment displayName */ - displayName?: (string|null); - - /** Experiment description */ - description?: (string|null); - - /** Experiment state */ - state?: (google.cloud.dialogflow.cx.v3beta1.Experiment.State|keyof typeof google.cloud.dialogflow.cx.v3beta1.Experiment.State|null); - - /** Experiment definition */ - definition?: (google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition|null); - - /** Experiment rolloutConfig */ - rolloutConfig?: (google.cloud.dialogflow.cx.v3beta1.IRolloutConfig|null); - - /** Experiment rolloutState */ - rolloutState?: (google.cloud.dialogflow.cx.v3beta1.IRolloutState|null); - - /** Experiment rolloutFailureReason */ - rolloutFailureReason?: (string|null); - - /** Experiment result */ - result?: (google.cloud.dialogflow.cx.v3beta1.Experiment.IResult|null); - - /** Experiment createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** Experiment startTime */ - startTime?: (google.protobuf.ITimestamp|null); - - /** Experiment endTime */ - endTime?: (google.protobuf.ITimestamp|null); - - /** Experiment lastUpdateTime */ - lastUpdateTime?: (google.protobuf.ITimestamp|null); - - /** Experiment experimentLength */ - experimentLength?: (google.protobuf.IDuration|null); + /** Properties of a CreateVersionOperationMetadata. */ + interface ICreateVersionOperationMetadata { - /** Experiment variantsHistory */ - variantsHistory?: (google.cloud.dialogflow.cx.v3beta1.IVariantsHistory[]|null); + /** CreateVersionOperationMetadata version */ + version?: (string|null); } - /** Represents an Experiment. */ - class Experiment implements IExperiment { + /** Represents a CreateVersionOperationMetadata. */ + class CreateVersionOperationMetadata implements ICreateVersionOperationMetadata { /** - * Constructs a new Experiment. + * Constructs a new CreateVersionOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExperiment); - - /** Experiment name. */ - public name: string; - - /** Experiment displayName. */ - public displayName: string; - - /** Experiment description. */ - public description: string; - - /** Experiment state. */ - public state: (google.cloud.dialogflow.cx.v3beta1.Experiment.State|keyof typeof google.cloud.dialogflow.cx.v3beta1.Experiment.State); - - /** Experiment definition. */ - public definition?: (google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition|null); - - /** Experiment rolloutConfig. */ - public rolloutConfig?: (google.cloud.dialogflow.cx.v3beta1.IRolloutConfig|null); - - /** Experiment rolloutState. */ - public rolloutState?: (google.cloud.dialogflow.cx.v3beta1.IRolloutState|null); - - /** Experiment rolloutFailureReason. */ - public rolloutFailureReason: string; - - /** Experiment result. */ - public result?: (google.cloud.dialogflow.cx.v3beta1.Experiment.IResult|null); - - /** Experiment createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** Experiment startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); - - /** Experiment endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); - - /** Experiment lastUpdateTime. */ - public lastUpdateTime?: (google.protobuf.ITimestamp|null); - - /** Experiment experimentLength. */ - public experimentLength?: (google.protobuf.IDuration|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateVersionOperationMetadata); - /** Experiment variantsHistory. */ - public variantsHistory: google.cloud.dialogflow.cx.v3beta1.IVariantsHistory[]; + /** CreateVersionOperationMetadata version. */ + public version: string; /** - * Creates a new Experiment instance using the specified properties. + * Creates a new CreateVersionOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns Experiment instance + * @returns CreateVersionOperationMetadata instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IExperiment): google.cloud.dialogflow.cx.v3beta1.Experiment; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateVersionOperationMetadata): google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata; /** - * Encodes the specified Experiment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.verify|verify} messages. - * @param message Experiment message or plain object to encode + * Encodes the specified CreateVersionOperationMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata.verify|verify} messages. + * @param message CreateVersionOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IExperiment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateVersionOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Experiment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.verify|verify} messages. - * @param message Experiment message or plain object to encode + * Encodes the specified CreateVersionOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata.verify|verify} messages. + * @param message CreateVersionOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IExperiment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateVersionOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Experiment message from the specified reader or buffer. + * Decodes a CreateVersionOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Experiment + * @returns CreateVersionOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Experiment; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata; /** - * Decodes an Experiment message from the specified reader or buffer, length delimited. + * Decodes a CreateVersionOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Experiment + * @returns CreateVersionOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Experiment; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata; /** - * Verifies an Experiment message. + * Verifies a CreateVersionOperationMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an Experiment message from a plain object. Also converts values to their respective internal types. + * Creates a CreateVersionOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Experiment + * @returns CreateVersionOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Experiment; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata; /** - * Creates a plain object from an Experiment message. Also converts values to other types if specified. - * @param message Experiment + * Creates a plain object from a CreateVersionOperationMetadata message. Also converts values to other types if specified. + * @param message CreateVersionOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Experiment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Experiment to JSON. + * Converts this CreateVersionOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Experiment { + /** Properties of a Version. */ + interface IVersion { - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - DRAFT = 1, - RUNNING = 2, - DONE = 3, - ROLLOUT_FAILED = 4 - } + /** Version name */ + name?: (string|null); - /** Properties of a Definition. */ - interface IDefinition { + /** Version displayName */ + displayName?: (string|null); - /** Definition condition */ - condition?: (string|null); + /** Version description */ + description?: (string|null); - /** Definition versionVariants */ - versionVariants?: (google.cloud.dialogflow.cx.v3beta1.IVersionVariants|null); - } + /** Version nluSettings */ + nluSettings?: (google.cloud.dialogflow.cx.v3beta1.INluSettings|null); - /** Represents a Definition. */ - class Definition implements IDefinition { + /** Version createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** - * Constructs a new Definition. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition); + /** Version state */ + state?: (google.cloud.dialogflow.cx.v3beta1.Version.State|keyof typeof google.cloud.dialogflow.cx.v3beta1.Version.State|null); + } - /** Definition condition. */ - public condition: string; + /** Represents a Version. */ + class Version implements IVersion { - /** Definition versionVariants. */ - public versionVariants?: (google.cloud.dialogflow.cx.v3beta1.IVersionVariants|null); - - /** Definition variants. */ - public variants?: "versionVariants"; - - /** - * Creates a new Definition instance using the specified properties. - * @param [properties] Properties to set - * @returns Definition instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition): google.cloud.dialogflow.cx.v3beta1.Experiment.Definition; - - /** - * Encodes the specified Definition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.verify|verify} messages. - * @param message Definition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Definition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.verify|verify} messages. - * @param message Definition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Definition message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Definition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Experiment.Definition; - - /** - * Decodes a Definition message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Definition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Experiment.Definition; - - /** - * Verifies a Definition message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Definition message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Definition - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Experiment.Definition; - - /** - * Creates a plain object from a Definition message. Also converts values to other types if specified. - * @param message Definition - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Definition, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Definition to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a Result. */ - interface IResult { - - /** Result versionMetrics */ - versionMetrics?: (google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics[]|null); - - /** Result lastUpdateTime */ - lastUpdateTime?: (google.protobuf.ITimestamp|null); - } - - /** Represents a Result. */ - class Result implements IResult { - - /** - * Constructs a new Result. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.IResult); - - /** Result versionMetrics. */ - public versionMetrics: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics[]; - - /** Result lastUpdateTime. */ - public lastUpdateTime?: (google.protobuf.ITimestamp|null); - - /** - * Creates a new Result instance using the specified properties. - * @param [properties] Properties to set - * @returns Result instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.IResult): google.cloud.dialogflow.cx.v3beta1.Experiment.Result; - - /** - * Encodes the specified Result message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.verify|verify} messages. - * @param message Result message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Experiment.IResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Result message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.verify|verify} messages. - * @param message Result message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Experiment.IResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Result message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Result - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Experiment.Result; - - /** - * Decodes a Result message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Result - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Experiment.Result; - - /** - * Verifies a Result message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Result message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Result - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Experiment.Result; - - /** - * Creates a plain object from a Result message. Also converts values to other types if specified. - * @param message Result - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Result to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace Result { - - /** MetricType enum. */ - enum MetricType { - METRIC_UNSPECIFIED = 0, - CONTAINED_SESSION_NO_CALLBACK_RATE = 1, - LIVE_AGENT_HANDOFF_RATE = 2, - CALLBACK_SESSION_RATE = 3, - ABANDONED_SESSION_RATE = 4, - SESSION_END_RATE = 5 - } - - /** CountType enum. */ - enum CountType { - COUNT_TYPE_UNSPECIFIED = 0, - TOTAL_NO_MATCH_COUNT = 1, - TOTAL_TURN_COUNT = 2, - AVERAGE_TURN_COUNT = 3 - } - - /** Properties of a ConfidenceInterval. */ - interface IConfidenceInterval { - - /** ConfidenceInterval confidenceLevel */ - confidenceLevel?: (number|null); - - /** ConfidenceInterval ratio */ - ratio?: (number|null); - - /** ConfidenceInterval lowerBound */ - lowerBound?: (number|null); - - /** ConfidenceInterval upperBound */ - upperBound?: (number|null); - } - - /** Represents a ConfidenceInterval. */ - class ConfidenceInterval implements IConfidenceInterval { - - /** - * Constructs a new ConfidenceInterval. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval); - - /** ConfidenceInterval confidenceLevel. */ - public confidenceLevel: number; - - /** ConfidenceInterval ratio. */ - public ratio: number; - - /** ConfidenceInterval lowerBound. */ - public lowerBound: number; - - /** ConfidenceInterval upperBound. */ - public upperBound: number; - - /** - * Creates a new ConfidenceInterval instance using the specified properties. - * @param [properties] Properties to set - * @returns ConfidenceInterval instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval; - - /** - * Encodes the specified ConfidenceInterval message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.verify|verify} messages. - * @param message ConfidenceInterval message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ConfidenceInterval message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.verify|verify} messages. - * @param message ConfidenceInterval message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ConfidenceInterval message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ConfidenceInterval - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval; - - /** - * Decodes a ConfidenceInterval message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ConfidenceInterval - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval; - - /** - * Verifies a ConfidenceInterval message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ConfidenceInterval message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ConfidenceInterval - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval; - - /** - * Creates a plain object from a ConfidenceInterval message. Also converts values to other types if specified. - * @param message ConfidenceInterval - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ConfidenceInterval to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a Metric. */ - interface IMetric { - - /** Metric type */ - type?: (google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType|keyof typeof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType|null); - - /** Metric countType */ - countType?: (google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType|keyof typeof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType|null); - - /** Metric ratio */ - ratio?: (number|null); - - /** Metric count */ - count?: (number|null); - - /** Metric confidenceInterval */ - confidenceInterval?: (google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval|null); - } - - /** Represents a Metric. */ - class Metric implements IMetric { - - /** - * Constructs a new Metric. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric); - - /** Metric type. */ - public type: (google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType|keyof typeof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType); - - /** Metric countType. */ - public countType: (google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType|keyof typeof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType); - - /** Metric ratio. */ - public ratio?: (number|null); - - /** Metric count. */ - public count?: (number|null); - - /** Metric confidenceInterval. */ - public confidenceInterval?: (google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval|null); - - /** Metric value. */ - public value?: ("ratio"|"count"); - - /** - * Creates a new Metric instance using the specified properties. - * @param [properties] Properties to set - * @returns Metric instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric; - - /** - * Encodes the specified Metric message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.verify|verify} messages. - * @param message Metric message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.verify|verify} messages. - * @param message Metric message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Metric message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric; - - /** - * Decodes a Metric message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric; - - /** - * Verifies a Metric message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Metric message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Metric - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric; - - /** - * Creates a plain object from a Metric message. Also converts values to other types if specified. - * @param message Metric - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Metric to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a VersionMetrics. */ - interface IVersionMetrics { - - /** VersionMetrics version */ - version?: (string|null); - - /** VersionMetrics metrics */ - metrics?: (google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric[]|null); - - /** VersionMetrics sessionCount */ - sessionCount?: (number|null); - } - - /** Represents a VersionMetrics. */ - class VersionMetrics implements IVersionMetrics { - - /** - * Constructs a new VersionMetrics. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics); - - /** VersionMetrics version. */ - public version: string; - - /** VersionMetrics metrics. */ - public metrics: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric[]; - - /** VersionMetrics sessionCount. */ - public sessionCount: number; - - /** - * Creates a new VersionMetrics instance using the specified properties. - * @param [properties] Properties to set - * @returns VersionMetrics instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics; - - /** - * Encodes the specified VersionMetrics message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.verify|verify} messages. - * @param message VersionMetrics message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified VersionMetrics message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.verify|verify} messages. - * @param message VersionMetrics message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VersionMetrics message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VersionMetrics - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics; - - /** - * Decodes a VersionMetrics message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VersionMetrics - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics; - - /** - * Verifies a VersionMetrics message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a VersionMetrics message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VersionMetrics - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics; - - /** - * Creates a plain object from a VersionMetrics message. Also converts values to other types if specified. - * @param message VersionMetrics - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this VersionMetrics to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - } + /** + * Constructs a new Version. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IVersion); - /** Properties of a VersionVariants. */ - interface IVersionVariants { + /** Version name. */ + public name: string; - /** VersionVariants variants */ - variants?: (google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant[]|null); - } + /** Version displayName. */ + public displayName: string; - /** Represents a VersionVariants. */ - class VersionVariants implements IVersionVariants { + /** Version description. */ + public description: string; - /** - * Constructs a new VersionVariants. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IVersionVariants); + /** Version nluSettings. */ + public nluSettings?: (google.cloud.dialogflow.cx.v3beta1.INluSettings|null); - /** VersionVariants variants. */ - public variants: google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant[]; + /** Version createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Version state. */ + public state: (google.cloud.dialogflow.cx.v3beta1.Version.State|keyof typeof google.cloud.dialogflow.cx.v3beta1.Version.State); /** - * Creates a new VersionVariants instance using the specified properties. + * Creates a new Version instance using the specified properties. * @param [properties] Properties to set - * @returns VersionVariants instance + * @returns Version instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IVersionVariants): google.cloud.dialogflow.cx.v3beta1.VersionVariants; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IVersion): google.cloud.dialogflow.cx.v3beta1.Version; /** - * Encodes the specified VersionVariants message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VersionVariants.verify|verify} messages. - * @param message VersionVariants message or plain object to encode + * Encodes the specified Version message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Version.verify|verify} messages. + * @param message Version message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IVersionVariants, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VersionVariants message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VersionVariants.verify|verify} messages. - * @param message VersionVariants message or plain object to encode + * Encodes the specified Version message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Version.verify|verify} messages. + * @param message Version message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IVersionVariants, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VersionVariants message from the specified reader or buffer. + * Decodes a Version message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VersionVariants + * @returns Version * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.VersionVariants; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Version; /** - * Decodes a VersionVariants message from the specified reader or buffer, length delimited. + * Decodes a Version message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VersionVariants + * @returns Version * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.VersionVariants; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Version; /** - * Verifies a VersionVariants message. + * Verifies a Version message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a VersionVariants message from a plain object. Also converts values to their respective internal types. + * Creates a Version message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VersionVariants + * @returns Version */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.VersionVariants; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Version; /** - * Creates a plain object from a VersionVariants message. Also converts values to other types if specified. - * @param message VersionVariants + * Creates a plain object from a Version message. Also converts values to other types if specified. + * @param message Version * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.VersionVariants, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Version, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VersionVariants to JSON. + * Converts this Version to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace VersionVariants { - - /** Properties of a Variant. */ - interface IVariant { - - /** Variant version */ - version?: (string|null); - - /** Variant trafficAllocation */ - trafficAllocation?: (number|null); - - /** Variant isControlGroup */ - isControlGroup?: (boolean|null); - } - - /** Represents a Variant. */ - class Variant implements IVariant { - - /** - * Constructs a new Variant. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant); - - /** Variant version. */ - public version: string; - - /** Variant trafficAllocation. */ - public trafficAllocation: number; - - /** Variant isControlGroup. */ - public isControlGroup: boolean; - - /** - * Creates a new Variant instance using the specified properties. - * @param [properties] Properties to set - * @returns Variant instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant): google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant; - - /** - * Encodes the specified Variant message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.verify|verify} messages. - * @param message Variant message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Variant message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.verify|verify} messages. - * @param message Variant message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Variant message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Variant - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant; - - /** - * Decodes a Variant message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Variant - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant; - - /** - * Verifies a Variant message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Variant message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Variant - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant; - - /** - * Creates a plain object from a Variant message. Also converts values to other types if specified. - * @param message Variant - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant, options?: $protobuf.IConversionOptions): { [k: string]: any }; + namespace Version { - /** - * Converts this Variant to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + RUNNING = 1, + SUCCEEDED = 2, + FAILED = 3 } } - /** Properties of a RolloutConfig. */ - interface IRolloutConfig { + /** Properties of a ListVersionsRequest. */ + interface IListVersionsRequest { - /** RolloutConfig rolloutSteps */ - rolloutSteps?: (google.cloud.dialogflow.cx.v3beta1.RolloutConfig.IRolloutStep[]|null); + /** ListVersionsRequest parent */ + parent?: (string|null); - /** RolloutConfig rolloutCondition */ - rolloutCondition?: (string|null); + /** ListVersionsRequest pageSize */ + pageSize?: (number|null); - /** RolloutConfig failureCondition */ - failureCondition?: (string|null); + /** ListVersionsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a RolloutConfig. */ - class RolloutConfig implements IRolloutConfig { + /** Represents a ListVersionsRequest. */ + class ListVersionsRequest implements IListVersionsRequest { /** - * Constructs a new RolloutConfig. + * Constructs a new ListVersionsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRolloutConfig); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest); - /** RolloutConfig rolloutSteps. */ - public rolloutSteps: google.cloud.dialogflow.cx.v3beta1.RolloutConfig.IRolloutStep[]; + /** ListVersionsRequest parent. */ + public parent: string; - /** RolloutConfig rolloutCondition. */ - public rolloutCondition: string; + /** ListVersionsRequest pageSize. */ + public pageSize: number; - /** RolloutConfig failureCondition. */ - public failureCondition: string; + /** ListVersionsRequest pageToken. */ + public pageToken: string; /** - * Creates a new RolloutConfig instance using the specified properties. + * Creates a new ListVersionsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RolloutConfig instance + * @returns ListVersionsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IRolloutConfig): google.cloud.dialogflow.cx.v3beta1.RolloutConfig; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest): google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest; /** - * Encodes the specified RolloutConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RolloutConfig.verify|verify} messages. - * @param message RolloutConfig message or plain object to encode + * Encodes the specified ListVersionsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest.verify|verify} messages. + * @param message ListVersionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IRolloutConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RolloutConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RolloutConfig.verify|verify} messages. - * @param message RolloutConfig message or plain object to encode + * Encodes the specified ListVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest.verify|verify} messages. + * @param message ListVersionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IRolloutConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RolloutConfig message from the specified reader or buffer. + * Decodes a ListVersionsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RolloutConfig + * @returns ListVersionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RolloutConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest; /** - * Decodes a RolloutConfig message from the specified reader or buffer, length delimited. + * Decodes a ListVersionsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RolloutConfig + * @returns ListVersionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.RolloutConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest; /** - * Verifies a RolloutConfig message. + * Verifies a ListVersionsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RolloutConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ListVersionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RolloutConfig + * @returns ListVersionsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RolloutConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest; /** - * Creates a plain object from a RolloutConfig message. Also converts values to other types if specified. - * @param message RolloutConfig + * Creates a plain object from a ListVersionsRequest message. Also converts values to other types if specified. + * @param message ListVersionsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RolloutConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RolloutConfig to JSON. + * Converts this ListVersionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace RolloutConfig { - - /** Properties of a RolloutStep. */ - interface IRolloutStep { - - /** RolloutStep displayName */ - displayName?: (string|null); - - /** RolloutStep trafficPercent */ - trafficPercent?: (number|null); + /** Properties of a ListVersionsResponse. */ + interface IListVersionsResponse { - /** RolloutStep minDuration */ - minDuration?: (google.protobuf.IDuration|null); - } + /** ListVersionsResponse versions */ + versions?: (google.cloud.dialogflow.cx.v3beta1.IVersion[]|null); - /** Represents a RolloutStep. */ - class RolloutStep implements IRolloutStep { + /** ListVersionsResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** - * Constructs a new RolloutStep. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.RolloutConfig.IRolloutStep); + /** Represents a ListVersionsResponse. */ + class ListVersionsResponse implements IListVersionsResponse { - /** RolloutStep displayName. */ - public displayName: string; + /** + * Constructs a new ListVersionsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListVersionsResponse); - /** RolloutStep trafficPercent. */ - public trafficPercent: number; + /** ListVersionsResponse versions. */ + public versions: google.cloud.dialogflow.cx.v3beta1.IVersion[]; - /** RolloutStep minDuration. */ - public minDuration?: (google.protobuf.IDuration|null); + /** ListVersionsResponse nextPageToken. */ + public nextPageToken: string; - /** - * Creates a new RolloutStep instance using the specified properties. - * @param [properties] Properties to set - * @returns RolloutStep instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.RolloutConfig.IRolloutStep): google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep; + /** + * Creates a new ListVersionsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListVersionsResponse instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListVersionsResponse): google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse; - /** - * Encodes the specified RolloutStep message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep.verify|verify} messages. - * @param message RolloutStep message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.RolloutConfig.IRolloutStep, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ListVersionsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse.verify|verify} messages. + * @param message ListVersionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified RolloutStep message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep.verify|verify} messages. - * @param message RolloutStep message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.RolloutConfig.IRolloutStep, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ListVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse.verify|verify} messages. + * @param message ListVersionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a RolloutStep message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RolloutStep - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep; + /** + * Decodes a ListVersionsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListVersionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse; - /** - * Decodes a RolloutStep message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RolloutStep - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep; + /** + * Decodes a ListVersionsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListVersionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse; - /** - * Verifies a RolloutStep message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies a ListVersionsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a RolloutStep message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RolloutStep - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep; + /** + * Creates a ListVersionsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListVersionsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse; - /** - * Creates a plain object from a RolloutStep message. Also converts values to other types if specified. - * @param message RolloutStep - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a ListVersionsResponse message. Also converts values to other types if specified. + * @param message ListVersionsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this RolloutStep to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Converts this ListVersionsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Properties of a RolloutState. */ - interface IRolloutState { - - /** RolloutState step */ - step?: (string|null); - - /** RolloutState stepIndex */ - stepIndex?: (number|null); + /** Properties of a GetVersionRequest. */ + interface IGetVersionRequest { - /** RolloutState startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** GetVersionRequest name */ + name?: (string|null); } - /** Represents a RolloutState. */ - class RolloutState implements IRolloutState { + /** Represents a GetVersionRequest. */ + class GetVersionRequest implements IGetVersionRequest { /** - * Constructs a new RolloutState. + * Constructs a new GetVersionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRolloutState); - - /** RolloutState step. */ - public step: string; - - /** RolloutState stepIndex. */ - public stepIndex: number; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest); - /** RolloutState startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** GetVersionRequest name. */ + public name: string; /** - * Creates a new RolloutState instance using the specified properties. + * Creates a new GetVersionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RolloutState instance + * @returns GetVersionRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IRolloutState): google.cloud.dialogflow.cx.v3beta1.RolloutState; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest): google.cloud.dialogflow.cx.v3beta1.GetVersionRequest; /** - * Encodes the specified RolloutState message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RolloutState.verify|verify} messages. - * @param message RolloutState message or plain object to encode + * Encodes the specified GetVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetVersionRequest.verify|verify} messages. + * @param message GetVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IRolloutState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RolloutState message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RolloutState.verify|verify} messages. - * @param message RolloutState message or plain object to encode + * Encodes the specified GetVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetVersionRequest.verify|verify} messages. + * @param message GetVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IRolloutState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RolloutState message from the specified reader or buffer. + * Decodes a GetVersionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RolloutState + * @returns GetVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RolloutState; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetVersionRequest; /** - * Decodes a RolloutState message from the specified reader or buffer, length delimited. + * Decodes a GetVersionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RolloutState + * @returns GetVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.RolloutState; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetVersionRequest; /** - * Verifies a RolloutState message. + * Verifies a GetVersionRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RolloutState message from a plain object. Also converts values to their respective internal types. + * Creates a GetVersionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RolloutState + * @returns GetVersionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RolloutState; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetVersionRequest; /** - * Creates a plain object from a RolloutState message. Also converts values to other types if specified. - * @param message RolloutState + * Creates a plain object from a GetVersionRequest message. Also converts values to other types if specified. + * @param message GetVersionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RolloutState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RolloutState to JSON. + * Converts this GetVersionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a VariantsHistory. */ - interface IVariantsHistory { + /** Properties of a CreateVersionRequest. */ + interface ICreateVersionRequest { - /** VariantsHistory versionVariants */ - versionVariants?: (google.cloud.dialogflow.cx.v3beta1.IVersionVariants|null); + /** CreateVersionRequest parent */ + parent?: (string|null); - /** VariantsHistory updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** CreateVersionRequest version */ + version?: (google.cloud.dialogflow.cx.v3beta1.IVersion|null); } - /** Represents a VariantsHistory. */ - class VariantsHistory implements IVariantsHistory { + /** Represents a CreateVersionRequest. */ + class CreateVersionRequest implements ICreateVersionRequest { /** - * Constructs a new VariantsHistory. + * Constructs a new CreateVersionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IVariantsHistory); - - /** VariantsHistory versionVariants. */ - public versionVariants?: (google.cloud.dialogflow.cx.v3beta1.IVersionVariants|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest); - /** VariantsHistory updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** CreateVersionRequest parent. */ + public parent: string; - /** VariantsHistory variants. */ - public variants?: "versionVariants"; + /** CreateVersionRequest version. */ + public version?: (google.cloud.dialogflow.cx.v3beta1.IVersion|null); /** - * Creates a new VariantsHistory instance using the specified properties. + * Creates a new CreateVersionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns VariantsHistory instance + * @returns CreateVersionRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IVariantsHistory): google.cloud.dialogflow.cx.v3beta1.VariantsHistory; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest): google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest; /** - * Encodes the specified VariantsHistory message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VariantsHistory.verify|verify} messages. - * @param message VariantsHistory message or plain object to encode + * Encodes the specified CreateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest.verify|verify} messages. + * @param message CreateVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IVariantsHistory, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VariantsHistory message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VariantsHistory.verify|verify} messages. - * @param message VariantsHistory message or plain object to encode + * Encodes the specified CreateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest.verify|verify} messages. + * @param message CreateVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IVariantsHistory, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VariantsHistory message from the specified reader or buffer. + * Decodes a CreateVersionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VariantsHistory + * @returns CreateVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.VariantsHistory; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest; /** - * Decodes a VariantsHistory message from the specified reader or buffer, length delimited. + * Decodes a CreateVersionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VariantsHistory + * @returns CreateVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.VariantsHistory; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest; /** - * Verifies a VariantsHistory message. + * Verifies a CreateVersionRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a VariantsHistory message from a plain object. Also converts values to their respective internal types. + * Creates a CreateVersionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VariantsHistory + * @returns CreateVersionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.VariantsHistory; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest; /** - * Creates a plain object from a VariantsHistory message. Also converts values to other types if specified. - * @param message VariantsHistory + * Creates a plain object from a CreateVersionRequest message. Also converts values to other types if specified. + * @param message CreateVersionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.VariantsHistory, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VariantsHistory to JSON. + * Converts this CreateVersionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListExperimentsRequest. */ - interface IListExperimentsRequest { - - /** ListExperimentsRequest parent */ - parent?: (string|null); + /** Properties of an UpdateVersionRequest. */ + interface IUpdateVersionRequest { - /** ListExperimentsRequest pageSize */ - pageSize?: (number|null); + /** UpdateVersionRequest version */ + version?: (google.cloud.dialogflow.cx.v3beta1.IVersion|null); - /** ListExperimentsRequest pageToken */ - pageToken?: (string|null); + /** UpdateVersionRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ListExperimentsRequest. */ - class ListExperimentsRequest implements IListExperimentsRequest { + /** Represents an UpdateVersionRequest. */ + class UpdateVersionRequest implements IUpdateVersionRequest { /** - * Constructs a new ListExperimentsRequest. + * Constructs a new UpdateVersionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest); - - /** ListExperimentsRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest); - /** ListExperimentsRequest pageSize. */ - public pageSize: number; + /** UpdateVersionRequest version. */ + public version?: (google.cloud.dialogflow.cx.v3beta1.IVersion|null); - /** ListExperimentsRequest pageToken. */ - public pageToken: string; + /** UpdateVersionRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ListExperimentsRequest instance using the specified properties. + * Creates a new UpdateVersionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListExperimentsRequest instance + * @returns UpdateVersionRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest): google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest): google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest; /** - * Encodes the specified ListExperimentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest.verify|verify} messages. - * @param message ListExperimentsRequest message or plain object to encode + * Encodes the specified UpdateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest.verify|verify} messages. + * @param message UpdateVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListExperimentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest.verify|verify} messages. - * @param message ListExperimentsRequest message or plain object to encode + * Encodes the specified UpdateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest.verify|verify} messages. + * @param message UpdateVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListExperimentsRequest message from the specified reader or buffer. + * Decodes an UpdateVersionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListExperimentsRequest + * @returns UpdateVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest; /** - * Decodes a ListExperimentsRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateVersionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListExperimentsRequest + * @returns UpdateVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest; /** - * Verifies a ListExperimentsRequest message. + * Verifies an UpdateVersionRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListExperimentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateVersionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListExperimentsRequest + * @returns UpdateVersionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest; /** - * Creates a plain object from a ListExperimentsRequest message. Also converts values to other types if specified. - * @param message ListExperimentsRequest + * Creates a plain object from an UpdateVersionRequest message. Also converts values to other types if specified. + * @param message UpdateVersionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListExperimentsRequest to JSON. + * Converts this UpdateVersionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListExperimentsResponse. */ - interface IListExperimentsResponse { - - /** ListExperimentsResponse experiments */ - experiments?: (google.cloud.dialogflow.cx.v3beta1.IExperiment[]|null); + /** Properties of a DeleteVersionRequest. */ + interface IDeleteVersionRequest { - /** ListExperimentsResponse nextPageToken */ - nextPageToken?: (string|null); + /** DeleteVersionRequest name */ + name?: (string|null); } - /** Represents a ListExperimentsResponse. */ - class ListExperimentsResponse implements IListExperimentsResponse { + /** Represents a DeleteVersionRequest. */ + class DeleteVersionRequest implements IDeleteVersionRequest { /** - * Constructs a new ListExperimentsResponse. + * Constructs a new DeleteVersionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListExperimentsResponse); - - /** ListExperimentsResponse experiments. */ - public experiments: google.cloud.dialogflow.cx.v3beta1.IExperiment[]; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest); - /** ListExperimentsResponse nextPageToken. */ - public nextPageToken: string; + /** DeleteVersionRequest name. */ + public name: string; /** - * Creates a new ListExperimentsResponse instance using the specified properties. + * Creates a new DeleteVersionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListExperimentsResponse instance + * @returns DeleteVersionRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListExperimentsResponse): google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest): google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest; /** - * Encodes the specified ListExperimentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse.verify|verify} messages. - * @param message ListExperimentsResponse message or plain object to encode + * Encodes the specified DeleteVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest.verify|verify} messages. + * @param message DeleteVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListExperimentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListExperimentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse.verify|verify} messages. - * @param message ListExperimentsResponse message or plain object to encode + * Encodes the specified DeleteVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest.verify|verify} messages. + * @param message DeleteVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListExperimentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListExperimentsResponse message from the specified reader or buffer. + * Decodes a DeleteVersionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListExperimentsResponse + * @returns DeleteVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest; /** - * Decodes a ListExperimentsResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteVersionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListExperimentsResponse + * @returns DeleteVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest; /** - * Verifies a ListExperimentsResponse message. + * Verifies a DeleteVersionRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListExperimentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteVersionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListExperimentsResponse + * @returns DeleteVersionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest; /** - * Creates a plain object from a ListExperimentsResponse message. Also converts values to other types if specified. - * @param message ListExperimentsResponse + * Creates a plain object from a DeleteVersionRequest message. Also converts values to other types if specified. + * @param message DeleteVersionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListExperimentsResponse to JSON. + * Converts this DeleteVersionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetExperimentRequest. */ - interface IGetExperimentRequest { + /** Properties of a LoadVersionRequest. */ + interface ILoadVersionRequest { - /** GetExperimentRequest name */ + /** LoadVersionRequest name */ name?: (string|null); + + /** LoadVersionRequest allowOverrideAgentResources */ + allowOverrideAgentResources?: (boolean|null); } - /** Represents a GetExperimentRequest. */ - class GetExperimentRequest implements IGetExperimentRequest { + /** Represents a LoadVersionRequest. */ + class LoadVersionRequest implements ILoadVersionRequest { /** - * Constructs a new GetExperimentRequest. + * Constructs a new LoadVersionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest); - /** GetExperimentRequest name. */ + /** LoadVersionRequest name. */ public name: string; + /** LoadVersionRequest allowOverrideAgentResources. */ + public allowOverrideAgentResources: boolean; + /** - * Creates a new GetExperimentRequest instance using the specified properties. + * Creates a new LoadVersionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetExperimentRequest instance + * @returns LoadVersionRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest): google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest): google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest; /** - * Encodes the specified GetExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest.verify|verify} messages. - * @param message GetExperimentRequest message or plain object to encode + * Encodes the specified LoadVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest.verify|verify} messages. + * @param message LoadVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest.verify|verify} messages. - * @param message GetExperimentRequest message or plain object to encode + * Encodes the specified LoadVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest.verify|verify} messages. + * @param message LoadVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetExperimentRequest message from the specified reader or buffer. + * Decodes a LoadVersionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetExperimentRequest + * @returns LoadVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest; /** - * Decodes a GetExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a LoadVersionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetExperimentRequest + * @returns LoadVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest; /** - * Verifies a GetExperimentRequest message. + * Verifies a LoadVersionRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a LoadVersionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetExperimentRequest + * @returns LoadVersionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest; /** - * Creates a plain object from a GetExperimentRequest message. Also converts values to other types if specified. - * @param message GetExperimentRequest + * Creates a plain object from a LoadVersionRequest message. Also converts values to other types if specified. + * @param message LoadVersionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetExperimentRequest to JSON. + * Converts this LoadVersionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateExperimentRequest. */ - interface ICreateExperimentRequest { + /** Properties of a CompareVersionsRequest. */ + interface ICompareVersionsRequest { - /** CreateExperimentRequest parent */ - parent?: (string|null); + /** CompareVersionsRequest baseVersion */ + baseVersion?: (string|null); - /** CreateExperimentRequest experiment */ - experiment?: (google.cloud.dialogflow.cx.v3beta1.IExperiment|null); + /** CompareVersionsRequest targetVersion */ + targetVersion?: (string|null); + + /** CompareVersionsRequest languageCode */ + languageCode?: (string|null); } - /** Represents a CreateExperimentRequest. */ - class CreateExperimentRequest implements ICreateExperimentRequest { + /** Represents a CompareVersionsRequest. */ + class CompareVersionsRequest implements ICompareVersionsRequest { /** - * Constructs a new CreateExperimentRequest. + * Constructs a new CompareVersionsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICompareVersionsRequest); - /** CreateExperimentRequest parent. */ - public parent: string; + /** CompareVersionsRequest baseVersion. */ + public baseVersion: string; - /** CreateExperimentRequest experiment. */ - public experiment?: (google.cloud.dialogflow.cx.v3beta1.IExperiment|null); + /** CompareVersionsRequest targetVersion. */ + public targetVersion: string; + + /** CompareVersionsRequest languageCode. */ + public languageCode: string; /** - * Creates a new CreateExperimentRequest instance using the specified properties. + * Creates a new CompareVersionsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateExperimentRequest instance + * @returns CompareVersionsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest): google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICompareVersionsRequest): google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest; /** - * Encodes the specified CreateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest.verify|verify} messages. - * @param message CreateExperimentRequest message or plain object to encode + * Encodes the specified CompareVersionsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest.verify|verify} messages. + * @param message CompareVersionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICompareVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest.verify|verify} messages. - * @param message CreateExperimentRequest message or plain object to encode + * Encodes the specified CompareVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest.verify|verify} messages. + * @param message CompareVersionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICompareVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateExperimentRequest message from the specified reader or buffer. + * Decodes a CompareVersionsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateExperimentRequest + * @returns CompareVersionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest; /** - * Decodes a CreateExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a CompareVersionsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateExperimentRequest + * @returns CompareVersionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest; /** - * Verifies a CreateExperimentRequest message. + * Verifies a CompareVersionsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CompareVersionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateExperimentRequest + * @returns CompareVersionsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest; /** - * Creates a plain object from a CreateExperimentRequest message. Also converts values to other types if specified. - * @param message CreateExperimentRequest + * Creates a plain object from a CompareVersionsRequest message. Also converts values to other types if specified. + * @param message CompareVersionsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateExperimentRequest to JSON. + * Converts this CompareVersionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateExperimentRequest. */ - interface IUpdateExperimentRequest { + /** Properties of a CompareVersionsResponse. */ + interface ICompareVersionsResponse { - /** UpdateExperimentRequest experiment */ - experiment?: (google.cloud.dialogflow.cx.v3beta1.IExperiment|null); + /** CompareVersionsResponse baseVersionContentJson */ + baseVersionContentJson?: (string|null); - /** UpdateExperimentRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** CompareVersionsResponse targetVersionContentJson */ + targetVersionContentJson?: (string|null); + + /** CompareVersionsResponse compareTime */ + compareTime?: (google.protobuf.ITimestamp|null); } - /** Represents an UpdateExperimentRequest. */ - class UpdateExperimentRequest implements IUpdateExperimentRequest { + /** Represents a CompareVersionsResponse. */ + class CompareVersionsResponse implements ICompareVersionsResponse { /** - * Constructs a new UpdateExperimentRequest. + * Constructs a new CompareVersionsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICompareVersionsResponse); - /** UpdateExperimentRequest experiment. */ - public experiment?: (google.cloud.dialogflow.cx.v3beta1.IExperiment|null); + /** CompareVersionsResponse baseVersionContentJson. */ + public baseVersionContentJson: string; - /** UpdateExperimentRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** CompareVersionsResponse targetVersionContentJson. */ + public targetVersionContentJson: string; + + /** CompareVersionsResponse compareTime. */ + public compareTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new UpdateExperimentRequest instance using the specified properties. + * Creates a new CompareVersionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateExperimentRequest instance + * @returns CompareVersionsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest): google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICompareVersionsResponse): google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse; /** - * Encodes the specified UpdateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest.verify|verify} messages. - * @param message UpdateExperimentRequest message or plain object to encode + * Encodes the specified CompareVersionsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse.verify|verify} messages. + * @param message CompareVersionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICompareVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest.verify|verify} messages. - * @param message UpdateExperimentRequest message or plain object to encode + * Encodes the specified CompareVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse.verify|verify} messages. + * @param message CompareVersionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICompareVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateExperimentRequest message from the specified reader or buffer. + * Decodes a CompareVersionsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateExperimentRequest + * @returns CompareVersionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse; /** - * Decodes an UpdateExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a CompareVersionsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateExperimentRequest + * @returns CompareVersionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse; /** - * Verifies an UpdateExperimentRequest message. + * Verifies a CompareVersionsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CompareVersionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateExperimentRequest + * @returns CompareVersionsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse; /** - * Creates a plain object from an UpdateExperimentRequest message. Also converts values to other types if specified. - * @param message UpdateExperimentRequest + * Creates a plain object from a CompareVersionsResponse message. Also converts values to other types if specified. + * @param message CompareVersionsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateExperimentRequest to JSON. + * Converts this CompareVersionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteExperimentRequest. */ - interface IDeleteExperimentRequest { + /** Represents a Webhooks */ + class Webhooks extends $protobuf.rpc.Service { - /** DeleteExperimentRequest name */ - name?: (string|null); - } + /** + * Constructs a new Webhooks service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** Represents a DeleteExperimentRequest. */ - class DeleteExperimentRequest implements IDeleteExperimentRequest { + /** + * Creates new Webhooks service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Webhooks; /** - * Constructs a new DeleteExperimentRequest. - * @param [properties] Properties to set + * Calls ListWebhooks. + * @param request ListWebhooksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListWebhooksResponse */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest); + public listWebhooks(request: google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest, callback: google.cloud.dialogflow.cx.v3beta1.Webhooks.ListWebhooksCallback): void; - /** DeleteExperimentRequest name. */ - public name: string; + /** + * Calls ListWebhooks. + * @param request ListWebhooksRequest message or plain object + * @returns Promise + */ + public listWebhooks(request: google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest): Promise; + + /** + * Calls GetWebhook. + * @param request GetWebhookRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Webhook + */ + public getWebhook(request: google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest, callback: google.cloud.dialogflow.cx.v3beta1.Webhooks.GetWebhookCallback): void; + + /** + * Calls GetWebhook. + * @param request GetWebhookRequest message or plain object + * @returns Promise + */ + public getWebhook(request: google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest): Promise; + + /** + * Calls CreateWebhook. + * @param request CreateWebhookRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Webhook + */ + public createWebhook(request: google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest, callback: google.cloud.dialogflow.cx.v3beta1.Webhooks.CreateWebhookCallback): void; + + /** + * Calls CreateWebhook. + * @param request CreateWebhookRequest message or plain object + * @returns Promise + */ + public createWebhook(request: google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest): Promise; /** - * Creates a new DeleteExperimentRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteExperimentRequest instance + * Calls UpdateWebhook. + * @param request UpdateWebhookRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Webhook */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest): google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest; + public updateWebhook(request: google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest, callback: google.cloud.dialogflow.cx.v3beta1.Webhooks.UpdateWebhookCallback): void; /** - * Encodes the specified DeleteExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest.verify|verify} messages. - * @param message DeleteExperimentRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls UpdateWebhook. + * @param request UpdateWebhookRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public updateWebhook(request: google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest): Promise; /** - * Encodes the specified DeleteExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest.verify|verify} messages. - * @param message DeleteExperimentRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls DeleteWebhook. + * @param request DeleteWebhookRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public deleteWebhook(request: google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest, callback: google.cloud.dialogflow.cx.v3beta1.Webhooks.DeleteWebhookCallback): void; /** - * Decodes a DeleteExperimentRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteExperimentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteWebhook. + * @param request DeleteWebhookRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest; + public deleteWebhook(request: google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest): Promise; + } + + namespace Webhooks { /** - * Decodes a DeleteExperimentRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteExperimentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Webhooks#listWebhooks}. + * @param error Error, if any + * @param [response] ListWebhooksResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest; + type ListWebhooksCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse) => void; /** - * Verifies a DeleteExperimentRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Webhooks#getWebhook}. + * @param error Error, if any + * @param [response] Webhook */ - public static verify(message: { [k: string]: any }): (string|null); + type GetWebhookCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Webhook) => void; /** - * Creates a DeleteExperimentRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteExperimentRequest + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Webhooks#createWebhook}. + * @param error Error, if any + * @param [response] Webhook */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest; + type CreateWebhookCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Webhook) => void; /** - * Creates a plain object from a DeleteExperimentRequest message. Also converts values to other types if specified. - * @param message DeleteExperimentRequest - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Webhooks#updateWebhook}. + * @param error Error, if any + * @param [response] Webhook */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type UpdateWebhookCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Webhook) => void; /** - * Converts this DeleteExperimentRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Webhooks#deleteWebhook}. + * @param error Error, if any + * @param [response] Empty */ - public toJSON(): { [k: string]: any }; + type DeleteWebhookCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } - /** Properties of a StartExperimentRequest. */ - interface IStartExperimentRequest { + /** Properties of a Webhook. */ + interface IWebhook { - /** StartExperimentRequest name */ + /** Webhook name */ name?: (string|null); + + /** Webhook displayName */ + displayName?: (string|null); + + /** Webhook genericWebService */ + genericWebService?: (google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService|null); + + /** Webhook serviceDirectory */ + serviceDirectory?: (google.cloud.dialogflow.cx.v3beta1.Webhook.IServiceDirectoryConfig|null); + + /** Webhook timeout */ + timeout?: (google.protobuf.IDuration|null); + + /** Webhook disabled */ + disabled?: (boolean|null); } - /** Represents a StartExperimentRequest. */ - class StartExperimentRequest implements IStartExperimentRequest { + /** Represents a Webhook. */ + class Webhook implements IWebhook { /** - * Constructs a new StartExperimentRequest. + * Constructs a new Webhook. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IWebhook); - /** StartExperimentRequest name. */ + /** Webhook name. */ public name: string; + /** Webhook displayName. */ + public displayName: string; + + /** Webhook genericWebService. */ + public genericWebService?: (google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService|null); + + /** Webhook serviceDirectory. */ + public serviceDirectory?: (google.cloud.dialogflow.cx.v3beta1.Webhook.IServiceDirectoryConfig|null); + + /** Webhook timeout. */ + public timeout?: (google.protobuf.IDuration|null); + + /** Webhook disabled. */ + public disabled: boolean; + + /** Webhook webhook. */ + public webhook?: ("genericWebService"|"serviceDirectory"); + /** - * Creates a new StartExperimentRequest instance using the specified properties. + * Creates a new Webhook instance using the specified properties. * @param [properties] Properties to set - * @returns StartExperimentRequest instance + * @returns Webhook instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest): google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IWebhook): google.cloud.dialogflow.cx.v3beta1.Webhook; /** - * Encodes the specified StartExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest.verify|verify} messages. - * @param message StartExperimentRequest message or plain object to encode + * Encodes the specified Webhook message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Webhook.verify|verify} messages. + * @param message Webhook message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IWebhook, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StartExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest.verify|verify} messages. - * @param message StartExperimentRequest message or plain object to encode + * Encodes the specified Webhook message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Webhook.verify|verify} messages. + * @param message Webhook message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IWebhook, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StartExperimentRequest message from the specified reader or buffer. + * Decodes a Webhook message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StartExperimentRequest + * @returns Webhook * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Webhook; /** - * Decodes a StartExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a Webhook message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StartExperimentRequest + * @returns Webhook * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Webhook; /** - * Verifies a StartExperimentRequest message. + * Verifies a Webhook message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StartExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Webhook message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StartExperimentRequest + * @returns Webhook */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Webhook; /** - * Creates a plain object from a StartExperimentRequest message. Also converts values to other types if specified. - * @param message StartExperimentRequest + * Creates a plain object from a Webhook message. Also converts values to other types if specified. + * @param message Webhook * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Webhook, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StartExperimentRequest to JSON. + * Converts this Webhook to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a StopExperimentRequest. */ - interface IStopExperimentRequest { + namespace Webhook { - /** StopExperimentRequest name */ - name?: (string|null); + /** Properties of a GenericWebService. */ + interface IGenericWebService { + + /** GenericWebService uri */ + uri?: (string|null); + + /** GenericWebService username */ + username?: (string|null); + + /** GenericWebService password */ + password?: (string|null); + + /** GenericWebService requestHeaders */ + requestHeaders?: ({ [k: string]: string }|null); + + /** GenericWebService allowedCaCerts */ + allowedCaCerts?: (Uint8Array[]|null); + } + + /** Represents a GenericWebService. */ + class GenericWebService implements IGenericWebService { + + /** + * Constructs a new GenericWebService. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService); + + /** GenericWebService uri. */ + public uri: string; + + /** GenericWebService username. */ + public username: string; + + /** GenericWebService password. */ + public password: string; + + /** GenericWebService requestHeaders. */ + public requestHeaders: { [k: string]: string }; + + /** GenericWebService allowedCaCerts. */ + public allowedCaCerts: Uint8Array[]; + + /** + * Creates a new GenericWebService instance using the specified properties. + * @param [properties] Properties to set + * @returns GenericWebService instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService): google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService; + + /** + * Encodes the specified GenericWebService message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.verify|verify} messages. + * @param message GenericWebService message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GenericWebService message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.verify|verify} messages. + * @param message GenericWebService message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GenericWebService message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GenericWebService + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService; + + /** + * Decodes a GenericWebService message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GenericWebService + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService; + + /** + * Verifies a GenericWebService message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GenericWebService message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GenericWebService + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService; + + /** + * Creates a plain object from a GenericWebService message. Also converts values to other types if specified. + * @param message GenericWebService + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GenericWebService to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ServiceDirectoryConfig. */ + interface IServiceDirectoryConfig { + + /** ServiceDirectoryConfig service */ + service?: (string|null); + + /** ServiceDirectoryConfig genericWebService */ + genericWebService?: (google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService|null); + } + + /** Represents a ServiceDirectoryConfig. */ + class ServiceDirectoryConfig implements IServiceDirectoryConfig { + + /** + * Constructs a new ServiceDirectoryConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Webhook.IServiceDirectoryConfig); + + /** ServiceDirectoryConfig service. */ + public service: string; + + /** ServiceDirectoryConfig genericWebService. */ + public genericWebService?: (google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService|null); + + /** + * Creates a new ServiceDirectoryConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceDirectoryConfig instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Webhook.IServiceDirectoryConfig): google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig; + + /** + * Encodes the specified ServiceDirectoryConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig.verify|verify} messages. + * @param message ServiceDirectoryConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Webhook.IServiceDirectoryConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ServiceDirectoryConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig.verify|verify} messages. + * @param message ServiceDirectoryConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Webhook.IServiceDirectoryConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ServiceDirectoryConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServiceDirectoryConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig; + + /** + * Decodes a ServiceDirectoryConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ServiceDirectoryConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig; + + /** + * Verifies a ServiceDirectoryConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ServiceDirectoryConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ServiceDirectoryConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig; + + /** + * Creates a plain object from a ServiceDirectoryConfig message. Also converts values to other types if specified. + * @param message ServiceDirectoryConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ServiceDirectoryConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Represents a StopExperimentRequest. */ - class StopExperimentRequest implements IStopExperimentRequest { + /** Properties of a ListWebhooksRequest. */ + interface IListWebhooksRequest { + + /** ListWebhooksRequest parent */ + parent?: (string|null); + + /** ListWebhooksRequest pageSize */ + pageSize?: (number|null); + + /** ListWebhooksRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListWebhooksRequest. */ + class ListWebhooksRequest implements IListWebhooksRequest { /** - * Constructs a new StopExperimentRequest. + * Constructs a new ListWebhooksRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest); - /** StopExperimentRequest name. */ - public name: string; + /** ListWebhooksRequest parent. */ + public parent: string; + + /** ListWebhooksRequest pageSize. */ + public pageSize: number; + + /** ListWebhooksRequest pageToken. */ + public pageToken: string; /** - * Creates a new StopExperimentRequest instance using the specified properties. + * Creates a new ListWebhooksRequest instance using the specified properties. * @param [properties] Properties to set - * @returns StopExperimentRequest instance + * @returns ListWebhooksRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest): google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest): google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest; /** - * Encodes the specified StopExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest.verify|verify} messages. - * @param message StopExperimentRequest message or plain object to encode + * Encodes the specified ListWebhooksRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest.verify|verify} messages. + * @param message ListWebhooksRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StopExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest.verify|verify} messages. - * @param message StopExperimentRequest message or plain object to encode + * Encodes the specified ListWebhooksRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest.verify|verify} messages. + * @param message ListWebhooksRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StopExperimentRequest message from the specified reader or buffer. + * Decodes a ListWebhooksRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StopExperimentRequest + * @returns ListWebhooksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest; /** - * Decodes a StopExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a ListWebhooksRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StopExperimentRequest + * @returns ListWebhooksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest; /** - * Verifies a StopExperimentRequest message. + * Verifies a ListWebhooksRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StopExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListWebhooksRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StopExperimentRequest + * @returns ListWebhooksRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest; /** - * Creates a plain object from a StopExperimentRequest message. Also converts values to other types if specified. - * @param message StopExperimentRequest + * Creates a plain object from a ListWebhooksRequest message. Also converts values to other types if specified. + * @param message ListWebhooksRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StopExperimentRequest to JSON. + * Converts this ListWebhooksRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a Versions */ - class Versions extends $protobuf.rpc.Service { + /** Properties of a ListWebhooksResponse. */ + interface IListWebhooksResponse { - /** - * Constructs a new Versions service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** ListWebhooksResponse webhooks */ + webhooks?: (google.cloud.dialogflow.cx.v3beta1.IWebhook[]|null); - /** - * Creates new Versions service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Versions; + /** ListWebhooksResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** - * Calls ListVersions. - * @param request ListVersionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListVersionsResponse - */ - public listVersions(request: google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Versions.ListVersionsCallback): void; + /** Represents a ListWebhooksResponse. */ + class ListWebhooksResponse implements IListWebhooksResponse { /** - * Calls ListVersions. - * @param request ListVersionsRequest message or plain object - * @returns Promise + * Constructs a new ListWebhooksResponse. + * @param [properties] Properties to set */ - public listVersions(request: google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest): Promise; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListWebhooksResponse); + + /** ListWebhooksResponse webhooks. */ + public webhooks: google.cloud.dialogflow.cx.v3beta1.IWebhook[]; + + /** ListWebhooksResponse nextPageToken. */ + public nextPageToken: string; /** - * Calls GetVersion. - * @param request GetVersionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Version + * Creates a new ListWebhooksResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListWebhooksResponse instance */ - public getVersion(request: google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest, callback: google.cloud.dialogflow.cx.v3beta1.Versions.GetVersionCallback): void; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListWebhooksResponse): google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse; /** - * Calls GetVersion. - * @param request GetVersionRequest message or plain object - * @returns Promise + * Encodes the specified ListWebhooksResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse.verify|verify} messages. + * @param message ListWebhooksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getVersion(request: google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest): Promise; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListWebhooksResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateVersion. - * @param request CreateVersionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Encodes the specified ListWebhooksResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse.verify|verify} messages. + * @param message ListWebhooksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createVersion(request: google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest, callback: google.cloud.dialogflow.cx.v3beta1.Versions.CreateVersionCallback): void; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListWebhooksResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateVersion. - * @param request CreateVersionRequest message or plain object - * @returns Promise + * Decodes a ListWebhooksResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListWebhooksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public createVersion(request: google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse; /** - * Calls UpdateVersion. - * @param request UpdateVersionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Version + * Decodes a ListWebhooksResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListWebhooksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public updateVersion(request: google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest, callback: google.cloud.dialogflow.cx.v3beta1.Versions.UpdateVersionCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse; /** - * Calls UpdateVersion. - * @param request UpdateVersionRequest message or plain object - * @returns Promise + * Verifies a ListWebhooksResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public updateVersion(request: google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls DeleteVersion. - * @param request DeleteVersionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Creates a ListWebhooksResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListWebhooksResponse */ - public deleteVersion(request: google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest, callback: google.cloud.dialogflow.cx.v3beta1.Versions.DeleteVersionCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse; /** - * Calls DeleteVersion. - * @param request DeleteVersionRequest message or plain object - * @returns Promise + * Creates a plain object from a ListWebhooksResponse message. Also converts values to other types if specified. + * @param message ListWebhooksResponse + * @param [options] Conversion options + * @returns Plain object */ - public deleteVersion(request: google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest): Promise; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls LoadVersion. - * @param request LoadVersionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Converts this ListWebhooksResponse to JSON. + * @returns JSON object */ - public loadVersion(request: google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest, callback: google.cloud.dialogflow.cx.v3beta1.Versions.LoadVersionCallback): void; + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetWebhookRequest. */ + interface IGetWebhookRequest { + + /** GetWebhookRequest name */ + name?: (string|null); + } + + /** Represents a GetWebhookRequest. */ + class GetWebhookRequest implements IGetWebhookRequest { /** - * Calls LoadVersion. - * @param request LoadVersionRequest message or plain object - * @returns Promise + * Constructs a new GetWebhookRequest. + * @param [properties] Properties to set */ - public loadVersion(request: google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest): Promise; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest); + + /** GetWebhookRequest name. */ + public name: string; /** - * Calls CompareVersions. - * @param request CompareVersionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CompareVersionsResponse + * Creates a new GetWebhookRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetWebhookRequest instance */ - public compareVersions(request: google.cloud.dialogflow.cx.v3beta1.ICompareVersionsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Versions.CompareVersionsCallback): void; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest): google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest; /** - * Calls CompareVersions. - * @param request CompareVersionsRequest message or plain object - * @returns Promise + * Encodes the specified GetWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest.verify|verify} messages. + * @param message GetWebhookRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public compareVersions(request: google.cloud.dialogflow.cx.v3beta1.ICompareVersionsRequest): Promise; - } - - namespace Versions { + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#listVersions}. - * @param error Error, if any - * @param [response] ListVersionsResponse + * Encodes the specified GetWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest.verify|verify} messages. + * @param message GetWebhookRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type ListVersionsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse) => void; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#getVersion}. - * @param error Error, if any - * @param [response] Version + * Decodes a GetWebhookRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetWebhookRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type GetVersionCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Version) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#createVersion}. - * @param error Error, if any - * @param [response] Operation + * Decodes a GetWebhookRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetWebhookRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type CreateVersionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#updateVersion}. - * @param error Error, if any - * @param [response] Version + * Verifies a GetWebhookRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type UpdateVersionCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Version) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#deleteVersion}. - * @param error Error, if any - * @param [response] Empty + * Creates a GetWebhookRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetWebhookRequest */ - type DeleteVersionCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#loadVersion}. - * @param error Error, if any - * @param [response] Operation + * Creates a plain object from a GetWebhookRequest message. Also converts values to other types if specified. + * @param message GetWebhookRequest + * @param [options] Conversion options + * @returns Plain object */ - type LoadVersionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#compareVersions}. - * @param error Error, if any - * @param [response] CompareVersionsResponse + * Converts this GetWebhookRequest to JSON. + * @returns JSON object */ - type CompareVersionsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse) => void; + public toJSON(): { [k: string]: any }; } - /** Properties of a CreateVersionOperationMetadata. */ - interface ICreateVersionOperationMetadata { + /** Properties of a CreateWebhookRequest. */ + interface ICreateWebhookRequest { - /** CreateVersionOperationMetadata version */ - version?: (string|null); + /** CreateWebhookRequest parent */ + parent?: (string|null); + + /** CreateWebhookRequest webhook */ + webhook?: (google.cloud.dialogflow.cx.v3beta1.IWebhook|null); } - /** Represents a CreateVersionOperationMetadata. */ - class CreateVersionOperationMetadata implements ICreateVersionOperationMetadata { + /** Represents a CreateWebhookRequest. */ + class CreateWebhookRequest implements ICreateWebhookRequest { /** - * Constructs a new CreateVersionOperationMetadata. + * Constructs a new CreateWebhookRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateVersionOperationMetadata); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest); - /** CreateVersionOperationMetadata version. */ - public version: string; + /** CreateWebhookRequest parent. */ + public parent: string; + + /** CreateWebhookRequest webhook. */ + public webhook?: (google.cloud.dialogflow.cx.v3beta1.IWebhook|null); /** - * Creates a new CreateVersionOperationMetadata instance using the specified properties. + * Creates a new CreateWebhookRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateVersionOperationMetadata instance + * @returns CreateWebhookRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateVersionOperationMetadata): google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest): google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest; /** - * Encodes the specified CreateVersionOperationMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata.verify|verify} messages. - * @param message CreateVersionOperationMetadata message or plain object to encode + * Encodes the specified CreateWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest.verify|verify} messages. + * @param message CreateWebhookRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateVersionOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateVersionOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata.verify|verify} messages. - * @param message CreateVersionOperationMetadata message or plain object to encode + * Encodes the specified CreateWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest.verify|verify} messages. + * @param message CreateWebhookRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateVersionOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateVersionOperationMetadata message from the specified reader or buffer. + * Decodes a CreateWebhookRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateVersionOperationMetadata + * @returns CreateWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest; /** - * Decodes a CreateVersionOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a CreateWebhookRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateVersionOperationMetadata + * @returns CreateWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest; /** - * Verifies a CreateVersionOperationMetadata message. + * Verifies a CreateWebhookRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateVersionOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a CreateWebhookRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateVersionOperationMetadata + * @returns CreateWebhookRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest; /** - * Creates a plain object from a CreateVersionOperationMetadata message. Also converts values to other types if specified. - * @param message CreateVersionOperationMetadata + * Creates a plain object from a CreateWebhookRequest message. Also converts values to other types if specified. + * @param message CreateWebhookRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateVersionOperationMetadata to JSON. + * Converts this CreateWebhookRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Version. */ - interface IVersion { - - /** Version name */ - name?: (string|null); - - /** Version displayName */ - displayName?: (string|null); - - /** Version description */ - description?: (string|null); - - /** Version nluSettings */ - nluSettings?: (google.cloud.dialogflow.cx.v3beta1.INluSettings|null); + /** Properties of an UpdateWebhookRequest. */ + interface IUpdateWebhookRequest { - /** Version createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** UpdateWebhookRequest webhook */ + webhook?: (google.cloud.dialogflow.cx.v3beta1.IWebhook|null); - /** Version state */ - state?: (google.cloud.dialogflow.cx.v3beta1.Version.State|keyof typeof google.cloud.dialogflow.cx.v3beta1.Version.State|null); + /** UpdateWebhookRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a Version. */ - class Version implements IVersion { + /** Represents an UpdateWebhookRequest. */ + class UpdateWebhookRequest implements IUpdateWebhookRequest { /** - * Constructs a new Version. + * Constructs a new UpdateWebhookRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IVersion); - - /** Version name. */ - public name: string; - - /** Version displayName. */ - public displayName: string; - - /** Version description. */ - public description: string; - - /** Version nluSettings. */ - public nluSettings?: (google.cloud.dialogflow.cx.v3beta1.INluSettings|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest); - /** Version createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** UpdateWebhookRequest webhook. */ + public webhook?: (google.cloud.dialogflow.cx.v3beta1.IWebhook|null); - /** Version state. */ - public state: (google.cloud.dialogflow.cx.v3beta1.Version.State|keyof typeof google.cloud.dialogflow.cx.v3beta1.Version.State); + /** UpdateWebhookRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new Version instance using the specified properties. + * Creates a new UpdateWebhookRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Version instance + * @returns UpdateWebhookRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IVersion): google.cloud.dialogflow.cx.v3beta1.Version; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest): google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest; /** - * Encodes the specified Version message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Version.verify|verify} messages. - * @param message Version message or plain object to encode + * Encodes the specified UpdateWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest.verify|verify} messages. + * @param message UpdateWebhookRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Version message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Version.verify|verify} messages. - * @param message Version message or plain object to encode + * Encodes the specified UpdateWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest.verify|verify} messages. + * @param message UpdateWebhookRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Version message from the specified reader or buffer. + * Decodes an UpdateWebhookRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Version + * @returns UpdateWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Version; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest; /** - * Decodes a Version message from the specified reader or buffer, length delimited. + * Decodes an UpdateWebhookRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Version + * @returns UpdateWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Version; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest; /** - * Verifies a Version message. + * Verifies an UpdateWebhookRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Version message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateWebhookRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Version + * @returns UpdateWebhookRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Version; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest; /** - * Creates a plain object from a Version message. Also converts values to other types if specified. - * @param message Version + * Creates a plain object from an UpdateWebhookRequest message. Also converts values to other types if specified. + * @param message UpdateWebhookRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Version, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Version to JSON. + * Converts this UpdateWebhookRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Version { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - RUNNING = 1, - SUCCEEDED = 2, - FAILED = 3 - } - } - - /** Properties of a ListVersionsRequest. */ - interface IListVersionsRequest { - - /** ListVersionsRequest parent */ - parent?: (string|null); + /** Properties of a DeleteWebhookRequest. */ + interface IDeleteWebhookRequest { - /** ListVersionsRequest pageSize */ - pageSize?: (number|null); + /** DeleteWebhookRequest name */ + name?: (string|null); - /** ListVersionsRequest pageToken */ - pageToken?: (string|null); + /** DeleteWebhookRequest force */ + force?: (boolean|null); } - /** Represents a ListVersionsRequest. */ - class ListVersionsRequest implements IListVersionsRequest { + /** Represents a DeleteWebhookRequest. */ + class DeleteWebhookRequest implements IDeleteWebhookRequest { /** - * Constructs a new ListVersionsRequest. + * Constructs a new DeleteWebhookRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest); - - /** ListVersionsRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest); - /** ListVersionsRequest pageSize. */ - public pageSize: number; + /** DeleteWebhookRequest name. */ + public name: string; - /** ListVersionsRequest pageToken. */ - public pageToken: string; + /** DeleteWebhookRequest force. */ + public force: boolean; /** - * Creates a new ListVersionsRequest instance using the specified properties. + * Creates a new DeleteWebhookRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListVersionsRequest instance + * @returns DeleteWebhookRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest): google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest): google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest; /** - * Encodes the specified ListVersionsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest.verify|verify} messages. - * @param message ListVersionsRequest message or plain object to encode + * Encodes the specified DeleteWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest.verify|verify} messages. + * @param message DeleteWebhookRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest.verify|verify} messages. - * @param message ListVersionsRequest message or plain object to encode + * Encodes the specified DeleteWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest.verify|verify} messages. + * @param message DeleteWebhookRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListVersionsRequest message from the specified reader or buffer. + * Decodes a DeleteWebhookRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListVersionsRequest + * @returns DeleteWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest; /** - * Decodes a ListVersionsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteWebhookRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListVersionsRequest + * @returns DeleteWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest; /** - * Verifies a ListVersionsRequest message. + * Verifies a DeleteWebhookRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListVersionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteWebhookRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListVersionsRequest + * @returns DeleteWebhookRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest; /** - * Creates a plain object from a ListVersionsRequest message. Also converts values to other types if specified. - * @param message ListVersionsRequest + * Creates a plain object from a DeleteWebhookRequest message. Also converts values to other types if specified. + * @param message DeleteWebhookRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListVersionsRequest to JSON. + * Converts this DeleteWebhookRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListVersionsResponse. */ - interface IListVersionsResponse { + /** Properties of a WebhookRequest. */ + interface IWebhookRequest { + + /** WebhookRequest detectIntentResponseId */ + detectIntentResponseId?: (string|null); + + /** WebhookRequest text */ + text?: (string|null); + + /** WebhookRequest triggerIntent */ + triggerIntent?: (string|null); + + /** WebhookRequest transcript */ + transcript?: (string|null); + + /** WebhookRequest triggerEvent */ + triggerEvent?: (string|null); + + /** WebhookRequest languageCode */ + languageCode?: (string|null); + + /** WebhookRequest fulfillmentInfo */ + fulfillmentInfo?: (google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IFulfillmentInfo|null); + + /** WebhookRequest intentInfo */ + intentInfo?: (google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IIntentInfo|null); + + /** WebhookRequest pageInfo */ + pageInfo?: (google.cloud.dialogflow.cx.v3beta1.IPageInfo|null); + + /** WebhookRequest sessionInfo */ + sessionInfo?: (google.cloud.dialogflow.cx.v3beta1.ISessionInfo|null); + + /** WebhookRequest messages */ + messages?: (google.cloud.dialogflow.cx.v3beta1.IResponseMessage[]|null); + + /** WebhookRequest payload */ + payload?: (google.protobuf.IStruct|null); + + /** WebhookRequest sentimentAnalysisResult */ + sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3beta1.WebhookRequest.ISentimentAnalysisResult|null); + } + + /** Represents a WebhookRequest. */ + class WebhookRequest implements IWebhookRequest { + + /** + * Constructs a new WebhookRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IWebhookRequest); + + /** WebhookRequest detectIntentResponseId. */ + public detectIntentResponseId: string; + + /** WebhookRequest text. */ + public text?: (string|null); + + /** WebhookRequest triggerIntent. */ + public triggerIntent?: (string|null); + + /** WebhookRequest transcript. */ + public transcript?: (string|null); + + /** WebhookRequest triggerEvent. */ + public triggerEvent?: (string|null); + + /** WebhookRequest languageCode. */ + public languageCode: string; + + /** WebhookRequest fulfillmentInfo. */ + public fulfillmentInfo?: (google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IFulfillmentInfo|null); - /** ListVersionsResponse versions */ - versions?: (google.cloud.dialogflow.cx.v3beta1.IVersion[]|null); + /** WebhookRequest intentInfo. */ + public intentInfo?: (google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IIntentInfo|null); - /** ListVersionsResponse nextPageToken */ - nextPageToken?: (string|null); - } + /** WebhookRequest pageInfo. */ + public pageInfo?: (google.cloud.dialogflow.cx.v3beta1.IPageInfo|null); - /** Represents a ListVersionsResponse. */ - class ListVersionsResponse implements IListVersionsResponse { + /** WebhookRequest sessionInfo. */ + public sessionInfo?: (google.cloud.dialogflow.cx.v3beta1.ISessionInfo|null); - /** - * Constructs a new ListVersionsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListVersionsResponse); + /** WebhookRequest messages. */ + public messages: google.cloud.dialogflow.cx.v3beta1.IResponseMessage[]; - /** ListVersionsResponse versions. */ - public versions: google.cloud.dialogflow.cx.v3beta1.IVersion[]; + /** WebhookRequest payload. */ + public payload?: (google.protobuf.IStruct|null); - /** ListVersionsResponse nextPageToken. */ - public nextPageToken: string; + /** WebhookRequest sentimentAnalysisResult. */ + public sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3beta1.WebhookRequest.ISentimentAnalysisResult|null); + + /** WebhookRequest query. */ + public query?: ("text"|"triggerIntent"|"transcript"|"triggerEvent"); /** - * Creates a new ListVersionsResponse instance using the specified properties. + * Creates a new WebhookRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListVersionsResponse instance + * @returns WebhookRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListVersionsResponse): google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IWebhookRequest): google.cloud.dialogflow.cx.v3beta1.WebhookRequest; /** - * Encodes the specified ListVersionsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse.verify|verify} messages. - * @param message ListVersionsResponse message or plain object to encode + * Encodes the specified WebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.verify|verify} messages. + * @param message WebhookRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse.verify|verify} messages. - * @param message ListVersionsResponse message or plain object to encode + * Encodes the specified WebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.verify|verify} messages. + * @param message WebhookRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListVersionsResponse message from the specified reader or buffer. + * Decodes a WebhookRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListVersionsResponse + * @returns WebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.WebhookRequest; /** - * Decodes a ListVersionsResponse message from the specified reader or buffer, length delimited. + * Decodes a WebhookRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListVersionsResponse + * @returns WebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.WebhookRequest; /** - * Verifies a ListVersionsResponse message. + * Verifies a WebhookRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListVersionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a WebhookRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListVersionsResponse + * @returns WebhookRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.WebhookRequest; /** - * Creates a plain object from a ListVersionsResponse message. Also converts values to other types if specified. - * @param message ListVersionsResponse + * Creates a plain object from a WebhookRequest message. Also converts values to other types if specified. + * @param message WebhookRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.WebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListVersionsResponse to JSON. + * Converts this WebhookRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetVersionRequest. */ - interface IGetVersionRequest { + namespace WebhookRequest { - /** GetVersionRequest name */ - name?: (string|null); - } + /** Properties of a FulfillmentInfo. */ + interface IFulfillmentInfo { - /** Represents a GetVersionRequest. */ - class GetVersionRequest implements IGetVersionRequest { + /** FulfillmentInfo tag */ + tag?: (string|null); + } - /** - * Constructs a new GetVersionRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest); + /** Represents a FulfillmentInfo. */ + class FulfillmentInfo implements IFulfillmentInfo { - /** GetVersionRequest name. */ - public name: string; + /** + * Constructs a new FulfillmentInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IFulfillmentInfo); - /** - * Creates a new GetVersionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetVersionRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest): google.cloud.dialogflow.cx.v3beta1.GetVersionRequest; + /** FulfillmentInfo tag. */ + public tag: string; - /** - * Encodes the specified GetVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetVersionRequest.verify|verify} messages. - * @param message GetVersionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new FulfillmentInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns FulfillmentInfo instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IFulfillmentInfo): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo; - /** - * Encodes the specified GetVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetVersionRequest.verify|verify} messages. - * @param message GetVersionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified FulfillmentInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.verify|verify} messages. + * @param message FulfillmentInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IFulfillmentInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a GetVersionRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetVersionRequest; + /** + * Encodes the specified FulfillmentInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.verify|verify} messages. + * @param message FulfillmentInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IFulfillmentInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a GetVersionRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetVersionRequest; + /** + * Decodes a FulfillmentInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FulfillmentInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo; + + /** + * Decodes a FulfillmentInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FulfillmentInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo; + + /** + * Verifies a FulfillmentInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FulfillmentInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FulfillmentInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo; + + /** + * Creates a plain object from a FulfillmentInfo message. Also converts values to other types if specified. + * @param message FulfillmentInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FulfillmentInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an IntentInfo. */ + interface IIntentInfo { + + /** IntentInfo lastMatchedIntent */ + lastMatchedIntent?: (string|null); + + /** IntentInfo displayName */ + displayName?: (string|null); + + /** IntentInfo parameters */ + parameters?: ({ [k: string]: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IIntentParameterValue }|null); + + /** IntentInfo confidence */ + confidence?: (number|null); + } + + /** Represents an IntentInfo. */ + class IntentInfo implements IIntentInfo { + + /** + * Constructs a new IntentInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IIntentInfo); + + /** IntentInfo lastMatchedIntent. */ + public lastMatchedIntent: string; + + /** IntentInfo displayName. */ + public displayName: string; + + /** IntentInfo parameters. */ + public parameters: { [k: string]: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IIntentParameterValue }; + + /** IntentInfo confidence. */ + public confidence: number; + + /** + * Creates a new IntentInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns IntentInfo instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IIntentInfo): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo; + + /** + * Encodes the specified IntentInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.verify|verify} messages. + * @param message IntentInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IIntentInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified IntentInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.verify|verify} messages. + * @param message IntentInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IIntentInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IntentInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IntentInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo; + + /** + * Decodes an IntentInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IntentInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo; + + /** + * Verifies an IntentInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an IntentInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IntentInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo; + + /** + * Creates a plain object from an IntentInfo message. Also converts values to other types if specified. + * @param message IntentInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this IntentInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace IntentInfo { + + /** Properties of an IntentParameterValue. */ + interface IIntentParameterValue { + + /** IntentParameterValue originalValue */ + originalValue?: (string|null); + + /** IntentParameterValue resolvedValue */ + resolvedValue?: (google.protobuf.IValue|null); + } + + /** Represents an IntentParameterValue. */ + class IntentParameterValue implements IIntentParameterValue { + + /** + * Constructs a new IntentParameterValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IIntentParameterValue); + + /** IntentParameterValue originalValue. */ + public originalValue: string; + + /** IntentParameterValue resolvedValue. */ + public resolvedValue?: (google.protobuf.IValue|null); + + /** + * Creates a new IntentParameterValue instance using the specified properties. + * @param [properties] Properties to set + * @returns IntentParameterValue instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IIntentParameterValue): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue; + + /** + * Encodes the specified IntentParameterValue message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue.verify|verify} messages. + * @param message IntentParameterValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IIntentParameterValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified IntentParameterValue message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue.verify|verify} messages. + * @param message IntentParameterValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IIntentParameterValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IntentParameterValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IntentParameterValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue; + + /** + * Decodes an IntentParameterValue message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IntentParameterValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue; + + /** + * Verifies an IntentParameterValue message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an IntentParameterValue message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IntentParameterValue + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue; + + /** + * Creates a plain object from an IntentParameterValue message. Also converts values to other types if specified. + * @param message IntentParameterValue + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this IntentParameterValue to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a SentimentAnalysisResult. */ + interface ISentimentAnalysisResult { + + /** SentimentAnalysisResult score */ + score?: (number|null); + + /** SentimentAnalysisResult magnitude */ + magnitude?: (number|null); + } + + /** Represents a SentimentAnalysisResult. */ + class SentimentAnalysisResult implements ISentimentAnalysisResult { + + /** + * Constructs a new SentimentAnalysisResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.ISentimentAnalysisResult); + + /** SentimentAnalysisResult score. */ + public score: number; + + /** SentimentAnalysisResult magnitude. */ + public magnitude: number; + + /** + * Creates a new SentimentAnalysisResult instance using the specified properties. + * @param [properties] Properties to set + * @returns SentimentAnalysisResult instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.ISentimentAnalysisResult): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult; + + /** + * Encodes the specified SentimentAnalysisResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult.verify|verify} messages. + * @param message SentimentAnalysisResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SentimentAnalysisResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult.verify|verify} messages. + * @param message SentimentAnalysisResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SentimentAnalysisResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SentimentAnalysisResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult; + + /** + * Decodes a SentimentAnalysisResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SentimentAnalysisResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult; + + /** + * Verifies a SentimentAnalysisResult message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SentimentAnalysisResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SentimentAnalysisResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult; + + /** + * Creates a plain object from a SentimentAnalysisResult message. Also converts values to other types if specified. + * @param message SentimentAnalysisResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Verifies a GetVersionRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Converts this SentimentAnalysisResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } - /** - * Creates a GetVersionRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetVersionRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetVersionRequest; + /** Properties of a WebhookResponse. */ + interface IWebhookResponse { - /** - * Creates a plain object from a GetVersionRequest message. Also converts values to other types if specified. - * @param message GetVersionRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** WebhookResponse fulfillmentResponse */ + fulfillmentResponse?: (google.cloud.dialogflow.cx.v3beta1.WebhookResponse.IFulfillmentResponse|null); - /** - * Converts this GetVersionRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** WebhookResponse pageInfo */ + pageInfo?: (google.cloud.dialogflow.cx.v3beta1.IPageInfo|null); - /** Properties of a CreateVersionRequest. */ - interface ICreateVersionRequest { + /** WebhookResponse sessionInfo */ + sessionInfo?: (google.cloud.dialogflow.cx.v3beta1.ISessionInfo|null); - /** CreateVersionRequest parent */ - parent?: (string|null); + /** WebhookResponse payload */ + payload?: (google.protobuf.IStruct|null); - /** CreateVersionRequest version */ - version?: (google.cloud.dialogflow.cx.v3beta1.IVersion|null); + /** WebhookResponse targetPage */ + targetPage?: (string|null); + + /** WebhookResponse targetFlow */ + targetFlow?: (string|null); } - /** Represents a CreateVersionRequest. */ - class CreateVersionRequest implements ICreateVersionRequest { + /** Represents a WebhookResponse. */ + class WebhookResponse implements IWebhookResponse { /** - * Constructs a new CreateVersionRequest. + * Constructs a new WebhookResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IWebhookResponse); - /** CreateVersionRequest parent. */ - public parent: string; + /** WebhookResponse fulfillmentResponse. */ + public fulfillmentResponse?: (google.cloud.dialogflow.cx.v3beta1.WebhookResponse.IFulfillmentResponse|null); - /** CreateVersionRequest version. */ - public version?: (google.cloud.dialogflow.cx.v3beta1.IVersion|null); + /** WebhookResponse pageInfo. */ + public pageInfo?: (google.cloud.dialogflow.cx.v3beta1.IPageInfo|null); + + /** WebhookResponse sessionInfo. */ + public sessionInfo?: (google.cloud.dialogflow.cx.v3beta1.ISessionInfo|null); + + /** WebhookResponse payload. */ + public payload?: (google.protobuf.IStruct|null); + + /** WebhookResponse targetPage. */ + public targetPage?: (string|null); + + /** WebhookResponse targetFlow. */ + public targetFlow?: (string|null); + + /** WebhookResponse transition. */ + public transition?: ("targetPage"|"targetFlow"); /** - * Creates a new CreateVersionRequest instance using the specified properties. + * Creates a new WebhookResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateVersionRequest instance + * @returns WebhookResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest): google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IWebhookResponse): google.cloud.dialogflow.cx.v3beta1.WebhookResponse; /** - * Encodes the specified CreateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest.verify|verify} messages. - * @param message CreateVersionRequest message or plain object to encode + * Encodes the specified WebhookResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookResponse.verify|verify} messages. + * @param message WebhookResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IWebhookResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest.verify|verify} messages. - * @param message CreateVersionRequest message or plain object to encode + * Encodes the specified WebhookResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookResponse.verify|verify} messages. + * @param message WebhookResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IWebhookResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateVersionRequest message from the specified reader or buffer. + * Decodes a WebhookResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateVersionRequest + * @returns WebhookResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.WebhookResponse; /** - * Decodes a CreateVersionRequest message from the specified reader or buffer, length delimited. + * Decodes a WebhookResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateVersionRequest + * @returns WebhookResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.WebhookResponse; /** - * Verifies a CreateVersionRequest message. + * Verifies a WebhookResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateVersionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a WebhookResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateVersionRequest + * @returns WebhookResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.WebhookResponse; /** - * Creates a plain object from a CreateVersionRequest message. Also converts values to other types if specified. - * @param message CreateVersionRequest + * Creates a plain object from a WebhookResponse message. Also converts values to other types if specified. + * @param message WebhookResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.WebhookResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateVersionRequest to JSON. + * Converts this WebhookResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateVersionRequest. */ - interface IUpdateVersionRequest { + namespace WebhookResponse { - /** UpdateVersionRequest version */ - version?: (google.cloud.dialogflow.cx.v3beta1.IVersion|null); + /** Properties of a FulfillmentResponse. */ + interface IFulfillmentResponse { - /** UpdateVersionRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); - } + /** FulfillmentResponse messages */ + messages?: (google.cloud.dialogflow.cx.v3beta1.IResponseMessage[]|null); - /** Represents an UpdateVersionRequest. */ - class UpdateVersionRequest implements IUpdateVersionRequest { + /** FulfillmentResponse mergeBehavior */ + mergeBehavior?: (google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior|keyof typeof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior|null); + } - /** - * Constructs a new UpdateVersionRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest); + /** Represents a FulfillmentResponse. */ + class FulfillmentResponse implements IFulfillmentResponse { - /** UpdateVersionRequest version. */ - public version?: (google.cloud.dialogflow.cx.v3beta1.IVersion|null); + /** + * Constructs a new FulfillmentResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.WebhookResponse.IFulfillmentResponse); - /** UpdateVersionRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** FulfillmentResponse messages. */ + public messages: google.cloud.dialogflow.cx.v3beta1.IResponseMessage[]; - /** - * Creates a new UpdateVersionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateVersionRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest): google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest; + /** FulfillmentResponse mergeBehavior. */ + public mergeBehavior: (google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior|keyof typeof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior); - /** - * Encodes the specified UpdateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest.verify|verify} messages. - * @param message UpdateVersionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new FulfillmentResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns FulfillmentResponse instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.WebhookResponse.IFulfillmentResponse): google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse; - /** - * Encodes the specified UpdateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest.verify|verify} messages. - * @param message UpdateVersionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified FulfillmentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.verify|verify} messages. + * @param message FulfillmentResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.WebhookResponse.IFulfillmentResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an UpdateVersionRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest; + /** + * Encodes the specified FulfillmentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.verify|verify} messages. + * @param message FulfillmentResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.WebhookResponse.IFulfillmentResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an UpdateVersionRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest; + /** + * Decodes a FulfillmentResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FulfillmentResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse; - /** - * Verifies an UpdateVersionRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a FulfillmentResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FulfillmentResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse; - /** - * Creates an UpdateVersionRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateVersionRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest; + /** + * Verifies a FulfillmentResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a plain object from an UpdateVersionRequest message. Also converts values to other types if specified. - * @param message UpdateVersionRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a FulfillmentResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FulfillmentResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse; - /** - * Converts this UpdateVersionRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a FulfillmentResponse message. Also converts values to other types if specified. + * @param message FulfillmentResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FulfillmentResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace FulfillmentResponse { + + /** MergeBehavior enum. */ + enum MergeBehavior { + MERGE_BEHAVIOR_UNSPECIFIED = 0, + APPEND = 1, + REPLACE = 2 + } + } } - /** Properties of a DeleteVersionRequest. */ - interface IDeleteVersionRequest { + /** Properties of a PageInfo. */ + interface IPageInfo { - /** DeleteVersionRequest name */ - name?: (string|null); + /** PageInfo currentPage */ + currentPage?: (string|null); + + /** PageInfo displayName */ + displayName?: (string|null); + + /** PageInfo formInfo */ + formInfo?: (google.cloud.dialogflow.cx.v3beta1.PageInfo.IFormInfo|null); } - /** Represents a DeleteVersionRequest. */ - class DeleteVersionRequest implements IDeleteVersionRequest { + /** Represents a PageInfo. */ + class PageInfo implements IPageInfo { /** - * Constructs a new DeleteVersionRequest. + * Constructs a new PageInfo. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IPageInfo); - /** DeleteVersionRequest name. */ - public name: string; + /** PageInfo currentPage. */ + public currentPage: string; + + /** PageInfo displayName. */ + public displayName: string; + + /** PageInfo formInfo. */ + public formInfo?: (google.cloud.dialogflow.cx.v3beta1.PageInfo.IFormInfo|null); /** - * Creates a new DeleteVersionRequest instance using the specified properties. + * Creates a new PageInfo instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteVersionRequest instance + * @returns PageInfo instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest): google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IPageInfo): google.cloud.dialogflow.cx.v3beta1.PageInfo; /** - * Encodes the specified DeleteVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest.verify|verify} messages. - * @param message DeleteVersionRequest message or plain object to encode + * Encodes the specified PageInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.PageInfo.verify|verify} messages. + * @param message PageInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IPageInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest.verify|verify} messages. - * @param message DeleteVersionRequest message or plain object to encode + * Encodes the specified PageInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.PageInfo.verify|verify} messages. + * @param message PageInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IPageInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteVersionRequest message from the specified reader or buffer. + * Decodes a PageInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteVersionRequest + * @returns PageInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.PageInfo; /** - * Decodes a DeleteVersionRequest message from the specified reader or buffer, length delimited. + * Decodes a PageInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteVersionRequest + * @returns PageInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.PageInfo; /** - * Verifies a DeleteVersionRequest message. + * Verifies a PageInfo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteVersionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PageInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteVersionRequest + * @returns PageInfo */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.PageInfo; /** - * Creates a plain object from a DeleteVersionRequest message. Also converts values to other types if specified. - * @param message DeleteVersionRequest + * Creates a plain object from a PageInfo message. Also converts values to other types if specified. + * @param message PageInfo * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.PageInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteVersionRequest to JSON. + * Converts this PageInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a LoadVersionRequest. */ - interface ILoadVersionRequest { + namespace PageInfo { - /** LoadVersionRequest name */ - name?: (string|null); + /** Properties of a FormInfo. */ + interface IFormInfo { - /** LoadVersionRequest allowOverrideAgentResources */ - allowOverrideAgentResources?: (boolean|null); - } + /** FormInfo parameterInfo */ + parameterInfo?: (google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.IParameterInfo[]|null); + } - /** Represents a LoadVersionRequest. */ - class LoadVersionRequest implements ILoadVersionRequest { + /** Represents a FormInfo. */ + class FormInfo implements IFormInfo { - /** - * Constructs a new LoadVersionRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest); + /** + * Constructs a new FormInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.PageInfo.IFormInfo); - /** LoadVersionRequest name. */ - public name: string; + /** FormInfo parameterInfo. */ + public parameterInfo: google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.IParameterInfo[]; - /** LoadVersionRequest allowOverrideAgentResources. */ - public allowOverrideAgentResources: boolean; + /** + * Creates a new FormInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns FormInfo instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.PageInfo.IFormInfo): google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo; - /** - * Creates a new LoadVersionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns LoadVersionRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest): google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest; + /** + * Encodes the specified FormInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.verify|verify} messages. + * @param message FormInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.PageInfo.IFormInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified LoadVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest.verify|verify} messages. - * @param message LoadVersionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified FormInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.verify|verify} messages. + * @param message FormInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.PageInfo.IFormInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified LoadVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest.verify|verify} messages. - * @param message LoadVersionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a FormInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FormInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo; - /** - * Decodes a LoadVersionRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LoadVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest; + /** + * Decodes a FormInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FormInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo; + + /** + * Verifies a FormInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FormInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FormInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo; + + /** + * Creates a plain object from a FormInfo message. Also converts values to other types if specified. + * @param message FormInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FormInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace FormInfo { + + /** Properties of a ParameterInfo. */ + interface IParameterInfo { - /** - * Decodes a LoadVersionRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LoadVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest; + /** ParameterInfo displayName */ + displayName?: (string|null); - /** - * Verifies a LoadVersionRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** ParameterInfo required */ + required?: (boolean|null); - /** - * Creates a LoadVersionRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LoadVersionRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest; + /** ParameterInfo state */ + state?: (google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.ParameterState|keyof typeof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.ParameterState|null); - /** - * Creates a plain object from a LoadVersionRequest message. Also converts values to other types if specified. - * @param message LoadVersionRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ParameterInfo value */ + value?: (google.protobuf.IValue|null); - /** - * Converts this LoadVersionRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** ParameterInfo justCollected */ + justCollected?: (boolean|null); + } - /** Properties of a CompareVersionsRequest. */ - interface ICompareVersionsRequest { + /** Represents a ParameterInfo. */ + class ParameterInfo implements IParameterInfo { - /** CompareVersionsRequest baseVersion */ - baseVersion?: (string|null); + /** + * Constructs a new ParameterInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.IParameterInfo); - /** CompareVersionsRequest targetVersion */ - targetVersion?: (string|null); + /** ParameterInfo displayName. */ + public displayName: string; - /** CompareVersionsRequest languageCode */ - languageCode?: (string|null); - } + /** ParameterInfo required. */ + public required: boolean; - /** Represents a CompareVersionsRequest. */ - class CompareVersionsRequest implements ICompareVersionsRequest { + /** ParameterInfo state. */ + public state: (google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.ParameterState|keyof typeof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.ParameterState); - /** - * Constructs a new CompareVersionsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICompareVersionsRequest); + /** ParameterInfo value. */ + public value?: (google.protobuf.IValue|null); - /** CompareVersionsRequest baseVersion. */ - public baseVersion: string; + /** ParameterInfo justCollected. */ + public justCollected: boolean; - /** CompareVersionsRequest targetVersion. */ - public targetVersion: string; + /** + * Creates a new ParameterInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns ParameterInfo instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.IParameterInfo): google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo; - /** CompareVersionsRequest languageCode. */ - public languageCode: string; + /** + * Encodes the specified ParameterInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.verify|verify} messages. + * @param message ParameterInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.IParameterInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new CompareVersionsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CompareVersionsRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICompareVersionsRequest): google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest; + /** + * Encodes the specified ParameterInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.verify|verify} messages. + * @param message ParameterInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.IParameterInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified CompareVersionsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest.verify|verify} messages. - * @param message CompareVersionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICompareVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a ParameterInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ParameterInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo; - /** - * Encodes the specified CompareVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest.verify|verify} messages. - * @param message CompareVersionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICompareVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a ParameterInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ParameterInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo; - /** - * Decodes a CompareVersionsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CompareVersionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest; + /** + * Verifies a ParameterInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes a CompareVersionsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CompareVersionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest; + /** + * Creates a ParameterInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ParameterInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo; - /** - * Verifies a CompareVersionsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a plain object from a ParameterInfo message. Also converts values to other types if specified. + * @param message ParameterInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a CompareVersionsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CompareVersionsRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest; + /** + * Converts this ParameterInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Creates a plain object from a CompareVersionsRequest message. Also converts values to other types if specified. - * @param message CompareVersionsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + namespace ParameterInfo { - /** - * Converts this CompareVersionsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ParameterState enum. */ + enum ParameterState { + PARAMETER_STATE_UNSPECIFIED = 0, + EMPTY = 1, + INVALID = 2, + FILLED = 3 + } + } + } } - /** Properties of a CompareVersionsResponse. */ - interface ICompareVersionsResponse { - - /** CompareVersionsResponse baseVersionContentJson */ - baseVersionContentJson?: (string|null); + /** Properties of a SessionInfo. */ + interface ISessionInfo { - /** CompareVersionsResponse targetVersionContentJson */ - targetVersionContentJson?: (string|null); + /** SessionInfo session */ + session?: (string|null); - /** CompareVersionsResponse compareTime */ - compareTime?: (google.protobuf.ITimestamp|null); + /** SessionInfo parameters */ + parameters?: ({ [k: string]: google.protobuf.IValue }|null); } - /** Represents a CompareVersionsResponse. */ - class CompareVersionsResponse implements ICompareVersionsResponse { + /** Represents a SessionInfo. */ + class SessionInfo implements ISessionInfo { /** - * Constructs a new CompareVersionsResponse. + * Constructs a new SessionInfo. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICompareVersionsResponse); - - /** CompareVersionsResponse baseVersionContentJson. */ - public baseVersionContentJson: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISessionInfo); - /** CompareVersionsResponse targetVersionContentJson. */ - public targetVersionContentJson: string; + /** SessionInfo session. */ + public session: string; - /** CompareVersionsResponse compareTime. */ - public compareTime?: (google.protobuf.ITimestamp|null); + /** SessionInfo parameters. */ + public parameters: { [k: string]: google.protobuf.IValue }; /** - * Creates a new CompareVersionsResponse instance using the specified properties. + * Creates a new SessionInfo instance using the specified properties. * @param [properties] Properties to set - * @returns CompareVersionsResponse instance + * @returns SessionInfo instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICompareVersionsResponse): google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ISessionInfo): google.cloud.dialogflow.cx.v3beta1.SessionInfo; /** - * Encodes the specified CompareVersionsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse.verify|verify} messages. - * @param message CompareVersionsResponse message or plain object to encode + * Encodes the specified SessionInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SessionInfo.verify|verify} messages. + * @param message SessionInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICompareVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ISessionInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CompareVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse.verify|verify} messages. - * @param message CompareVersionsResponse message or plain object to encode + * Encodes the specified SessionInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SessionInfo.verify|verify} messages. + * @param message SessionInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICompareVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ISessionInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CompareVersionsResponse message from the specified reader or buffer. + * Decodes a SessionInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CompareVersionsResponse + * @returns SessionInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.SessionInfo; /** - * Decodes a CompareVersionsResponse message from the specified reader or buffer, length delimited. + * Decodes a SessionInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CompareVersionsResponse + * @returns SessionInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.SessionInfo; /** - * Verifies a CompareVersionsResponse message. + * Verifies a SessionInfo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CompareVersionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SessionInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CompareVersionsResponse + * @returns SessionInfo */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SessionInfo; /** - * Creates a plain object from a CompareVersionsResponse message. Also converts values to other types if specified. - * @param message CompareVersionsResponse + * Creates a plain object from a SessionInfo message. Also converts values to other types if specified. + * @param message SessionInfo * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.SessionInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CompareVersionsResponse to JSON. + * Converts this SessionInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; @@ -55820,6 +55820,18 @@ export namespace google { /** Namespace api. */ namespace api { + /** FieldBehavior enum. */ + enum FieldBehavior { + FIELD_BEHAVIOR_UNSPECIFIED = 0, + OPTIONAL = 1, + REQUIRED = 2, + OUTPUT_ONLY = 3, + INPUT_ONLY = 4, + IMMUTABLE = 5, + UNORDERED_LIST = 6, + NON_EMPTY_DEFAULT = 7 + } + /** Properties of a Http. */ interface IHttp { @@ -56159,18 +56171,6 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** FieldBehavior enum. */ - enum FieldBehavior { - FIELD_BEHAVIOR_UNSPECIFIED = 0, - OPTIONAL = 1, - REQUIRED = 2, - OUTPUT_ONLY = 3, - INPUT_ONLY = 4, - IMMUTABLE = 5, - UNORDERED_LIST = 6, - NON_EMPTY_DEFAULT = 7 - } - /** Properties of a ResourceDescriptor. */ interface IResourceDescriptor { @@ -59542,102 +59542,6 @@ export namespace google { } } - /** Properties of a Duration. */ - interface IDuration { - - /** Duration seconds */ - seconds?: (number|Long|string|null); - - /** Duration nanos */ - nanos?: (number|null); - } - - /** Represents a Duration. */ - class Duration implements IDuration { - - /** - * Constructs a new Duration. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IDuration); - - /** Duration seconds. */ - public seconds: (number|Long|string); - - /** Duration nanos. */ - public nanos: number; - - /** - * Creates a new Duration instance using the specified properties. - * @param [properties] Properties to set - * @returns Duration instance - */ - public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration; - - /** - * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. - * @param message Duration message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. - * @param message Duration message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Duration message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Duration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration; - - /** - * Decodes a Duration message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Duration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration; - - /** - * Verifies a Duration message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Duration message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Duration - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.Duration; - - /** - * Creates a plain object from a Duration message. Also converts values to other types if specified. - * @param message Duration - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Duration to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - /** Properties of a Struct. */ interface IStruct { @@ -60216,6 +60120,102 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a Duration. */ + interface IDuration { + + /** Duration seconds */ + seconds?: (number|Long|string|null); + + /** Duration nanos */ + nanos?: (number|null); + } + + /** Represents a Duration. */ + class Duration implements IDuration { + + /** + * Constructs a new Duration. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IDuration); + + /** Duration seconds. */ + public seconds: (number|Long|string); + + /** Duration nanos. */ + public nanos: number; + + /** + * Creates a new Duration instance using the specified properties. + * @param [properties] Properties to set + * @returns Duration instance + */ + public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration; + + /** + * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @param message Duration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @param message Duration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Duration message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration; + + /** + * Decodes a Duration message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration; + + /** + * Verifies a Duration message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Duration message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Duration + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.Duration; + + /** + * Creates a plain object from a Duration message. Also converts values to other types if specified. + * @param message Duration + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Duration to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a Timestamp. */ interface ITimestamp { diff --git a/packages/google-cloud-dialogflow-cx/protos/protos.js b/packages/google-cloud-dialogflow-cx/protos/protos.js index 8472d19c509..85565c96cf9 100644 --- a/packages/google-cloud-dialogflow-cx/protos/protos.js +++ b/packages/google-cloud-dialogflow-cx/protos/protos.js @@ -16165,300 +16165,186 @@ return ResourceName; })(); - v3.SecuritySettingsService = (function() { - - /** - * Constructs a new SecuritySettingsService service. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a SecuritySettingsService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function SecuritySettingsService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (SecuritySettingsService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = SecuritySettingsService; - - /** - * Creates new SecuritySettingsService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {SecuritySettingsService} RPC service. Useful where requests and/or responses are streamed. - */ - SecuritySettingsService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#createSecuritySettings}. - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService - * @typedef CreateSecuritySettingsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.SecuritySettings} [response] SecuritySettings - */ - - /** - * Calls CreateSecuritySettings. - * @function createSecuritySettings - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService - * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest} request CreateSecuritySettingsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettingsCallback} callback Node-style callback called with the error, if any, and SecuritySettings - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SecuritySettingsService.prototype.createSecuritySettings = function createSecuritySettings(request, callback) { - return this.rpcCall(createSecuritySettings, $root.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest, $root.google.cloud.dialogflow.cx.v3.SecuritySettings, request, callback); - }, "name", { value: "CreateSecuritySettings" }); - - /** - * Calls CreateSecuritySettings. - * @function createSecuritySettings - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService - * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest} request CreateSecuritySettingsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#getSecuritySettings}. - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService - * @typedef GetSecuritySettingsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.SecuritySettings} [response] SecuritySettings - */ - - /** - * Calls GetSecuritySettings. - * @function getSecuritySettings - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService - * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest} request GetSecuritySettingsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.SecuritySettingsService.GetSecuritySettingsCallback} callback Node-style callback called with the error, if any, and SecuritySettings - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SecuritySettingsService.prototype.getSecuritySettings = function getSecuritySettings(request, callback) { - return this.rpcCall(getSecuritySettings, $root.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest, $root.google.cloud.dialogflow.cx.v3.SecuritySettings, request, callback); - }, "name", { value: "GetSecuritySettings" }); - - /** - * Calls GetSecuritySettings. - * @function getSecuritySettings - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService - * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest} request GetSecuritySettingsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#updateSecuritySettings}. - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService - * @typedef UpdateSecuritySettingsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.SecuritySettings} [response] SecuritySettings - */ + /** + * AudioEncoding enum. + * @name google.cloud.dialogflow.cx.v3.AudioEncoding + * @enum {number} + * @property {number} AUDIO_ENCODING_UNSPECIFIED=0 AUDIO_ENCODING_UNSPECIFIED value + * @property {number} AUDIO_ENCODING_LINEAR_16=1 AUDIO_ENCODING_LINEAR_16 value + * @property {number} AUDIO_ENCODING_FLAC=2 AUDIO_ENCODING_FLAC value + * @property {number} AUDIO_ENCODING_MULAW=3 AUDIO_ENCODING_MULAW value + * @property {number} AUDIO_ENCODING_AMR=4 AUDIO_ENCODING_AMR value + * @property {number} AUDIO_ENCODING_AMR_WB=5 AUDIO_ENCODING_AMR_WB value + * @property {number} AUDIO_ENCODING_OGG_OPUS=6 AUDIO_ENCODING_OGG_OPUS value + * @property {number} AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE=7 AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE value + */ + v3.AudioEncoding = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "AUDIO_ENCODING_UNSPECIFIED"] = 0; + values[valuesById[1] = "AUDIO_ENCODING_LINEAR_16"] = 1; + values[valuesById[2] = "AUDIO_ENCODING_FLAC"] = 2; + values[valuesById[3] = "AUDIO_ENCODING_MULAW"] = 3; + values[valuesById[4] = "AUDIO_ENCODING_AMR"] = 4; + values[valuesById[5] = "AUDIO_ENCODING_AMR_WB"] = 5; + values[valuesById[6] = "AUDIO_ENCODING_OGG_OPUS"] = 6; + values[valuesById[7] = "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE"] = 7; + return values; + })(); - /** - * Calls UpdateSecuritySettings. - * @function updateSecuritySettings - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService - * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest} request UpdateSecuritySettingsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettingsCallback} callback Node-style callback called with the error, if any, and SecuritySettings - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SecuritySettingsService.prototype.updateSecuritySettings = function updateSecuritySettings(request, callback) { - return this.rpcCall(updateSecuritySettings, $root.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest, $root.google.cloud.dialogflow.cx.v3.SecuritySettings, request, callback); - }, "name", { value: "UpdateSecuritySettings" }); + /** + * SpeechModelVariant enum. + * @name google.cloud.dialogflow.cx.v3.SpeechModelVariant + * @enum {number} + * @property {number} SPEECH_MODEL_VARIANT_UNSPECIFIED=0 SPEECH_MODEL_VARIANT_UNSPECIFIED value + * @property {number} USE_BEST_AVAILABLE=1 USE_BEST_AVAILABLE value + * @property {number} USE_STANDARD=2 USE_STANDARD value + * @property {number} USE_ENHANCED=3 USE_ENHANCED value + */ + v3.SpeechModelVariant = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SPEECH_MODEL_VARIANT_UNSPECIFIED"] = 0; + values[valuesById[1] = "USE_BEST_AVAILABLE"] = 1; + values[valuesById[2] = "USE_STANDARD"] = 2; + values[valuesById[3] = "USE_ENHANCED"] = 3; + return values; + })(); - /** - * Calls UpdateSecuritySettings. - * @function updateSecuritySettings - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService - * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest} request UpdateSecuritySettingsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + v3.SpeechWordInfo = (function() { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#listSecuritySettings}. - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService - * @typedef ListSecuritySettingsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} [response] ListSecuritySettingsResponse + * Properties of a SpeechWordInfo. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface ISpeechWordInfo + * @property {string|null} [word] SpeechWordInfo word + * @property {google.protobuf.IDuration|null} [startOffset] SpeechWordInfo startOffset + * @property {google.protobuf.IDuration|null} [endOffset] SpeechWordInfo endOffset + * @property {number|null} [confidence] SpeechWordInfo confidence */ /** - * Calls ListSecuritySettings. - * @function listSecuritySettings - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService - * @instance - * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest} request ListSecuritySettingsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.SecuritySettingsService.ListSecuritySettingsCallback} callback Node-style callback called with the error, if any, and ListSecuritySettingsResponse - * @returns {undefined} - * @variation 1 + * Constructs a new SpeechWordInfo. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a SpeechWordInfo. + * @implements ISpeechWordInfo + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ISpeechWordInfo=} [properties] Properties to set */ - Object.defineProperty(SecuritySettingsService.prototype.listSecuritySettings = function listSecuritySettings(request, callback) { - return this.rpcCall(listSecuritySettings, $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest, $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse, request, callback); - }, "name", { value: "ListSecuritySettings" }); + function SpeechWordInfo(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls ListSecuritySettings. - * @function listSecuritySettings - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * SpeechWordInfo word. + * @member {string} word + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo * @instance - * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest} request ListSecuritySettingsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#deleteSecuritySettings}. - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService - * @typedef DeleteSecuritySettingsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty */ + SpeechWordInfo.prototype.word = ""; /** - * Calls DeleteSecuritySettings. - * @function deleteSecuritySettings - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * SpeechWordInfo startOffset. + * @member {google.protobuf.IDuration|null|undefined} startOffset + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest} request DeleteSecuritySettingsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.SecuritySettingsService.DeleteSecuritySettingsCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(SecuritySettingsService.prototype.deleteSecuritySettings = function deleteSecuritySettings(request, callback) { - return this.rpcCall(deleteSecuritySettings, $root.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteSecuritySettings" }); + SpeechWordInfo.prototype.startOffset = null; /** - * Calls DeleteSecuritySettings. - * @function deleteSecuritySettings - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * SpeechWordInfo endOffset. + * @member {google.protobuf.IDuration|null|undefined} endOffset + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest} request DeleteSecuritySettingsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return SecuritySettingsService; - })(); - - v3.GetSecuritySettingsRequest = (function() { - - /** - * Properties of a GetSecuritySettingsRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IGetSecuritySettingsRequest - * @property {string|null} [name] GetSecuritySettingsRequest name - */ - - /** - * Constructs a new GetSecuritySettingsRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a GetSecuritySettingsRequest. - * @implements IGetSecuritySettingsRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest=} [properties] Properties to set */ - function GetSecuritySettingsRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + SpeechWordInfo.prototype.endOffset = null; /** - * GetSecuritySettingsRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * SpeechWordInfo confidence. + * @member {number} confidence + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo * @instance */ - GetSecuritySettingsRequest.prototype.name = ""; + SpeechWordInfo.prototype.confidence = 0; /** - * Creates a new GetSecuritySettingsRequest instance using the specified properties. + * Creates a new SpeechWordInfo instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo * @static - * @param {google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest} GetSecuritySettingsRequest instance + * @param {google.cloud.dialogflow.cx.v3.ISpeechWordInfo=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.SpeechWordInfo} SpeechWordInfo instance */ - GetSecuritySettingsRequest.create = function create(properties) { - return new GetSecuritySettingsRequest(properties); + SpeechWordInfo.create = function create(properties) { + return new SpeechWordInfo(properties); }; /** - * Encodes the specified GetSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest.verify|verify} messages. + * Encodes the specified SpeechWordInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SpeechWordInfo.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo * @static - * @param {google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest} message GetSecuritySettingsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ISpeechWordInfo} message SpeechWordInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSecuritySettingsRequest.encode = function encode(message, writer) { + SpeechWordInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.startOffset != null && Object.hasOwnProperty.call(message, "startOffset")) + $root.google.protobuf.Duration.encode(message.startOffset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.endOffset != null && Object.hasOwnProperty.call(message, "endOffset")) + $root.google.protobuf.Duration.encode(message.endOffset, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.word != null && Object.hasOwnProperty.call(message, "word")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.word); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + writer.uint32(/* id 4, wireType 5 =*/37).float(message.confidence); return writer; }; /** - * Encodes the specified GetSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest.verify|verify} messages. + * Encodes the specified SpeechWordInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SpeechWordInfo.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo * @static - * @param {google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest} message GetSecuritySettingsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ISpeechWordInfo} message SpeechWordInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + SpeechWordInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSecuritySettingsRequest message from the specified reader or buffer. + * Decodes a SpeechWordInfo message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest} GetSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3.SpeechWordInfo} SpeechWordInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSecuritySettingsRequest.decode = function decode(reader, length) { + SpeechWordInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.SpeechWordInfo(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 3: + message.word = reader.string(); + break; case 1: - message.name = reader.string(); + message.startOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 2: + message.endOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 4: + message.confidence = reader.float(); break; default: reader.skipType(tag & 7); @@ -16469,108 +16355,149 @@ }; /** - * Decodes a GetSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a SpeechWordInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest} GetSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3.SpeechWordInfo} SpeechWordInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { + SpeechWordInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetSecuritySettingsRequest message. + * Verifies a SpeechWordInfo message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSecuritySettingsRequest.verify = function verify(message) { + SpeechWordInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.word != null && message.hasOwnProperty("word")) + if (!$util.isString(message.word)) + return "word: string expected"; + if (message.startOffset != null && message.hasOwnProperty("startOffset")) { + var error = $root.google.protobuf.Duration.verify(message.startOffset); + if (error) + return "startOffset." + error; + } + if (message.endOffset != null && message.hasOwnProperty("endOffset")) { + var error = $root.google.protobuf.Duration.verify(message.endOffset); + if (error) + return "endOffset." + error; + } + if (message.confidence != null && message.hasOwnProperty("confidence")) + if (typeof message.confidence !== "number") + return "confidence: number expected"; return null; }; /** - * Creates a GetSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SpeechWordInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest} GetSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3.SpeechWordInfo} SpeechWordInfo */ - GetSecuritySettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest) + SpeechWordInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.SpeechWordInfo) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3.SpeechWordInfo(); + if (object.word != null) + message.word = String(object.word); + if (object.startOffset != null) { + if (typeof object.startOffset !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.SpeechWordInfo.startOffset: object expected"); + message.startOffset = $root.google.protobuf.Duration.fromObject(object.startOffset); + } + if (object.endOffset != null) { + if (typeof object.endOffset !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.SpeechWordInfo.endOffset: object expected"); + message.endOffset = $root.google.protobuf.Duration.fromObject(object.endOffset); + } + if (object.confidence != null) + message.confidence = Number(object.confidence); return message; }; /** - * Creates a plain object from a GetSecuritySettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from a SpeechWordInfo message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo * @static - * @param {google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest} message GetSecuritySettingsRequest + * @param {google.cloud.dialogflow.cx.v3.SpeechWordInfo} message SpeechWordInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSecuritySettingsRequest.toObject = function toObject(message, options) { + SpeechWordInfo.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.startOffset = null; + object.endOffset = null; + object.word = ""; + object.confidence = 0; + } + if (message.startOffset != null && message.hasOwnProperty("startOffset")) + object.startOffset = $root.google.protobuf.Duration.toObject(message.startOffset, options); + if (message.endOffset != null && message.hasOwnProperty("endOffset")) + object.endOffset = $root.google.protobuf.Duration.toObject(message.endOffset, options); + if (message.word != null && message.hasOwnProperty("word")) + object.word = message.word; + if (message.confidence != null && message.hasOwnProperty("confidence")) + object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; return object; }; /** - * Converts this GetSecuritySettingsRequest to JSON. + * Converts this SpeechWordInfo to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo * @instance * @returns {Object.} JSON object */ - GetSecuritySettingsRequest.prototype.toJSON = function toJSON() { + SpeechWordInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetSecuritySettingsRequest; + return SpeechWordInfo; })(); - v3.UpdateSecuritySettingsRequest = (function() { + v3.InputAudioConfig = (function() { /** - * Properties of an UpdateSecuritySettingsRequest. + * Properties of an InputAudioConfig. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IUpdateSecuritySettingsRequest - * @property {google.cloud.dialogflow.cx.v3.ISecuritySettings|null} [securitySettings] UpdateSecuritySettingsRequest securitySettings - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSecuritySettingsRequest updateMask + * @interface IInputAudioConfig + * @property {google.cloud.dialogflow.cx.v3.AudioEncoding|null} [audioEncoding] InputAudioConfig audioEncoding + * @property {number|null} [sampleRateHertz] InputAudioConfig sampleRateHertz + * @property {boolean|null} [enableWordInfo] InputAudioConfig enableWordInfo + * @property {Array.|null} [phraseHints] InputAudioConfig phraseHints + * @property {string|null} [model] InputAudioConfig model + * @property {google.cloud.dialogflow.cx.v3.SpeechModelVariant|null} [modelVariant] InputAudioConfig modelVariant + * @property {boolean|null} [singleUtterance] InputAudioConfig singleUtterance */ /** - * Constructs a new UpdateSecuritySettingsRequest. + * Constructs a new InputAudioConfig. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an UpdateSecuritySettingsRequest. - * @implements IUpdateSecuritySettingsRequest + * @classdesc Represents an InputAudioConfig. + * @implements IInputAudioConfig * @constructor - * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IInputAudioConfig=} [properties] Properties to set */ - function UpdateSecuritySettingsRequest(properties) { + function InputAudioConfig(properties) { + this.phraseHints = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16578,88 +16505,156 @@ } /** - * UpdateSecuritySettingsRequest securitySettings. - * @member {google.cloud.dialogflow.cx.v3.ISecuritySettings|null|undefined} securitySettings - * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest + * InputAudioConfig audioEncoding. + * @member {google.cloud.dialogflow.cx.v3.AudioEncoding} audioEncoding + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @instance */ - UpdateSecuritySettingsRequest.prototype.securitySettings = null; + InputAudioConfig.prototype.audioEncoding = 0; /** - * UpdateSecuritySettingsRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest + * InputAudioConfig sampleRateHertz. + * @member {number} sampleRateHertz + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @instance */ - UpdateSecuritySettingsRequest.prototype.updateMask = null; + InputAudioConfig.prototype.sampleRateHertz = 0; /** - * Creates a new UpdateSecuritySettingsRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest} UpdateSecuritySettingsRequest instance + * InputAudioConfig enableWordInfo. + * @member {boolean} enableWordInfo + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig + * @instance */ - UpdateSecuritySettingsRequest.create = function create(properties) { - return new UpdateSecuritySettingsRequest(properties); - }; + InputAudioConfig.prototype.enableWordInfo = false; /** - * Encodes the specified UpdateSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest} message UpdateSecuritySettingsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * InputAudioConfig phraseHints. + * @member {Array.} phraseHints + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig + * @instance */ - UpdateSecuritySettingsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.securitySettings != null && Object.hasOwnProperty.call(message, "securitySettings")) - $root.google.cloud.dialogflow.cx.v3.SecuritySettings.encode(message.securitySettings, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + InputAudioConfig.prototype.phraseHints = $util.emptyArray; + + /** + * InputAudioConfig model. + * @member {string} model + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig + * @instance + */ + InputAudioConfig.prototype.model = ""; + + /** + * InputAudioConfig modelVariant. + * @member {google.cloud.dialogflow.cx.v3.SpeechModelVariant} modelVariant + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig + * @instance + */ + InputAudioConfig.prototype.modelVariant = 0; + + /** + * InputAudioConfig singleUtterance. + * @member {boolean} singleUtterance + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig + * @instance + */ + InputAudioConfig.prototype.singleUtterance = false; + + /** + * Creates a new InputAudioConfig instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig + * @static + * @param {google.cloud.dialogflow.cx.v3.IInputAudioConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.InputAudioConfig} InputAudioConfig instance + */ + InputAudioConfig.create = function create(properties) { + return new InputAudioConfig(properties); + }; + + /** + * Encodes the specified InputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.InputAudioConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig + * @static + * @param {google.cloud.dialogflow.cx.v3.IInputAudioConfig} message InputAudioConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InputAudioConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.audioEncoding != null && Object.hasOwnProperty.call(message, "audioEncoding")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.audioEncoding); + if (message.sampleRateHertz != null && Object.hasOwnProperty.call(message, "sampleRateHertz")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.sampleRateHertz); + if (message.phraseHints != null && message.phraseHints.length) + for (var i = 0; i < message.phraseHints.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.phraseHints[i]); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.model); + if (message.singleUtterance != null && Object.hasOwnProperty.call(message, "singleUtterance")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.singleUtterance); + if (message.modelVariant != null && Object.hasOwnProperty.call(message, "modelVariant")) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.modelVariant); + if (message.enableWordInfo != null && Object.hasOwnProperty.call(message, "enableWordInfo")) + writer.uint32(/* id 13, wireType 0 =*/104).bool(message.enableWordInfo); return writer; }; /** - * Encodes the specified UpdateSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest.verify|verify} messages. + * Encodes the specified InputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.InputAudioConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest} message UpdateSecuritySettingsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IInputAudioConfig} message InputAudioConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + InputAudioConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateSecuritySettingsRequest message from the specified reader or buffer. + * Decodes an InputAudioConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest} UpdateSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3.InputAudioConfig} InputAudioConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateSecuritySettingsRequest.decode = function decode(reader, length) { + InputAudioConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.InputAudioConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.securitySettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.decode(reader, reader.uint32()); + message.audioEncoding = reader.int32(); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.sampleRateHertz = reader.int32(); + break; + case 13: + message.enableWordInfo = reader.bool(); + break; + case 4: + if (!(message.phraseHints && message.phraseHints.length)) + message.phraseHints = []; + message.phraseHints.push(reader.string()); + break; + case 7: + message.model = reader.string(); + break; + case 10: + message.modelVariant = reader.int32(); + break; + case 8: + message.singleUtterance = reader.bool(); break; default: reader.skipType(tag & 7); @@ -16670,128 +16665,254 @@ }; /** - * Decodes an UpdateSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * Decodes an InputAudioConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest} UpdateSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3.InputAudioConfig} InputAudioConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { + InputAudioConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateSecuritySettingsRequest message. + * Verifies an InputAudioConfig message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateSecuritySettingsRequest.verify = function verify(message) { + InputAudioConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) { - var error = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.verify(message.securitySettings); - if (error) - return "securitySettings." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; + if (message.audioEncoding != null && message.hasOwnProperty("audioEncoding")) + switch (message.audioEncoding) { + default: + return "audioEncoding: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + if (message.sampleRateHertz != null && message.hasOwnProperty("sampleRateHertz")) + if (!$util.isInteger(message.sampleRateHertz)) + return "sampleRateHertz: integer expected"; + if (message.enableWordInfo != null && message.hasOwnProperty("enableWordInfo")) + if (typeof message.enableWordInfo !== "boolean") + return "enableWordInfo: boolean expected"; + if (message.phraseHints != null && message.hasOwnProperty("phraseHints")) { + if (!Array.isArray(message.phraseHints)) + return "phraseHints: array expected"; + for (var i = 0; i < message.phraseHints.length; ++i) + if (!$util.isString(message.phraseHints[i])) + return "phraseHints: string[] expected"; } + if (message.model != null && message.hasOwnProperty("model")) + if (!$util.isString(message.model)) + return "model: string expected"; + if (message.modelVariant != null && message.hasOwnProperty("modelVariant")) + switch (message.modelVariant) { + default: + return "modelVariant: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.singleUtterance != null && message.hasOwnProperty("singleUtterance")) + if (typeof message.singleUtterance !== "boolean") + return "singleUtterance: boolean expected"; return null; }; /** - * Creates an UpdateSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an InputAudioConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest} UpdateSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3.InputAudioConfig} InputAudioConfig */ - UpdateSecuritySettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest) + InputAudioConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.InputAudioConfig) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest(); - if (object.securitySettings != null) { - if (typeof object.securitySettings !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest.securitySettings: object expected"); - message.securitySettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.fromObject(object.securitySettings); + var message = new $root.google.cloud.dialogflow.cx.v3.InputAudioConfig(); + switch (object.audioEncoding) { + case "AUDIO_ENCODING_UNSPECIFIED": + case 0: + message.audioEncoding = 0; + break; + case "AUDIO_ENCODING_LINEAR_16": + case 1: + message.audioEncoding = 1; + break; + case "AUDIO_ENCODING_FLAC": + case 2: + message.audioEncoding = 2; + break; + case "AUDIO_ENCODING_MULAW": + case 3: + message.audioEncoding = 3; + break; + case "AUDIO_ENCODING_AMR": + case 4: + message.audioEncoding = 4; + break; + case "AUDIO_ENCODING_AMR_WB": + case 5: + message.audioEncoding = 5; + break; + case "AUDIO_ENCODING_OGG_OPUS": + case 6: + message.audioEncoding = 6; + break; + case "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE": + case 7: + message.audioEncoding = 7; + break; } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + if (object.sampleRateHertz != null) + message.sampleRateHertz = object.sampleRateHertz | 0; + if (object.enableWordInfo != null) + message.enableWordInfo = Boolean(object.enableWordInfo); + if (object.phraseHints) { + if (!Array.isArray(object.phraseHints)) + throw TypeError(".google.cloud.dialogflow.cx.v3.InputAudioConfig.phraseHints: array expected"); + message.phraseHints = []; + for (var i = 0; i < object.phraseHints.length; ++i) + message.phraseHints[i] = String(object.phraseHints[i]); + } + if (object.model != null) + message.model = String(object.model); + switch (object.modelVariant) { + case "SPEECH_MODEL_VARIANT_UNSPECIFIED": + case 0: + message.modelVariant = 0; + break; + case "USE_BEST_AVAILABLE": + case 1: + message.modelVariant = 1; + break; + case "USE_STANDARD": + case 2: + message.modelVariant = 2; + break; + case "USE_ENHANCED": + case 3: + message.modelVariant = 3; + break; } + if (object.singleUtterance != null) + message.singleUtterance = Boolean(object.singleUtterance); return message; }; /** - * Creates a plain object from an UpdateSecuritySettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from an InputAudioConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest} message UpdateSecuritySettingsRequest + * @param {google.cloud.dialogflow.cx.v3.InputAudioConfig} message InputAudioConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateSecuritySettingsRequest.toObject = function toObject(message, options) { + InputAudioConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.phraseHints = []; if (options.defaults) { - object.securitySettings = null; - object.updateMask = null; + object.audioEncoding = options.enums === String ? "AUDIO_ENCODING_UNSPECIFIED" : 0; + object.sampleRateHertz = 0; + object.model = ""; + object.singleUtterance = false; + object.modelVariant = options.enums === String ? "SPEECH_MODEL_VARIANT_UNSPECIFIED" : 0; + object.enableWordInfo = false; } - if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) - object.securitySettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.toObject(message.securitySettings, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.audioEncoding != null && message.hasOwnProperty("audioEncoding")) + object.audioEncoding = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.AudioEncoding[message.audioEncoding] : message.audioEncoding; + if (message.sampleRateHertz != null && message.hasOwnProperty("sampleRateHertz")) + object.sampleRateHertz = message.sampleRateHertz; + if (message.phraseHints && message.phraseHints.length) { + object.phraseHints = []; + for (var j = 0; j < message.phraseHints.length; ++j) + object.phraseHints[j] = message.phraseHints[j]; + } + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; + if (message.singleUtterance != null && message.hasOwnProperty("singleUtterance")) + object.singleUtterance = message.singleUtterance; + if (message.modelVariant != null && message.hasOwnProperty("modelVariant")) + object.modelVariant = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.SpeechModelVariant[message.modelVariant] : message.modelVariant; + if (message.enableWordInfo != null && message.hasOwnProperty("enableWordInfo")) + object.enableWordInfo = message.enableWordInfo; return object; }; /** - * Converts this UpdateSecuritySettingsRequest to JSON. + * Converts this InputAudioConfig to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @instance * @returns {Object.} JSON object */ - UpdateSecuritySettingsRequest.prototype.toJSON = function toJSON() { + InputAudioConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateSecuritySettingsRequest; + return InputAudioConfig; })(); - v3.ListSecuritySettingsRequest = (function() { + /** + * SsmlVoiceGender enum. + * @name google.cloud.dialogflow.cx.v3.SsmlVoiceGender + * @enum {number} + * @property {number} SSML_VOICE_GENDER_UNSPECIFIED=0 SSML_VOICE_GENDER_UNSPECIFIED value + * @property {number} SSML_VOICE_GENDER_MALE=1 SSML_VOICE_GENDER_MALE value + * @property {number} SSML_VOICE_GENDER_FEMALE=2 SSML_VOICE_GENDER_FEMALE value + * @property {number} SSML_VOICE_GENDER_NEUTRAL=3 SSML_VOICE_GENDER_NEUTRAL value + */ + v3.SsmlVoiceGender = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SSML_VOICE_GENDER_UNSPECIFIED"] = 0; + values[valuesById[1] = "SSML_VOICE_GENDER_MALE"] = 1; + values[valuesById[2] = "SSML_VOICE_GENDER_FEMALE"] = 2; + values[valuesById[3] = "SSML_VOICE_GENDER_NEUTRAL"] = 3; + return values; + })(); + + v3.VoiceSelectionParams = (function() { /** - * Properties of a ListSecuritySettingsRequest. + * Properties of a VoiceSelectionParams. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListSecuritySettingsRequest - * @property {string|null} [parent] ListSecuritySettingsRequest parent - * @property {number|null} [pageSize] ListSecuritySettingsRequest pageSize - * @property {string|null} [pageToken] ListSecuritySettingsRequest pageToken + * @interface IVoiceSelectionParams + * @property {string|null} [name] VoiceSelectionParams name + * @property {google.cloud.dialogflow.cx.v3.SsmlVoiceGender|null} [ssmlGender] VoiceSelectionParams ssmlGender */ /** - * Constructs a new ListSecuritySettingsRequest. + * Constructs a new VoiceSelectionParams. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListSecuritySettingsRequest. - * @implements IListSecuritySettingsRequest + * @classdesc Represents a VoiceSelectionParams. + * @implements IVoiceSelectionParams * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IVoiceSelectionParams=} [properties] Properties to set */ - function ListSecuritySettingsRequest(properties) { + function VoiceSelectionParams(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16799,101 +16920,88 @@ } /** - * ListSecuritySettingsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest - * @instance - */ - ListSecuritySettingsRequest.prototype.parent = ""; - - /** - * ListSecuritySettingsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest + * VoiceSelectionParams name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams * @instance */ - ListSecuritySettingsRequest.prototype.pageSize = 0; + VoiceSelectionParams.prototype.name = ""; /** - * ListSecuritySettingsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest + * VoiceSelectionParams ssmlGender. + * @member {google.cloud.dialogflow.cx.v3.SsmlVoiceGender} ssmlGender + * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams * @instance */ - ListSecuritySettingsRequest.prototype.pageToken = ""; + VoiceSelectionParams.prototype.ssmlGender = 0; /** - * Creates a new ListSecuritySettingsRequest instance using the specified properties. + * Creates a new VoiceSelectionParams instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams * @static - * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest} ListSecuritySettingsRequest instance + * @param {google.cloud.dialogflow.cx.v3.IVoiceSelectionParams=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.VoiceSelectionParams} VoiceSelectionParams instance */ - ListSecuritySettingsRequest.create = function create(properties) { - return new ListSecuritySettingsRequest(properties); + VoiceSelectionParams.create = function create(properties) { + return new VoiceSelectionParams(properties); }; /** - * Encodes the specified ListSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest.verify|verify} messages. + * Encodes the specified VoiceSelectionParams message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VoiceSelectionParams.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams * @static - * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest} message ListSecuritySettingsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IVoiceSelectionParams} message VoiceSelectionParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSecuritySettingsRequest.encode = function encode(message, writer) { + VoiceSelectionParams.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.ssmlGender != null && Object.hasOwnProperty.call(message, "ssmlGender")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.ssmlGender); return writer; }; /** - * Encodes the specified ListSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest.verify|verify} messages. + * Encodes the specified VoiceSelectionParams message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VoiceSelectionParams.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams * @static - * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest} message ListSecuritySettingsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IVoiceSelectionParams} message VoiceSelectionParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + VoiceSelectionParams.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListSecuritySettingsRequest message from the specified reader or buffer. + * Decodes a VoiceSelectionParams message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest} ListSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3.VoiceSelectionParams} VoiceSelectionParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSecuritySettingsRequest.decode = function decode(reader, length) { + VoiceSelectionParams.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.VoiceSelectionParams(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.name = reader.string(); break; case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); + message.ssmlGender = reader.int32(); break; default: reader.skipType(tag & 7); @@ -16904,126 +17012,144 @@ }; /** - * Decodes a ListSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a VoiceSelectionParams message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest} ListSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3.VoiceSelectionParams} VoiceSelectionParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { + VoiceSelectionParams.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListSecuritySettingsRequest message. + * Verifies a VoiceSelectionParams message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListSecuritySettingsRequest.verify = function verify(message) { + VoiceSelectionParams.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.ssmlGender != null && message.hasOwnProperty("ssmlGender")) + switch (message.ssmlGender) { + default: + return "ssmlGender: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } return null; }; /** - * Creates a ListSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VoiceSelectionParams message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest} ListSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3.VoiceSelectionParams} VoiceSelectionParams */ - ListSecuritySettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest) + VoiceSelectionParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.VoiceSelectionParams) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.dialogflow.cx.v3.VoiceSelectionParams(); + if (object.name != null) + message.name = String(object.name); + switch (object.ssmlGender) { + case "SSML_VOICE_GENDER_UNSPECIFIED": + case 0: + message.ssmlGender = 0; + break; + case "SSML_VOICE_GENDER_MALE": + case 1: + message.ssmlGender = 1; + break; + case "SSML_VOICE_GENDER_FEMALE": + case 2: + message.ssmlGender = 2; + break; + case "SSML_VOICE_GENDER_NEUTRAL": + case 3: + message.ssmlGender = 3; + break; + } return message; }; /** - * Creates a plain object from a ListSecuritySettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from a VoiceSelectionParams message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams * @static - * @param {google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest} message ListSecuritySettingsRequest + * @param {google.cloud.dialogflow.cx.v3.VoiceSelectionParams} message VoiceSelectionParams * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListSecuritySettingsRequest.toObject = function toObject(message, options) { + VoiceSelectionParams.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.name = ""; + object.ssmlGender = options.enums === String ? "SSML_VOICE_GENDER_UNSPECIFIED" : 0; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.ssmlGender != null && message.hasOwnProperty("ssmlGender")) + object.ssmlGender = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.SsmlVoiceGender[message.ssmlGender] : message.ssmlGender; return object; }; /** - * Converts this ListSecuritySettingsRequest to JSON. + * Converts this VoiceSelectionParams to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams * @instance * @returns {Object.} JSON object */ - ListSecuritySettingsRequest.prototype.toJSON = function toJSON() { + VoiceSelectionParams.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListSecuritySettingsRequest; + return VoiceSelectionParams; })(); - v3.ListSecuritySettingsResponse = (function() { + v3.SynthesizeSpeechConfig = (function() { /** - * Properties of a ListSecuritySettingsResponse. + * Properties of a SynthesizeSpeechConfig. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListSecuritySettingsResponse - * @property {Array.|null} [securitySettings] ListSecuritySettingsResponse securitySettings - * @property {string|null} [nextPageToken] ListSecuritySettingsResponse nextPageToken + * @interface ISynthesizeSpeechConfig + * @property {number|null} [speakingRate] SynthesizeSpeechConfig speakingRate + * @property {number|null} [pitch] SynthesizeSpeechConfig pitch + * @property {number|null} [volumeGainDb] SynthesizeSpeechConfig volumeGainDb + * @property {Array.|null} [effectsProfileId] SynthesizeSpeechConfig effectsProfileId + * @property {google.cloud.dialogflow.cx.v3.IVoiceSelectionParams|null} [voice] SynthesizeSpeechConfig voice */ /** - * Constructs a new ListSecuritySettingsResponse. + * Constructs a new SynthesizeSpeechConfig. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListSecuritySettingsResponse. - * @implements IListSecuritySettingsResponse + * @classdesc Represents a SynthesizeSpeechConfig. + * @implements ISynthesizeSpeechConfig * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig=} [properties] Properties to set */ - function ListSecuritySettingsResponse(properties) { - this.securitySettings = []; + function SynthesizeSpeechConfig(properties) { + this.effectsProfileId = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17031,91 +17157,130 @@ } /** - * ListSecuritySettingsResponse securitySettings. - * @member {Array.} securitySettings - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * SynthesizeSpeechConfig speakingRate. + * @member {number} speakingRate + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig * @instance */ - ListSecuritySettingsResponse.prototype.securitySettings = $util.emptyArray; + SynthesizeSpeechConfig.prototype.speakingRate = 0; /** - * ListSecuritySettingsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * SynthesizeSpeechConfig pitch. + * @member {number} pitch + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig * @instance */ - ListSecuritySettingsResponse.prototype.nextPageToken = ""; + SynthesizeSpeechConfig.prototype.pitch = 0; /** - * Creates a new ListSecuritySettingsResponse instance using the specified properties. + * SynthesizeSpeechConfig volumeGainDb. + * @member {number} volumeGainDb + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig + * @instance + */ + SynthesizeSpeechConfig.prototype.volumeGainDb = 0; + + /** + * SynthesizeSpeechConfig effectsProfileId. + * @member {Array.} effectsProfileId + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig + * @instance + */ + SynthesizeSpeechConfig.prototype.effectsProfileId = $util.emptyArray; + + /** + * SynthesizeSpeechConfig voice. + * @member {google.cloud.dialogflow.cx.v3.IVoiceSelectionParams|null|undefined} voice + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig + * @instance + */ + SynthesizeSpeechConfig.prototype.voice = null; + + /** + * Creates a new SynthesizeSpeechConfig instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig * @static - * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} ListSecuritySettingsResponse instance + * @param {google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig} SynthesizeSpeechConfig instance */ - ListSecuritySettingsResponse.create = function create(properties) { - return new ListSecuritySettingsResponse(properties); + SynthesizeSpeechConfig.create = function create(properties) { + return new SynthesizeSpeechConfig(properties); }; /** - * Encodes the specified ListSecuritySettingsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse.verify|verify} messages. + * Encodes the specified SynthesizeSpeechConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig * @static - * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse} message ListSecuritySettingsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig} message SynthesizeSpeechConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSecuritySettingsResponse.encode = function encode(message, writer) { + SynthesizeSpeechConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.securitySettings != null && message.securitySettings.length) - for (var i = 0; i < message.securitySettings.length; ++i) - $root.google.cloud.dialogflow.cx.v3.SecuritySettings.encode(message.securitySettings[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.speakingRate != null && Object.hasOwnProperty.call(message, "speakingRate")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.speakingRate); + if (message.pitch != null && Object.hasOwnProperty.call(message, "pitch")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.pitch); + if (message.volumeGainDb != null && Object.hasOwnProperty.call(message, "volumeGainDb")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.volumeGainDb); + if (message.voice != null && Object.hasOwnProperty.call(message, "voice")) + $root.google.cloud.dialogflow.cx.v3.VoiceSelectionParams.encode(message.voice, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.effectsProfileId != null && message.effectsProfileId.length) + for (var i = 0; i < message.effectsProfileId.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.effectsProfileId[i]); return writer; }; /** - * Encodes the specified ListSecuritySettingsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse.verify|verify} messages. + * Encodes the specified SynthesizeSpeechConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig * @static - * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse} message ListSecuritySettingsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig} message SynthesizeSpeechConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSecuritySettingsResponse.encodeDelimited = function encodeDelimited(message, writer) { + SynthesizeSpeechConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListSecuritySettingsResponse message from the specified reader or buffer. + * Decodes a SynthesizeSpeechConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} ListSecuritySettingsResponse + * @returns {google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig} SynthesizeSpeechConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSecuritySettingsResponse.decode = function decode(reader, length) { + SynthesizeSpeechConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.securitySettings && message.securitySettings.length)) - message.securitySettings = []; - message.securitySettings.push($root.google.cloud.dialogflow.cx.v3.SecuritySettings.decode(reader, reader.uint32())); + message.speakingRate = reader.double(); break; case 2: - message.nextPageToken = reader.string(); + message.pitch = reader.double(); + break; + case 3: + message.volumeGainDb = reader.double(); + break; + case 5: + if (!(message.effectsProfileId && message.effectsProfileId.length)) + message.effectsProfileId = []; + message.effectsProfileId.push(reader.string()); + break; + case 4: + message.voice = $root.google.cloud.dialogflow.cx.v3.VoiceSelectionParams.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -17126,134 +17291,182 @@ }; /** - * Decodes a ListSecuritySettingsResponse message from the specified reader or buffer, length delimited. + * Decodes a SynthesizeSpeechConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} ListSecuritySettingsResponse + * @returns {google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig} SynthesizeSpeechConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSecuritySettingsResponse.decodeDelimited = function decodeDelimited(reader) { + SynthesizeSpeechConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListSecuritySettingsResponse message. + * Verifies a SynthesizeSpeechConfig message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListSecuritySettingsResponse.verify = function verify(message) { + SynthesizeSpeechConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) { - if (!Array.isArray(message.securitySettings)) - return "securitySettings: array expected"; - for (var i = 0; i < message.securitySettings.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.verify(message.securitySettings[i]); - if (error) - return "securitySettings." + error; - } + if (message.speakingRate != null && message.hasOwnProperty("speakingRate")) + if (typeof message.speakingRate !== "number") + return "speakingRate: number expected"; + if (message.pitch != null && message.hasOwnProperty("pitch")) + if (typeof message.pitch !== "number") + return "pitch: number expected"; + if (message.volumeGainDb != null && message.hasOwnProperty("volumeGainDb")) + if (typeof message.volumeGainDb !== "number") + return "volumeGainDb: number expected"; + if (message.effectsProfileId != null && message.hasOwnProperty("effectsProfileId")) { + if (!Array.isArray(message.effectsProfileId)) + return "effectsProfileId: array expected"; + for (var i = 0; i < message.effectsProfileId.length; ++i) + if (!$util.isString(message.effectsProfileId[i])) + return "effectsProfileId: string[] expected"; + } + if (message.voice != null && message.hasOwnProperty("voice")) { + var error = $root.google.cloud.dialogflow.cx.v3.VoiceSelectionParams.verify(message.voice); + if (error) + return "voice." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListSecuritySettingsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SynthesizeSpeechConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} ListSecuritySettingsResponse + * @returns {google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig} SynthesizeSpeechConfig */ - ListSecuritySettingsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse) + SynthesizeSpeechConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse(); - if (object.securitySettings) { - if (!Array.isArray(object.securitySettings)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse.securitySettings: array expected"); - message.securitySettings = []; - for (var i = 0; i < object.securitySettings.length; ++i) { - if (typeof object.securitySettings[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse.securitySettings: object expected"); - message.securitySettings[i] = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.fromObject(object.securitySettings[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig(); + if (object.speakingRate != null) + message.speakingRate = Number(object.speakingRate); + if (object.pitch != null) + message.pitch = Number(object.pitch); + if (object.volumeGainDb != null) + message.volumeGainDb = Number(object.volumeGainDb); + if (object.effectsProfileId) { + if (!Array.isArray(object.effectsProfileId)) + throw TypeError(".google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.effectsProfileId: array expected"); + message.effectsProfileId = []; + for (var i = 0; i < object.effectsProfileId.length; ++i) + message.effectsProfileId[i] = String(object.effectsProfileId[i]); + } + if (object.voice != null) { + if (typeof object.voice !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.voice: object expected"); + message.voice = $root.google.cloud.dialogflow.cx.v3.VoiceSelectionParams.fromObject(object.voice); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListSecuritySettingsResponse message. Also converts values to other types if specified. + * Creates a plain object from a SynthesizeSpeechConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig * @static - * @param {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} message ListSecuritySettingsResponse + * @param {google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig} message SynthesizeSpeechConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListSecuritySettingsResponse.toObject = function toObject(message, options) { + SynthesizeSpeechConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.securitySettings = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.securitySettings && message.securitySettings.length) { - object.securitySettings = []; - for (var j = 0; j < message.securitySettings.length; ++j) - object.securitySettings[j] = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.toObject(message.securitySettings[j], options); + object.effectsProfileId = []; + if (options.defaults) { + object.speakingRate = 0; + object.pitch = 0; + object.volumeGainDb = 0; + object.voice = null; + } + if (message.speakingRate != null && message.hasOwnProperty("speakingRate")) + object.speakingRate = options.json && !isFinite(message.speakingRate) ? String(message.speakingRate) : message.speakingRate; + if (message.pitch != null && message.hasOwnProperty("pitch")) + object.pitch = options.json && !isFinite(message.pitch) ? String(message.pitch) : message.pitch; + if (message.volumeGainDb != null && message.hasOwnProperty("volumeGainDb")) + object.volumeGainDb = options.json && !isFinite(message.volumeGainDb) ? String(message.volumeGainDb) : message.volumeGainDb; + if (message.voice != null && message.hasOwnProperty("voice")) + object.voice = $root.google.cloud.dialogflow.cx.v3.VoiceSelectionParams.toObject(message.voice, options); + if (message.effectsProfileId && message.effectsProfileId.length) { + object.effectsProfileId = []; + for (var j = 0; j < message.effectsProfileId.length; ++j) + object.effectsProfileId[j] = message.effectsProfileId[j]; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListSecuritySettingsResponse to JSON. + * Converts this SynthesizeSpeechConfig to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig * @instance * @returns {Object.} JSON object */ - ListSecuritySettingsResponse.prototype.toJSON = function toJSON() { + SynthesizeSpeechConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListSecuritySettingsResponse; + return SynthesizeSpeechConfig; })(); - v3.CreateSecuritySettingsRequest = (function() { + /** + * OutputAudioEncoding enum. + * @name google.cloud.dialogflow.cx.v3.OutputAudioEncoding + * @enum {number} + * @property {number} OUTPUT_AUDIO_ENCODING_UNSPECIFIED=0 OUTPUT_AUDIO_ENCODING_UNSPECIFIED value + * @property {number} OUTPUT_AUDIO_ENCODING_LINEAR_16=1 OUTPUT_AUDIO_ENCODING_LINEAR_16 value + * @property {number} OUTPUT_AUDIO_ENCODING_MP3=2 OUTPUT_AUDIO_ENCODING_MP3 value + * @property {number} OUTPUT_AUDIO_ENCODING_MP3_64_KBPS=4 OUTPUT_AUDIO_ENCODING_MP3_64_KBPS value + * @property {number} OUTPUT_AUDIO_ENCODING_OGG_OPUS=3 OUTPUT_AUDIO_ENCODING_OGG_OPUS value + * @property {number} OUTPUT_AUDIO_ENCODING_MULAW=5 OUTPUT_AUDIO_ENCODING_MULAW value + */ + v3.OutputAudioEncoding = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "OUTPUT_AUDIO_ENCODING_UNSPECIFIED"] = 0; + values[valuesById[1] = "OUTPUT_AUDIO_ENCODING_LINEAR_16"] = 1; + values[valuesById[2] = "OUTPUT_AUDIO_ENCODING_MP3"] = 2; + values[valuesById[4] = "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS"] = 4; + values[valuesById[3] = "OUTPUT_AUDIO_ENCODING_OGG_OPUS"] = 3; + values[valuesById[5] = "OUTPUT_AUDIO_ENCODING_MULAW"] = 5; + return values; + })(); + + v3.OutputAudioConfig = (function() { /** - * Properties of a CreateSecuritySettingsRequest. + * Properties of an OutputAudioConfig. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ICreateSecuritySettingsRequest - * @property {string|null} [parent] CreateSecuritySettingsRequest parent - * @property {google.cloud.dialogflow.cx.v3.ISecuritySettings|null} [securitySettings] CreateSecuritySettingsRequest securitySettings + * @interface IOutputAudioConfig + * @property {google.cloud.dialogflow.cx.v3.OutputAudioEncoding|null} [audioEncoding] OutputAudioConfig audioEncoding + * @property {number|null} [sampleRateHertz] OutputAudioConfig sampleRateHertz + * @property {google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig|null} [synthesizeSpeechConfig] OutputAudioConfig synthesizeSpeechConfig */ /** - * Constructs a new CreateSecuritySettingsRequest. + * Constructs a new OutputAudioConfig. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CreateSecuritySettingsRequest. - * @implements ICreateSecuritySettingsRequest + * @classdesc Represents an OutputAudioConfig. + * @implements IOutputAudioConfig * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IOutputAudioConfig=} [properties] Properties to set */ - function CreateSecuritySettingsRequest(properties) { + function OutputAudioConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17261,88 +17474,101 @@ } /** - * CreateSecuritySettingsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * OutputAudioConfig audioEncoding. + * @member {google.cloud.dialogflow.cx.v3.OutputAudioEncoding} audioEncoding + * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig * @instance */ - CreateSecuritySettingsRequest.prototype.parent = ""; + OutputAudioConfig.prototype.audioEncoding = 0; /** - * CreateSecuritySettingsRequest securitySettings. - * @member {google.cloud.dialogflow.cx.v3.ISecuritySettings|null|undefined} securitySettings - * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * OutputAudioConfig sampleRateHertz. + * @member {number} sampleRateHertz + * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig * @instance */ - CreateSecuritySettingsRequest.prototype.securitySettings = null; + OutputAudioConfig.prototype.sampleRateHertz = 0; /** - * Creates a new CreateSecuritySettingsRequest instance using the specified properties. + * OutputAudioConfig synthesizeSpeechConfig. + * @member {google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig|null|undefined} synthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig + * @instance + */ + OutputAudioConfig.prototype.synthesizeSpeechConfig = null; + + /** + * Creates a new OutputAudioConfig instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest} CreateSecuritySettingsRequest instance + * @param {google.cloud.dialogflow.cx.v3.IOutputAudioConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.OutputAudioConfig} OutputAudioConfig instance */ - CreateSecuritySettingsRequest.create = function create(properties) { - return new CreateSecuritySettingsRequest(properties); + OutputAudioConfig.create = function create(properties) { + return new OutputAudioConfig(properties); }; /** - * Encodes the specified CreateSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest.verify|verify} messages. + * Encodes the specified OutputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest} message CreateSecuritySettingsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IOutputAudioConfig} message OutputAudioConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateSecuritySettingsRequest.encode = function encode(message, writer) { + OutputAudioConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.securitySettings != null && Object.hasOwnProperty.call(message, "securitySettings")) - $root.google.cloud.dialogflow.cx.v3.SecuritySettings.encode(message.securitySettings, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.audioEncoding != null && Object.hasOwnProperty.call(message, "audioEncoding")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.audioEncoding); + if (message.sampleRateHertz != null && Object.hasOwnProperty.call(message, "sampleRateHertz")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.sampleRateHertz); + if (message.synthesizeSpeechConfig != null && Object.hasOwnProperty.call(message, "synthesizeSpeechConfig")) + $root.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.encode(message.synthesizeSpeechConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest.verify|verify} messages. + * Encodes the specified OutputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest} message CreateSecuritySettingsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IOutputAudioConfig} message OutputAudioConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + OutputAudioConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateSecuritySettingsRequest message from the specified reader or buffer. + * Decodes an OutputAudioConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest} CreateSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3.OutputAudioConfig} OutputAudioConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateSecuritySettingsRequest.decode = function decode(reader, length) { + OutputAudioConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.audioEncoding = reader.int32(); break; case 2: - message.securitySettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.decode(reader, reader.uint32()); + message.sampleRateHertz = reader.int32(); + break; + case 3: + message.synthesizeSpeechConfig = $root.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -17353,121 +17579,266 @@ }; /** - * Decodes a CreateSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * Decodes an OutputAudioConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest} CreateSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3.OutputAudioConfig} OutputAudioConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { + OutputAudioConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateSecuritySettingsRequest message. + * Verifies an OutputAudioConfig message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateSecuritySettingsRequest.verify = function verify(message) { + OutputAudioConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) { - var error = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.verify(message.securitySettings); + if (message.audioEncoding != null && message.hasOwnProperty("audioEncoding")) + switch (message.audioEncoding) { + default: + return "audioEncoding: enum value expected"; + case 0: + case 1: + case 2: + case 4: + case 3: + case 5: + break; + } + if (message.sampleRateHertz != null && message.hasOwnProperty("sampleRateHertz")) + if (!$util.isInteger(message.sampleRateHertz)) + return "sampleRateHertz: integer expected"; + if (message.synthesizeSpeechConfig != null && message.hasOwnProperty("synthesizeSpeechConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.verify(message.synthesizeSpeechConfig); if (error) - return "securitySettings." + error; + return "synthesizeSpeechConfig." + error; } return null; }; /** - * Creates a CreateSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an OutputAudioConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest} CreateSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3.OutputAudioConfig} OutputAudioConfig */ - CreateSecuritySettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest) + OutputAudioConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.securitySettings != null) { - if (typeof object.securitySettings !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest.securitySettings: object expected"); - message.securitySettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.fromObject(object.securitySettings); + var message = new $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig(); + switch (object.audioEncoding) { + case "OUTPUT_AUDIO_ENCODING_UNSPECIFIED": + case 0: + message.audioEncoding = 0; + break; + case "OUTPUT_AUDIO_ENCODING_LINEAR_16": + case 1: + message.audioEncoding = 1; + break; + case "OUTPUT_AUDIO_ENCODING_MP3": + case 2: + message.audioEncoding = 2; + break; + case "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS": + case 4: + message.audioEncoding = 4; + break; + case "OUTPUT_AUDIO_ENCODING_OGG_OPUS": + case 3: + message.audioEncoding = 3; + break; + case "OUTPUT_AUDIO_ENCODING_MULAW": + case 5: + message.audioEncoding = 5; + break; + } + if (object.sampleRateHertz != null) + message.sampleRateHertz = object.sampleRateHertz | 0; + if (object.synthesizeSpeechConfig != null) { + if (typeof object.synthesizeSpeechConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.OutputAudioConfig.synthesizeSpeechConfig: object expected"); + message.synthesizeSpeechConfig = $root.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.fromObject(object.synthesizeSpeechConfig); } return message; }; /** - * Creates a plain object from a CreateSecuritySettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from an OutputAudioConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest} message CreateSecuritySettingsRequest + * @param {google.cloud.dialogflow.cx.v3.OutputAudioConfig} message OutputAudioConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateSecuritySettingsRequest.toObject = function toObject(message, options) { + OutputAudioConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.securitySettings = null; + object.audioEncoding = options.enums === String ? "OUTPUT_AUDIO_ENCODING_UNSPECIFIED" : 0; + object.sampleRateHertz = 0; + object.synthesizeSpeechConfig = null; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) - object.securitySettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.toObject(message.securitySettings, options); + if (message.audioEncoding != null && message.hasOwnProperty("audioEncoding")) + object.audioEncoding = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.OutputAudioEncoding[message.audioEncoding] : message.audioEncoding; + if (message.sampleRateHertz != null && message.hasOwnProperty("sampleRateHertz")) + object.sampleRateHertz = message.sampleRateHertz; + if (message.synthesizeSpeechConfig != null && message.hasOwnProperty("synthesizeSpeechConfig")) + object.synthesizeSpeechConfig = $root.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.toObject(message.synthesizeSpeechConfig, options); return object; }; /** - * Converts this CreateSecuritySettingsRequest to JSON. + * Converts this OutputAudioConfig to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig * @instance * @returns {Object.} JSON object */ - CreateSecuritySettingsRequest.prototype.toJSON = function toJSON() { + OutputAudioConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateSecuritySettingsRequest; + return OutputAudioConfig; })(); - v3.DeleteSecuritySettingsRequest = (function() { + v3.Changelogs = (function() { /** - * Properties of a DeleteSecuritySettingsRequest. + * Constructs a new Changelogs service. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDeleteSecuritySettingsRequest - * @property {string|null} [name] DeleteSecuritySettingsRequest name + * @classdesc Represents a Changelogs + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ + function Changelogs(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Changelogs.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Changelogs; /** - * Constructs a new DeleteSecuritySettingsRequest. + * Creates new Changelogs service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Changelogs + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {Changelogs} RPC service. Useful where requests and/or responses are streamed. + */ + Changelogs.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Changelogs#listChangelogs}. + * @memberof google.cloud.dialogflow.cx.v3.Changelogs + * @typedef ListChangelogsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.ListChangelogsResponse} [response] ListChangelogsResponse + */ + + /** + * Calls ListChangelogs. + * @function listChangelogs + * @memberof google.cloud.dialogflow.cx.v3.Changelogs + * @instance + * @param {google.cloud.dialogflow.cx.v3.IListChangelogsRequest} request ListChangelogsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogsCallback} callback Node-style callback called with the error, if any, and ListChangelogsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Changelogs.prototype.listChangelogs = function listChangelogs(request, callback) { + return this.rpcCall(listChangelogs, $root.google.cloud.dialogflow.cx.v3.ListChangelogsRequest, $root.google.cloud.dialogflow.cx.v3.ListChangelogsResponse, request, callback); + }, "name", { value: "ListChangelogs" }); + + /** + * Calls ListChangelogs. + * @function listChangelogs + * @memberof google.cloud.dialogflow.cx.v3.Changelogs + * @instance + * @param {google.cloud.dialogflow.cx.v3.IListChangelogsRequest} request ListChangelogsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Changelogs#getChangelog}. + * @memberof google.cloud.dialogflow.cx.v3.Changelogs + * @typedef GetChangelogCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.Changelog} [response] Changelog + */ + + /** + * Calls GetChangelog. + * @function getChangelog + * @memberof google.cloud.dialogflow.cx.v3.Changelogs + * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetChangelogRequest} request GetChangelogRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Changelogs.GetChangelogCallback} callback Node-style callback called with the error, if any, and Changelog + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Changelogs.prototype.getChangelog = function getChangelog(request, callback) { + return this.rpcCall(getChangelog, $root.google.cloud.dialogflow.cx.v3.GetChangelogRequest, $root.google.cloud.dialogflow.cx.v3.Changelog, request, callback); + }, "name", { value: "GetChangelog" }); + + /** + * Calls GetChangelog. + * @function getChangelog + * @memberof google.cloud.dialogflow.cx.v3.Changelogs + * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetChangelogRequest} request GetChangelogRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Changelogs; + })(); + + v3.ListChangelogsRequest = (function() { + + /** + * Properties of a ListChangelogsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DeleteSecuritySettingsRequest. - * @implements IDeleteSecuritySettingsRequest + * @interface IListChangelogsRequest + * @property {string|null} [parent] ListChangelogsRequest parent + * @property {string|null} [filter] ListChangelogsRequest filter + * @property {number|null} [pageSize] ListChangelogsRequest pageSize + * @property {string|null} [pageToken] ListChangelogsRequest pageToken + */ + + /** + * Constructs a new ListChangelogsRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a ListChangelogsRequest. + * @implements IListChangelogsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListChangelogsRequest=} [properties] Properties to set */ - function DeleteSecuritySettingsRequest(properties) { + function ListChangelogsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17475,75 +17846,114 @@ } /** - * DeleteSecuritySettingsRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest + * ListChangelogsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest * @instance */ - DeleteSecuritySettingsRequest.prototype.name = ""; + ListChangelogsRequest.prototype.parent = ""; /** - * Creates a new DeleteSecuritySettingsRequest instance using the specified properties. + * ListChangelogsRequest filter. + * @member {string} filter + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest + * @instance + */ + ListChangelogsRequest.prototype.filter = ""; + + /** + * ListChangelogsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest + * @instance + */ + ListChangelogsRequest.prototype.pageSize = 0; + + /** + * ListChangelogsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest + * @instance + */ + ListChangelogsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListChangelogsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest} DeleteSecuritySettingsRequest instance + * @param {google.cloud.dialogflow.cx.v3.IListChangelogsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListChangelogsRequest} ListChangelogsRequest instance */ - DeleteSecuritySettingsRequest.create = function create(properties) { - return new DeleteSecuritySettingsRequest(properties); + ListChangelogsRequest.create = function create(properties) { + return new ListChangelogsRequest(properties); }; /** - * Encodes the specified DeleteSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest.verify|verify} messages. + * Encodes the specified ListChangelogsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListChangelogsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest} message DeleteSecuritySettingsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListChangelogsRequest} message ListChangelogsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteSecuritySettingsRequest.encode = function encode(message, writer) { + ListChangelogsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); return writer; }; /** - * Encodes the specified DeleteSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest.verify|verify} messages. + * Encodes the specified ListChangelogsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListChangelogsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest} message DeleteSecuritySettingsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListChangelogsRequest} message ListChangelogsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListChangelogsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteSecuritySettingsRequest message from the specified reader or buffer. + * Decodes a ListChangelogsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest} DeleteSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3.ListChangelogsRequest} ListChangelogsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteSecuritySettingsRequest.decode = function decode(reader, length) { + ListChangelogsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListChangelogsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); + break; + case 2: + message.filter = reader.string(); + break; + case 3: + message.pageSize = reader.int32(); + break; + case 4: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -17554,116 +17964,134 @@ }; /** - * Decodes a DeleteSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListChangelogsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest} DeleteSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3.ListChangelogsRequest} ListChangelogsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { + ListChangelogsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteSecuritySettingsRequest message. + * Verifies a ListChangelogsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteSecuritySettingsRequest.verify = function verify(message) { + ListChangelogsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a DeleteSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListChangelogsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest} DeleteSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3.ListChangelogsRequest} ListChangelogsRequest */ - DeleteSecuritySettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest) + ListChangelogsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListChangelogsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3.ListChangelogsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a DeleteSecuritySettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListChangelogsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest} message DeleteSecuritySettingsRequest + * @param {google.cloud.dialogflow.cx.v3.ListChangelogsRequest} message ListChangelogsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteSecuritySettingsRequest.toObject = function toObject(message, options) { + ListChangelogsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this DeleteSecuritySettingsRequest to JSON. + * Converts this ListChangelogsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest * @instance * @returns {Object.} JSON object */ - DeleteSecuritySettingsRequest.prototype.toJSON = function toJSON() { + ListChangelogsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteSecuritySettingsRequest; + return ListChangelogsRequest; })(); - v3.SecuritySettings = (function() { + v3.ListChangelogsResponse = (function() { /** - * Properties of a SecuritySettings. + * Properties of a ListChangelogsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ISecuritySettings - * @property {string|null} [name] SecuritySettings name - * @property {string|null} [displayName] SecuritySettings displayName - * @property {google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy|null} [redactionStrategy] SecuritySettings redactionStrategy - * @property {google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope|null} [redactionScope] SecuritySettings redactionScope - * @property {string|null} [inspectTemplate] SecuritySettings inspectTemplate - * @property {string|null} [deidentifyTemplate] SecuritySettings deidentifyTemplate - * @property {number|null} [retentionWindowDays] SecuritySettings retentionWindowDays - * @property {Array.|null} [purgeDataTypes] SecuritySettings purgeDataTypes - * @property {google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings|null} [insightsExportSettings] SecuritySettings insightsExportSettings + * @interface IListChangelogsResponse + * @property {Array.|null} [changelogs] ListChangelogsResponse changelogs + * @property {string|null} [nextPageToken] ListChangelogsResponse nextPageToken */ /** - * Constructs a new SecuritySettings. + * Constructs a new ListChangelogsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a SecuritySettings. - * @implements ISecuritySettings + * @classdesc Represents a ListChangelogsResponse. + * @implements IListChangelogsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.ISecuritySettings=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListChangelogsResponse=} [properties] Properties to set */ - function SecuritySettings(properties) { - this.purgeDataTypes = []; + function ListChangelogsResponse(properties) { + this.changelogs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17671,204 +18099,304 @@ } /** - * SecuritySettings name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings - * @instance - */ - SecuritySettings.prototype.name = ""; - - /** - * SecuritySettings displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings - * @instance - */ - SecuritySettings.prototype.displayName = ""; - - /** - * SecuritySettings redactionStrategy. - * @member {google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy} redactionStrategy - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings - * @instance - */ - SecuritySettings.prototype.redactionStrategy = 0; - - /** - * SecuritySettings redactionScope. - * @member {google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope} redactionScope - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings - * @instance - */ - SecuritySettings.prototype.redactionScope = 0; - - /** - * SecuritySettings inspectTemplate. - * @member {string} inspectTemplate - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings - * @instance - */ - SecuritySettings.prototype.inspectTemplate = ""; - - /** - * SecuritySettings deidentifyTemplate. - * @member {string} deidentifyTemplate - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings - * @instance - */ - SecuritySettings.prototype.deidentifyTemplate = ""; - - /** - * SecuritySettings retentionWindowDays. - * @member {number|null|undefined} retentionWindowDays - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings - * @instance - */ - SecuritySettings.prototype.retentionWindowDays = null; - - /** - * SecuritySettings purgeDataTypes. - * @member {Array.} purgeDataTypes - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings - * @instance - */ - SecuritySettings.prototype.purgeDataTypes = $util.emptyArray; - - /** - * SecuritySettings insightsExportSettings. - * @member {google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings|null|undefined} insightsExportSettings - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * ListChangelogsResponse changelogs. + * @member {Array.} changelogs + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse * @instance */ - SecuritySettings.prototype.insightsExportSettings = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ListChangelogsResponse.prototype.changelogs = $util.emptyArray; /** - * SecuritySettings dataRetention. - * @member {"retentionWindowDays"|undefined} dataRetention - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * ListChangelogsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse * @instance */ - Object.defineProperty(SecuritySettings.prototype, "dataRetention", { - get: $util.oneOfGetter($oneOfFields = ["retentionWindowDays"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListChangelogsResponse.prototype.nextPageToken = ""; /** - * Creates a new SecuritySettings instance using the specified properties. + * Creates a new ListChangelogsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ISecuritySettings=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings} SecuritySettings instance + * @param {google.cloud.dialogflow.cx.v3.IListChangelogsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListChangelogsResponse} ListChangelogsResponse instance */ - SecuritySettings.create = function create(properties) { - return new SecuritySettings(properties); + ListChangelogsResponse.create = function create(properties) { + return new ListChangelogsResponse(properties); }; /** - * Encodes the specified SecuritySettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.verify|verify} messages. + * Encodes the specified ListChangelogsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListChangelogsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ISecuritySettings} message SecuritySettings message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListChangelogsResponse} message ListChangelogsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SecuritySettings.encode = function encode(message, writer) { + ListChangelogsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.redactionStrategy != null && Object.hasOwnProperty.call(message, "redactionStrategy")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.redactionStrategy); - if (message.redactionScope != null && Object.hasOwnProperty.call(message, "redactionScope")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.redactionScope); - if (message.retentionWindowDays != null && Object.hasOwnProperty.call(message, "retentionWindowDays")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.retentionWindowDays); - if (message.purgeDataTypes != null && message.purgeDataTypes.length) { - writer.uint32(/* id 8, wireType 2 =*/66).fork(); - for (var i = 0; i < message.purgeDataTypes.length; ++i) - writer.int32(message.purgeDataTypes[i]); - writer.ldelim(); - } - if (message.inspectTemplate != null && Object.hasOwnProperty.call(message, "inspectTemplate")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.inspectTemplate); - if (message.insightsExportSettings != null && Object.hasOwnProperty.call(message, "insightsExportSettings")) - $root.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.encode(message.insightsExportSettings, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.deidentifyTemplate != null && Object.hasOwnProperty.call(message, "deidentifyTemplate")) - writer.uint32(/* id 17, wireType 2 =*/138).string(message.deidentifyTemplate); + if (message.changelogs != null && message.changelogs.length) + for (var i = 0; i < message.changelogs.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Changelog.encode(message.changelogs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified SecuritySettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.verify|verify} messages. + * Encodes the specified ListChangelogsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListChangelogsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ISecuritySettings} message SecuritySettings message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListChangelogsResponse} message ListChangelogsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SecuritySettings.encodeDelimited = function encodeDelimited(message, writer) { + ListChangelogsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SecuritySettings message from the specified reader or buffer. + * Decodes a ListChangelogsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings} SecuritySettings + * @returns {google.cloud.dialogflow.cx.v3.ListChangelogsResponse} ListChangelogsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SecuritySettings.decode = function decode(reader, length) { + ListChangelogsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.SecuritySettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListChangelogsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.changelogs && message.changelogs.length)) + message.changelogs = []; + message.changelogs.push($root.google.cloud.dialogflow.cx.v3.Changelog.decode(reader, reader.uint32())); break; case 2: - message.displayName = reader.string(); - break; - case 3: - message.redactionStrategy = reader.int32(); - break; - case 4: - message.redactionScope = reader.int32(); - break; - case 9: - message.inspectTemplate = reader.string(); - break; - case 17: - message.deidentifyTemplate = reader.string(); + message.nextPageToken = reader.string(); break; - case 6: - message.retentionWindowDays = reader.int32(); + default: + reader.skipType(tag & 7); break; - case 8: - if (!(message.purgeDataTypes && message.purgeDataTypes.length)) - message.purgeDataTypes = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.purgeDataTypes.push(reader.int32()); - } else - message.purgeDataTypes.push(reader.int32()); - break; - case 13: - message.insightsExportSettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.decode(reader, reader.uint32()); + } + } + return message; + }; + + /** + * Decodes a ListChangelogsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.ListChangelogsResponse} ListChangelogsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListChangelogsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListChangelogsResponse message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListChangelogsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.changelogs != null && message.hasOwnProperty("changelogs")) { + if (!Array.isArray(message.changelogs)) + return "changelogs: array expected"; + for (var i = 0; i < message.changelogs.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Changelog.verify(message.changelogs[i]); + if (error) + return "changelogs." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListChangelogsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.ListChangelogsResponse} ListChangelogsResponse + */ + ListChangelogsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListChangelogsResponse) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.ListChangelogsResponse(); + if (object.changelogs) { + if (!Array.isArray(object.changelogs)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ListChangelogsResponse.changelogs: array expected"); + message.changelogs = []; + for (var i = 0; i < object.changelogs.length; ++i) { + if (typeof object.changelogs[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ListChangelogsResponse.changelogs: object expected"); + message.changelogs[i] = $root.google.cloud.dialogflow.cx.v3.Changelog.fromObject(object.changelogs[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListChangelogsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.ListChangelogsResponse} message ListChangelogsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListChangelogsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.changelogs = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.changelogs && message.changelogs.length) { + object.changelogs = []; + for (var j = 0; j < message.changelogs.length; ++j) + object.changelogs[j] = $root.google.cloud.dialogflow.cx.v3.Changelog.toObject(message.changelogs[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListChangelogsResponse to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse + * @instance + * @returns {Object.} JSON object + */ + ListChangelogsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListChangelogsResponse; + })(); + + v3.GetChangelogRequest = (function() { + + /** + * Properties of a GetChangelogRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IGetChangelogRequest + * @property {string|null} [name] GetChangelogRequest name + */ + + /** + * Constructs a new GetChangelogRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a GetChangelogRequest. + * @implements IGetChangelogRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IGetChangelogRequest=} [properties] Properties to set + */ + function GetChangelogRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetChangelogRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.GetChangelogRequest + * @instance + */ + GetChangelogRequest.prototype.name = ""; + + /** + * Creates a new GetChangelogRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.GetChangelogRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IGetChangelogRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetChangelogRequest} GetChangelogRequest instance + */ + GetChangelogRequest.create = function create(properties) { + return new GetChangelogRequest(properties); + }; + + /** + * Encodes the specified GetChangelogRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetChangelogRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.GetChangelogRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IGetChangelogRequest} message GetChangelogRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetChangelogRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetChangelogRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetChangelogRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.GetChangelogRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IGetChangelogRequest} message GetChangelogRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetChangelogRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetChangelogRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.GetChangelogRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.GetChangelogRequest} GetChangelogRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetChangelogRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetChangelogRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -17879,627 +18407,267 @@ }; /** - * Decodes a SecuritySettings message from the specified reader or buffer, length delimited. + * Decodes a GetChangelogRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.GetChangelogRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings} SecuritySettings + * @returns {google.cloud.dialogflow.cx.v3.GetChangelogRequest} GetChangelogRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SecuritySettings.decodeDelimited = function decodeDelimited(reader) { + GetChangelogRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SecuritySettings message. + * Verifies a GetChangelogRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.GetChangelogRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SecuritySettings.verify = function verify(message) { + GetChangelogRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.redactionStrategy != null && message.hasOwnProperty("redactionStrategy")) - switch (message.redactionStrategy) { - default: - return "redactionStrategy: enum value expected"; - case 0: - case 1: - break; - } - if (message.redactionScope != null && message.hasOwnProperty("redactionScope")) - switch (message.redactionScope) { - default: - return "redactionScope: enum value expected"; - case 0: - case 2: - break; - } - if (message.inspectTemplate != null && message.hasOwnProperty("inspectTemplate")) - if (!$util.isString(message.inspectTemplate)) - return "inspectTemplate: string expected"; - if (message.deidentifyTemplate != null && message.hasOwnProperty("deidentifyTemplate")) - if (!$util.isString(message.deidentifyTemplate)) - return "deidentifyTemplate: string expected"; - if (message.retentionWindowDays != null && message.hasOwnProperty("retentionWindowDays")) { - properties.dataRetention = 1; - if (!$util.isInteger(message.retentionWindowDays)) - return "retentionWindowDays: integer expected"; - } - if (message.purgeDataTypes != null && message.hasOwnProperty("purgeDataTypes")) { - if (!Array.isArray(message.purgeDataTypes)) - return "purgeDataTypes: array expected"; - for (var i = 0; i < message.purgeDataTypes.length; ++i) - switch (message.purgeDataTypes[i]) { - default: - return "purgeDataTypes: enum value[] expected"; - case 0: - case 1: - break; - } - } - if (message.insightsExportSettings != null && message.hasOwnProperty("insightsExportSettings")) { - var error = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.verify(message.insightsExportSettings); - if (error) - return "insightsExportSettings." + error; - } return null; }; /** - * Creates a SecuritySettings message from a plain object. Also converts values to their respective internal types. + * Creates a GetChangelogRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.GetChangelogRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings} SecuritySettings + * @returns {google.cloud.dialogflow.cx.v3.GetChangelogRequest} GetChangelogRequest */ - SecuritySettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.SecuritySettings) + GetChangelogRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetChangelogRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.SecuritySettings(); + var message = new $root.google.cloud.dialogflow.cx.v3.GetChangelogRequest(); if (object.name != null) message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - switch (object.redactionStrategy) { - case "REDACTION_STRATEGY_UNSPECIFIED": - case 0: - message.redactionStrategy = 0; - break; - case "REDACT_WITH_SERVICE": - case 1: - message.redactionStrategy = 1; - break; - } - switch (object.redactionScope) { - case "REDACTION_SCOPE_UNSPECIFIED": - case 0: - message.redactionScope = 0; - break; - case "REDACT_DISK_STORAGE": - case 2: - message.redactionScope = 2; - break; - } - if (object.inspectTemplate != null) - message.inspectTemplate = String(object.inspectTemplate); - if (object.deidentifyTemplate != null) - message.deidentifyTemplate = String(object.deidentifyTemplate); - if (object.retentionWindowDays != null) - message.retentionWindowDays = object.retentionWindowDays | 0; - if (object.purgeDataTypes) { - if (!Array.isArray(object.purgeDataTypes)) - throw TypeError(".google.cloud.dialogflow.cx.v3.SecuritySettings.purgeDataTypes: array expected"); - message.purgeDataTypes = []; - for (var i = 0; i < object.purgeDataTypes.length; ++i) - switch (object.purgeDataTypes[i]) { - default: - case "PURGE_DATA_TYPE_UNSPECIFIED": - case 0: - message.purgeDataTypes[i] = 0; - break; - case "DIALOGFLOW_HISTORY": - case 1: - message.purgeDataTypes[i] = 1; - break; - } - } - if (object.insightsExportSettings != null) { - if (typeof object.insightsExportSettings !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.SecuritySettings.insightsExportSettings: object expected"); - message.insightsExportSettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.fromObject(object.insightsExportSettings); - } return message; }; /** - * Creates a plain object from a SecuritySettings message. Also converts values to other types if specified. + * Creates a plain object from a GetChangelogRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.GetChangelogRequest * @static - * @param {google.cloud.dialogflow.cx.v3.SecuritySettings} message SecuritySettings + * @param {google.cloud.dialogflow.cx.v3.GetChangelogRequest} message GetChangelogRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SecuritySettings.toObject = function toObject(message, options) { + GetChangelogRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.purgeDataTypes = []; - if (options.defaults) { + if (options.defaults) object.name = ""; - object.displayName = ""; - object.redactionStrategy = options.enums === String ? "REDACTION_STRATEGY_UNSPECIFIED" : 0; - object.redactionScope = options.enums === String ? "REDACTION_SCOPE_UNSPECIFIED" : 0; - object.inspectTemplate = ""; - object.insightsExportSettings = null; - object.deidentifyTemplate = ""; - } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.redactionStrategy != null && message.hasOwnProperty("redactionStrategy")) - object.redactionStrategy = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy[message.redactionStrategy] : message.redactionStrategy; - if (message.redactionScope != null && message.hasOwnProperty("redactionScope")) - object.redactionScope = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope[message.redactionScope] : message.redactionScope; - if (message.retentionWindowDays != null && message.hasOwnProperty("retentionWindowDays")) { - object.retentionWindowDays = message.retentionWindowDays; - if (options.oneofs) - object.dataRetention = "retentionWindowDays"; - } - if (message.purgeDataTypes && message.purgeDataTypes.length) { - object.purgeDataTypes = []; - for (var j = 0; j < message.purgeDataTypes.length; ++j) - object.purgeDataTypes[j] = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType[message.purgeDataTypes[j]] : message.purgeDataTypes[j]; - } - if (message.inspectTemplate != null && message.hasOwnProperty("inspectTemplate")) - object.inspectTemplate = message.inspectTemplate; - if (message.insightsExportSettings != null && message.hasOwnProperty("insightsExportSettings")) - object.insightsExportSettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.toObject(message.insightsExportSettings, options); - if (message.deidentifyTemplate != null && message.hasOwnProperty("deidentifyTemplate")) - object.deidentifyTemplate = message.deidentifyTemplate; return object; }; /** - * Converts this SecuritySettings to JSON. + * Converts this GetChangelogRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.GetChangelogRequest * @instance * @returns {Object.} JSON object */ - SecuritySettings.prototype.toJSON = function toJSON() { + GetChangelogRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + return GetChangelogRequest; + })(); + + v3.Changelog = (function() { + /** - * RedactionStrategy enum. - * @name google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy - * @enum {number} - * @property {number} REDACTION_STRATEGY_UNSPECIFIED=0 REDACTION_STRATEGY_UNSPECIFIED value - * @property {number} REDACT_WITH_SERVICE=1 REDACT_WITH_SERVICE value + * Properties of a Changelog. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IChangelog + * @property {string|null} [name] Changelog name + * @property {string|null} [userEmail] Changelog userEmail + * @property {string|null} [displayName] Changelog displayName + * @property {string|null} [action] Changelog action + * @property {string|null} [type] Changelog type + * @property {string|null} [resource] Changelog resource + * @property {google.protobuf.ITimestamp|null} [createTime] Changelog createTime */ - SecuritySettings.RedactionStrategy = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "REDACTION_STRATEGY_UNSPECIFIED"] = 0; - values[valuesById[1] = "REDACT_WITH_SERVICE"] = 1; - return values; - })(); /** - * RedactionScope enum. - * @name google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope - * @enum {number} - * @property {number} REDACTION_SCOPE_UNSPECIFIED=0 REDACTION_SCOPE_UNSPECIFIED value - * @property {number} REDACT_DISK_STORAGE=2 REDACT_DISK_STORAGE value + * Constructs a new Changelog. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a Changelog. + * @implements IChangelog + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IChangelog=} [properties] Properties to set */ - SecuritySettings.RedactionScope = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "REDACTION_SCOPE_UNSPECIFIED"] = 0; - values[valuesById[2] = "REDACT_DISK_STORAGE"] = 2; - return values; - })(); + function Changelog(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * PurgeDataType enum. - * @name google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType - * @enum {number} - * @property {number} PURGE_DATA_TYPE_UNSPECIFIED=0 PURGE_DATA_TYPE_UNSPECIFIED value - * @property {number} DIALOGFLOW_HISTORY=1 DIALOGFLOW_HISTORY value + * Changelog name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.Changelog + * @instance */ - SecuritySettings.PurgeDataType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "PURGE_DATA_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "DIALOGFLOW_HISTORY"] = 1; - return values; - })(); + Changelog.prototype.name = ""; - SecuritySettings.InsightsExportSettings = (function() { + /** + * Changelog userEmail. + * @member {string} userEmail + * @memberof google.cloud.dialogflow.cx.v3.Changelog + * @instance + */ + Changelog.prototype.userEmail = ""; - /** - * Properties of an InsightsExportSettings. - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings - * @interface IInsightsExportSettings - * @property {boolean|null} [enableInsightsExport] InsightsExportSettings enableInsightsExport - */ + /** + * Changelog displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.Changelog + * @instance + */ + Changelog.prototype.displayName = ""; - /** - * Constructs a new InsightsExportSettings. - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings - * @classdesc Represents an InsightsExportSettings. - * @implements IInsightsExportSettings - * @constructor - * @param {google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings=} [properties] Properties to set - */ - function InsightsExportSettings(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Changelog action. + * @member {string} action + * @memberof google.cloud.dialogflow.cx.v3.Changelog + * @instance + */ + Changelog.prototype.action = ""; - /** - * InsightsExportSettings enableInsightsExport. - * @member {boolean} enableInsightsExport - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings - * @instance - */ - InsightsExportSettings.prototype.enableInsightsExport = false; - - /** - * Creates a new InsightsExportSettings instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings - * @static - * @param {google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings} InsightsExportSettings instance - */ - InsightsExportSettings.create = function create(properties) { - return new InsightsExportSettings(properties); - }; - - /** - * Encodes the specified InsightsExportSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings - * @static - * @param {google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings} message InsightsExportSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InsightsExportSettings.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enableInsightsExport != null && Object.hasOwnProperty.call(message, "enableInsightsExport")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enableInsightsExport); - return writer; - }; - - /** - * Encodes the specified InsightsExportSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings - * @static - * @param {google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings} message InsightsExportSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InsightsExportSettings.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an InsightsExportSettings message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings} InsightsExportSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InsightsExportSettings.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.enableInsightsExport = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an InsightsExportSettings message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings} InsightsExportSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InsightsExportSettings.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an InsightsExportSettings message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - InsightsExportSettings.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enableInsightsExport != null && message.hasOwnProperty("enableInsightsExport")) - if (typeof message.enableInsightsExport !== "boolean") - return "enableInsightsExport: boolean expected"; - return null; - }; - - /** - * Creates an InsightsExportSettings message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings} InsightsExportSettings - */ - InsightsExportSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings(); - if (object.enableInsightsExport != null) - message.enableInsightsExport = Boolean(object.enableInsightsExport); - return message; - }; - - /** - * Creates a plain object from an InsightsExportSettings message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings - * @static - * @param {google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings} message InsightsExportSettings - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - InsightsExportSettings.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.enableInsightsExport = false; - if (message.enableInsightsExport != null && message.hasOwnProperty("enableInsightsExport")) - object.enableInsightsExport = message.enableInsightsExport; - return object; - }; - - /** - * Converts this InsightsExportSettings to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings - * @instance - * @returns {Object.} JSON object - */ - InsightsExportSettings.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return InsightsExportSettings; - })(); - - return SecuritySettings; - })(); - - /** - * AudioEncoding enum. - * @name google.cloud.dialogflow.cx.v3.AudioEncoding - * @enum {number} - * @property {number} AUDIO_ENCODING_UNSPECIFIED=0 AUDIO_ENCODING_UNSPECIFIED value - * @property {number} AUDIO_ENCODING_LINEAR_16=1 AUDIO_ENCODING_LINEAR_16 value - * @property {number} AUDIO_ENCODING_FLAC=2 AUDIO_ENCODING_FLAC value - * @property {number} AUDIO_ENCODING_MULAW=3 AUDIO_ENCODING_MULAW value - * @property {number} AUDIO_ENCODING_AMR=4 AUDIO_ENCODING_AMR value - * @property {number} AUDIO_ENCODING_AMR_WB=5 AUDIO_ENCODING_AMR_WB value - * @property {number} AUDIO_ENCODING_OGG_OPUS=6 AUDIO_ENCODING_OGG_OPUS value - * @property {number} AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE=7 AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE value - */ - v3.AudioEncoding = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "AUDIO_ENCODING_UNSPECIFIED"] = 0; - values[valuesById[1] = "AUDIO_ENCODING_LINEAR_16"] = 1; - values[valuesById[2] = "AUDIO_ENCODING_FLAC"] = 2; - values[valuesById[3] = "AUDIO_ENCODING_MULAW"] = 3; - values[valuesById[4] = "AUDIO_ENCODING_AMR"] = 4; - values[valuesById[5] = "AUDIO_ENCODING_AMR_WB"] = 5; - values[valuesById[6] = "AUDIO_ENCODING_OGG_OPUS"] = 6; - values[valuesById[7] = "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE"] = 7; - return values; - })(); - - /** - * SpeechModelVariant enum. - * @name google.cloud.dialogflow.cx.v3.SpeechModelVariant - * @enum {number} - * @property {number} SPEECH_MODEL_VARIANT_UNSPECIFIED=0 SPEECH_MODEL_VARIANT_UNSPECIFIED value - * @property {number} USE_BEST_AVAILABLE=1 USE_BEST_AVAILABLE value - * @property {number} USE_STANDARD=2 USE_STANDARD value - * @property {number} USE_ENHANCED=3 USE_ENHANCED value - */ - v3.SpeechModelVariant = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "SPEECH_MODEL_VARIANT_UNSPECIFIED"] = 0; - values[valuesById[1] = "USE_BEST_AVAILABLE"] = 1; - values[valuesById[2] = "USE_STANDARD"] = 2; - values[valuesById[3] = "USE_ENHANCED"] = 3; - return values; - })(); - - v3.SpeechWordInfo = (function() { - - /** - * Properties of a SpeechWordInfo. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface ISpeechWordInfo - * @property {string|null} [word] SpeechWordInfo word - * @property {google.protobuf.IDuration|null} [startOffset] SpeechWordInfo startOffset - * @property {google.protobuf.IDuration|null} [endOffset] SpeechWordInfo endOffset - * @property {number|null} [confidence] SpeechWordInfo confidence - */ - - /** - * Constructs a new SpeechWordInfo. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a SpeechWordInfo. - * @implements ISpeechWordInfo - * @constructor - * @param {google.cloud.dialogflow.cx.v3.ISpeechWordInfo=} [properties] Properties to set - */ - function SpeechWordInfo(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SpeechWordInfo word. - * @member {string} word - * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo - * @instance - */ - SpeechWordInfo.prototype.word = ""; - - /** - * SpeechWordInfo startOffset. - * @member {google.protobuf.IDuration|null|undefined} startOffset - * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo - * @instance - */ - SpeechWordInfo.prototype.startOffset = null; + /** + * Changelog type. + * @member {string} type + * @memberof google.cloud.dialogflow.cx.v3.Changelog + * @instance + */ + Changelog.prototype.type = ""; /** - * SpeechWordInfo endOffset. - * @member {google.protobuf.IDuration|null|undefined} endOffset - * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo + * Changelog resource. + * @member {string} resource + * @memberof google.cloud.dialogflow.cx.v3.Changelog * @instance */ - SpeechWordInfo.prototype.endOffset = null; + Changelog.prototype.resource = ""; /** - * SpeechWordInfo confidence. - * @member {number} confidence - * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo + * Changelog createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.dialogflow.cx.v3.Changelog * @instance */ - SpeechWordInfo.prototype.confidence = 0; + Changelog.prototype.createTime = null; /** - * Creates a new SpeechWordInfo instance using the specified properties. + * Creates a new Changelog instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo + * @memberof google.cloud.dialogflow.cx.v3.Changelog * @static - * @param {google.cloud.dialogflow.cx.v3.ISpeechWordInfo=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.SpeechWordInfo} SpeechWordInfo instance + * @param {google.cloud.dialogflow.cx.v3.IChangelog=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Changelog} Changelog instance */ - SpeechWordInfo.create = function create(properties) { - return new SpeechWordInfo(properties); + Changelog.create = function create(properties) { + return new Changelog(properties); }; /** - * Encodes the specified SpeechWordInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SpeechWordInfo.verify|verify} messages. + * Encodes the specified Changelog message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Changelog.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo + * @memberof google.cloud.dialogflow.cx.v3.Changelog * @static - * @param {google.cloud.dialogflow.cx.v3.ISpeechWordInfo} message SpeechWordInfo message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IChangelog} message Changelog message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SpeechWordInfo.encode = function encode(message, writer) { + Changelog.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.startOffset != null && Object.hasOwnProperty.call(message, "startOffset")) - $root.google.protobuf.Duration.encode(message.startOffset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.endOffset != null && Object.hasOwnProperty.call(message, "endOffset")) - $root.google.protobuf.Duration.encode(message.endOffset, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.word != null && Object.hasOwnProperty.call(message, "word")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.word); - if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) - writer.uint32(/* id 4, wireType 5 =*/37).float(message.confidence); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.userEmail != null && Object.hasOwnProperty.call(message, "userEmail")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.userEmail); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.resource); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.displayName); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.type); + if (message.action != null && Object.hasOwnProperty.call(message, "action")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.action); return writer; }; /** - * Encodes the specified SpeechWordInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SpeechWordInfo.verify|verify} messages. + * Encodes the specified Changelog message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Changelog.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo + * @memberof google.cloud.dialogflow.cx.v3.Changelog * @static - * @param {google.cloud.dialogflow.cx.v3.ISpeechWordInfo} message SpeechWordInfo message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IChangelog} message Changelog message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SpeechWordInfo.encodeDelimited = function encodeDelimited(message, writer) { + Changelog.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SpeechWordInfo message from the specified reader or buffer. + * Decodes a Changelog message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo + * @memberof google.cloud.dialogflow.cx.v3.Changelog * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.SpeechWordInfo} SpeechWordInfo + * @returns {google.cloud.dialogflow.cx.v3.Changelog} Changelog * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SpeechWordInfo.decode = function decode(reader, length) { + Changelog.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.SpeechWordInfo(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Changelog(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 3: - message.word = reader.string(); - break; case 1: - message.startOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + message.name = reader.string(); break; case 2: - message.endOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + message.userEmail = reader.string(); + break; + case 7: + message.displayName = reader.string(); + break; + case 11: + message.action = reader.string(); + break; + case 8: + message.type = reader.string(); + break; + case 3: + message.resource = reader.string(); break; case 4: - message.confidence = reader.float(); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -18510,306 +18678,408 @@ }; /** - * Decodes a SpeechWordInfo message from the specified reader or buffer, length delimited. + * Decodes a Changelog message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo + * @memberof google.cloud.dialogflow.cx.v3.Changelog * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.SpeechWordInfo} SpeechWordInfo + * @returns {google.cloud.dialogflow.cx.v3.Changelog} Changelog * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SpeechWordInfo.decodeDelimited = function decodeDelimited(reader) { + Changelog.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SpeechWordInfo message. + * Verifies a Changelog message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo + * @memberof google.cloud.dialogflow.cx.v3.Changelog * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SpeechWordInfo.verify = function verify(message) { + Changelog.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.word != null && message.hasOwnProperty("word")) - if (!$util.isString(message.word)) - return "word: string expected"; - if (message.startOffset != null && message.hasOwnProperty("startOffset")) { - var error = $root.google.protobuf.Duration.verify(message.startOffset); - if (error) - return "startOffset." + error; - } - if (message.endOffset != null && message.hasOwnProperty("endOffset")) { - var error = $root.google.protobuf.Duration.verify(message.endOffset); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.userEmail != null && message.hasOwnProperty("userEmail")) + if (!$util.isString(message.userEmail)) + return "userEmail: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.action != null && message.hasOwnProperty("action")) + if (!$util.isString(message.action)) + return "action: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); if (error) - return "endOffset." + error; + return "createTime." + error; } - if (message.confidence != null && message.hasOwnProperty("confidence")) - if (typeof message.confidence !== "number") - return "confidence: number expected"; return null; }; /** - * Creates a SpeechWordInfo message from a plain object. Also converts values to their respective internal types. + * Creates a Changelog message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo + * @memberof google.cloud.dialogflow.cx.v3.Changelog * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.SpeechWordInfo} SpeechWordInfo + * @returns {google.cloud.dialogflow.cx.v3.Changelog} Changelog */ - SpeechWordInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.SpeechWordInfo) + Changelog.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Changelog) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.SpeechWordInfo(); - if (object.word != null) - message.word = String(object.word); - if (object.startOffset != null) { - if (typeof object.startOffset !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.SpeechWordInfo.startOffset: object expected"); - message.startOffset = $root.google.protobuf.Duration.fromObject(object.startOffset); - } - if (object.endOffset != null) { - if (typeof object.endOffset !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.SpeechWordInfo.endOffset: object expected"); - message.endOffset = $root.google.protobuf.Duration.fromObject(object.endOffset); + var message = new $root.google.cloud.dialogflow.cx.v3.Changelog(); + if (object.name != null) + message.name = String(object.name); + if (object.userEmail != null) + message.userEmail = String(object.userEmail); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.action != null) + message.action = String(object.action); + if (object.type != null) + message.type = String(object.type); + if (object.resource != null) + message.resource = String(object.resource); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Changelog.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } - if (object.confidence != null) - message.confidence = Number(object.confidence); return message; }; /** - * Creates a plain object from a SpeechWordInfo message. Also converts values to other types if specified. + * Creates a plain object from a Changelog message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo + * @memberof google.cloud.dialogflow.cx.v3.Changelog * @static - * @param {google.cloud.dialogflow.cx.v3.SpeechWordInfo} message SpeechWordInfo + * @param {google.cloud.dialogflow.cx.v3.Changelog} message Changelog * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SpeechWordInfo.toObject = function toObject(message, options) { + Changelog.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.startOffset = null; - object.endOffset = null; - object.word = ""; - object.confidence = 0; + object.name = ""; + object.userEmail = ""; + object.resource = ""; + object.createTime = null; + object.displayName = ""; + object.type = ""; + object.action = ""; } - if (message.startOffset != null && message.hasOwnProperty("startOffset")) - object.startOffset = $root.google.protobuf.Duration.toObject(message.startOffset, options); - if (message.endOffset != null && message.hasOwnProperty("endOffset")) - object.endOffset = $root.google.protobuf.Duration.toObject(message.endOffset, options); - if (message.word != null && message.hasOwnProperty("word")) - object.word = message.word; - if (message.confidence != null && message.hasOwnProperty("confidence")) - object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.userEmail != null && message.hasOwnProperty("userEmail")) + object.userEmail = message.userEmail; + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.action != null && message.hasOwnProperty("action")) + object.action = message.action; return object; }; /** - * Converts this SpeechWordInfo to JSON. + * Converts this Changelog to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo + * @memberof google.cloud.dialogflow.cx.v3.Changelog * @instance * @returns {Object.} JSON object */ - SpeechWordInfo.prototype.toJSON = function toJSON() { + Changelog.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SpeechWordInfo; + return Changelog; })(); - v3.InputAudioConfig = (function() { - - /** - * Properties of an InputAudioConfig. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IInputAudioConfig - * @property {google.cloud.dialogflow.cx.v3.AudioEncoding|null} [audioEncoding] InputAudioConfig audioEncoding - * @property {number|null} [sampleRateHertz] InputAudioConfig sampleRateHertz - * @property {boolean|null} [enableWordInfo] InputAudioConfig enableWordInfo - * @property {Array.|null} [phraseHints] InputAudioConfig phraseHints - * @property {string|null} [model] InputAudioConfig model - * @property {google.cloud.dialogflow.cx.v3.SpeechModelVariant|null} [modelVariant] InputAudioConfig modelVariant - * @property {boolean|null} [singleUtterance] InputAudioConfig singleUtterance - */ + v3.Deployments = (function() { /** - * Constructs a new InputAudioConfig. + * Constructs a new Deployments service. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an InputAudioConfig. - * @implements IInputAudioConfig + * @classdesc Represents a Deployments + * @extends $protobuf.rpc.Service * @constructor - * @param {google.cloud.dialogflow.cx.v3.IInputAudioConfig=} [properties] Properties to set + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - function InputAudioConfig(properties) { - this.phraseHints = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + function Deployments(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } + (Deployments.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Deployments; + /** - * InputAudioConfig audioEncoding. - * @member {google.cloud.dialogflow.cx.v3.AudioEncoding} audioEncoding - * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig + * Creates new Deployments service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Deployments + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {Deployments} RPC service. Useful where requests and/or responses are streamed. + */ + Deployments.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Deployments#listDeployments}. + * @memberof google.cloud.dialogflow.cx.v3.Deployments + * @typedef ListDeploymentsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.ListDeploymentsResponse} [response] ListDeploymentsResponse + */ + + /** + * Calls ListDeployments. + * @function listDeployments + * @memberof google.cloud.dialogflow.cx.v3.Deployments * @instance + * @param {google.cloud.dialogflow.cx.v3.IListDeploymentsRequest} request ListDeploymentsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Deployments.ListDeploymentsCallback} callback Node-style callback called with the error, if any, and ListDeploymentsResponse + * @returns {undefined} + * @variation 1 */ - InputAudioConfig.prototype.audioEncoding = 0; + Object.defineProperty(Deployments.prototype.listDeployments = function listDeployments(request, callback) { + return this.rpcCall(listDeployments, $root.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest, $root.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse, request, callback); + }, "name", { value: "ListDeployments" }); /** - * InputAudioConfig sampleRateHertz. - * @member {number} sampleRateHertz - * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig + * Calls ListDeployments. + * @function listDeployments + * @memberof google.cloud.dialogflow.cx.v3.Deployments * @instance + * @param {google.cloud.dialogflow.cx.v3.IListDeploymentsRequest} request ListDeploymentsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - InputAudioConfig.prototype.sampleRateHertz = 0; /** - * InputAudioConfig enableWordInfo. - * @member {boolean} enableWordInfo - * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Deployments#getDeployment}. + * @memberof google.cloud.dialogflow.cx.v3.Deployments + * @typedef GetDeploymentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.Deployment} [response] Deployment + */ + + /** + * Calls GetDeployment. + * @function getDeployment + * @memberof google.cloud.dialogflow.cx.v3.Deployments * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetDeploymentRequest} request GetDeploymentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Deployments.GetDeploymentCallback} callback Node-style callback called with the error, if any, and Deployment + * @returns {undefined} + * @variation 1 */ - InputAudioConfig.prototype.enableWordInfo = false; + Object.defineProperty(Deployments.prototype.getDeployment = function getDeployment(request, callback) { + return this.rpcCall(getDeployment, $root.google.cloud.dialogflow.cx.v3.GetDeploymentRequest, $root.google.cloud.dialogflow.cx.v3.Deployment, request, callback); + }, "name", { value: "GetDeployment" }); /** - * InputAudioConfig phraseHints. - * @member {Array.} phraseHints - * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig + * Calls GetDeployment. + * @function getDeployment + * @memberof google.cloud.dialogflow.cx.v3.Deployments * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetDeploymentRequest} request GetDeploymentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - InputAudioConfig.prototype.phraseHints = $util.emptyArray; + + return Deployments; + })(); + + v3.Deployment = (function() { /** - * InputAudioConfig model. - * @member {string} model - * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig + * Properties of a Deployment. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IDeployment + * @property {string|null} [name] Deployment name + * @property {string|null} [flowVersion] Deployment flowVersion + * @property {google.cloud.dialogflow.cx.v3.Deployment.State|null} [state] Deployment state + * @property {google.cloud.dialogflow.cx.v3.Deployment.IResult|null} [result] Deployment result + * @property {google.protobuf.ITimestamp|null} [startTime] Deployment startTime + * @property {google.protobuf.ITimestamp|null} [endTime] Deployment endTime + */ + + /** + * Constructs a new Deployment. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a Deployment. + * @implements IDeployment + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IDeployment=} [properties] Properties to set + */ + function Deployment(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Deployment name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.Deployment * @instance */ - InputAudioConfig.prototype.model = ""; + Deployment.prototype.name = ""; /** - * InputAudioConfig modelVariant. - * @member {google.cloud.dialogflow.cx.v3.SpeechModelVariant} modelVariant - * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig + * Deployment flowVersion. + * @member {string} flowVersion + * @memberof google.cloud.dialogflow.cx.v3.Deployment * @instance */ - InputAudioConfig.prototype.modelVariant = 0; + Deployment.prototype.flowVersion = ""; /** - * InputAudioConfig singleUtterance. - * @member {boolean} singleUtterance - * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig + * Deployment state. + * @member {google.cloud.dialogflow.cx.v3.Deployment.State} state + * @memberof google.cloud.dialogflow.cx.v3.Deployment * @instance */ - InputAudioConfig.prototype.singleUtterance = false; + Deployment.prototype.state = 0; /** - * Creates a new InputAudioConfig instance using the specified properties. + * Deployment result. + * @member {google.cloud.dialogflow.cx.v3.Deployment.IResult|null|undefined} result + * @memberof google.cloud.dialogflow.cx.v3.Deployment + * @instance + */ + Deployment.prototype.result = null; + + /** + * Deployment startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.dialogflow.cx.v3.Deployment + * @instance + */ + Deployment.prototype.startTime = null; + + /** + * Deployment endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.dialogflow.cx.v3.Deployment + * @instance + */ + Deployment.prototype.endTime = null; + + /** + * Creates a new Deployment instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.Deployment * @static - * @param {google.cloud.dialogflow.cx.v3.IInputAudioConfig=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.InputAudioConfig} InputAudioConfig instance + * @param {google.cloud.dialogflow.cx.v3.IDeployment=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Deployment} Deployment instance */ - InputAudioConfig.create = function create(properties) { - return new InputAudioConfig(properties); + Deployment.create = function create(properties) { + return new Deployment(properties); }; /** - * Encodes the specified InputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.InputAudioConfig.verify|verify} messages. + * Encodes the specified Deployment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Deployment.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.Deployment * @static - * @param {google.cloud.dialogflow.cx.v3.IInputAudioConfig} message InputAudioConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeployment} message Deployment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InputAudioConfig.encode = function encode(message, writer) { + Deployment.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.audioEncoding != null && Object.hasOwnProperty.call(message, "audioEncoding")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.audioEncoding); - if (message.sampleRateHertz != null && Object.hasOwnProperty.call(message, "sampleRateHertz")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.sampleRateHertz); - if (message.phraseHints != null && message.phraseHints.length) - for (var i = 0; i < message.phraseHints.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.phraseHints[i]); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.model); - if (message.singleUtterance != null && Object.hasOwnProperty.call(message, "singleUtterance")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.singleUtterance); - if (message.modelVariant != null && Object.hasOwnProperty.call(message, "modelVariant")) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.modelVariant); - if (message.enableWordInfo != null && Object.hasOwnProperty.call(message, "enableWordInfo")) - writer.uint32(/* id 13, wireType 0 =*/104).bool(message.enableWordInfo); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.flowVersion != null && Object.hasOwnProperty.call(message, "flowVersion")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.flowVersion); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.google.cloud.dialogflow.cx.v3.Deployment.Result.encode(message.result, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; /** - * Encodes the specified InputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.InputAudioConfig.verify|verify} messages. + * Encodes the specified Deployment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Deployment.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.Deployment * @static - * @param {google.cloud.dialogflow.cx.v3.IInputAudioConfig} message InputAudioConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeployment} message Deployment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InputAudioConfig.encodeDelimited = function encodeDelimited(message, writer) { + Deployment.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InputAudioConfig message from the specified reader or buffer. + * Decodes a Deployment message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.Deployment * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.InputAudioConfig} InputAudioConfig + * @returns {google.cloud.dialogflow.cx.v3.Deployment} Deployment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InputAudioConfig.decode = function decode(reader, length) { + Deployment.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.InputAudioConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Deployment(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.audioEncoding = reader.int32(); + message.name = reader.string(); break; case 2: - message.sampleRateHertz = reader.int32(); + message.flowVersion = reader.string(); break; - case 13: - message.enableWordInfo = reader.bool(); + case 3: + message.state = reader.int32(); break; case 4: - if (!(message.phraseHints && message.phraseHints.length)) - message.phraseHints = []; - message.phraseHints.push(reader.string()); - break; - case 7: - message.model = reader.string(); + message.result = $root.google.cloud.dialogflow.cx.v3.Deployment.Result.decode(reader, reader.uint32()); break; - case 10: - message.modelVariant = reader.int32(); + case 5: + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; - case 8: - message.singleUtterance = reader.bool(); + case 6: + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -18820,254 +19090,432 @@ }; /** - * Decodes an InputAudioConfig message from the specified reader or buffer, length delimited. + * Decodes a Deployment message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.Deployment * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.InputAudioConfig} InputAudioConfig + * @returns {google.cloud.dialogflow.cx.v3.Deployment} Deployment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InputAudioConfig.decodeDelimited = function decodeDelimited(reader) { + Deployment.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InputAudioConfig message. + * Verifies a Deployment message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.Deployment * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - InputAudioConfig.verify = function verify(message) { + Deployment.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.audioEncoding != null && message.hasOwnProperty("audioEncoding")) - switch (message.audioEncoding) { + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.flowVersion != null && message.hasOwnProperty("flowVersion")) + if (!$util.isString(message.flowVersion)) + return "flowVersion: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { default: - return "audioEncoding: enum value expected"; + return "state: enum value expected"; case 0: case 1: case 2: case 3: - case 4: - case 5: - case 6: - case 7: break; } - if (message.sampleRateHertz != null && message.hasOwnProperty("sampleRateHertz")) - if (!$util.isInteger(message.sampleRateHertz)) - return "sampleRateHertz: integer expected"; - if (message.enableWordInfo != null && message.hasOwnProperty("enableWordInfo")) - if (typeof message.enableWordInfo !== "boolean") - return "enableWordInfo: boolean expected"; - if (message.phraseHints != null && message.hasOwnProperty("phraseHints")) { - if (!Array.isArray(message.phraseHints)) - return "phraseHints: array expected"; - for (var i = 0; i < message.phraseHints.length; ++i) - if (!$util.isString(message.phraseHints[i])) - return "phraseHints: string[] expected"; + if (message.result != null && message.hasOwnProperty("result")) { + var error = $root.google.cloud.dialogflow.cx.v3.Deployment.Result.verify(message.result); + if (error) + return "result." + error; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; } - if (message.model != null && message.hasOwnProperty("model")) - if (!$util.isString(message.model)) - return "model: string expected"; - if (message.modelVariant != null && message.hasOwnProperty("modelVariant")) - switch (message.modelVariant) { - default: - return "modelVariant: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.singleUtterance != null && message.hasOwnProperty("singleUtterance")) - if (typeof message.singleUtterance !== "boolean") - return "singleUtterance: boolean expected"; return null; }; /** - * Creates an InputAudioConfig message from a plain object. Also converts values to their respective internal types. + * Creates a Deployment message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.Deployment * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.InputAudioConfig} InputAudioConfig + * @returns {google.cloud.dialogflow.cx.v3.Deployment} Deployment */ - InputAudioConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.InputAudioConfig) + Deployment.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Deployment) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.InputAudioConfig(); - switch (object.audioEncoding) { - case "AUDIO_ENCODING_UNSPECIFIED": + var message = new $root.google.cloud.dialogflow.cx.v3.Deployment(); + if (object.name != null) + message.name = String(object.name); + if (object.flowVersion != null) + message.flowVersion = String(object.flowVersion); + switch (object.state) { + case "STATE_UNSPECIFIED": case 0: - message.audioEncoding = 0; + message.state = 0; break; - case "AUDIO_ENCODING_LINEAR_16": + case "RUNNING": case 1: - message.audioEncoding = 1; + message.state = 1; break; - case "AUDIO_ENCODING_FLAC": + case "SUCCEEDED": case 2: - message.audioEncoding = 2; + message.state = 2; break; - case "AUDIO_ENCODING_MULAW": + case "FAILED": case 3: - message.audioEncoding = 3; - break; - case "AUDIO_ENCODING_AMR": - case 4: - message.audioEncoding = 4; - break; - case "AUDIO_ENCODING_AMR_WB": - case 5: - message.audioEncoding = 5; - break; - case "AUDIO_ENCODING_OGG_OPUS": - case 6: - message.audioEncoding = 6; - break; - case "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE": - case 7: - message.audioEncoding = 7; + message.state = 3; break; } - if (object.sampleRateHertz != null) - message.sampleRateHertz = object.sampleRateHertz | 0; - if (object.enableWordInfo != null) - message.enableWordInfo = Boolean(object.enableWordInfo); - if (object.phraseHints) { - if (!Array.isArray(object.phraseHints)) - throw TypeError(".google.cloud.dialogflow.cx.v3.InputAudioConfig.phraseHints: array expected"); - message.phraseHints = []; - for (var i = 0; i < object.phraseHints.length; ++i) - message.phraseHints[i] = String(object.phraseHints[i]); + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Deployment.result: object expected"); + message.result = $root.google.cloud.dialogflow.cx.v3.Deployment.Result.fromObject(object.result); } - if (object.model != null) - message.model = String(object.model); - switch (object.modelVariant) { - case "SPEECH_MODEL_VARIANT_UNSPECIFIED": - case 0: - message.modelVariant = 0; - break; - case "USE_BEST_AVAILABLE": - case 1: - message.modelVariant = 1; - break; - case "USE_STANDARD": - case 2: - message.modelVariant = 2; - break; - case "USE_ENHANCED": - case 3: - message.modelVariant = 3; - break; + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Deployment.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Deployment.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); } - if (object.singleUtterance != null) - message.singleUtterance = Boolean(object.singleUtterance); return message; }; /** - * Creates a plain object from an InputAudioConfig message. Also converts values to other types if specified. + * Creates a plain object from a Deployment message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.Deployment * @static - * @param {google.cloud.dialogflow.cx.v3.InputAudioConfig} message InputAudioConfig + * @param {google.cloud.dialogflow.cx.v3.Deployment} message Deployment * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InputAudioConfig.toObject = function toObject(message, options) { + Deployment.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.phraseHints = []; if (options.defaults) { - object.audioEncoding = options.enums === String ? "AUDIO_ENCODING_UNSPECIFIED" : 0; - object.sampleRateHertz = 0; - object.model = ""; - object.singleUtterance = false; - object.modelVariant = options.enums === String ? "SPEECH_MODEL_VARIANT_UNSPECIFIED" : 0; - object.enableWordInfo = false; - } - if (message.audioEncoding != null && message.hasOwnProperty("audioEncoding")) - object.audioEncoding = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.AudioEncoding[message.audioEncoding] : message.audioEncoding; - if (message.sampleRateHertz != null && message.hasOwnProperty("sampleRateHertz")) - object.sampleRateHertz = message.sampleRateHertz; - if (message.phraseHints && message.phraseHints.length) { - object.phraseHints = []; - for (var j = 0; j < message.phraseHints.length; ++j) - object.phraseHints[j] = message.phraseHints[j]; + object.name = ""; + object.flowVersion = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.result = null; + object.startTime = null; + object.endTime = null; } - if (message.model != null && message.hasOwnProperty("model")) - object.model = message.model; - if (message.singleUtterance != null && message.hasOwnProperty("singleUtterance")) - object.singleUtterance = message.singleUtterance; - if (message.modelVariant != null && message.hasOwnProperty("modelVariant")) - object.modelVariant = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.SpeechModelVariant[message.modelVariant] : message.modelVariant; - if (message.enableWordInfo != null && message.hasOwnProperty("enableWordInfo")) - object.enableWordInfo = message.enableWordInfo; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.flowVersion != null && message.hasOwnProperty("flowVersion")) + object.flowVersion = message.flowVersion; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Deployment.State[message.state] : message.state; + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.google.cloud.dialogflow.cx.v3.Deployment.Result.toObject(message.result, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); return object; }; /** - * Converts this InputAudioConfig to JSON. + * Converts this Deployment to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.Deployment * @instance * @returns {Object.} JSON object */ - InputAudioConfig.prototype.toJSON = function toJSON() { + Deployment.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return InputAudioConfig; - })(); - - /** - * SsmlVoiceGender enum. - * @name google.cloud.dialogflow.cx.v3.SsmlVoiceGender - * @enum {number} - * @property {number} SSML_VOICE_GENDER_UNSPECIFIED=0 SSML_VOICE_GENDER_UNSPECIFIED value - * @property {number} SSML_VOICE_GENDER_MALE=1 SSML_VOICE_GENDER_MALE value - * @property {number} SSML_VOICE_GENDER_FEMALE=2 SSML_VOICE_GENDER_FEMALE value - * @property {number} SSML_VOICE_GENDER_NEUTRAL=3 SSML_VOICE_GENDER_NEUTRAL value - */ - v3.SsmlVoiceGender = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "SSML_VOICE_GENDER_UNSPECIFIED"] = 0; - values[valuesById[1] = "SSML_VOICE_GENDER_MALE"] = 1; - values[valuesById[2] = "SSML_VOICE_GENDER_FEMALE"] = 2; - values[valuesById[3] = "SSML_VOICE_GENDER_NEUTRAL"] = 3; - return values; - })(); - - v3.VoiceSelectionParams = (function() { - /** - * Properties of a VoiceSelectionParams. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IVoiceSelectionParams - * @property {string|null} [name] VoiceSelectionParams name - * @property {google.cloud.dialogflow.cx.v3.SsmlVoiceGender|null} [ssmlGender] VoiceSelectionParams ssmlGender + * State enum. + * @name google.cloud.dialogflow.cx.v3.Deployment.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} RUNNING=1 RUNNING value + * @property {number} SUCCEEDED=2 SUCCEEDED value + * @property {number} FAILED=3 FAILED value */ - - /** - * Constructs a new VoiceSelectionParams. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a VoiceSelectionParams. - * @implements IVoiceSelectionParams + Deployment.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "RUNNING"] = 1; + values[valuesById[2] = "SUCCEEDED"] = 2; + values[valuesById[3] = "FAILED"] = 3; + return values; + })(); + + Deployment.Result = (function() { + + /** + * Properties of a Result. + * @memberof google.cloud.dialogflow.cx.v3.Deployment + * @interface IResult + * @property {Array.|null} [deploymentTestResults] Result deploymentTestResults + * @property {string|null} [experiment] Result experiment + */ + + /** + * Constructs a new Result. + * @memberof google.cloud.dialogflow.cx.v3.Deployment + * @classdesc Represents a Result. + * @implements IResult + * @constructor + * @param {google.cloud.dialogflow.cx.v3.Deployment.IResult=} [properties] Properties to set + */ + function Result(properties) { + this.deploymentTestResults = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Result deploymentTestResults. + * @member {Array.} deploymentTestResults + * @memberof google.cloud.dialogflow.cx.v3.Deployment.Result + * @instance + */ + Result.prototype.deploymentTestResults = $util.emptyArray; + + /** + * Result experiment. + * @member {string} experiment + * @memberof google.cloud.dialogflow.cx.v3.Deployment.Result + * @instance + */ + Result.prototype.experiment = ""; + + /** + * Creates a new Result instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Deployment.Result + * @static + * @param {google.cloud.dialogflow.cx.v3.Deployment.IResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Deployment.Result} Result instance + */ + Result.create = function create(properties) { + return new Result(properties); + }; + + /** + * Encodes the specified Result message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Deployment.Result.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.Deployment.Result + * @static + * @param {google.cloud.dialogflow.cx.v3.Deployment.IResult} message Result message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Result.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deploymentTestResults != null && message.deploymentTestResults.length) + for (var i = 0; i < message.deploymentTestResults.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.deploymentTestResults[i]); + if (message.experiment != null && Object.hasOwnProperty.call(message, "experiment")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.experiment); + return writer; + }; + + /** + * Encodes the specified Result message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Deployment.Result.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Deployment.Result + * @static + * @param {google.cloud.dialogflow.cx.v3.Deployment.IResult} message Result message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Result.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Result message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.Deployment.Result + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.Deployment.Result} Result + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Result.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Deployment.Result(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.deploymentTestResults && message.deploymentTestResults.length)) + message.deploymentTestResults = []; + message.deploymentTestResults.push(reader.string()); + break; + case 2: + message.experiment = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Result message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Deployment.Result + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.Deployment.Result} Result + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Result.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Result message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.Deployment.Result + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Result.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deploymentTestResults != null && message.hasOwnProperty("deploymentTestResults")) { + if (!Array.isArray(message.deploymentTestResults)) + return "deploymentTestResults: array expected"; + for (var i = 0; i < message.deploymentTestResults.length; ++i) + if (!$util.isString(message.deploymentTestResults[i])) + return "deploymentTestResults: string[] expected"; + } + if (message.experiment != null && message.hasOwnProperty("experiment")) + if (!$util.isString(message.experiment)) + return "experiment: string expected"; + return null; + }; + + /** + * Creates a Result message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.Deployment.Result + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.Deployment.Result} Result + */ + Result.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Deployment.Result) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.Deployment.Result(); + if (object.deploymentTestResults) { + if (!Array.isArray(object.deploymentTestResults)) + throw TypeError(".google.cloud.dialogflow.cx.v3.Deployment.Result.deploymentTestResults: array expected"); + message.deploymentTestResults = []; + for (var i = 0; i < object.deploymentTestResults.length; ++i) + message.deploymentTestResults[i] = String(object.deploymentTestResults[i]); + } + if (object.experiment != null) + message.experiment = String(object.experiment); + return message; + }; + + /** + * Creates a plain object from a Result message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.Deployment.Result + * @static + * @param {google.cloud.dialogflow.cx.v3.Deployment.Result} message Result + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Result.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.deploymentTestResults = []; + if (options.defaults) + object.experiment = ""; + if (message.deploymentTestResults && message.deploymentTestResults.length) { + object.deploymentTestResults = []; + for (var j = 0; j < message.deploymentTestResults.length; ++j) + object.deploymentTestResults[j] = message.deploymentTestResults[j]; + } + if (message.experiment != null && message.hasOwnProperty("experiment")) + object.experiment = message.experiment; + return object; + }; + + /** + * Converts this Result to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.Deployment.Result + * @instance + * @returns {Object.} JSON object + */ + Result.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Result; + })(); + + return Deployment; + })(); + + v3.ListDeploymentsRequest = (function() { + + /** + * Properties of a ListDeploymentsRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IListDeploymentsRequest + * @property {string|null} [parent] ListDeploymentsRequest parent + * @property {number|null} [pageSize] ListDeploymentsRequest pageSize + * @property {string|null} [pageToken] ListDeploymentsRequest pageToken + */ + + /** + * Constructs a new ListDeploymentsRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a ListDeploymentsRequest. + * @implements IListDeploymentsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IVoiceSelectionParams=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListDeploymentsRequest=} [properties] Properties to set */ - function VoiceSelectionParams(properties) { + function ListDeploymentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19075,88 +19523,101 @@ } /** - * VoiceSelectionParams name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams + * ListDeploymentsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest * @instance */ - VoiceSelectionParams.prototype.name = ""; + ListDeploymentsRequest.prototype.parent = ""; /** - * VoiceSelectionParams ssmlGender. - * @member {google.cloud.dialogflow.cx.v3.SsmlVoiceGender} ssmlGender - * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams + * ListDeploymentsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest * @instance */ - VoiceSelectionParams.prototype.ssmlGender = 0; + ListDeploymentsRequest.prototype.pageSize = 0; /** - * Creates a new VoiceSelectionParams instance using the specified properties. + * ListDeploymentsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest + * @instance + */ + ListDeploymentsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListDeploymentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IVoiceSelectionParams=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.VoiceSelectionParams} VoiceSelectionParams instance + * @param {google.cloud.dialogflow.cx.v3.IListDeploymentsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListDeploymentsRequest} ListDeploymentsRequest instance */ - VoiceSelectionParams.create = function create(properties) { - return new VoiceSelectionParams(properties); + ListDeploymentsRequest.create = function create(properties) { + return new ListDeploymentsRequest(properties); }; /** - * Encodes the specified VoiceSelectionParams message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VoiceSelectionParams.verify|verify} messages. + * Encodes the specified ListDeploymentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListDeploymentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IVoiceSelectionParams} message VoiceSelectionParams message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListDeploymentsRequest} message ListDeploymentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VoiceSelectionParams.encode = function encode(message, writer) { + ListDeploymentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.ssmlGender != null && Object.hasOwnProperty.call(message, "ssmlGender")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.ssmlGender); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified VoiceSelectionParams message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VoiceSelectionParams.verify|verify} messages. + * Encodes the specified ListDeploymentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListDeploymentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IVoiceSelectionParams} message VoiceSelectionParams message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListDeploymentsRequest} message ListDeploymentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VoiceSelectionParams.encodeDelimited = function encodeDelimited(message, writer) { + ListDeploymentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VoiceSelectionParams message from the specified reader or buffer. + * Decodes a ListDeploymentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.VoiceSelectionParams} VoiceSelectionParams + * @returns {google.cloud.dialogflow.cx.v3.ListDeploymentsRequest} ListDeploymentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VoiceSelectionParams.decode = function decode(reader, length) { + ListDeploymentsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.VoiceSelectionParams(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); break; case 2: - message.ssmlGender = reader.int32(); + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -19167,144 +19628,126 @@ }; /** - * Decodes a VoiceSelectionParams message from the specified reader or buffer, length delimited. + * Decodes a ListDeploymentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.VoiceSelectionParams} VoiceSelectionParams + * @returns {google.cloud.dialogflow.cx.v3.ListDeploymentsRequest} ListDeploymentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VoiceSelectionParams.decodeDelimited = function decodeDelimited(reader) { + ListDeploymentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VoiceSelectionParams message. + * Verifies a ListDeploymentsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VoiceSelectionParams.verify = function verify(message) { + ListDeploymentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.ssmlGender != null && message.hasOwnProperty("ssmlGender")) - switch (message.ssmlGender) { - default: - return "ssmlGender: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a VoiceSelectionParams message from a plain object. Also converts values to their respective internal types. + * Creates a ListDeploymentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.VoiceSelectionParams} VoiceSelectionParams + * @returns {google.cloud.dialogflow.cx.v3.ListDeploymentsRequest} ListDeploymentsRequest */ - VoiceSelectionParams.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.VoiceSelectionParams) + ListDeploymentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.VoiceSelectionParams(); - if (object.name != null) - message.name = String(object.name); - switch (object.ssmlGender) { - case "SSML_VOICE_GENDER_UNSPECIFIED": - case 0: - message.ssmlGender = 0; - break; - case "SSML_VOICE_GENDER_MALE": - case 1: - message.ssmlGender = 1; - break; - case "SSML_VOICE_GENDER_FEMALE": - case 2: - message.ssmlGender = 2; - break; - case "SSML_VOICE_GENDER_NEUTRAL": - case 3: - message.ssmlGender = 3; - break; - } + var message = new $root.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a VoiceSelectionParams message. Also converts values to other types if specified. + * Creates a plain object from a ListDeploymentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.VoiceSelectionParams} message VoiceSelectionParams + * @param {google.cloud.dialogflow.cx.v3.ListDeploymentsRequest} message ListDeploymentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VoiceSelectionParams.toObject = function toObject(message, options) { + ListDeploymentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.ssmlGender = options.enums === String ? "SSML_VOICE_GENDER_UNSPECIFIED" : 0; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.ssmlGender != null && message.hasOwnProperty("ssmlGender")) - object.ssmlGender = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.SsmlVoiceGender[message.ssmlGender] : message.ssmlGender; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this VoiceSelectionParams to JSON. + * Converts this ListDeploymentsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest * @instance * @returns {Object.} JSON object */ - VoiceSelectionParams.prototype.toJSON = function toJSON() { + ListDeploymentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return VoiceSelectionParams; + return ListDeploymentsRequest; })(); - v3.SynthesizeSpeechConfig = (function() { + v3.ListDeploymentsResponse = (function() { /** - * Properties of a SynthesizeSpeechConfig. + * Properties of a ListDeploymentsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ISynthesizeSpeechConfig - * @property {number|null} [speakingRate] SynthesizeSpeechConfig speakingRate - * @property {number|null} [pitch] SynthesizeSpeechConfig pitch - * @property {number|null} [volumeGainDb] SynthesizeSpeechConfig volumeGainDb - * @property {Array.|null} [effectsProfileId] SynthesizeSpeechConfig effectsProfileId - * @property {google.cloud.dialogflow.cx.v3.IVoiceSelectionParams|null} [voice] SynthesizeSpeechConfig voice + * @interface IListDeploymentsResponse + * @property {Array.|null} [deployments] ListDeploymentsResponse deployments + * @property {string|null} [nextPageToken] ListDeploymentsResponse nextPageToken */ /** - * Constructs a new SynthesizeSpeechConfig. + * Constructs a new ListDeploymentsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a SynthesizeSpeechConfig. - * @implements ISynthesizeSpeechConfig + * @classdesc Represents a ListDeploymentsResponse. + * @implements IListDeploymentsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListDeploymentsResponse=} [properties] Properties to set */ - function SynthesizeSpeechConfig(properties) { - this.effectsProfileId = []; + function ListDeploymentsResponse(properties) { + this.deployments = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19312,130 +19755,91 @@ } /** - * SynthesizeSpeechConfig speakingRate. - * @member {number} speakingRate - * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig + * ListDeploymentsResponse deployments. + * @member {Array.} deployments + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse * @instance */ - SynthesizeSpeechConfig.prototype.speakingRate = 0; + ListDeploymentsResponse.prototype.deployments = $util.emptyArray; /** - * SynthesizeSpeechConfig pitch. - * @member {number} pitch - * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig + * ListDeploymentsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse * @instance */ - SynthesizeSpeechConfig.prototype.pitch = 0; + ListDeploymentsResponse.prototype.nextPageToken = ""; /** - * SynthesizeSpeechConfig volumeGainDb. - * @member {number} volumeGainDb - * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig - * @instance + * Creates a new ListDeploymentsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.IListDeploymentsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListDeploymentsResponse} ListDeploymentsResponse instance */ - SynthesizeSpeechConfig.prototype.volumeGainDb = 0; + ListDeploymentsResponse.create = function create(properties) { + return new ListDeploymentsResponse(properties); + }; /** - * SynthesizeSpeechConfig effectsProfileId. - * @member {Array.} effectsProfileId - * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig - * @instance + * Encodes the specified ListDeploymentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListDeploymentsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.IListDeploymentsResponse} message ListDeploymentsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - SynthesizeSpeechConfig.prototype.effectsProfileId = $util.emptyArray; - - /** - * SynthesizeSpeechConfig voice. - * @member {google.cloud.dialogflow.cx.v3.IVoiceSelectionParams|null|undefined} voice - * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig - * @instance - */ - SynthesizeSpeechConfig.prototype.voice = null; - - /** - * Creates a new SynthesizeSpeechConfig instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig - * @static - * @param {google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig} SynthesizeSpeechConfig instance - */ - SynthesizeSpeechConfig.create = function create(properties) { - return new SynthesizeSpeechConfig(properties); - }; - - /** - * Encodes the specified SynthesizeSpeechConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig - * @static - * @param {google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig} message SynthesizeSpeechConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SynthesizeSpeechConfig.encode = function encode(message, writer) { + ListDeploymentsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.speakingRate != null && Object.hasOwnProperty.call(message, "speakingRate")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.speakingRate); - if (message.pitch != null && Object.hasOwnProperty.call(message, "pitch")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.pitch); - if (message.volumeGainDb != null && Object.hasOwnProperty.call(message, "volumeGainDb")) - writer.uint32(/* id 3, wireType 1 =*/25).double(message.volumeGainDb); - if (message.voice != null && Object.hasOwnProperty.call(message, "voice")) - $root.google.cloud.dialogflow.cx.v3.VoiceSelectionParams.encode(message.voice, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.effectsProfileId != null && message.effectsProfileId.length) - for (var i = 0; i < message.effectsProfileId.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.effectsProfileId[i]); + if (message.deployments != null && message.deployments.length) + for (var i = 0; i < message.deployments.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Deployment.encode(message.deployments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified SynthesizeSpeechConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.verify|verify} messages. + * Encodes the specified ListDeploymentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListDeploymentsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig} message SynthesizeSpeechConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListDeploymentsResponse} message ListDeploymentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SynthesizeSpeechConfig.encodeDelimited = function encodeDelimited(message, writer) { + ListDeploymentsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SynthesizeSpeechConfig message from the specified reader or buffer. + * Decodes a ListDeploymentsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig} SynthesizeSpeechConfig + * @returns {google.cloud.dialogflow.cx.v3.ListDeploymentsResponse} ListDeploymentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SynthesizeSpeechConfig.decode = function decode(reader, length) { + ListDeploymentsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.speakingRate = reader.double(); + if (!(message.deployments && message.deployments.length)) + message.deployments = []; + message.deployments.push($root.google.cloud.dialogflow.cx.v3.Deployment.decode(reader, reader.uint32())); break; case 2: - message.pitch = reader.double(); - break; - case 3: - message.volumeGainDb = reader.double(); - break; - case 5: - if (!(message.effectsProfileId && message.effectsProfileId.length)) - message.effectsProfileId = []; - message.effectsProfileId.push(reader.string()); - break; - case 4: - message.voice = $root.google.cloud.dialogflow.cx.v3.VoiceSelectionParams.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -19446,182 +19850,133 @@ }; /** - * Decodes a SynthesizeSpeechConfig message from the specified reader or buffer, length delimited. + * Decodes a ListDeploymentsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig} SynthesizeSpeechConfig + * @returns {google.cloud.dialogflow.cx.v3.ListDeploymentsResponse} ListDeploymentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SynthesizeSpeechConfig.decodeDelimited = function decodeDelimited(reader) { + ListDeploymentsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SynthesizeSpeechConfig message. + * Verifies a ListDeploymentsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SynthesizeSpeechConfig.verify = function verify(message) { + ListDeploymentsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.speakingRate != null && message.hasOwnProperty("speakingRate")) - if (typeof message.speakingRate !== "number") - return "speakingRate: number expected"; - if (message.pitch != null && message.hasOwnProperty("pitch")) - if (typeof message.pitch !== "number") - return "pitch: number expected"; - if (message.volumeGainDb != null && message.hasOwnProperty("volumeGainDb")) - if (typeof message.volumeGainDb !== "number") - return "volumeGainDb: number expected"; - if (message.effectsProfileId != null && message.hasOwnProperty("effectsProfileId")) { - if (!Array.isArray(message.effectsProfileId)) - return "effectsProfileId: array expected"; - for (var i = 0; i < message.effectsProfileId.length; ++i) - if (!$util.isString(message.effectsProfileId[i])) - return "effectsProfileId: string[] expected"; - } - if (message.voice != null && message.hasOwnProperty("voice")) { - var error = $root.google.cloud.dialogflow.cx.v3.VoiceSelectionParams.verify(message.voice); - if (error) - return "voice." + error; + if (message.deployments != null && message.hasOwnProperty("deployments")) { + if (!Array.isArray(message.deployments)) + return "deployments: array expected"; + for (var i = 0; i < message.deployments.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Deployment.verify(message.deployments[i]); + if (error) + return "deployments." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a SynthesizeSpeechConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ListDeploymentsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig} SynthesizeSpeechConfig + * @returns {google.cloud.dialogflow.cx.v3.ListDeploymentsResponse} ListDeploymentsResponse */ - SynthesizeSpeechConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig) + ListDeploymentsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig(); - if (object.speakingRate != null) - message.speakingRate = Number(object.speakingRate); - if (object.pitch != null) - message.pitch = Number(object.pitch); - if (object.volumeGainDb != null) - message.volumeGainDb = Number(object.volumeGainDb); - if (object.effectsProfileId) { - if (!Array.isArray(object.effectsProfileId)) - throw TypeError(".google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.effectsProfileId: array expected"); - message.effectsProfileId = []; - for (var i = 0; i < object.effectsProfileId.length; ++i) - message.effectsProfileId[i] = String(object.effectsProfileId[i]); - } - if (object.voice != null) { - if (typeof object.voice !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.voice: object expected"); - message.voice = $root.google.cloud.dialogflow.cx.v3.VoiceSelectionParams.fromObject(object.voice); + var message = new $root.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse(); + if (object.deployments) { + if (!Array.isArray(object.deployments)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ListDeploymentsResponse.deployments: array expected"); + message.deployments = []; + for (var i = 0; i < object.deployments.length; ++i) { + if (typeof object.deployments[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ListDeploymentsResponse.deployments: object expected"); + message.deployments[i] = $root.google.cloud.dialogflow.cx.v3.Deployment.fromObject(object.deployments[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a SynthesizeSpeechConfig message. Also converts values to other types if specified. + * Creates a plain object from a ListDeploymentsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig} message SynthesizeSpeechConfig + * @param {google.cloud.dialogflow.cx.v3.ListDeploymentsResponse} message ListDeploymentsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SynthesizeSpeechConfig.toObject = function toObject(message, options) { + ListDeploymentsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.effectsProfileId = []; - if (options.defaults) { - object.speakingRate = 0; - object.pitch = 0; - object.volumeGainDb = 0; - object.voice = null; - } - if (message.speakingRate != null && message.hasOwnProperty("speakingRate")) - object.speakingRate = options.json && !isFinite(message.speakingRate) ? String(message.speakingRate) : message.speakingRate; - if (message.pitch != null && message.hasOwnProperty("pitch")) - object.pitch = options.json && !isFinite(message.pitch) ? String(message.pitch) : message.pitch; - if (message.volumeGainDb != null && message.hasOwnProperty("volumeGainDb")) - object.volumeGainDb = options.json && !isFinite(message.volumeGainDb) ? String(message.volumeGainDb) : message.volumeGainDb; - if (message.voice != null && message.hasOwnProperty("voice")) - object.voice = $root.google.cloud.dialogflow.cx.v3.VoiceSelectionParams.toObject(message.voice, options); - if (message.effectsProfileId && message.effectsProfileId.length) { - object.effectsProfileId = []; - for (var j = 0; j < message.effectsProfileId.length; ++j) - object.effectsProfileId[j] = message.effectsProfileId[j]; + object.deployments = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.deployments && message.deployments.length) { + object.deployments = []; + for (var j = 0; j < message.deployments.length; ++j) + object.deployments[j] = $root.google.cloud.dialogflow.cx.v3.Deployment.toObject(message.deployments[j], options); } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this SynthesizeSpeechConfig to JSON. + * Converts this ListDeploymentsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse * @instance * @returns {Object.} JSON object */ - SynthesizeSpeechConfig.prototype.toJSON = function toJSON() { + ListDeploymentsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SynthesizeSpeechConfig; - })(); - - /** - * OutputAudioEncoding enum. - * @name google.cloud.dialogflow.cx.v3.OutputAudioEncoding - * @enum {number} - * @property {number} OUTPUT_AUDIO_ENCODING_UNSPECIFIED=0 OUTPUT_AUDIO_ENCODING_UNSPECIFIED value - * @property {number} OUTPUT_AUDIO_ENCODING_LINEAR_16=1 OUTPUT_AUDIO_ENCODING_LINEAR_16 value - * @property {number} OUTPUT_AUDIO_ENCODING_MP3=2 OUTPUT_AUDIO_ENCODING_MP3 value - * @property {number} OUTPUT_AUDIO_ENCODING_MP3_64_KBPS=4 OUTPUT_AUDIO_ENCODING_MP3_64_KBPS value - * @property {number} OUTPUT_AUDIO_ENCODING_OGG_OPUS=3 OUTPUT_AUDIO_ENCODING_OGG_OPUS value - * @property {number} OUTPUT_AUDIO_ENCODING_MULAW=5 OUTPUT_AUDIO_ENCODING_MULAW value - */ - v3.OutputAudioEncoding = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "OUTPUT_AUDIO_ENCODING_UNSPECIFIED"] = 0; - values[valuesById[1] = "OUTPUT_AUDIO_ENCODING_LINEAR_16"] = 1; - values[valuesById[2] = "OUTPUT_AUDIO_ENCODING_MP3"] = 2; - values[valuesById[4] = "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS"] = 4; - values[valuesById[3] = "OUTPUT_AUDIO_ENCODING_OGG_OPUS"] = 3; - values[valuesById[5] = "OUTPUT_AUDIO_ENCODING_MULAW"] = 5; - return values; + return ListDeploymentsResponse; })(); - v3.OutputAudioConfig = (function() { + v3.GetDeploymentRequest = (function() { /** - * Properties of an OutputAudioConfig. + * Properties of a GetDeploymentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IOutputAudioConfig - * @property {google.cloud.dialogflow.cx.v3.OutputAudioEncoding|null} [audioEncoding] OutputAudioConfig audioEncoding - * @property {number|null} [sampleRateHertz] OutputAudioConfig sampleRateHertz - * @property {google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig|null} [synthesizeSpeechConfig] OutputAudioConfig synthesizeSpeechConfig + * @interface IGetDeploymentRequest + * @property {string|null} [name] GetDeploymentRequest name */ /** - * Constructs a new OutputAudioConfig. + * Constructs a new GetDeploymentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an OutputAudioConfig. - * @implements IOutputAudioConfig + * @classdesc Represents a GetDeploymentRequest. + * @implements IGetDeploymentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IOutputAudioConfig=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetDeploymentRequest=} [properties] Properties to set */ - function OutputAudioConfig(properties) { + function GetDeploymentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19629,101 +19984,75 @@ } /** - * OutputAudioConfig audioEncoding. - * @member {google.cloud.dialogflow.cx.v3.OutputAudioEncoding} audioEncoding - * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig - * @instance - */ - OutputAudioConfig.prototype.audioEncoding = 0; - - /** - * OutputAudioConfig sampleRateHertz. - * @member {number} sampleRateHertz - * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig - * @instance - */ - OutputAudioConfig.prototype.sampleRateHertz = 0; - - /** - * OutputAudioConfig synthesizeSpeechConfig. - * @member {google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig|null|undefined} synthesizeSpeechConfig - * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig + * GetDeploymentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.GetDeploymentRequest * @instance */ - OutputAudioConfig.prototype.synthesizeSpeechConfig = null; + GetDeploymentRequest.prototype.name = ""; /** - * Creates a new OutputAudioConfig instance using the specified properties. + * Creates a new GetDeploymentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.GetDeploymentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IOutputAudioConfig=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.OutputAudioConfig} OutputAudioConfig instance + * @param {google.cloud.dialogflow.cx.v3.IGetDeploymentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetDeploymentRequest} GetDeploymentRequest instance */ - OutputAudioConfig.create = function create(properties) { - return new OutputAudioConfig(properties); + GetDeploymentRequest.create = function create(properties) { + return new GetDeploymentRequest(properties); }; /** - * Encodes the specified OutputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify|verify} messages. + * Encodes the specified GetDeploymentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetDeploymentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.GetDeploymentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IOutputAudioConfig} message OutputAudioConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetDeploymentRequest} message GetDeploymentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OutputAudioConfig.encode = function encode(message, writer) { + GetDeploymentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.audioEncoding != null && Object.hasOwnProperty.call(message, "audioEncoding")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.audioEncoding); - if (message.sampleRateHertz != null && Object.hasOwnProperty.call(message, "sampleRateHertz")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.sampleRateHertz); - if (message.synthesizeSpeechConfig != null && Object.hasOwnProperty.call(message, "synthesizeSpeechConfig")) - $root.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.encode(message.synthesizeSpeechConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified OutputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify|verify} messages. + * Encodes the specified GetDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetDeploymentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.GetDeploymentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IOutputAudioConfig} message OutputAudioConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetDeploymentRequest} message GetDeploymentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OutputAudioConfig.encodeDelimited = function encodeDelimited(message, writer) { + GetDeploymentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an OutputAudioConfig message from the specified reader or buffer. + * Decodes a GetDeploymentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.GetDeploymentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.OutputAudioConfig} OutputAudioConfig + * @returns {google.cloud.dialogflow.cx.v3.GetDeploymentRequest} GetDeploymentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OutputAudioConfig.decode = function decode(reader, length) { + GetDeploymentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetDeploymentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.audioEncoding = reader.int32(); - break; - case 2: - message.sampleRateHertz = reader.int32(); - break; - case 3: - message.synthesizeSpeechConfig = $root.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -19734,266 +20063,316 @@ }; /** - * Decodes an OutputAudioConfig message from the specified reader or buffer, length delimited. + * Decodes a GetDeploymentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.GetDeploymentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.OutputAudioConfig} OutputAudioConfig + * @returns {google.cloud.dialogflow.cx.v3.GetDeploymentRequest} GetDeploymentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OutputAudioConfig.decodeDelimited = function decodeDelimited(reader) { + GetDeploymentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an OutputAudioConfig message. + * Verifies a GetDeploymentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.GetDeploymentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - OutputAudioConfig.verify = function verify(message) { + GetDeploymentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.audioEncoding != null && message.hasOwnProperty("audioEncoding")) - switch (message.audioEncoding) { - default: - return "audioEncoding: enum value expected"; - case 0: - case 1: - case 2: - case 4: - case 3: - case 5: - break; - } - if (message.sampleRateHertz != null && message.hasOwnProperty("sampleRateHertz")) - if (!$util.isInteger(message.sampleRateHertz)) - return "sampleRateHertz: integer expected"; - if (message.synthesizeSpeechConfig != null && message.hasOwnProperty("synthesizeSpeechConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.verify(message.synthesizeSpeechConfig); - if (error) - return "synthesizeSpeechConfig." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an OutputAudioConfig message from a plain object. Also converts values to their respective internal types. + * Creates a GetDeploymentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.GetDeploymentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.OutputAudioConfig} OutputAudioConfig + * @returns {google.cloud.dialogflow.cx.v3.GetDeploymentRequest} GetDeploymentRequest */ - OutputAudioConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig) + GetDeploymentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetDeploymentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig(); - switch (object.audioEncoding) { - case "OUTPUT_AUDIO_ENCODING_UNSPECIFIED": - case 0: - message.audioEncoding = 0; - break; - case "OUTPUT_AUDIO_ENCODING_LINEAR_16": - case 1: - message.audioEncoding = 1; - break; - case "OUTPUT_AUDIO_ENCODING_MP3": - case 2: - message.audioEncoding = 2; - break; - case "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS": - case 4: - message.audioEncoding = 4; - break; - case "OUTPUT_AUDIO_ENCODING_OGG_OPUS": - case 3: - message.audioEncoding = 3; - break; - case "OUTPUT_AUDIO_ENCODING_MULAW": - case 5: - message.audioEncoding = 5; - break; - } - if (object.sampleRateHertz != null) - message.sampleRateHertz = object.sampleRateHertz | 0; - if (object.synthesizeSpeechConfig != null) { - if (typeof object.synthesizeSpeechConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.OutputAudioConfig.synthesizeSpeechConfig: object expected"); - message.synthesizeSpeechConfig = $root.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.fromObject(object.synthesizeSpeechConfig); - } + var message = new $root.google.cloud.dialogflow.cx.v3.GetDeploymentRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an OutputAudioConfig message. Also converts values to other types if specified. + * Creates a plain object from a GetDeploymentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.GetDeploymentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.OutputAudioConfig} message OutputAudioConfig + * @param {google.cloud.dialogflow.cx.v3.GetDeploymentRequest} message GetDeploymentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - OutputAudioConfig.toObject = function toObject(message, options) { + GetDeploymentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.audioEncoding = options.enums === String ? "OUTPUT_AUDIO_ENCODING_UNSPECIFIED" : 0; - object.sampleRateHertz = 0; - object.synthesizeSpeechConfig = null; - } - if (message.audioEncoding != null && message.hasOwnProperty("audioEncoding")) - object.audioEncoding = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.OutputAudioEncoding[message.audioEncoding] : message.audioEncoding; - if (message.sampleRateHertz != null && message.hasOwnProperty("sampleRateHertz")) - object.sampleRateHertz = message.sampleRateHertz; - if (message.synthesizeSpeechConfig != null && message.hasOwnProperty("synthesizeSpeechConfig")) - object.synthesizeSpeechConfig = $root.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.toObject(message.synthesizeSpeechConfig, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this OutputAudioConfig to JSON. + * Converts this GetDeploymentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.GetDeploymentRequest * @instance * @returns {Object.} JSON object */ - OutputAudioConfig.prototype.toJSON = function toJSON() { + GetDeploymentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return OutputAudioConfig; + return GetDeploymentRequest; })(); - v3.Changelogs = (function() { + v3.EntityTypes = (function() { /** - * Constructs a new Changelogs service. + * Constructs a new EntityTypes service. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a Changelogs + * @classdesc Represents an EntityTypes * @extends $protobuf.rpc.Service * @constructor * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - function Changelogs(rpcImpl, requestDelimited, responseDelimited) { + function EntityTypes(rpcImpl, requestDelimited, responseDelimited) { $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - (Changelogs.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Changelogs; + (EntityTypes.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = EntityTypes; /** - * Creates new Changelogs service using the specified rpc implementation. + * Creates new EntityTypes service using the specified rpc implementation. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Changelogs + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes * @static * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {Changelogs} RPC service. Useful where requests and/or responses are streamed. + * @returns {EntityTypes} RPC service. Useful where requests and/or responses are streamed. */ - Changelogs.create = function create(rpcImpl, requestDelimited, responseDelimited) { + EntityTypes.create = function create(rpcImpl, requestDelimited, responseDelimited) { return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Changelogs#listChangelogs}. - * @memberof google.cloud.dialogflow.cx.v3.Changelogs - * @typedef ListChangelogsCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes#listEntityTypes}. + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes + * @typedef ListEntityTypesCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.ListChangelogsResponse} [response] ListChangelogsResponse + * @param {google.cloud.dialogflow.cx.v3.ListEntityTypesResponse} [response] ListEntityTypesResponse */ /** - * Calls ListChangelogs. - * @function listChangelogs - * @memberof google.cloud.dialogflow.cx.v3.Changelogs + * Calls ListEntityTypes. + * @function listEntityTypes + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes * @instance - * @param {google.cloud.dialogflow.cx.v3.IListChangelogsRequest} request ListChangelogsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogsCallback} callback Node-style callback called with the error, if any, and ListChangelogsResponse + * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesRequest} request ListEntityTypesRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypesCallback} callback Node-style callback called with the error, if any, and ListEntityTypesResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(Changelogs.prototype.listChangelogs = function listChangelogs(request, callback) { - return this.rpcCall(listChangelogs, $root.google.cloud.dialogflow.cx.v3.ListChangelogsRequest, $root.google.cloud.dialogflow.cx.v3.ListChangelogsResponse, request, callback); - }, "name", { value: "ListChangelogs" }); + Object.defineProperty(EntityTypes.prototype.listEntityTypes = function listEntityTypes(request, callback) { + return this.rpcCall(listEntityTypes, $root.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest, $root.google.cloud.dialogflow.cx.v3.ListEntityTypesResponse, request, callback); + }, "name", { value: "ListEntityTypes" }); /** - * Calls ListChangelogs. - * @function listChangelogs - * @memberof google.cloud.dialogflow.cx.v3.Changelogs + * Calls ListEntityTypes. + * @function listEntityTypes + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes * @instance - * @param {google.cloud.dialogflow.cx.v3.IListChangelogsRequest} request ListChangelogsRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesRequest} request ListEntityTypesRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Changelogs#getChangelog}. - * @memberof google.cloud.dialogflow.cx.v3.Changelogs - * @typedef GetChangelogCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes#getEntityType}. + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes + * @typedef GetEntityTypeCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.Changelog} [response] Changelog + * @param {google.cloud.dialogflow.cx.v3.EntityType} [response] EntityType */ /** - * Calls GetChangelog. - * @function getChangelog - * @memberof google.cloud.dialogflow.cx.v3.Changelogs + * Calls GetEntityType. + * @function getEntityType + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetChangelogRequest} request GetChangelogRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Changelogs.GetChangelogCallback} callback Node-style callback called with the error, if any, and Changelog + * @param {google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest} request GetEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityTypeCallback} callback Node-style callback called with the error, if any, and EntityType * @returns {undefined} * @variation 1 */ - Object.defineProperty(Changelogs.prototype.getChangelog = function getChangelog(request, callback) { - return this.rpcCall(getChangelog, $root.google.cloud.dialogflow.cx.v3.GetChangelogRequest, $root.google.cloud.dialogflow.cx.v3.Changelog, request, callback); - }, "name", { value: "GetChangelog" }); + Object.defineProperty(EntityTypes.prototype.getEntityType = function getEntityType(request, callback) { + return this.rpcCall(getEntityType, $root.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3.EntityType, request, callback); + }, "name", { value: "GetEntityType" }); /** - * Calls GetChangelog. - * @function getChangelog - * @memberof google.cloud.dialogflow.cx.v3.Changelogs + * Calls GetEntityType. + * @function getEntityType + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetChangelogRequest} request GetChangelogRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest} request GetEntityTypeRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ - return Changelogs; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes#createEntityType}. + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes + * @typedef CreateEntityTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.EntityType} [response] EntityType + */ + + /** + * Calls CreateEntityType. + * @function createEntityType + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest} request CreateEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.EntityTypes.CreateEntityTypeCallback} callback Node-style callback called with the error, if any, and EntityType + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(EntityTypes.prototype.createEntityType = function createEntityType(request, callback) { + return this.rpcCall(createEntityType, $root.google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3.EntityType, request, callback); + }, "name", { value: "CreateEntityType" }); + + /** + * Calls CreateEntityType. + * @function createEntityType + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest} request CreateEntityTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes#updateEntityType}. + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes + * @typedef UpdateEntityTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.EntityType} [response] EntityType + */ + + /** + * Calls UpdateEntityType. + * @function updateEntityType + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest} request UpdateEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityTypeCallback} callback Node-style callback called with the error, if any, and EntityType + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(EntityTypes.prototype.updateEntityType = function updateEntityType(request, callback) { + return this.rpcCall(updateEntityType, $root.google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3.EntityType, request, callback); + }, "name", { value: "UpdateEntityType" }); + + /** + * Calls UpdateEntityType. + * @function updateEntityType + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest} request UpdateEntityTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes#deleteEntityType}. + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes + * @typedef DeleteEntityTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteEntityType. + * @function deleteEntityType + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest} request DeleteEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.EntityTypes.DeleteEntityTypeCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(EntityTypes.prototype.deleteEntityType = function deleteEntityType(request, callback) { + return this.rpcCall(deleteEntityType, $root.google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteEntityType" }); + + /** + * Calls DeleteEntityType. + * @function deleteEntityType + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest} request DeleteEntityTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return EntityTypes; })(); - v3.ListChangelogsRequest = (function() { + v3.EntityType = (function() { /** - * Properties of a ListChangelogsRequest. + * Properties of an EntityType. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListChangelogsRequest - * @property {string|null} [parent] ListChangelogsRequest parent - * @property {string|null} [filter] ListChangelogsRequest filter - * @property {number|null} [pageSize] ListChangelogsRequest pageSize - * @property {string|null} [pageToken] ListChangelogsRequest pageToken + * @interface IEntityType + * @property {string|null} [name] EntityType name + * @property {string|null} [displayName] EntityType displayName + * @property {google.cloud.dialogflow.cx.v3.EntityType.Kind|null} [kind] EntityType kind + * @property {google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode|null} [autoExpansionMode] EntityType autoExpansionMode + * @property {Array.|null} [entities] EntityType entities + * @property {Array.|null} [excludedPhrases] EntityType excludedPhrases + * @property {boolean|null} [enableFuzzyExtraction] EntityType enableFuzzyExtraction + * @property {boolean|null} [redact] EntityType redact */ /** - * Constructs a new ListChangelogsRequest. + * Constructs a new EntityType. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListChangelogsRequest. - * @implements IListChangelogsRequest + * @classdesc Represents an EntityType. + * @implements IEntityType * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListChangelogsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IEntityType=} [properties] Properties to set */ - function ListChangelogsRequest(properties) { + function EntityType(properties) { + this.entities = []; + this.excludedPhrases = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20001,114 +20380,172 @@ } /** - * ListChangelogsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest + * EntityType name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @instance */ - ListChangelogsRequest.prototype.parent = ""; + EntityType.prototype.name = ""; /** - * ListChangelogsRequest filter. - * @member {string} filter - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest + * EntityType displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @instance */ - ListChangelogsRequest.prototype.filter = ""; + EntityType.prototype.displayName = ""; /** - * ListChangelogsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest + * EntityType kind. + * @member {google.cloud.dialogflow.cx.v3.EntityType.Kind} kind + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @instance */ - ListChangelogsRequest.prototype.pageSize = 0; + EntityType.prototype.kind = 0; /** - * ListChangelogsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest + * EntityType autoExpansionMode. + * @member {google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode} autoExpansionMode + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @instance */ - ListChangelogsRequest.prototype.pageToken = ""; + EntityType.prototype.autoExpansionMode = 0; /** - * Creates a new ListChangelogsRequest instance using the specified properties. + * EntityType entities. + * @member {Array.} entities + * @memberof google.cloud.dialogflow.cx.v3.EntityType + * @instance + */ + EntityType.prototype.entities = $util.emptyArray; + + /** + * EntityType excludedPhrases. + * @member {Array.} excludedPhrases + * @memberof google.cloud.dialogflow.cx.v3.EntityType + * @instance + */ + EntityType.prototype.excludedPhrases = $util.emptyArray; + + /** + * EntityType enableFuzzyExtraction. + * @member {boolean} enableFuzzyExtraction + * @memberof google.cloud.dialogflow.cx.v3.EntityType + * @instance + */ + EntityType.prototype.enableFuzzyExtraction = false; + + /** + * EntityType redact. + * @member {boolean} redact + * @memberof google.cloud.dialogflow.cx.v3.EntityType + * @instance + */ + EntityType.prototype.redact = false; + + /** + * Creates a new EntityType instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @static - * @param {google.cloud.dialogflow.cx.v3.IListChangelogsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListChangelogsRequest} ListChangelogsRequest instance + * @param {google.cloud.dialogflow.cx.v3.IEntityType=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.EntityType} EntityType instance */ - ListChangelogsRequest.create = function create(properties) { - return new ListChangelogsRequest(properties); + EntityType.create = function create(properties) { + return new EntityType(properties); }; /** - * Encodes the specified ListChangelogsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListChangelogsRequest.verify|verify} messages. + * Encodes the specified EntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @static - * @param {google.cloud.dialogflow.cx.v3.IListChangelogsRequest} message ListChangelogsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IEntityType} message EntityType message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListChangelogsRequest.encode = function encode(message, writer) { + EntityType.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.kind); + if (message.autoExpansionMode != null && Object.hasOwnProperty.call(message, "autoExpansionMode")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.autoExpansionMode); + if (message.entities != null && message.entities.length) + for (var i = 0; i < message.entities.length; ++i) + $root.google.cloud.dialogflow.cx.v3.EntityType.Entity.encode(message.entities[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.excludedPhrases != null && message.excludedPhrases.length) + for (var i = 0; i < message.excludedPhrases.length; ++i) + $root.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase.encode(message.excludedPhrases[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.enableFuzzyExtraction != null && Object.hasOwnProperty.call(message, "enableFuzzyExtraction")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.enableFuzzyExtraction); + if (message.redact != null && Object.hasOwnProperty.call(message, "redact")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.redact); return writer; }; /** - * Encodes the specified ListChangelogsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListChangelogsRequest.verify|verify} messages. + * Encodes the specified EntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @static - * @param {google.cloud.dialogflow.cx.v3.IListChangelogsRequest} message ListChangelogsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IEntityType} message EntityType message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListChangelogsRequest.encodeDelimited = function encodeDelimited(message, writer) { + EntityType.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListChangelogsRequest message from the specified reader or buffer. + * Decodes an EntityType message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListChangelogsRequest} ListChangelogsRequest + * @returns {google.cloud.dialogflow.cx.v3.EntityType} EntityType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListChangelogsRequest.decode = function decode(reader, length) { + EntityType.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListChangelogsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.EntityType(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.name = reader.string(); break; case 2: - message.filter = reader.string(); + message.displayName = reader.string(); break; case 3: - message.pageSize = reader.int32(); + message.kind = reader.int32(); break; case 4: - message.pageToken = reader.string(); + message.autoExpansionMode = reader.int32(); + break; + case 5: + if (!(message.entities && message.entities.length)) + message.entities = []; + message.entities.push($root.google.cloud.dialogflow.cx.v3.EntityType.Entity.decode(reader, reader.uint32())); + break; + case 6: + if (!(message.excludedPhrases && message.excludedPhrases.length)) + message.excludedPhrases = []; + message.excludedPhrases.push($root.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase.decode(reader, reader.uint32())); + break; + case 7: + message.enableFuzzyExtraction = reader.bool(); + break; + case 9: + message.redact = reader.bool(); break; default: reader.skipType(tag & 7); @@ -20119,134 +20556,684 @@ }; /** - * Decodes a ListChangelogsRequest message from the specified reader or buffer, length delimited. + * Decodes an EntityType message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListChangelogsRequest} ListChangelogsRequest + * @returns {google.cloud.dialogflow.cx.v3.EntityType} EntityType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListChangelogsRequest.decodeDelimited = function decodeDelimited(reader) { + EntityType.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListChangelogsRequest message. + * Verifies an EntityType message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListChangelogsRequest.verify = function verify(message) { + EntityType.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.kind != null && message.hasOwnProperty("kind")) + switch (message.kind) { + default: + return "kind: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.autoExpansionMode != null && message.hasOwnProperty("autoExpansionMode")) + switch (message.autoExpansionMode) { + default: + return "autoExpansionMode: enum value expected"; + case 0: + case 1: + break; + } + if (message.entities != null && message.hasOwnProperty("entities")) { + if (!Array.isArray(message.entities)) + return "entities: array expected"; + for (var i = 0; i < message.entities.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.EntityType.Entity.verify(message.entities[i]); + if (error) + return "entities." + error; + } + } + if (message.excludedPhrases != null && message.hasOwnProperty("excludedPhrases")) { + if (!Array.isArray(message.excludedPhrases)) + return "excludedPhrases: array expected"; + for (var i = 0; i < message.excludedPhrases.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase.verify(message.excludedPhrases[i]); + if (error) + return "excludedPhrases." + error; + } + } + if (message.enableFuzzyExtraction != null && message.hasOwnProperty("enableFuzzyExtraction")) + if (typeof message.enableFuzzyExtraction !== "boolean") + return "enableFuzzyExtraction: boolean expected"; + if (message.redact != null && message.hasOwnProperty("redact")) + if (typeof message.redact !== "boolean") + return "redact: boolean expected"; return null; }; /** - * Creates a ListChangelogsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an EntityType message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListChangelogsRequest} ListChangelogsRequest + * @returns {google.cloud.dialogflow.cx.v3.EntityType} EntityType */ - ListChangelogsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListChangelogsRequest) + EntityType.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.EntityType) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListChangelogsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.dialogflow.cx.v3.EntityType(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + switch (object.kind) { + case "KIND_UNSPECIFIED": + case 0: + message.kind = 0; + break; + case "KIND_MAP": + case 1: + message.kind = 1; + break; + case "KIND_LIST": + case 2: + message.kind = 2; + break; + case "KIND_REGEXP": + case 3: + message.kind = 3; + break; + } + switch (object.autoExpansionMode) { + case "AUTO_EXPANSION_MODE_UNSPECIFIED": + case 0: + message.autoExpansionMode = 0; + break; + case "AUTO_EXPANSION_MODE_DEFAULT": + case 1: + message.autoExpansionMode = 1; + break; + } + if (object.entities) { + if (!Array.isArray(object.entities)) + throw TypeError(".google.cloud.dialogflow.cx.v3.EntityType.entities: array expected"); + message.entities = []; + for (var i = 0; i < object.entities.length; ++i) { + if (typeof object.entities[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.EntityType.entities: object expected"); + message.entities[i] = $root.google.cloud.dialogflow.cx.v3.EntityType.Entity.fromObject(object.entities[i]); + } + } + if (object.excludedPhrases) { + if (!Array.isArray(object.excludedPhrases)) + throw TypeError(".google.cloud.dialogflow.cx.v3.EntityType.excludedPhrases: array expected"); + message.excludedPhrases = []; + for (var i = 0; i < object.excludedPhrases.length; ++i) { + if (typeof object.excludedPhrases[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.EntityType.excludedPhrases: object expected"); + message.excludedPhrases[i] = $root.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase.fromObject(object.excludedPhrases[i]); + } + } + if (object.enableFuzzyExtraction != null) + message.enableFuzzyExtraction = Boolean(object.enableFuzzyExtraction); + if (object.redact != null) + message.redact = Boolean(object.redact); return message; }; /** - * Creates a plain object from a ListChangelogsRequest message. Also converts values to other types if specified. + * Creates a plain object from an EntityType message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @static - * @param {google.cloud.dialogflow.cx.v3.ListChangelogsRequest} message ListChangelogsRequest + * @param {google.cloud.dialogflow.cx.v3.EntityType} message EntityType * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListChangelogsRequest.toObject = function toObject(message, options) { + EntityType.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.entities = []; + object.excludedPhrases = []; + } if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; + object.name = ""; + object.displayName = ""; + object.kind = options.enums === String ? "KIND_UNSPECIFIED" : 0; + object.autoExpansionMode = options.enums === String ? "AUTO_EXPANSION_MODE_UNSPECIFIED" : 0; + object.enableFuzzyExtraction = false; + object.redact = false; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.kind != null && message.hasOwnProperty("kind")) + object.kind = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.EntityType.Kind[message.kind] : message.kind; + if (message.autoExpansionMode != null && message.hasOwnProperty("autoExpansionMode")) + object.autoExpansionMode = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode[message.autoExpansionMode] : message.autoExpansionMode; + if (message.entities && message.entities.length) { + object.entities = []; + for (var j = 0; j < message.entities.length; ++j) + object.entities[j] = $root.google.cloud.dialogflow.cx.v3.EntityType.Entity.toObject(message.entities[j], options); + } + if (message.excludedPhrases && message.excludedPhrases.length) { + object.excludedPhrases = []; + for (var j = 0; j < message.excludedPhrases.length; ++j) + object.excludedPhrases[j] = $root.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase.toObject(message.excludedPhrases[j], options); + } + if (message.enableFuzzyExtraction != null && message.hasOwnProperty("enableFuzzyExtraction")) + object.enableFuzzyExtraction = message.enableFuzzyExtraction; + if (message.redact != null && message.hasOwnProperty("redact")) + object.redact = message.redact; return object; }; /** - * Converts this ListChangelogsRequest to JSON. + * Converts this EntityType to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @instance * @returns {Object.} JSON object */ - ListChangelogsRequest.prototype.toJSON = function toJSON() { + EntityType.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListChangelogsRequest; - })(); - - v3.ListChangelogsResponse = (function() { + /** + * Kind enum. + * @name google.cloud.dialogflow.cx.v3.EntityType.Kind + * @enum {number} + * @property {number} KIND_UNSPECIFIED=0 KIND_UNSPECIFIED value + * @property {number} KIND_MAP=1 KIND_MAP value + * @property {number} KIND_LIST=2 KIND_LIST value + * @property {number} KIND_REGEXP=3 KIND_REGEXP value + */ + EntityType.Kind = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "KIND_UNSPECIFIED"] = 0; + values[valuesById[1] = "KIND_MAP"] = 1; + values[valuesById[2] = "KIND_LIST"] = 2; + values[valuesById[3] = "KIND_REGEXP"] = 3; + return values; + })(); /** - * Properties of a ListChangelogsResponse. + * AutoExpansionMode enum. + * @name google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode + * @enum {number} + * @property {number} AUTO_EXPANSION_MODE_UNSPECIFIED=0 AUTO_EXPANSION_MODE_UNSPECIFIED value + * @property {number} AUTO_EXPANSION_MODE_DEFAULT=1 AUTO_EXPANSION_MODE_DEFAULT value + */ + EntityType.AutoExpansionMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "AUTO_EXPANSION_MODE_UNSPECIFIED"] = 0; + values[valuesById[1] = "AUTO_EXPANSION_MODE_DEFAULT"] = 1; + return values; + })(); + + EntityType.Entity = (function() { + + /** + * Properties of an Entity. + * @memberof google.cloud.dialogflow.cx.v3.EntityType + * @interface IEntity + * @property {string|null} [value] Entity value + * @property {Array.|null} [synonyms] Entity synonyms + */ + + /** + * Constructs a new Entity. + * @memberof google.cloud.dialogflow.cx.v3.EntityType + * @classdesc Represents an Entity. + * @implements IEntity + * @constructor + * @param {google.cloud.dialogflow.cx.v3.EntityType.IEntity=} [properties] Properties to set + */ + function Entity(properties) { + this.synonyms = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Entity value. + * @member {string} value + * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity + * @instance + */ + Entity.prototype.value = ""; + + /** + * Entity synonyms. + * @member {Array.} synonyms + * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity + * @instance + */ + Entity.prototype.synonyms = $util.emptyArray; + + /** + * Creates a new Entity instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity + * @static + * @param {google.cloud.dialogflow.cx.v3.EntityType.IEntity=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.EntityType.Entity} Entity instance + */ + Entity.create = function create(properties) { + return new Entity(properties); + }; + + /** + * Encodes the specified Entity message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.Entity.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity + * @static + * @param {google.cloud.dialogflow.cx.v3.EntityType.IEntity} message Entity message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Entity.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); + if (message.synonyms != null && message.synonyms.length) + for (var i = 0; i < message.synonyms.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.synonyms[i]); + return writer; + }; + + /** + * Encodes the specified Entity message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.Entity.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity + * @static + * @param {google.cloud.dialogflow.cx.v3.EntityType.IEntity} message Entity message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Entity.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Entity message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.EntityType.Entity} Entity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Entity.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.EntityType.Entity(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.string(); + break; + case 2: + if (!(message.synonyms && message.synonyms.length)) + message.synonyms = []; + message.synonyms.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Entity message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.EntityType.Entity} Entity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Entity.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Entity message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Entity.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + if (message.synonyms != null && message.hasOwnProperty("synonyms")) { + if (!Array.isArray(message.synonyms)) + return "synonyms: array expected"; + for (var i = 0; i < message.synonyms.length; ++i) + if (!$util.isString(message.synonyms[i])) + return "synonyms: string[] expected"; + } + return null; + }; + + /** + * Creates an Entity message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.EntityType.Entity} Entity + */ + Entity.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.EntityType.Entity) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.EntityType.Entity(); + if (object.value != null) + message.value = String(object.value); + if (object.synonyms) { + if (!Array.isArray(object.synonyms)) + throw TypeError(".google.cloud.dialogflow.cx.v3.EntityType.Entity.synonyms: array expected"); + message.synonyms = []; + for (var i = 0; i < object.synonyms.length; ++i) + message.synonyms[i] = String(object.synonyms[i]); + } + return message; + }; + + /** + * Creates a plain object from an Entity message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity + * @static + * @param {google.cloud.dialogflow.cx.v3.EntityType.Entity} message Entity + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Entity.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.synonyms = []; + if (options.defaults) + object.value = ""; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + if (message.synonyms && message.synonyms.length) { + object.synonyms = []; + for (var j = 0; j < message.synonyms.length; ++j) + object.synonyms[j] = message.synonyms[j]; + } + return object; + }; + + /** + * Converts this Entity to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity + * @instance + * @returns {Object.} JSON object + */ + Entity.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Entity; + })(); + + EntityType.ExcludedPhrase = (function() { + + /** + * Properties of an ExcludedPhrase. + * @memberof google.cloud.dialogflow.cx.v3.EntityType + * @interface IExcludedPhrase + * @property {string|null} [value] ExcludedPhrase value + */ + + /** + * Constructs a new ExcludedPhrase. + * @memberof google.cloud.dialogflow.cx.v3.EntityType + * @classdesc Represents an ExcludedPhrase. + * @implements IExcludedPhrase + * @constructor + * @param {google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase=} [properties] Properties to set + */ + function ExcludedPhrase(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExcludedPhrase value. + * @member {string} value + * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase + * @instance + */ + ExcludedPhrase.prototype.value = ""; + + /** + * Creates a new ExcludedPhrase instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase + * @static + * @param {google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase} ExcludedPhrase instance + */ + ExcludedPhrase.create = function create(properties) { + return new ExcludedPhrase(properties); + }; + + /** + * Encodes the specified ExcludedPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase + * @static + * @param {google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase} message ExcludedPhrase message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExcludedPhrase.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); + return writer; + }; + + /** + * Encodes the specified ExcludedPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase + * @static + * @param {google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase} message ExcludedPhrase message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExcludedPhrase.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExcludedPhrase message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase} ExcludedPhrase + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExcludedPhrase.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExcludedPhrase message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase} ExcludedPhrase + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExcludedPhrase.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExcludedPhrase message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExcludedPhrase.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + return null; + }; + + /** + * Creates an ExcludedPhrase message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase} ExcludedPhrase + */ + ExcludedPhrase.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase(); + if (object.value != null) + message.value = String(object.value); + return message; + }; + + /** + * Creates a plain object from an ExcludedPhrase message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase + * @static + * @param {google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase} message ExcludedPhrase + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExcludedPhrase.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.value = ""; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + return object; + }; + + /** + * Converts this ExcludedPhrase to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase + * @instance + * @returns {Object.} JSON object + */ + ExcludedPhrase.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ExcludedPhrase; + })(); + + return EntityType; + })(); + + v3.ListEntityTypesRequest = (function() { + + /** + * Properties of a ListEntityTypesRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListChangelogsResponse - * @property {Array.|null} [changelogs] ListChangelogsResponse changelogs - * @property {string|null} [nextPageToken] ListChangelogsResponse nextPageToken + * @interface IListEntityTypesRequest + * @property {string|null} [parent] ListEntityTypesRequest parent + * @property {string|null} [languageCode] ListEntityTypesRequest languageCode + * @property {number|null} [pageSize] ListEntityTypesRequest pageSize + * @property {string|null} [pageToken] ListEntityTypesRequest pageToken */ /** - * Constructs a new ListChangelogsResponse. + * Constructs a new ListEntityTypesRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListChangelogsResponse. - * @implements IListChangelogsResponse + * @classdesc Represents a ListEntityTypesRequest. + * @implements IListEntityTypesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListChangelogsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesRequest=} [properties] Properties to set */ - function ListChangelogsResponse(properties) { - this.changelogs = []; + function ListEntityTypesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20254,91 +21241,114 @@ } /** - * ListChangelogsResponse changelogs. - * @member {Array.} changelogs - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse + * ListEntityTypesRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest * @instance */ - ListChangelogsResponse.prototype.changelogs = $util.emptyArray; + ListEntityTypesRequest.prototype.parent = ""; /** - * ListChangelogsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse + * ListEntityTypesRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest * @instance */ - ListChangelogsResponse.prototype.nextPageToken = ""; + ListEntityTypesRequest.prototype.languageCode = ""; /** - * Creates a new ListChangelogsResponse instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.IListChangelogsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListChangelogsResponse} ListChangelogsResponse instance + * ListEntityTypesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest + * @instance */ - ListChangelogsResponse.create = function create(properties) { - return new ListChangelogsResponse(properties); - }; + ListEntityTypesRequest.prototype.pageSize = 0; /** - * Encodes the specified ListChangelogsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListChangelogsResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.IListChangelogsResponse} message ListChangelogsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * ListEntityTypesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest + * @instance */ - ListChangelogsResponse.encode = function encode(message, writer) { + ListEntityTypesRequest.prototype.pageToken = ""; + + /** + * Creates a new ListEntityTypesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListEntityTypesRequest} ListEntityTypesRequest instance + */ + ListEntityTypesRequest.create = function create(properties) { + return new ListEntityTypesRequest(properties); + }; + + /** + * Encodes the specified ListEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEntityTypesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesRequest} message ListEntityTypesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListEntityTypesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.changelogs != null && message.changelogs.length) - for (var i = 0; i < message.changelogs.length; ++i) - $root.google.cloud.dialogflow.cx.v3.Changelog.encode(message.changelogs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); return writer; }; /** - * Encodes the specified ListChangelogsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListChangelogsResponse.verify|verify} messages. + * Encodes the specified ListEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEntityTypesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListChangelogsResponse} message ListChangelogsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesRequest} message ListEntityTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListChangelogsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListEntityTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListChangelogsResponse message from the specified reader or buffer. + * Decodes a ListEntityTypesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListChangelogsResponse} ListChangelogsResponse + * @returns {google.cloud.dialogflow.cx.v3.ListEntityTypesRequest} ListEntityTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListChangelogsResponse.decode = function decode(reader, length) { + ListEntityTypesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListChangelogsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.changelogs && message.changelogs.length)) - message.changelogs = []; - message.changelogs.push($root.google.cloud.dialogflow.cx.v3.Changelog.decode(reader, reader.uint32())); + message.parent = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + message.languageCode = reader.string(); + break; + case 3: + message.pageSize = reader.int32(); + break; + case 4: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -20349,133 +21359,134 @@ }; /** - * Decodes a ListChangelogsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListEntityTypesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListChangelogsResponse} ListChangelogsResponse + * @returns {google.cloud.dialogflow.cx.v3.ListEntityTypesRequest} ListEntityTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListChangelogsResponse.decodeDelimited = function decodeDelimited(reader) { + ListEntityTypesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListChangelogsResponse message. + * Verifies a ListEntityTypesRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListChangelogsResponse.verify = function verify(message) { + ListEntityTypesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.changelogs != null && message.hasOwnProperty("changelogs")) { - if (!Array.isArray(message.changelogs)) - return "changelogs: array expected"; - for (var i = 0; i < message.changelogs.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.Changelog.verify(message.changelogs[i]); - if (error) - return "changelogs." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a ListChangelogsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListEntityTypesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListChangelogsResponse} ListChangelogsResponse + * @returns {google.cloud.dialogflow.cx.v3.ListEntityTypesRequest} ListEntityTypesRequest */ - ListChangelogsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListChangelogsResponse) + ListEntityTypesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListChangelogsResponse(); - if (object.changelogs) { - if (!Array.isArray(object.changelogs)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ListChangelogsResponse.changelogs: array expected"); - message.changelogs = []; - for (var i = 0; i < object.changelogs.length; ++i) { - if (typeof object.changelogs[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ListChangelogsResponse.changelogs: object expected"); - message.changelogs[i] = $root.google.cloud.dialogflow.cx.v3.Changelog.fromObject(object.changelogs[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a ListChangelogsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListEntityTypesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ListChangelogsResponse} message ListChangelogsResponse + * @param {google.cloud.dialogflow.cx.v3.ListEntityTypesRequest} message ListEntityTypesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListChangelogsResponse.toObject = function toObject(message, options) { + ListEntityTypesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.changelogs = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.changelogs && message.changelogs.length) { - object.changelogs = []; - for (var j = 0; j < message.changelogs.length; ++j) - object.changelogs[j] = $root.google.cloud.dialogflow.cx.v3.Changelog.toObject(message.changelogs[j], options); + if (options.defaults) { + object.parent = ""; + object.languageCode = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this ListChangelogsResponse to JSON. + * Converts this ListEntityTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest * @instance * @returns {Object.} JSON object */ - ListChangelogsResponse.prototype.toJSON = function toJSON() { + ListEntityTypesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListChangelogsResponse; + return ListEntityTypesRequest; })(); - v3.GetChangelogRequest = (function() { + v3.ListEntityTypesResponse = (function() { /** - * Properties of a GetChangelogRequest. + * Properties of a ListEntityTypesResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IGetChangelogRequest - * @property {string|null} [name] GetChangelogRequest name + * @interface IListEntityTypesResponse + * @property {Array.|null} [entityTypes] ListEntityTypesResponse entityTypes + * @property {string|null} [nextPageToken] ListEntityTypesResponse nextPageToken */ /** - * Constructs a new GetChangelogRequest. + * Constructs a new ListEntityTypesResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a GetChangelogRequest. - * @implements IGetChangelogRequest + * @classdesc Represents a ListEntityTypesResponse. + * @implements IListEntityTypesResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IGetChangelogRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesResponse=} [properties] Properties to set */ - function GetChangelogRequest(properties) { + function ListEntityTypesResponse(properties) { + this.entityTypes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20483,75 +21494,91 @@ } /** - * GetChangelogRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.GetChangelogRequest + * ListEntityTypesResponse entityTypes. + * @member {Array.} entityTypes + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse * @instance */ - GetChangelogRequest.prototype.name = ""; + ListEntityTypesResponse.prototype.entityTypes = $util.emptyArray; /** - * Creates a new GetChangelogRequest instance using the specified properties. + * ListEntityTypesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse + * @instance + */ + ListEntityTypesResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListEntityTypesResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.GetChangelogRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IGetChangelogRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.GetChangelogRequest} GetChangelogRequest instance + * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListEntityTypesResponse} ListEntityTypesResponse instance */ - GetChangelogRequest.create = function create(properties) { - return new GetChangelogRequest(properties); + ListEntityTypesResponse.create = function create(properties) { + return new ListEntityTypesResponse(properties); }; /** - * Encodes the specified GetChangelogRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetChangelogRequest.verify|verify} messages. + * Encodes the specified ListEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEntityTypesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.GetChangelogRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IGetChangelogRequest} message GetChangelogRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesResponse} message ListEntityTypesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetChangelogRequest.encode = function encode(message, writer) { + ListEntityTypesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.entityTypes != null && message.entityTypes.length) + for (var i = 0; i < message.entityTypes.length; ++i) + $root.google.cloud.dialogflow.cx.v3.EntityType.encode(message.entityTypes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified GetChangelogRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetChangelogRequest.verify|verify} messages. + * Encodes the specified ListEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEntityTypesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetChangelogRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IGetChangelogRequest} message GetChangelogRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesResponse} message ListEntityTypesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetChangelogRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListEntityTypesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetChangelogRequest message from the specified reader or buffer. + * Decodes a ListEntityTypesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.GetChangelogRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.GetChangelogRequest} GetChangelogRequest + * @returns {google.cloud.dialogflow.cx.v3.ListEntityTypesResponse} ListEntityTypesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetChangelogRequest.decode = function decode(reader, length) { + ListEntityTypesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetChangelogRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListEntityTypesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.entityTypes && message.entityTypes.length)) + message.entityTypes = []; + message.entityTypes.push($root.google.cloud.dialogflow.cx.v3.EntityType.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -20562,113 +21589,134 @@ }; /** - * Decodes a GetChangelogRequest message from the specified reader or buffer, length delimited. + * Decodes a ListEntityTypesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetChangelogRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.GetChangelogRequest} GetChangelogRequest + * @returns {google.cloud.dialogflow.cx.v3.ListEntityTypesResponse} ListEntityTypesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetChangelogRequest.decodeDelimited = function decodeDelimited(reader) { + ListEntityTypesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetChangelogRequest message. + * Verifies a ListEntityTypesResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.GetChangelogRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetChangelogRequest.verify = function verify(message) { + ListEntityTypesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.entityTypes != null && message.hasOwnProperty("entityTypes")) { + if (!Array.isArray(message.entityTypes)) + return "entityTypes: array expected"; + for (var i = 0; i < message.entityTypes.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.EntityType.verify(message.entityTypes[i]); + if (error) + return "entityTypes." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a GetChangelogRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListEntityTypesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.GetChangelogRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.GetChangelogRequest} GetChangelogRequest + * @returns {google.cloud.dialogflow.cx.v3.ListEntityTypesResponse} ListEntityTypesResponse */ - GetChangelogRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetChangelogRequest) + ListEntityTypesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListEntityTypesResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.GetChangelogRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3.ListEntityTypesResponse(); + if (object.entityTypes) { + if (!Array.isArray(object.entityTypes)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ListEntityTypesResponse.entityTypes: array expected"); + message.entityTypes = []; + for (var i = 0; i < object.entityTypes.length; ++i) { + if (typeof object.entityTypes[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ListEntityTypesResponse.entityTypes: object expected"); + message.entityTypes[i] = $root.google.cloud.dialogflow.cx.v3.EntityType.fromObject(object.entityTypes[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a GetChangelogRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListEntityTypesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.GetChangelogRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.GetChangelogRequest} message GetChangelogRequest + * @param {google.cloud.dialogflow.cx.v3.ListEntityTypesResponse} message ListEntityTypesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetChangelogRequest.toObject = function toObject(message, options) { + ListEntityTypesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.entityTypes = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.nextPageToken = ""; + if (message.entityTypes && message.entityTypes.length) { + object.entityTypes = []; + for (var j = 0; j < message.entityTypes.length; ++j) + object.entityTypes[j] = $root.google.cloud.dialogflow.cx.v3.EntityType.toObject(message.entityTypes[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this GetChangelogRequest to JSON. + * Converts this ListEntityTypesResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.GetChangelogRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse * @instance * @returns {Object.} JSON object */ - GetChangelogRequest.prototype.toJSON = function toJSON() { + ListEntityTypesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetChangelogRequest; + return ListEntityTypesResponse; })(); - v3.Changelog = (function() { + v3.GetEntityTypeRequest = (function() { /** - * Properties of a Changelog. + * Properties of a GetEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IChangelog - * @property {string|null} [name] Changelog name - * @property {string|null} [userEmail] Changelog userEmail - * @property {string|null} [displayName] Changelog displayName - * @property {string|null} [action] Changelog action - * @property {string|null} [type] Changelog type - * @property {string|null} [resource] Changelog resource - * @property {google.protobuf.ITimestamp|null} [createTime] Changelog createTime + * @interface IGetEntityTypeRequest + * @property {string|null} [name] GetEntityTypeRequest name + * @property {string|null} [languageCode] GetEntityTypeRequest languageCode */ /** - * Constructs a new Changelog. + * Constructs a new GetEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a Changelog. - * @implements IChangelog + * @classdesc Represents a GetEntityTypeRequest. + * @implements IGetEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IChangelog=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest=} [properties] Properties to set */ - function Changelog(properties) { + function GetEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20676,130 +21724,80 @@ } /** - * Changelog name. + * GetEntityTypeRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.Changelog - * @instance - */ - Changelog.prototype.name = ""; - - /** - * Changelog userEmail. - * @member {string} userEmail - * @memberof google.cloud.dialogflow.cx.v3.Changelog - * @instance - */ - Changelog.prototype.userEmail = ""; - - /** - * Changelog displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.Changelog - * @instance - */ - Changelog.prototype.displayName = ""; - - /** - * Changelog action. - * @member {string} action - * @memberof google.cloud.dialogflow.cx.v3.Changelog - * @instance - */ - Changelog.prototype.action = ""; - - /** - * Changelog type. - * @member {string} type - * @memberof google.cloud.dialogflow.cx.v3.Changelog - * @instance - */ - Changelog.prototype.type = ""; - - /** - * Changelog resource. - * @member {string} resource - * @memberof google.cloud.dialogflow.cx.v3.Changelog + * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest * @instance */ - Changelog.prototype.resource = ""; + GetEntityTypeRequest.prototype.name = ""; /** - * Changelog createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.dialogflow.cx.v3.Changelog + * GetEntityTypeRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest * @instance */ - Changelog.prototype.createTime = null; + GetEntityTypeRequest.prototype.languageCode = ""; /** - * Creates a new Changelog instance using the specified properties. + * Creates a new GetEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Changelog + * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IChangelog=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Changelog} Changelog instance + * @param {google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetEntityTypeRequest} GetEntityTypeRequest instance */ - Changelog.create = function create(properties) { - return new Changelog(properties); + GetEntityTypeRequest.create = function create(properties) { + return new GetEntityTypeRequest(properties); }; /** - * Encodes the specified Changelog message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Changelog.verify|verify} messages. + * Encodes the specified GetEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetEntityTypeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Changelog + * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IChangelog} message Changelog message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest} message GetEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Changelog.encode = function encode(message, writer) { + GetEntityTypeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.userEmail != null && Object.hasOwnProperty.call(message, "userEmail")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.userEmail); - if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.resource); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.displayName); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.type); - if (message.action != null && Object.hasOwnProperty.call(message, "action")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.action); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); return writer; }; /** - * Encodes the specified Changelog message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Changelog.verify|verify} messages. + * Encodes the specified GetEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetEntityTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Changelog + * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IChangelog} message Changelog message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest} message GetEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Changelog.encodeDelimited = function encodeDelimited(message, writer) { + GetEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Changelog message from the specified reader or buffer. + * Decodes a GetEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Changelog + * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.Changelog} Changelog + * @returns {google.cloud.dialogflow.cx.v3.GetEntityTypeRequest} GetEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Changelog.decode = function decode(reader, length) { + GetEntityTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Changelog(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -20807,22 +21805,7 @@ message.name = reader.string(); break; case 2: - message.userEmail = reader.string(); - break; - case 7: - message.displayName = reader.string(); - break; - case 11: - message.action = reader.string(); - break; - case 8: - message.type = reader.string(); - break; - case 3: - message.resource = reader.string(); - break; - case 4: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.languageCode = reader.string(); break; default: reader.skipType(tag & 7); @@ -20833,267 +21816,118 @@ }; /** - * Decodes a Changelog message from the specified reader or buffer, length delimited. + * Decodes a GetEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Changelog + * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Changelog} Changelog + * @returns {google.cloud.dialogflow.cx.v3.GetEntityTypeRequest} GetEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Changelog.decodeDelimited = function decodeDelimited(reader) { + GetEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Changelog message. + * Verifies a GetEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Changelog + * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Changelog.verify = function verify(message) { + GetEntityTypeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.userEmail != null && message.hasOwnProperty("userEmail")) - if (!$util.isString(message.userEmail)) - return "userEmail: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.action != null && message.hasOwnProperty("action")) - if (!$util.isString(message.action)) - return "action: string expected"; - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.resource != null && message.hasOwnProperty("resource")) - if (!$util.isString(message.resource)) - return "resource: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates a Changelog message from a plain object. Also converts values to their respective internal types. + * Creates a GetEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Changelog + * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Changelog} Changelog + * @returns {google.cloud.dialogflow.cx.v3.GetEntityTypeRequest} GetEntityTypeRequest */ - Changelog.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Changelog) + GetEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Changelog(); + var message = new $root.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest(); if (object.name != null) message.name = String(object.name); - if (object.userEmail != null) - message.userEmail = String(object.userEmail); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.action != null) - message.action = String(object.action); - if (object.type != null) - message.type = String(object.type); - if (object.resource != null) - message.resource = String(object.resource); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Changelog.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a Changelog message. Also converts values to other types if specified. + * Creates a plain object from a GetEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Changelog + * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.Changelog} message Changelog + * @param {google.cloud.dialogflow.cx.v3.GetEntityTypeRequest} message GetEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Changelog.toObject = function toObject(message, options) { + GetEntityTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.name = ""; - object.userEmail = ""; - object.resource = ""; - object.createTime = null; - object.displayName = ""; - object.type = ""; - object.action = ""; + object.languageCode = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.userEmail != null && message.hasOwnProperty("userEmail")) - object.userEmail = message.userEmail; - if (message.resource != null && message.hasOwnProperty("resource")) - object.resource = message.resource; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - if (message.action != null && message.hasOwnProperty("action")) - object.action = message.action; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this Changelog to JSON. + * Converts this GetEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Changelog + * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest * @instance * @returns {Object.} JSON object */ - Changelog.prototype.toJSON = function toJSON() { + GetEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Changelog; - })(); - - v3.Deployments = (function() { - - /** - * Constructs a new Deployments service. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a Deployments - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Deployments(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Deployments.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Deployments; - - /** - * Creates new Deployments service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Deployments - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {Deployments} RPC service. Useful where requests and/or responses are streamed. - */ - Deployments.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Deployments#listDeployments}. - * @memberof google.cloud.dialogflow.cx.v3.Deployments - * @typedef ListDeploymentsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.ListDeploymentsResponse} [response] ListDeploymentsResponse - */ - - /** - * Calls ListDeployments. - * @function listDeployments - * @memberof google.cloud.dialogflow.cx.v3.Deployments - * @instance - * @param {google.cloud.dialogflow.cx.v3.IListDeploymentsRequest} request ListDeploymentsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Deployments.ListDeploymentsCallback} callback Node-style callback called with the error, if any, and ListDeploymentsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Deployments.prototype.listDeployments = function listDeployments(request, callback) { - return this.rpcCall(listDeployments, $root.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest, $root.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse, request, callback); - }, "name", { value: "ListDeployments" }); - - /** - * Calls ListDeployments. - * @function listDeployments - * @memberof google.cloud.dialogflow.cx.v3.Deployments - * @instance - * @param {google.cloud.dialogflow.cx.v3.IListDeploymentsRequest} request ListDeploymentsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Deployments#getDeployment}. - * @memberof google.cloud.dialogflow.cx.v3.Deployments - * @typedef GetDeploymentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.Deployment} [response] Deployment - */ - - /** - * Calls GetDeployment. - * @function getDeployment - * @memberof google.cloud.dialogflow.cx.v3.Deployments - * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetDeploymentRequest} request GetDeploymentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Deployments.GetDeploymentCallback} callback Node-style callback called with the error, if any, and Deployment - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Deployments.prototype.getDeployment = function getDeployment(request, callback) { - return this.rpcCall(getDeployment, $root.google.cloud.dialogflow.cx.v3.GetDeploymentRequest, $root.google.cloud.dialogflow.cx.v3.Deployment, request, callback); - }, "name", { value: "GetDeployment" }); - - /** - * Calls GetDeployment. - * @function getDeployment - * @memberof google.cloud.dialogflow.cx.v3.Deployments - * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetDeploymentRequest} request GetDeploymentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return Deployments; + return GetEntityTypeRequest; })(); - v3.Deployment = (function() { + v3.CreateEntityTypeRequest = (function() { /** - * Properties of a Deployment. + * Properties of a CreateEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDeployment - * @property {string|null} [name] Deployment name - * @property {string|null} [flowVersion] Deployment flowVersion - * @property {google.cloud.dialogflow.cx.v3.Deployment.State|null} [state] Deployment state - * @property {google.cloud.dialogflow.cx.v3.Deployment.IResult|null} [result] Deployment result - * @property {google.protobuf.ITimestamp|null} [startTime] Deployment startTime - * @property {google.protobuf.ITimestamp|null} [endTime] Deployment endTime + * @interface ICreateEntityTypeRequest + * @property {string|null} [parent] CreateEntityTypeRequest parent + * @property {google.cloud.dialogflow.cx.v3.IEntityType|null} [entityType] CreateEntityTypeRequest entityType + * @property {string|null} [languageCode] CreateEntityTypeRequest languageCode */ /** - * Constructs a new Deployment. + * Constructs a new CreateEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a Deployment. - * @implements IDeployment + * @classdesc Represents a CreateEntityTypeRequest. + * @implements ICreateEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDeployment=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest=} [properties] Properties to set */ - function Deployment(properties) { + function CreateEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21101,140 +21935,101 @@ } /** - * Deployment name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.Deployment - * @instance - */ - Deployment.prototype.name = ""; - - /** - * Deployment flowVersion. - * @member {string} flowVersion - * @memberof google.cloud.dialogflow.cx.v3.Deployment - * @instance - */ - Deployment.prototype.flowVersion = ""; - - /** - * Deployment state. - * @member {google.cloud.dialogflow.cx.v3.Deployment.State} state - * @memberof google.cloud.dialogflow.cx.v3.Deployment - * @instance - */ - Deployment.prototype.state = 0; - - /** - * Deployment result. - * @member {google.cloud.dialogflow.cx.v3.Deployment.IResult|null|undefined} result - * @memberof google.cloud.dialogflow.cx.v3.Deployment + * CreateEntityTypeRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest * @instance */ - Deployment.prototype.result = null; + CreateEntityTypeRequest.prototype.parent = ""; /** - * Deployment startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.dialogflow.cx.v3.Deployment + * CreateEntityTypeRequest entityType. + * @member {google.cloud.dialogflow.cx.v3.IEntityType|null|undefined} entityType + * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest * @instance */ - Deployment.prototype.startTime = null; + CreateEntityTypeRequest.prototype.entityType = null; /** - * Deployment endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.dialogflow.cx.v3.Deployment + * CreateEntityTypeRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest * @instance */ - Deployment.prototype.endTime = null; + CreateEntityTypeRequest.prototype.languageCode = ""; /** - * Creates a new Deployment instance using the specified properties. + * Creates a new CreateEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Deployment + * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IDeployment=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Deployment} Deployment instance + * @param {google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest} CreateEntityTypeRequest instance */ - Deployment.create = function create(properties) { - return new Deployment(properties); + CreateEntityTypeRequest.create = function create(properties) { + return new CreateEntityTypeRequest(properties); }; /** - * Encodes the specified Deployment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Deployment.verify|verify} messages. + * Encodes the specified CreateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Deployment + * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IDeployment} message Deployment message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest} message CreateEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Deployment.encode = function encode(message, writer) { + CreateEntityTypeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.flowVersion != null && Object.hasOwnProperty.call(message, "flowVersion")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.flowVersion); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.google.cloud.dialogflow.cx.v3.Deployment.Result.encode(message.result, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) + $root.google.cloud.dialogflow.cx.v3.EntityType.encode(message.entityType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); return writer; }; /** - * Encodes the specified Deployment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Deployment.verify|verify} messages. + * Encodes the specified CreateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Deployment + * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IDeployment} message Deployment message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest} message CreateEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Deployment.encodeDelimited = function encodeDelimited(message, writer) { + CreateEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Deployment message from the specified reader or buffer. + * Decodes a CreateEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Deployment + * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.Deployment} Deployment + * @returns {google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest} CreateEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Deployment.decode = function decode(reader, length) { + CreateEntityTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Deployment(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); break; case 2: - message.flowVersion = reader.string(); + message.entityType = $root.google.cloud.dialogflow.cx.v3.EntityType.decode(reader, reader.uint32()); break; case 3: - message.state = reader.int32(); - break; - case 4: - message.result = $root.google.cloud.dialogflow.cx.v3.Deployment.Result.decode(reader, reader.uint32()); - break; - case 5: - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 6: - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.languageCode = reader.string(); break; default: reader.skipType(tag & 7); @@ -21245,432 +22040,131 @@ }; /** - * Decodes a Deployment message from the specified reader or buffer, length delimited. + * Decodes a CreateEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Deployment + * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Deployment} Deployment + * @returns {google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest} CreateEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Deployment.decodeDelimited = function decodeDelimited(reader) { + CreateEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Deployment message. + * Verifies a CreateEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Deployment + * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Deployment.verify = function verify(message) { + CreateEntityTypeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.flowVersion != null && message.hasOwnProperty("flowVersion")) - if (!$util.isString(message.flowVersion)) - return "flowVersion: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.result != null && message.hasOwnProperty("result")) { - var error = $root.google.cloud.dialogflow.cx.v3.Deployment.Result.verify(message.result); - if (error) - return "result." + error; - } - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.entityType != null && message.hasOwnProperty("entityType")) { + var error = $root.google.cloud.dialogflow.cx.v3.EntityType.verify(message.entityType); if (error) - return "endTime." + error; + return "entityType." + error; } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates a Deployment message from a plain object. Also converts values to their respective internal types. + * Creates a CreateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Deployment + * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Deployment} Deployment + * @returns {google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest} CreateEntityTypeRequest */ - Deployment.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Deployment) + CreateEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Deployment(); - if (object.name != null) - message.name = String(object.name); - if (object.flowVersion != null) - message.flowVersion = String(object.flowVersion); - switch (object.state) { - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "RUNNING": - case 1: - message.state = 1; - break; - case "SUCCEEDED": - case 2: - message.state = 2; - break; - case "FAILED": - case 3: - message.state = 3; - break; - } - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Deployment.result: object expected"); - message.result = $root.google.cloud.dialogflow.cx.v3.Deployment.Result.fromObject(object.result); - } - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Deployment.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Deployment.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + var message = new $root.google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.entityType != null) { + if (typeof object.entityType !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest.entityType: object expected"); + message.entityType = $root.google.cloud.dialogflow.cx.v3.EntityType.fromObject(object.entityType); } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a Deployment message. Also converts values to other types if specified. + * Creates a plain object from a CreateEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Deployment + * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.Deployment} message Deployment + * @param {google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest} message CreateEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Deployment.toObject = function toObject(message, options) { + CreateEntityTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.flowVersion = ""; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.result = null; - object.startTime = null; - object.endTime = null; + object.parent = ""; + object.entityType = null; + object.languageCode = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.flowVersion != null && message.hasOwnProperty("flowVersion")) - object.flowVersion = message.flowVersion; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Deployment.State[message.state] : message.state; - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.google.cloud.dialogflow.cx.v3.Deployment.Result.toObject(message.result, options); - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.entityType != null && message.hasOwnProperty("entityType")) + object.entityType = $root.google.cloud.dialogflow.cx.v3.EntityType.toObject(message.entityType, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this Deployment to JSON. + * Converts this CreateEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Deployment + * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest * @instance * @returns {Object.} JSON object */ - Deployment.prototype.toJSON = function toJSON() { + CreateEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + return CreateEntityTypeRequest; + })(); + + v3.UpdateEntityTypeRequest = (function() { + /** - * State enum. - * @name google.cloud.dialogflow.cx.v3.Deployment.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} RUNNING=1 RUNNING value - * @property {number} SUCCEEDED=2 SUCCEEDED value - * @property {number} FAILED=3 FAILED value - */ - Deployment.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "RUNNING"] = 1; - values[valuesById[2] = "SUCCEEDED"] = 2; - values[valuesById[3] = "FAILED"] = 3; - return values; - })(); - - Deployment.Result = (function() { - - /** - * Properties of a Result. - * @memberof google.cloud.dialogflow.cx.v3.Deployment - * @interface IResult - * @property {Array.|null} [deploymentTestResults] Result deploymentTestResults - * @property {string|null} [experiment] Result experiment - */ - - /** - * Constructs a new Result. - * @memberof google.cloud.dialogflow.cx.v3.Deployment - * @classdesc Represents a Result. - * @implements IResult - * @constructor - * @param {google.cloud.dialogflow.cx.v3.Deployment.IResult=} [properties] Properties to set - */ - function Result(properties) { - this.deploymentTestResults = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Result deploymentTestResults. - * @member {Array.} deploymentTestResults - * @memberof google.cloud.dialogflow.cx.v3.Deployment.Result - * @instance - */ - Result.prototype.deploymentTestResults = $util.emptyArray; - - /** - * Result experiment. - * @member {string} experiment - * @memberof google.cloud.dialogflow.cx.v3.Deployment.Result - * @instance - */ - Result.prototype.experiment = ""; - - /** - * Creates a new Result instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Deployment.Result - * @static - * @param {google.cloud.dialogflow.cx.v3.Deployment.IResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Deployment.Result} Result instance - */ - Result.create = function create(properties) { - return new Result(properties); - }; - - /** - * Encodes the specified Result message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Deployment.Result.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Deployment.Result - * @static - * @param {google.cloud.dialogflow.cx.v3.Deployment.IResult} message Result message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Result.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.deploymentTestResults != null && message.deploymentTestResults.length) - for (var i = 0; i < message.deploymentTestResults.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.deploymentTestResults[i]); - if (message.experiment != null && Object.hasOwnProperty.call(message, "experiment")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.experiment); - return writer; - }; - - /** - * Encodes the specified Result message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Deployment.Result.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Deployment.Result - * @static - * @param {google.cloud.dialogflow.cx.v3.Deployment.IResult} message Result message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Result.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Result message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Deployment.Result - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.Deployment.Result} Result - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Result.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Deployment.Result(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.deploymentTestResults && message.deploymentTestResults.length)) - message.deploymentTestResults = []; - message.deploymentTestResults.push(reader.string()); - break; - case 2: - message.experiment = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Result message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Deployment.Result - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Deployment.Result} Result - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Result.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Result message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Deployment.Result - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Result.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deploymentTestResults != null && message.hasOwnProperty("deploymentTestResults")) { - if (!Array.isArray(message.deploymentTestResults)) - return "deploymentTestResults: array expected"; - for (var i = 0; i < message.deploymentTestResults.length; ++i) - if (!$util.isString(message.deploymentTestResults[i])) - return "deploymentTestResults: string[] expected"; - } - if (message.experiment != null && message.hasOwnProperty("experiment")) - if (!$util.isString(message.experiment)) - return "experiment: string expected"; - return null; - }; - - /** - * Creates a Result message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Deployment.Result - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Deployment.Result} Result - */ - Result.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Deployment.Result) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Deployment.Result(); - if (object.deploymentTestResults) { - if (!Array.isArray(object.deploymentTestResults)) - throw TypeError(".google.cloud.dialogflow.cx.v3.Deployment.Result.deploymentTestResults: array expected"); - message.deploymentTestResults = []; - for (var i = 0; i < object.deploymentTestResults.length; ++i) - message.deploymentTestResults[i] = String(object.deploymentTestResults[i]); - } - if (object.experiment != null) - message.experiment = String(object.experiment); - return message; - }; - - /** - * Creates a plain object from a Result message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Deployment.Result - * @static - * @param {google.cloud.dialogflow.cx.v3.Deployment.Result} message Result - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Result.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.deploymentTestResults = []; - if (options.defaults) - object.experiment = ""; - if (message.deploymentTestResults && message.deploymentTestResults.length) { - object.deploymentTestResults = []; - for (var j = 0; j < message.deploymentTestResults.length; ++j) - object.deploymentTestResults[j] = message.deploymentTestResults[j]; - } - if (message.experiment != null && message.hasOwnProperty("experiment")) - object.experiment = message.experiment; - return object; - }; - - /** - * Converts this Result to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Deployment.Result - * @instance - * @returns {Object.} JSON object - */ - Result.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Result; - })(); - - return Deployment; - })(); - - v3.ListDeploymentsRequest = (function() { - - /** - * Properties of a ListDeploymentsRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListDeploymentsRequest - * @property {string|null} [parent] ListDeploymentsRequest parent - * @property {number|null} [pageSize] ListDeploymentsRequest pageSize - * @property {string|null} [pageToken] ListDeploymentsRequest pageToken + * Properties of an UpdateEntityTypeRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IUpdateEntityTypeRequest + * @property {google.cloud.dialogflow.cx.v3.IEntityType|null} [entityType] UpdateEntityTypeRequest entityType + * @property {string|null} [languageCode] UpdateEntityTypeRequest languageCode + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateEntityTypeRequest updateMask */ /** - * Constructs a new ListDeploymentsRequest. + * Constructs a new UpdateEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListDeploymentsRequest. - * @implements IListDeploymentsRequest + * @classdesc Represents an UpdateEntityTypeRequest. + * @implements IUpdateEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListDeploymentsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest=} [properties] Properties to set */ - function ListDeploymentsRequest(properties) { + function UpdateEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21678,101 +22172,101 @@ } /** - * ListDeploymentsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest + * UpdateEntityTypeRequest entityType. + * @member {google.cloud.dialogflow.cx.v3.IEntityType|null|undefined} entityType + * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest * @instance */ - ListDeploymentsRequest.prototype.parent = ""; + UpdateEntityTypeRequest.prototype.entityType = null; /** - * ListDeploymentsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest + * UpdateEntityTypeRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest * @instance */ - ListDeploymentsRequest.prototype.pageSize = 0; + UpdateEntityTypeRequest.prototype.languageCode = ""; /** - * ListDeploymentsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest + * UpdateEntityTypeRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest * @instance */ - ListDeploymentsRequest.prototype.pageToken = ""; + UpdateEntityTypeRequest.prototype.updateMask = null; /** - * Creates a new ListDeploymentsRequest instance using the specified properties. + * Creates a new UpdateEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListDeploymentsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListDeploymentsRequest} ListDeploymentsRequest instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest} UpdateEntityTypeRequest instance */ - ListDeploymentsRequest.create = function create(properties) { - return new ListDeploymentsRequest(properties); + UpdateEntityTypeRequest.create = function create(properties) { + return new UpdateEntityTypeRequest(properties); }; /** - * Encodes the specified ListDeploymentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListDeploymentsRequest.verify|verify} messages. + * Encodes the specified UpdateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListDeploymentsRequest} message ListDeploymentsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest} message UpdateEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDeploymentsRequest.encode = function encode(message, writer) { + UpdateEntityTypeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) + $root.google.cloud.dialogflow.cx.v3.EntityType.encode(message.entityType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListDeploymentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListDeploymentsRequest.verify|verify} messages. + * Encodes the specified UpdateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListDeploymentsRequest} message ListDeploymentsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest} message UpdateEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDeploymentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDeploymentsRequest message from the specified reader or buffer. + * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListDeploymentsRequest} ListDeploymentsRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest} UpdateEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDeploymentsRequest.decode = function decode(reader, length) { + UpdateEntityTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.entityType = $root.google.cloud.dialogflow.cx.v3.EntityType.decode(reader, reader.uint32()); break; case 2: - message.pageSize = reader.int32(); + message.languageCode = reader.string(); break; case 3: - message.pageToken = reader.string(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -21783,126 +22277,135 @@ }; /** - * Decodes a ListDeploymentsRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListDeploymentsRequest} ListDeploymentsRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest} UpdateEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDeploymentsRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListDeploymentsRequest message. + * Verifies an UpdateEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListDeploymentsRequest.verify = function verify(message) { + UpdateEntityTypeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.entityType != null && message.hasOwnProperty("entityType")) { + var error = $root.google.cloud.dialogflow.cx.v3.EntityType.verify(message.entityType); + if (error) + return "entityType." + error; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } return null; }; /** - * Creates a ListDeploymentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListDeploymentsRequest} ListDeploymentsRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest} UpdateEntityTypeRequest */ - ListDeploymentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest) + UpdateEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest(); + if (object.entityType != null) { + if (typeof object.entityType !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest.entityType: object expected"); + message.entityType = $root.google.cloud.dialogflow.cx.v3.EntityType.fromObject(object.entityType); + } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; /** - * Creates a plain object from a ListDeploymentsRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ListDeploymentsRequest} message ListDeploymentsRequest + * @param {google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest} message UpdateEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDeploymentsRequest.toObject = function toObject(message, options) { + UpdateEntityTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.entityType = null; + object.languageCode = ""; + object.updateMask = null; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.entityType != null && message.hasOwnProperty("entityType")) + object.entityType = $root.google.cloud.dialogflow.cx.v3.EntityType.toObject(message.entityType, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this ListDeploymentsRequest to JSON. + * Converts this UpdateEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest * @instance * @returns {Object.} JSON object */ - ListDeploymentsRequest.prototype.toJSON = function toJSON() { + UpdateEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListDeploymentsRequest; + return UpdateEntityTypeRequest; })(); - v3.ListDeploymentsResponse = (function() { + v3.DeleteEntityTypeRequest = (function() { /** - * Properties of a ListDeploymentsResponse. + * Properties of a DeleteEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListDeploymentsResponse - * @property {Array.|null} [deployments] ListDeploymentsResponse deployments - * @property {string|null} [nextPageToken] ListDeploymentsResponse nextPageToken + * @interface IDeleteEntityTypeRequest + * @property {string|null} [name] DeleteEntityTypeRequest name + * @property {boolean|null} [force] DeleteEntityTypeRequest force */ /** - * Constructs a new ListDeploymentsResponse. + * Constructs a new DeleteEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListDeploymentsResponse. - * @implements IListDeploymentsResponse + * @classdesc Represents a DeleteEntityTypeRequest. + * @implements IDeleteEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListDeploymentsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest=} [properties] Properties to set */ - function ListDeploymentsResponse(properties) { - this.deployments = []; + function DeleteEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21910,304 +22413,88 @@ } /** - * ListDeploymentsResponse deployments. - * @member {Array.} deployments - * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse + * DeleteEntityTypeRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest * @instance */ - ListDeploymentsResponse.prototype.deployments = $util.emptyArray; + DeleteEntityTypeRequest.prototype.name = ""; /** - * ListDeploymentsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse + * DeleteEntityTypeRequest force. + * @member {boolean} force + * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest * @instance */ - ListDeploymentsResponse.prototype.nextPageToken = ""; + DeleteEntityTypeRequest.prototype.force = false; /** - * Creates a new ListDeploymentsResponse instance using the specified properties. + * Creates a new DeleteEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse + * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListDeploymentsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListDeploymentsResponse} ListDeploymentsResponse instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest} DeleteEntityTypeRequest instance */ - ListDeploymentsResponse.create = function create(properties) { - return new ListDeploymentsResponse(properties); + DeleteEntityTypeRequest.create = function create(properties) { + return new DeleteEntityTypeRequest(properties); }; /** - * Encodes the specified ListDeploymentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListDeploymentsResponse.verify|verify} messages. + * Encodes the specified DeleteEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse + * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListDeploymentsResponse} message ListDeploymentsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest} message DeleteEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDeploymentsResponse.encode = function encode(message, writer) { + DeleteEntityTypeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deployments != null && message.deployments.length) - for (var i = 0; i < message.deployments.length; ++i) - $root.google.cloud.dialogflow.cx.v3.Deployment.encode(message.deployments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); return writer; }; /** - * Encodes the specified ListDeploymentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListDeploymentsResponse.verify|verify} messages. + * Encodes the specified DeleteEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse + * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListDeploymentsResponse} message ListDeploymentsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest} message DeleteEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDeploymentsResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDeploymentsResponse message from the specified reader or buffer. + * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse + * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListDeploymentsResponse} ListDeploymentsResponse + * @returns {google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest} DeleteEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDeploymentsResponse.decode = function decode(reader, length) { + DeleteEntityTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.deployments && message.deployments.length)) - message.deployments = []; - message.deployments.push($root.google.cloud.dialogflow.cx.v3.Deployment.decode(reader, reader.uint32())); + message.name = reader.string(); break; case 2: - message.nextPageToken = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ListDeploymentsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListDeploymentsResponse} ListDeploymentsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListDeploymentsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ListDeploymentsResponse message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListDeploymentsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deployments != null && message.hasOwnProperty("deployments")) { - if (!Array.isArray(message.deployments)) - return "deployments: array expected"; - for (var i = 0; i < message.deployments.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.Deployment.verify(message.deployments[i]); - if (error) - return "deployments." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; - - /** - * Creates a ListDeploymentsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListDeploymentsResponse} ListDeploymentsResponse - */ - ListDeploymentsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse(); - if (object.deployments) { - if (!Array.isArray(object.deployments)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ListDeploymentsResponse.deployments: array expected"); - message.deployments = []; - for (var i = 0; i < object.deployments.length; ++i) { - if (typeof object.deployments[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ListDeploymentsResponse.deployments: object expected"); - message.deployments[i] = $root.google.cloud.dialogflow.cx.v3.Deployment.fromObject(object.deployments[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; - - /** - * Creates a plain object from a ListDeploymentsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.ListDeploymentsResponse} message ListDeploymentsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListDeploymentsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.deployments = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.deployments && message.deployments.length) { - object.deployments = []; - for (var j = 0; j < message.deployments.length; ++j) - object.deployments[j] = $root.google.cloud.dialogflow.cx.v3.Deployment.toObject(message.deployments[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; - - /** - * Converts this ListDeploymentsResponse to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse - * @instance - * @returns {Object.} JSON object - */ - ListDeploymentsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ListDeploymentsResponse; - })(); - - v3.GetDeploymentRequest = (function() { - - /** - * Properties of a GetDeploymentRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IGetDeploymentRequest - * @property {string|null} [name] GetDeploymentRequest name - */ - - /** - * Constructs a new GetDeploymentRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a GetDeploymentRequest. - * @implements IGetDeploymentRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IGetDeploymentRequest=} [properties] Properties to set - */ - function GetDeploymentRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetDeploymentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.GetDeploymentRequest - * @instance - */ - GetDeploymentRequest.prototype.name = ""; - - /** - * Creates a new GetDeploymentRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.GetDeploymentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IGetDeploymentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.GetDeploymentRequest} GetDeploymentRequest instance - */ - GetDeploymentRequest.create = function create(properties) { - return new GetDeploymentRequest(properties); - }; - - /** - * Encodes the specified GetDeploymentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetDeploymentRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.GetDeploymentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IGetDeploymentRequest} message GetDeploymentRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetDeploymentRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; - - /** - * Encodes the specified GetDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetDeploymentRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetDeploymentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IGetDeploymentRequest} message GetDeploymentRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetDeploymentRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetDeploymentRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.GetDeploymentRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.GetDeploymentRequest} GetDeploymentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetDeploymentRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetDeploymentRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); + message.force = reader.bool(); break; default: reader.skipType(tag & 7); @@ -22218,459 +22505,576 @@ }; /** - * Decodes a GetDeploymentRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetDeploymentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.GetDeploymentRequest} GetDeploymentRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest} DeleteEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDeploymentRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetDeploymentRequest message. + * Verifies a DeleteEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.GetDeploymentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetDeploymentRequest.verify = function verify(message) { + DeleteEntityTypeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; return null; }; /** - * Creates a GetDeploymentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.GetDeploymentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.GetDeploymentRequest} GetDeploymentRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest} DeleteEntityTypeRequest */ - GetDeploymentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetDeploymentRequest) + DeleteEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.GetDeploymentRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest(); if (object.name != null) message.name = String(object.name); + if (object.force != null) + message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from a GetDeploymentRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.GetDeploymentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.GetDeploymentRequest} message GetDeploymentRequest + * @param {google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest} message DeleteEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetDeploymentRequest.toObject = function toObject(message, options) { + DeleteEntityTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.name = ""; + object.force = false; + } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; return object; }; /** - * Converts this GetDeploymentRequest to JSON. + * Converts this DeleteEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.GetDeploymentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest * @instance * @returns {Object.} JSON object */ - GetDeploymentRequest.prototype.toJSON = function toJSON() { + DeleteEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetDeploymentRequest; + return DeleteEntityTypeRequest; })(); - v3.EntityTypes = (function() { + v3.Environments = (function() { /** - * Constructs a new EntityTypes service. + * Constructs a new Environments service. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an EntityTypes + * @classdesc Represents an Environments * @extends $protobuf.rpc.Service * @constructor * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - function EntityTypes(rpcImpl, requestDelimited, responseDelimited) { + function Environments(rpcImpl, requestDelimited, responseDelimited) { $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - (EntityTypes.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = EntityTypes; + (Environments.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Environments; /** - * Creates new EntityTypes service using the specified rpc implementation. + * Creates new Environments service using the specified rpc implementation. * @function create - * @memberof google.cloud.dialogflow.cx.v3.EntityTypes + * @memberof google.cloud.dialogflow.cx.v3.Environments * @static * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {EntityTypes} RPC service. Useful where requests and/or responses are streamed. + * @returns {Environments} RPC service. Useful where requests and/or responses are streamed. */ - EntityTypes.create = function create(rpcImpl, requestDelimited, responseDelimited) { + Environments.create = function create(rpcImpl, requestDelimited, responseDelimited) { return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes#listEntityTypes}. - * @memberof google.cloud.dialogflow.cx.v3.EntityTypes - * @typedef ListEntityTypesCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#listEnvironments}. + * @memberof google.cloud.dialogflow.cx.v3.Environments + * @typedef ListEnvironmentsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.ListEntityTypesResponse} [response] ListEntityTypesResponse + * @param {google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse} [response] ListEnvironmentsResponse */ /** - * Calls ListEntityTypes. - * @function listEntityTypes - * @memberof google.cloud.dialogflow.cx.v3.EntityTypes + * Calls ListEnvironments. + * @function listEnvironments + * @memberof google.cloud.dialogflow.cx.v3.Environments * @instance - * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesRequest} request ListEntityTypesRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypesCallback} callback Node-style callback called with the error, if any, and ListEntityTypesResponse + * @param {google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest} request ListEnvironmentsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Environments.ListEnvironmentsCallback} callback Node-style callback called with the error, if any, and ListEnvironmentsResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(EntityTypes.prototype.listEntityTypes = function listEntityTypes(request, callback) { - return this.rpcCall(listEntityTypes, $root.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest, $root.google.cloud.dialogflow.cx.v3.ListEntityTypesResponse, request, callback); - }, "name", { value: "ListEntityTypes" }); + Object.defineProperty(Environments.prototype.listEnvironments = function listEnvironments(request, callback) { + return this.rpcCall(listEnvironments, $root.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest, $root.google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse, request, callback); + }, "name", { value: "ListEnvironments" }); /** - * Calls ListEntityTypes. - * @function listEntityTypes - * @memberof google.cloud.dialogflow.cx.v3.EntityTypes + * Calls ListEnvironments. + * @function listEnvironments + * @memberof google.cloud.dialogflow.cx.v3.Environments * @instance - * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesRequest} request ListEntityTypesRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest} request ListEnvironmentsRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes#getEntityType}. - * @memberof google.cloud.dialogflow.cx.v3.EntityTypes - * @typedef GetEntityTypeCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#getEnvironment}. + * @memberof google.cloud.dialogflow.cx.v3.Environments + * @typedef GetEnvironmentCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.EntityType} [response] EntityType + * @param {google.cloud.dialogflow.cx.v3.Environment} [response] Environment */ /** - * Calls GetEntityType. - * @function getEntityType - * @memberof google.cloud.dialogflow.cx.v3.EntityTypes + * Calls GetEnvironment. + * @function getEnvironment + * @memberof google.cloud.dialogflow.cx.v3.Environments * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest} request GetEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityTypeCallback} callback Node-style callback called with the error, if any, and EntityType + * @param {google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest} request GetEnvironmentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Environments.GetEnvironmentCallback} callback Node-style callback called with the error, if any, and Environment * @returns {undefined} * @variation 1 */ - Object.defineProperty(EntityTypes.prototype.getEntityType = function getEntityType(request, callback) { - return this.rpcCall(getEntityType, $root.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3.EntityType, request, callback); - }, "name", { value: "GetEntityType" }); + Object.defineProperty(Environments.prototype.getEnvironment = function getEnvironment(request, callback) { + return this.rpcCall(getEnvironment, $root.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest, $root.google.cloud.dialogflow.cx.v3.Environment, request, callback); + }, "name", { value: "GetEnvironment" }); /** - * Calls GetEntityType. - * @function getEntityType - * @memberof google.cloud.dialogflow.cx.v3.EntityTypes + * Calls GetEnvironment. + * @function getEnvironment + * @memberof google.cloud.dialogflow.cx.v3.Environments * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest} request GetEntityTypeRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest} request GetEnvironmentRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes#createEntityType}. - * @memberof google.cloud.dialogflow.cx.v3.EntityTypes - * @typedef CreateEntityTypeCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#createEnvironment}. + * @memberof google.cloud.dialogflow.cx.v3.Environments + * @typedef CreateEnvironmentCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.EntityType} [response] EntityType + * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls CreateEntityType. - * @function createEntityType - * @memberof google.cloud.dialogflow.cx.v3.EntityTypes + * Calls CreateEnvironment. + * @function createEnvironment + * @memberof google.cloud.dialogflow.cx.v3.Environments * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest} request CreateEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.EntityTypes.CreateEntityTypeCallback} callback Node-style callback called with the error, if any, and EntityType + * @param {google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest} request CreateEnvironmentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Environments.CreateEnvironmentCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ - Object.defineProperty(EntityTypes.prototype.createEntityType = function createEntityType(request, callback) { - return this.rpcCall(createEntityType, $root.google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3.EntityType, request, callback); - }, "name", { value: "CreateEntityType" }); + Object.defineProperty(Environments.prototype.createEnvironment = function createEnvironment(request, callback) { + return this.rpcCall(createEnvironment, $root.google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateEnvironment" }); /** - * Calls CreateEntityType. - * @function createEntityType - * @memberof google.cloud.dialogflow.cx.v3.EntityTypes + * Calls CreateEnvironment. + * @function createEnvironment + * @memberof google.cloud.dialogflow.cx.v3.Environments * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest} request CreateEntityTypeRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest} request CreateEnvironmentRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes#updateEntityType}. - * @memberof google.cloud.dialogflow.cx.v3.EntityTypes - * @typedef UpdateEntityTypeCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#updateEnvironment}. + * @memberof google.cloud.dialogflow.cx.v3.Environments + * @typedef UpdateEnvironmentCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.EntityType} [response] EntityType + * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls UpdateEntityType. - * @function updateEntityType - * @memberof google.cloud.dialogflow.cx.v3.EntityTypes + * Calls UpdateEnvironment. + * @function updateEnvironment + * @memberof google.cloud.dialogflow.cx.v3.Environments * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest} request UpdateEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityTypeCallback} callback Node-style callback called with the error, if any, and EntityType + * @param {google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest} request UpdateEnvironmentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Environments.UpdateEnvironmentCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ - Object.defineProperty(EntityTypes.prototype.updateEntityType = function updateEntityType(request, callback) { - return this.rpcCall(updateEntityType, $root.google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3.EntityType, request, callback); - }, "name", { value: "UpdateEntityType" }); + Object.defineProperty(Environments.prototype.updateEnvironment = function updateEnvironment(request, callback) { + return this.rpcCall(updateEnvironment, $root.google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateEnvironment" }); /** - * Calls UpdateEntityType. - * @function updateEntityType - * @memberof google.cloud.dialogflow.cx.v3.EntityTypes + * Calls UpdateEnvironment. + * @function updateEnvironment + * @memberof google.cloud.dialogflow.cx.v3.Environments * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest} request UpdateEntityTypeRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest} request UpdateEnvironmentRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes#deleteEntityType}. - * @memberof google.cloud.dialogflow.cx.v3.EntityTypes - * @typedef DeleteEntityTypeCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#deleteEnvironment}. + * @memberof google.cloud.dialogflow.cx.v3.Environments + * @typedef DeleteEnvironmentCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.protobuf.Empty} [response] Empty */ /** - * Calls DeleteEntityType. - * @function deleteEntityType - * @memberof google.cloud.dialogflow.cx.v3.EntityTypes + * Calls DeleteEnvironment. + * @function deleteEnvironment + * @memberof google.cloud.dialogflow.cx.v3.Environments * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest} request DeleteEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.EntityTypes.DeleteEntityTypeCallback} callback Node-style callback called with the error, if any, and Empty + * @param {google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest} request DeleteEnvironmentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Environments.DeleteEnvironmentCallback} callback Node-style callback called with the error, if any, and Empty * @returns {undefined} * @variation 1 */ - Object.defineProperty(EntityTypes.prototype.deleteEntityType = function deleteEntityType(request, callback) { - return this.rpcCall(deleteEntityType, $root.google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteEntityType" }); + Object.defineProperty(Environments.prototype.deleteEnvironment = function deleteEnvironment(request, callback) { + return this.rpcCall(deleteEnvironment, $root.google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteEnvironment" }); /** - * Calls DeleteEntityType. - * @function deleteEntityType - * @memberof google.cloud.dialogflow.cx.v3.EntityTypes + * Calls DeleteEnvironment. + * @function deleteEnvironment + * @memberof google.cloud.dialogflow.cx.v3.Environments * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest} request DeleteEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest} request DeleteEnvironmentRequest message or plain object * @returns {Promise} Promise * @variation 2 */ - return EntityTypes; - })(); - - v3.EntityType = (function() { - /** - * Properties of an EntityType. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IEntityType - * @property {string|null} [name] EntityType name - * @property {string|null} [displayName] EntityType displayName - * @property {google.cloud.dialogflow.cx.v3.EntityType.Kind|null} [kind] EntityType kind - * @property {google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode|null} [autoExpansionMode] EntityType autoExpansionMode - * @property {Array.|null} [entities] EntityType entities - * @property {Array.|null} [excludedPhrases] EntityType excludedPhrases - * @property {boolean|null} [enableFuzzyExtraction] EntityType enableFuzzyExtraction - * @property {boolean|null} [redact] EntityType redact + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#lookupEnvironmentHistory}. + * @memberof google.cloud.dialogflow.cx.v3.Environments + * @typedef LookupEnvironmentHistoryCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse} [response] LookupEnvironmentHistoryResponse */ /** - * Constructs a new EntityType. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an EntityType. - * @implements IEntityType - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IEntityType=} [properties] Properties to set + * Calls LookupEnvironmentHistory. + * @function lookupEnvironmentHistory + * @memberof google.cloud.dialogflow.cx.v3.Environments + * @instance + * @param {google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest} request LookupEnvironmentHistoryRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Environments.LookupEnvironmentHistoryCallback} callback Node-style callback called with the error, if any, and LookupEnvironmentHistoryResponse + * @returns {undefined} + * @variation 1 */ - function EntityType(properties) { - this.entities = []; - this.excludedPhrases = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Object.defineProperty(Environments.prototype.lookupEnvironmentHistory = function lookupEnvironmentHistory(request, callback) { + return this.rpcCall(lookupEnvironmentHistory, $root.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest, $root.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse, request, callback); + }, "name", { value: "LookupEnvironmentHistory" }); /** - * EntityType name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.EntityType + * Calls LookupEnvironmentHistory. + * @function lookupEnvironmentHistory + * @memberof google.cloud.dialogflow.cx.v3.Environments * @instance + * @param {google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest} request LookupEnvironmentHistoryRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - EntityType.prototype.name = ""; /** - * EntityType displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.EntityType + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#runContinuousTest}. + * @memberof google.cloud.dialogflow.cx.v3.Environments + * @typedef RunContinuousTestCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls RunContinuousTest. + * @function runContinuousTest + * @memberof google.cloud.dialogflow.cx.v3.Environments * @instance + * @param {google.cloud.dialogflow.cx.v3.IRunContinuousTestRequest} request RunContinuousTestRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Environments.RunContinuousTestCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - EntityType.prototype.displayName = ""; + Object.defineProperty(Environments.prototype.runContinuousTest = function runContinuousTest(request, callback) { + return this.rpcCall(runContinuousTest, $root.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "RunContinuousTest" }); /** - * EntityType kind. - * @member {google.cloud.dialogflow.cx.v3.EntityType.Kind} kind - * @memberof google.cloud.dialogflow.cx.v3.EntityType + * Calls RunContinuousTest. + * @function runContinuousTest + * @memberof google.cloud.dialogflow.cx.v3.Environments * @instance + * @param {google.cloud.dialogflow.cx.v3.IRunContinuousTestRequest} request RunContinuousTestRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - EntityType.prototype.kind = 0; /** - * EntityType autoExpansionMode. - * @member {google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode} autoExpansionMode - * @memberof google.cloud.dialogflow.cx.v3.EntityType + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#listContinuousTestResults}. + * @memberof google.cloud.dialogflow.cx.v3.Environments + * @typedef ListContinuousTestResultsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse} [response] ListContinuousTestResultsResponse + */ + + /** + * Calls ListContinuousTestResults. + * @function listContinuousTestResults + * @memberof google.cloud.dialogflow.cx.v3.Environments * @instance + * @param {google.cloud.dialogflow.cx.v3.IListContinuousTestResultsRequest} request ListContinuousTestResultsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Environments.ListContinuousTestResultsCallback} callback Node-style callback called with the error, if any, and ListContinuousTestResultsResponse + * @returns {undefined} + * @variation 1 */ - EntityType.prototype.autoExpansionMode = 0; + Object.defineProperty(Environments.prototype.listContinuousTestResults = function listContinuousTestResults(request, callback) { + return this.rpcCall(listContinuousTestResults, $root.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest, $root.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse, request, callback); + }, "name", { value: "ListContinuousTestResults" }); /** - * EntityType entities. - * @member {Array.} entities - * @memberof google.cloud.dialogflow.cx.v3.EntityType + * Calls ListContinuousTestResults. + * @function listContinuousTestResults + * @memberof google.cloud.dialogflow.cx.v3.Environments * @instance + * @param {google.cloud.dialogflow.cx.v3.IListContinuousTestResultsRequest} request ListContinuousTestResultsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - EntityType.prototype.entities = $util.emptyArray; /** - * EntityType excludedPhrases. - * @member {Array.} excludedPhrases - * @memberof google.cloud.dialogflow.cx.v3.EntityType + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#deployFlow}. + * @memberof google.cloud.dialogflow.cx.v3.Environments + * @typedef DeployFlowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeployFlow. + * @function deployFlow + * @memberof google.cloud.dialogflow.cx.v3.Environments * @instance + * @param {google.cloud.dialogflow.cx.v3.IDeployFlowRequest} request DeployFlowRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Environments.DeployFlowCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - EntityType.prototype.excludedPhrases = $util.emptyArray; + Object.defineProperty(Environments.prototype.deployFlow = function deployFlow(request, callback) { + return this.rpcCall(deployFlow, $root.google.cloud.dialogflow.cx.v3.DeployFlowRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeployFlow" }); /** - * EntityType enableFuzzyExtraction. - * @member {boolean} enableFuzzyExtraction - * @memberof google.cloud.dialogflow.cx.v3.EntityType + * Calls DeployFlow. + * @function deployFlow + * @memberof google.cloud.dialogflow.cx.v3.Environments * @instance + * @param {google.cloud.dialogflow.cx.v3.IDeployFlowRequest} request DeployFlowRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - EntityType.prototype.enableFuzzyExtraction = false; + + return Environments; + })(); + + v3.Environment = (function() { /** - * EntityType redact. - * @member {boolean} redact - * @memberof google.cloud.dialogflow.cx.v3.EntityType + * Properties of an Environment. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IEnvironment + * @property {string|null} [name] Environment name + * @property {string|null} [displayName] Environment displayName + * @property {string|null} [description] Environment description + * @property {Array.|null} [versionConfigs] Environment versionConfigs + * @property {google.protobuf.ITimestamp|null} [updateTime] Environment updateTime + * @property {google.cloud.dialogflow.cx.v3.Environment.ITestCasesConfig|null} [testCasesConfig] Environment testCasesConfig + */ + + /** + * Constructs a new Environment. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents an Environment. + * @implements IEnvironment + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IEnvironment=} [properties] Properties to set + */ + function Environment(properties) { + this.versionConfigs = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Environment name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.Environment * @instance */ - EntityType.prototype.redact = false; + Environment.prototype.name = ""; /** - * Creates a new EntityType instance using the specified properties. + * Environment displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.Environment + * @instance + */ + Environment.prototype.displayName = ""; + + /** + * Environment description. + * @member {string} description + * @memberof google.cloud.dialogflow.cx.v3.Environment + * @instance + */ + Environment.prototype.description = ""; + + /** + * Environment versionConfigs. + * @member {Array.} versionConfigs + * @memberof google.cloud.dialogflow.cx.v3.Environment + * @instance + */ + Environment.prototype.versionConfigs = $util.emptyArray; + + /** + * Environment updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.dialogflow.cx.v3.Environment + * @instance + */ + Environment.prototype.updateTime = null; + + /** + * Environment testCasesConfig. + * @member {google.cloud.dialogflow.cx.v3.Environment.ITestCasesConfig|null|undefined} testCasesConfig + * @memberof google.cloud.dialogflow.cx.v3.Environment + * @instance + */ + Environment.prototype.testCasesConfig = null; + + /** + * Creates a new Environment instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.EntityType + * @memberof google.cloud.dialogflow.cx.v3.Environment * @static - * @param {google.cloud.dialogflow.cx.v3.IEntityType=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.EntityType} EntityType instance + * @param {google.cloud.dialogflow.cx.v3.IEnvironment=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Environment} Environment instance */ - EntityType.create = function create(properties) { - return new EntityType(properties); + Environment.create = function create(properties) { + return new Environment(properties); }; /** - * Encodes the specified EntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.verify|verify} messages. + * Encodes the specified Environment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Environment.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.EntityType + * @memberof google.cloud.dialogflow.cx.v3.Environment * @static - * @param {google.cloud.dialogflow.cx.v3.IEntityType} message EntityType message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IEnvironment} message Environment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EntityType.encode = function encode(message, writer) { + Environment.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.kind); - if (message.autoExpansionMode != null && Object.hasOwnProperty.call(message, "autoExpansionMode")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.autoExpansionMode); - if (message.entities != null && message.entities.length) - for (var i = 0; i < message.entities.length; ++i) - $root.google.cloud.dialogflow.cx.v3.EntityType.Entity.encode(message.entities[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.excludedPhrases != null && message.excludedPhrases.length) - for (var i = 0; i < message.excludedPhrases.length; ++i) - $root.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase.encode(message.excludedPhrases[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.enableFuzzyExtraction != null && Object.hasOwnProperty.call(message, "enableFuzzyExtraction")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.enableFuzzyExtraction); - if (message.redact != null && Object.hasOwnProperty.call(message, "redact")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.redact); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.versionConfigs != null && message.versionConfigs.length) + for (var i = 0; i < message.versionConfigs.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Environment.VersionConfig.encode(message.versionConfigs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.testCasesConfig != null && Object.hasOwnProperty.call(message, "testCasesConfig")) + $root.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.encode(message.testCasesConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified EntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.verify|verify} messages. + * Encodes the specified Environment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Environment.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.EntityType + * @memberof google.cloud.dialogflow.cx.v3.Environment * @static - * @param {google.cloud.dialogflow.cx.v3.IEntityType} message EntityType message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IEnvironment} message Environment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EntityType.encodeDelimited = function encodeDelimited(message, writer) { + Environment.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EntityType message from the specified reader or buffer. + * Decodes an Environment message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.EntityType + * @memberof google.cloud.dialogflow.cx.v3.Environment * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.EntityType} EntityType + * @returns {google.cloud.dialogflow.cx.v3.Environment} Environment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EntityType.decode = function decode(reader, length) { + Environment.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.EntityType(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Environment(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -22681,26 +23085,18 @@ message.displayName = reader.string(); break; case 3: - message.kind = reader.int32(); + message.description = reader.string(); break; - case 4: - message.autoExpansionMode = reader.int32(); + case 6: + if (!(message.versionConfigs && message.versionConfigs.length)) + message.versionConfigs = []; + message.versionConfigs.push($root.google.cloud.dialogflow.cx.v3.Environment.VersionConfig.decode(reader, reader.uint32())); break; case 5: - if (!(message.entities && message.entities.length)) - message.entities = []; - message.entities.push($root.google.cloud.dialogflow.cx.v3.EntityType.Entity.decode(reader, reader.uint32())); - break; - case 6: - if (!(message.excludedPhrases && message.excludedPhrases.length)) - message.excludedPhrases = []; - message.excludedPhrases.push($root.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase.decode(reader, reader.uint32())); + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 7: - message.enableFuzzyExtraction = reader.bool(); - break; - case 9: - message.redact = reader.bool(); + message.testCasesConfig = $root.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -22711,30 +23107,30 @@ }; /** - * Decodes an EntityType message from the specified reader or buffer, length delimited. + * Decodes an Environment message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.EntityType + * @memberof google.cloud.dialogflow.cx.v3.Environment * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.EntityType} EntityType + * @returns {google.cloud.dialogflow.cx.v3.Environment} Environment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EntityType.decodeDelimited = function decodeDelimited(reader) { + Environment.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EntityType message. + * Verifies an Environment message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.EntityType + * @memberof google.cloud.dialogflow.cx.v3.Environment * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EntityType.verify = function verify(message) { + Environment.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -22743,235 +23139,141 @@ if (message.displayName != null && message.hasOwnProperty("displayName")) if (!$util.isString(message.displayName)) return "displayName: string expected"; - if (message.kind != null && message.hasOwnProperty("kind")) - switch (message.kind) { - default: - return "kind: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.autoExpansionMode != null && message.hasOwnProperty("autoExpansionMode")) - switch (message.autoExpansionMode) { - default: - return "autoExpansionMode: enum value expected"; - case 0: - case 1: - break; - } - if (message.entities != null && message.hasOwnProperty("entities")) { - if (!Array.isArray(message.entities)) - return "entities: array expected"; - for (var i = 0; i < message.entities.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.EntityType.Entity.verify(message.entities[i]); + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.versionConfigs != null && message.hasOwnProperty("versionConfigs")) { + if (!Array.isArray(message.versionConfigs)) + return "versionConfigs: array expected"; + for (var i = 0; i < message.versionConfigs.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Environment.VersionConfig.verify(message.versionConfigs[i]); if (error) - return "entities." + error; + return "versionConfigs." + error; } } - if (message.excludedPhrases != null && message.hasOwnProperty("excludedPhrases")) { - if (!Array.isArray(message.excludedPhrases)) - return "excludedPhrases: array expected"; - for (var i = 0; i < message.excludedPhrases.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase.verify(message.excludedPhrases[i]); - if (error) - return "excludedPhrases." + error; - } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.testCasesConfig != null && message.hasOwnProperty("testCasesConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.verify(message.testCasesConfig); + if (error) + return "testCasesConfig." + error; } - if (message.enableFuzzyExtraction != null && message.hasOwnProperty("enableFuzzyExtraction")) - if (typeof message.enableFuzzyExtraction !== "boolean") - return "enableFuzzyExtraction: boolean expected"; - if (message.redact != null && message.hasOwnProperty("redact")) - if (typeof message.redact !== "boolean") - return "redact: boolean expected"; return null; }; /** - * Creates an EntityType message from a plain object. Also converts values to their respective internal types. + * Creates an Environment message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.EntityType + * @memberof google.cloud.dialogflow.cx.v3.Environment * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.EntityType} EntityType + * @returns {google.cloud.dialogflow.cx.v3.Environment} Environment */ - EntityType.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.EntityType) + Environment.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Environment) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.EntityType(); + var message = new $root.google.cloud.dialogflow.cx.v3.Environment(); if (object.name != null) message.name = String(object.name); if (object.displayName != null) message.displayName = String(object.displayName); - switch (object.kind) { - case "KIND_UNSPECIFIED": - case 0: - message.kind = 0; - break; - case "KIND_MAP": - case 1: - message.kind = 1; - break; - case "KIND_LIST": - case 2: - message.kind = 2; - break; - case "KIND_REGEXP": - case 3: - message.kind = 3; - break; - } - switch (object.autoExpansionMode) { - case "AUTO_EXPANSION_MODE_UNSPECIFIED": - case 0: - message.autoExpansionMode = 0; - break; - case "AUTO_EXPANSION_MODE_DEFAULT": - case 1: - message.autoExpansionMode = 1; - break; - } - if (object.entities) { - if (!Array.isArray(object.entities)) - throw TypeError(".google.cloud.dialogflow.cx.v3.EntityType.entities: array expected"); - message.entities = []; - for (var i = 0; i < object.entities.length; ++i) { - if (typeof object.entities[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.EntityType.entities: object expected"); - message.entities[i] = $root.google.cloud.dialogflow.cx.v3.EntityType.Entity.fromObject(object.entities[i]); + if (object.description != null) + message.description = String(object.description); + if (object.versionConfigs) { + if (!Array.isArray(object.versionConfigs)) + throw TypeError(".google.cloud.dialogflow.cx.v3.Environment.versionConfigs: array expected"); + message.versionConfigs = []; + for (var i = 0; i < object.versionConfigs.length; ++i) { + if (typeof object.versionConfigs[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Environment.versionConfigs: object expected"); + message.versionConfigs[i] = $root.google.cloud.dialogflow.cx.v3.Environment.VersionConfig.fromObject(object.versionConfigs[i]); } } - if (object.excludedPhrases) { - if (!Array.isArray(object.excludedPhrases)) - throw TypeError(".google.cloud.dialogflow.cx.v3.EntityType.excludedPhrases: array expected"); - message.excludedPhrases = []; - for (var i = 0; i < object.excludedPhrases.length; ++i) { - if (typeof object.excludedPhrases[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.EntityType.excludedPhrases: object expected"); - message.excludedPhrases[i] = $root.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase.fromObject(object.excludedPhrases[i]); - } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Environment.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.testCasesConfig != null) { + if (typeof object.testCasesConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Environment.testCasesConfig: object expected"); + message.testCasesConfig = $root.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.fromObject(object.testCasesConfig); } - if (object.enableFuzzyExtraction != null) - message.enableFuzzyExtraction = Boolean(object.enableFuzzyExtraction); - if (object.redact != null) - message.redact = Boolean(object.redact); return message; }; /** - * Creates a plain object from an EntityType message. Also converts values to other types if specified. + * Creates a plain object from an Environment message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.EntityType + * @memberof google.cloud.dialogflow.cx.v3.Environment * @static - * @param {google.cloud.dialogflow.cx.v3.EntityType} message EntityType + * @param {google.cloud.dialogflow.cx.v3.Environment} message Environment * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EntityType.toObject = function toObject(message, options) { + Environment.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.entities = []; - object.excludedPhrases = []; - } + if (options.arrays || options.defaults) + object.versionConfigs = []; if (options.defaults) { object.name = ""; object.displayName = ""; - object.kind = options.enums === String ? "KIND_UNSPECIFIED" : 0; - object.autoExpansionMode = options.enums === String ? "AUTO_EXPANSION_MODE_UNSPECIFIED" : 0; - object.enableFuzzyExtraction = false; - object.redact = false; + object.description = ""; + object.updateTime = null; + object.testCasesConfig = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; if (message.displayName != null && message.hasOwnProperty("displayName")) object.displayName = message.displayName; - if (message.kind != null && message.hasOwnProperty("kind")) - object.kind = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.EntityType.Kind[message.kind] : message.kind; - if (message.autoExpansionMode != null && message.hasOwnProperty("autoExpansionMode")) - object.autoExpansionMode = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode[message.autoExpansionMode] : message.autoExpansionMode; - if (message.entities && message.entities.length) { - object.entities = []; - for (var j = 0; j < message.entities.length; ++j) - object.entities[j] = $root.google.cloud.dialogflow.cx.v3.EntityType.Entity.toObject(message.entities[j], options); - } - if (message.excludedPhrases && message.excludedPhrases.length) { - object.excludedPhrases = []; - for (var j = 0; j < message.excludedPhrases.length; ++j) - object.excludedPhrases[j] = $root.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase.toObject(message.excludedPhrases[j], options); + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.versionConfigs && message.versionConfigs.length) { + object.versionConfigs = []; + for (var j = 0; j < message.versionConfigs.length; ++j) + object.versionConfigs[j] = $root.google.cloud.dialogflow.cx.v3.Environment.VersionConfig.toObject(message.versionConfigs[j], options); } - if (message.enableFuzzyExtraction != null && message.hasOwnProperty("enableFuzzyExtraction")) - object.enableFuzzyExtraction = message.enableFuzzyExtraction; - if (message.redact != null && message.hasOwnProperty("redact")) - object.redact = message.redact; + if (message.testCasesConfig != null && message.hasOwnProperty("testCasesConfig")) + object.testCasesConfig = $root.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.toObject(message.testCasesConfig, options); return object; }; /** - * Converts this EntityType to JSON. + * Converts this Environment to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.EntityType + * @memberof google.cloud.dialogflow.cx.v3.Environment * @instance * @returns {Object.} JSON object */ - EntityType.prototype.toJSON = function toJSON() { + Environment.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * Kind enum. - * @name google.cloud.dialogflow.cx.v3.EntityType.Kind - * @enum {number} - * @property {number} KIND_UNSPECIFIED=0 KIND_UNSPECIFIED value - * @property {number} KIND_MAP=1 KIND_MAP value - * @property {number} KIND_LIST=2 KIND_LIST value - * @property {number} KIND_REGEXP=3 KIND_REGEXP value - */ - EntityType.Kind = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "KIND_UNSPECIFIED"] = 0; - values[valuesById[1] = "KIND_MAP"] = 1; - values[valuesById[2] = "KIND_LIST"] = 2; - values[valuesById[3] = "KIND_REGEXP"] = 3; - return values; - })(); - - /** - * AutoExpansionMode enum. - * @name google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode - * @enum {number} - * @property {number} AUTO_EXPANSION_MODE_UNSPECIFIED=0 AUTO_EXPANSION_MODE_UNSPECIFIED value - * @property {number} AUTO_EXPANSION_MODE_DEFAULT=1 AUTO_EXPANSION_MODE_DEFAULT value - */ - EntityType.AutoExpansionMode = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "AUTO_EXPANSION_MODE_UNSPECIFIED"] = 0; - values[valuesById[1] = "AUTO_EXPANSION_MODE_DEFAULT"] = 1; - return values; - })(); - - EntityType.Entity = (function() { + Environment.VersionConfig = (function() { /** - * Properties of an Entity. - * @memberof google.cloud.dialogflow.cx.v3.EntityType - * @interface IEntity - * @property {string|null} [value] Entity value - * @property {Array.|null} [synonyms] Entity synonyms + * Properties of a VersionConfig. + * @memberof google.cloud.dialogflow.cx.v3.Environment + * @interface IVersionConfig + * @property {string|null} [version] VersionConfig version */ /** - * Constructs a new Entity. - * @memberof google.cloud.dialogflow.cx.v3.EntityType - * @classdesc Represents an Entity. - * @implements IEntity + * Constructs a new VersionConfig. + * @memberof google.cloud.dialogflow.cx.v3.Environment + * @classdesc Represents a VersionConfig. + * @implements IVersionConfig * @constructor - * @param {google.cloud.dialogflow.cx.v3.EntityType.IEntity=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.Environment.IVersionConfig=} [properties] Properties to set */ - function Entity(properties) { - this.synonyms = []; + function VersionConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22979,91 +23281,75 @@ } /** - * Entity value. - * @member {string} value - * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity - * @instance - */ - Entity.prototype.value = ""; - - /** - * Entity synonyms. - * @member {Array.} synonyms - * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity + * VersionConfig version. + * @member {string} version + * @memberof google.cloud.dialogflow.cx.v3.Environment.VersionConfig * @instance */ - Entity.prototype.synonyms = $util.emptyArray; + VersionConfig.prototype.version = ""; /** - * Creates a new Entity instance using the specified properties. + * Creates a new VersionConfig instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity + * @memberof google.cloud.dialogflow.cx.v3.Environment.VersionConfig * @static - * @param {google.cloud.dialogflow.cx.v3.EntityType.IEntity=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.EntityType.Entity} Entity instance + * @param {google.cloud.dialogflow.cx.v3.Environment.IVersionConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Environment.VersionConfig} VersionConfig instance */ - Entity.create = function create(properties) { - return new Entity(properties); + VersionConfig.create = function create(properties) { + return new VersionConfig(properties); }; /** - * Encodes the specified Entity message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.Entity.verify|verify} messages. + * Encodes the specified VersionConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Environment.VersionConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity + * @memberof google.cloud.dialogflow.cx.v3.Environment.VersionConfig * @static - * @param {google.cloud.dialogflow.cx.v3.EntityType.IEntity} message Entity message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.Environment.IVersionConfig} message VersionConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Entity.encode = function encode(message, writer) { + VersionConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); - if (message.synonyms != null && message.synonyms.length) - for (var i = 0; i < message.synonyms.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.synonyms[i]); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); return writer; }; /** - * Encodes the specified Entity message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.Entity.verify|verify} messages. + * Encodes the specified VersionConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Environment.VersionConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity + * @memberof google.cloud.dialogflow.cx.v3.Environment.VersionConfig * @static - * @param {google.cloud.dialogflow.cx.v3.EntityType.IEntity} message Entity message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.Environment.IVersionConfig} message VersionConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Entity.encodeDelimited = function encodeDelimited(message, writer) { + VersionConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Entity message from the specified reader or buffer. + * Decodes a VersionConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity + * @memberof google.cloud.dialogflow.cx.v3.Environment.VersionConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.EntityType.Entity} Entity + * @returns {google.cloud.dialogflow.cx.v3.Environment.VersionConfig} VersionConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Entity.decode = function decode(reader, length) { + VersionConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.EntityType.Entity(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Environment.VersionConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.value = reader.string(); - break; - case 2: - if (!(message.synonyms && message.synonyms.length)) - message.synonyms = []; - message.synonyms.push(reader.string()); + message.version = reader.string(); break; default: reader.skipType(tag & 7); @@ -23074,128 +23360,110 @@ }; /** - * Decodes an Entity message from the specified reader or buffer, length delimited. + * Decodes a VersionConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity + * @memberof google.cloud.dialogflow.cx.v3.Environment.VersionConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.EntityType.Entity} Entity + * @returns {google.cloud.dialogflow.cx.v3.Environment.VersionConfig} VersionConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Entity.decodeDelimited = function decodeDelimited(reader) { + VersionConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Entity message. + * Verifies a VersionConfig message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity + * @memberof google.cloud.dialogflow.cx.v3.Environment.VersionConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Entity.verify = function verify(message) { + VersionConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - if (message.synonyms != null && message.hasOwnProperty("synonyms")) { - if (!Array.isArray(message.synonyms)) - return "synonyms: array expected"; - for (var i = 0; i < message.synonyms.length; ++i) - if (!$util.isString(message.synonyms[i])) - return "synonyms: string[] expected"; - } + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; return null; }; /** - * Creates an Entity message from a plain object. Also converts values to their respective internal types. + * Creates a VersionConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity + * @memberof google.cloud.dialogflow.cx.v3.Environment.VersionConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.EntityType.Entity} Entity + * @returns {google.cloud.dialogflow.cx.v3.Environment.VersionConfig} VersionConfig */ - Entity.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.EntityType.Entity) + VersionConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Environment.VersionConfig) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.EntityType.Entity(); - if (object.value != null) - message.value = String(object.value); - if (object.synonyms) { - if (!Array.isArray(object.synonyms)) - throw TypeError(".google.cloud.dialogflow.cx.v3.EntityType.Entity.synonyms: array expected"); - message.synonyms = []; - for (var i = 0; i < object.synonyms.length; ++i) - message.synonyms[i] = String(object.synonyms[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3.Environment.VersionConfig(); + if (object.version != null) + message.version = String(object.version); return message; }; /** - * Creates a plain object from an Entity message. Also converts values to other types if specified. + * Creates a plain object from a VersionConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity + * @memberof google.cloud.dialogflow.cx.v3.Environment.VersionConfig * @static - * @param {google.cloud.dialogflow.cx.v3.EntityType.Entity} message Entity + * @param {google.cloud.dialogflow.cx.v3.Environment.VersionConfig} message VersionConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Entity.toObject = function toObject(message, options) { + VersionConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.synonyms = []; if (options.defaults) - object.value = ""; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; - if (message.synonyms && message.synonyms.length) { - object.synonyms = []; - for (var j = 0; j < message.synonyms.length; ++j) - object.synonyms[j] = message.synonyms[j]; - } + object.version = ""; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; return object; }; /** - * Converts this Entity to JSON. + * Converts this VersionConfig to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity + * @memberof google.cloud.dialogflow.cx.v3.Environment.VersionConfig * @instance * @returns {Object.} JSON object */ - Entity.prototype.toJSON = function toJSON() { + VersionConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Entity; + return VersionConfig; })(); - EntityType.ExcludedPhrase = (function() { + Environment.TestCasesConfig = (function() { /** - * Properties of an ExcludedPhrase. - * @memberof google.cloud.dialogflow.cx.v3.EntityType - * @interface IExcludedPhrase - * @property {string|null} [value] ExcludedPhrase value + * Properties of a TestCasesConfig. + * @memberof google.cloud.dialogflow.cx.v3.Environment + * @interface ITestCasesConfig + * @property {Array.|null} [testCases] TestCasesConfig testCases + * @property {boolean|null} [enableContinuousRun] TestCasesConfig enableContinuousRun + * @property {boolean|null} [enablePredeploymentRun] TestCasesConfig enablePredeploymentRun */ /** - * Constructs a new ExcludedPhrase. - * @memberof google.cloud.dialogflow.cx.v3.EntityType - * @classdesc Represents an ExcludedPhrase. - * @implements IExcludedPhrase + * Constructs a new TestCasesConfig. + * @memberof google.cloud.dialogflow.cx.v3.Environment + * @classdesc Represents a TestCasesConfig. + * @implements ITestCasesConfig * @constructor - * @param {google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.Environment.ITestCasesConfig=} [properties] Properties to set */ - function ExcludedPhrase(properties) { + function TestCasesConfig(properties) { + this.testCases = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23203,75 +23471,104 @@ } /** - * ExcludedPhrase value. - * @member {string} value - * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase + * TestCasesConfig testCases. + * @member {Array.} testCases + * @memberof google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig * @instance */ - ExcludedPhrase.prototype.value = ""; + TestCasesConfig.prototype.testCases = $util.emptyArray; /** - * Creates a new ExcludedPhrase instance using the specified properties. + * TestCasesConfig enableContinuousRun. + * @member {boolean} enableContinuousRun + * @memberof google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig + * @instance + */ + TestCasesConfig.prototype.enableContinuousRun = false; + + /** + * TestCasesConfig enablePredeploymentRun. + * @member {boolean} enablePredeploymentRun + * @memberof google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig + * @instance + */ + TestCasesConfig.prototype.enablePredeploymentRun = false; + + /** + * Creates a new TestCasesConfig instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase + * @memberof google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig * @static - * @param {google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase} ExcludedPhrase instance + * @param {google.cloud.dialogflow.cx.v3.Environment.ITestCasesConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig} TestCasesConfig instance */ - ExcludedPhrase.create = function create(properties) { - return new ExcludedPhrase(properties); + TestCasesConfig.create = function create(properties) { + return new TestCasesConfig(properties); }; /** - * Encodes the specified ExcludedPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase.verify|verify} messages. + * Encodes the specified TestCasesConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase + * @memberof google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig * @static - * @param {google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase} message ExcludedPhrase message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.Environment.ITestCasesConfig} message TestCasesConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExcludedPhrase.encode = function encode(message, writer) { + TestCasesConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); + if (message.testCases != null && message.testCases.length) + for (var i = 0; i < message.testCases.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.testCases[i]); + if (message.enableContinuousRun != null && Object.hasOwnProperty.call(message, "enableContinuousRun")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enableContinuousRun); + if (message.enablePredeploymentRun != null && Object.hasOwnProperty.call(message, "enablePredeploymentRun")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.enablePredeploymentRun); return writer; }; /** - * Encodes the specified ExcludedPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase.verify|verify} messages. + * Encodes the specified TestCasesConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase + * @memberof google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig * @static - * @param {google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase} message ExcludedPhrase message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.Environment.ITestCasesConfig} message TestCasesConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExcludedPhrase.encodeDelimited = function encodeDelimited(message, writer) { + TestCasesConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExcludedPhrase message from the specified reader or buffer. + * Decodes a TestCasesConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase + * @memberof google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase} ExcludedPhrase + * @returns {google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig} TestCasesConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExcludedPhrase.decode = function decode(reader, length) { + TestCasesConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.value = reader.string(); + if (!(message.testCases && message.testCases.length)) + message.testCases = []; + message.testCases.push(reader.string()); + break; + case 2: + message.enableContinuousRun = reader.bool(); + break; + case 3: + message.enablePredeploymentRun = reader.bool(); break; default: reader.skipType(tag & 7); @@ -23282,113 +23579,142 @@ }; /** - * Decodes an ExcludedPhrase message from the specified reader or buffer, length delimited. + * Decodes a TestCasesConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase + * @memberof google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase} ExcludedPhrase + * @returns {google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig} TestCasesConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExcludedPhrase.decodeDelimited = function decodeDelimited(reader) { + TestCasesConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExcludedPhrase message. + * Verifies a TestCasesConfig message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase + * @memberof google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExcludedPhrase.verify = function verify(message) { + TestCasesConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; + if (message.testCases != null && message.hasOwnProperty("testCases")) { + if (!Array.isArray(message.testCases)) + return "testCases: array expected"; + for (var i = 0; i < message.testCases.length; ++i) + if (!$util.isString(message.testCases[i])) + return "testCases: string[] expected"; + } + if (message.enableContinuousRun != null && message.hasOwnProperty("enableContinuousRun")) + if (typeof message.enableContinuousRun !== "boolean") + return "enableContinuousRun: boolean expected"; + if (message.enablePredeploymentRun != null && message.hasOwnProperty("enablePredeploymentRun")) + if (typeof message.enablePredeploymentRun !== "boolean") + return "enablePredeploymentRun: boolean expected"; return null; }; /** - * Creates an ExcludedPhrase message from a plain object. Also converts values to their respective internal types. + * Creates a TestCasesConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase + * @memberof google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase} ExcludedPhrase + * @returns {google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig} TestCasesConfig */ - ExcludedPhrase.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase) + TestCasesConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase(); - if (object.value != null) - message.value = String(object.value); + var message = new $root.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig(); + if (object.testCases) { + if (!Array.isArray(object.testCases)) + throw TypeError(".google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.testCases: array expected"); + message.testCases = []; + for (var i = 0; i < object.testCases.length; ++i) + message.testCases[i] = String(object.testCases[i]); + } + if (object.enableContinuousRun != null) + message.enableContinuousRun = Boolean(object.enableContinuousRun); + if (object.enablePredeploymentRun != null) + message.enablePredeploymentRun = Boolean(object.enablePredeploymentRun); return message; }; /** - * Creates a plain object from an ExcludedPhrase message. Also converts values to other types if specified. + * Creates a plain object from a TestCasesConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase + * @memberof google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig * @static - * @param {google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase} message ExcludedPhrase + * @param {google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig} message TestCasesConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExcludedPhrase.toObject = function toObject(message, options) { + TestCasesConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.value = ""; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; + if (options.arrays || options.defaults) + object.testCases = []; + if (options.defaults) { + object.enableContinuousRun = false; + object.enablePredeploymentRun = false; + } + if (message.testCases && message.testCases.length) { + object.testCases = []; + for (var j = 0; j < message.testCases.length; ++j) + object.testCases[j] = message.testCases[j]; + } + if (message.enableContinuousRun != null && message.hasOwnProperty("enableContinuousRun")) + object.enableContinuousRun = message.enableContinuousRun; + if (message.enablePredeploymentRun != null && message.hasOwnProperty("enablePredeploymentRun")) + object.enablePredeploymentRun = message.enablePredeploymentRun; return object; }; /** - * Converts this ExcludedPhrase to JSON. + * Converts this TestCasesConfig to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase + * @memberof google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig * @instance * @returns {Object.} JSON object */ - ExcludedPhrase.prototype.toJSON = function toJSON() { + TestCasesConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExcludedPhrase; + return TestCasesConfig; })(); - return EntityType; + return Environment; })(); - v3.ListEntityTypesRequest = (function() { + v3.ListEnvironmentsRequest = (function() { /** - * Properties of a ListEntityTypesRequest. + * Properties of a ListEnvironmentsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListEntityTypesRequest - * @property {string|null} [parent] ListEntityTypesRequest parent - * @property {string|null} [languageCode] ListEntityTypesRequest languageCode - * @property {number|null} [pageSize] ListEntityTypesRequest pageSize - * @property {string|null} [pageToken] ListEntityTypesRequest pageToken + * @interface IListEnvironmentsRequest + * @property {string|null} [parent] ListEnvironmentsRequest parent + * @property {number|null} [pageSize] ListEnvironmentsRequest pageSize + * @property {string|null} [pageToken] ListEnvironmentsRequest pageToken */ /** - * Constructs a new ListEntityTypesRequest. + * Constructs a new ListEnvironmentsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListEntityTypesRequest. - * @implements IListEntityTypesRequest + * @classdesc Represents a ListEnvironmentsRequest. + * @implements IListEnvironmentsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest=} [properties] Properties to set */ - function ListEntityTypesRequest(properties) { + function ListEnvironmentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23396,100 +23722,90 @@ } /** - * ListEntityTypesRequest parent. + * ListEnvironmentsRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest - * @instance - */ - ListEntityTypesRequest.prototype.parent = ""; - - /** - * ListEntityTypesRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest * @instance */ - ListEntityTypesRequest.prototype.languageCode = ""; + ListEnvironmentsRequest.prototype.parent = ""; /** - * ListEntityTypesRequest pageSize. + * ListEnvironmentsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest * @instance */ - ListEntityTypesRequest.prototype.pageSize = 0; + ListEnvironmentsRequest.prototype.pageSize = 0; /** - * ListEntityTypesRequest pageToken. + * ListEnvironmentsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest * @instance */ - ListEntityTypesRequest.prototype.pageToken = ""; + ListEnvironmentsRequest.prototype.pageToken = ""; /** - * Creates a new ListEntityTypesRequest instance using the specified properties. + * Creates a new ListEnvironmentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListEntityTypesRequest} ListEntityTypesRequest instance + * @param {google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest} ListEnvironmentsRequest instance */ - ListEntityTypesRequest.create = function create(properties) { - return new ListEntityTypesRequest(properties); + ListEnvironmentsRequest.create = function create(properties) { + return new ListEnvironmentsRequest(properties); }; /** - * Encodes the specified ListEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEntityTypesRequest.verify|verify} messages. + * Encodes the specified ListEnvironmentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesRequest} message ListEntityTypesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest} message ListEnvironmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEntityTypesRequest.encode = function encode(message, writer) { + ListEnvironmentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified ListEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEntityTypesRequest.verify|verify} messages. + * Encodes the specified ListEnvironmentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesRequest} message ListEntityTypesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest} message ListEnvironmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEntityTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListEnvironmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListEntityTypesRequest message from the specified reader or buffer. + * Decodes a ListEnvironmentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListEntityTypesRequest} ListEntityTypesRequest + * @returns {google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest} ListEnvironmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEntityTypesRequest.decode = function decode(reader, length) { + ListEnvironmentsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -23497,12 +23813,9 @@ message.parent = reader.string(); break; case 2: - message.languageCode = reader.string(); - break; - case 3: message.pageSize = reader.int32(); break; - case 4: + case 3: message.pageToken = reader.string(); break; default: @@ -23514,38 +23827,35 @@ }; /** - * Decodes a ListEntityTypesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListEnvironmentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListEntityTypesRequest} ListEntityTypesRequest + * @returns {google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest} ListEnvironmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEntityTypesRequest.decodeDelimited = function decodeDelimited(reader) { + ListEnvironmentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListEntityTypesRequest message. + * Verifies a ListEnvironmentsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListEntityTypesRequest.verify = function verify(message) { + ListEnvironmentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; if (message.pageSize != null && message.hasOwnProperty("pageSize")) if (!$util.isInteger(message.pageSize)) return "pageSize: integer expected"; @@ -23556,21 +23866,19 @@ }; /** - * Creates a ListEntityTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListEnvironmentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListEntityTypesRequest} ListEntityTypesRequest + * @returns {google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest} ListEnvironmentsRequest */ - ListEntityTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest) + ListEnvironmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); if (object.pageSize != null) message.pageSize = object.pageSize | 0; if (object.pageToken != null) @@ -23579,28 +23887,25 @@ }; /** - * Creates a plain object from a ListEntityTypesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListEnvironmentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ListEntityTypesRequest} message ListEntityTypesRequest + * @param {google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest} message ListEnvironmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListEntityTypesRequest.toObject = function toObject(message, options) { + ListEnvironmentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.languageCode = ""; object.pageSize = 0; object.pageToken = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; if (message.pageSize != null && message.hasOwnProperty("pageSize")) object.pageSize = message.pageSize; if (message.pageToken != null && message.hasOwnProperty("pageToken")) @@ -23609,39 +23914,39 @@ }; /** - * Converts this ListEntityTypesRequest to JSON. + * Converts this ListEnvironmentsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest * @instance * @returns {Object.} JSON object */ - ListEntityTypesRequest.prototype.toJSON = function toJSON() { + ListEnvironmentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListEntityTypesRequest; + return ListEnvironmentsRequest; })(); - v3.ListEntityTypesResponse = (function() { + v3.ListEnvironmentsResponse = (function() { /** - * Properties of a ListEntityTypesResponse. + * Properties of a ListEnvironmentsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListEntityTypesResponse - * @property {Array.|null} [entityTypes] ListEntityTypesResponse entityTypes - * @property {string|null} [nextPageToken] ListEntityTypesResponse nextPageToken - */ - + * @interface IListEnvironmentsResponse + * @property {Array.|null} [environments] ListEnvironmentsResponse environments + * @property {string|null} [nextPageToken] ListEnvironmentsResponse nextPageToken + */ + /** - * Constructs a new ListEntityTypesResponse. + * Constructs a new ListEnvironmentsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListEntityTypesResponse. - * @implements IListEntityTypesResponse + * @classdesc Represents a ListEnvironmentsResponse. + * @implements IListEnvironmentsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListEnvironmentsResponse=} [properties] Properties to set */ - function ListEntityTypesResponse(properties) { - this.entityTypes = []; + function ListEnvironmentsResponse(properties) { + this.environments = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23649,88 +23954,88 @@ } /** - * ListEntityTypesResponse entityTypes. - * @member {Array.} entityTypes - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse + * ListEnvironmentsResponse environments. + * @member {Array.} environments + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse * @instance */ - ListEntityTypesResponse.prototype.entityTypes = $util.emptyArray; + ListEnvironmentsResponse.prototype.environments = $util.emptyArray; /** - * ListEntityTypesResponse nextPageToken. + * ListEnvironmentsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse * @instance */ - ListEntityTypesResponse.prototype.nextPageToken = ""; + ListEnvironmentsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListEntityTypesResponse instance using the specified properties. + * Creates a new ListEnvironmentsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListEntityTypesResponse} ListEntityTypesResponse instance + * @param {google.cloud.dialogflow.cx.v3.IListEnvironmentsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse} ListEnvironmentsResponse instance */ - ListEntityTypesResponse.create = function create(properties) { - return new ListEntityTypesResponse(properties); + ListEnvironmentsResponse.create = function create(properties) { + return new ListEnvironmentsResponse(properties); }; /** - * Encodes the specified ListEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEntityTypesResponse.verify|verify} messages. + * Encodes the specified ListEnvironmentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesResponse} message ListEntityTypesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListEnvironmentsResponse} message ListEnvironmentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEntityTypesResponse.encode = function encode(message, writer) { + ListEnvironmentsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entityTypes != null && message.entityTypes.length) - for (var i = 0; i < message.entityTypes.length; ++i) - $root.google.cloud.dialogflow.cx.v3.EntityType.encode(message.entityTypes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.environments != null && message.environments.length) + for (var i = 0; i < message.environments.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Environment.encode(message.environments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEntityTypesResponse.verify|verify} messages. + * Encodes the specified ListEnvironmentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesResponse} message ListEntityTypesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListEnvironmentsResponse} message ListEnvironmentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEntityTypesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListEnvironmentsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListEntityTypesResponse message from the specified reader or buffer. + * Decodes a ListEnvironmentsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListEntityTypesResponse} ListEntityTypesResponse + * @returns {google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse} ListEnvironmentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEntityTypesResponse.decode = function decode(reader, length) { + ListEnvironmentsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListEntityTypesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.entityTypes && message.entityTypes.length)) - message.entityTypes = []; - message.entityTypes.push($root.google.cloud.dialogflow.cx.v3.EntityType.decode(reader, reader.uint32())); + if (!(message.environments && message.environments.length)) + message.environments = []; + message.environments.push($root.google.cloud.dialogflow.cx.v3.Environment.decode(reader, reader.uint32())); break; case 2: message.nextPageToken = reader.string(); @@ -23744,39 +24049,39 @@ }; /** - * Decodes a ListEntityTypesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListEnvironmentsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListEntityTypesResponse} ListEntityTypesResponse + * @returns {google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse} ListEnvironmentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEntityTypesResponse.decodeDelimited = function decodeDelimited(reader) { + ListEnvironmentsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListEntityTypesResponse message. + * Verifies a ListEnvironmentsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListEntityTypesResponse.verify = function verify(message) { + ListEnvironmentsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.entityTypes != null && message.hasOwnProperty("entityTypes")) { - if (!Array.isArray(message.entityTypes)) - return "entityTypes: array expected"; - for (var i = 0; i < message.entityTypes.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.EntityType.verify(message.entityTypes[i]); + if (message.environments != null && message.hasOwnProperty("environments")) { + if (!Array.isArray(message.environments)) + return "environments: array expected"; + for (var i = 0; i < message.environments.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Environment.verify(message.environments[i]); if (error) - return "entityTypes." + error; + return "environments." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -23786,25 +24091,25 @@ }; /** - * Creates a ListEntityTypesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListEnvironmentsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListEntityTypesResponse} ListEntityTypesResponse + * @returns {google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse} ListEnvironmentsResponse */ - ListEntityTypesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListEntityTypesResponse) + ListEnvironmentsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListEntityTypesResponse(); - if (object.entityTypes) { - if (!Array.isArray(object.entityTypes)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ListEntityTypesResponse.entityTypes: array expected"); - message.entityTypes = []; - for (var i = 0; i < object.entityTypes.length; ++i) { - if (typeof object.entityTypes[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ListEntityTypesResponse.entityTypes: object expected"); - message.entityTypes[i] = $root.google.cloud.dialogflow.cx.v3.EntityType.fromObject(object.entityTypes[i]); + var message = new $root.google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse(); + if (object.environments) { + if (!Array.isArray(object.environments)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse.environments: array expected"); + message.environments = []; + for (var i = 0; i < object.environments.length; ++i) { + if (typeof object.environments[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse.environments: object expected"); + message.environments[i] = $root.google.cloud.dialogflow.cx.v3.Environment.fromObject(object.environments[i]); } } if (object.nextPageToken != null) @@ -23813,26 +24118,26 @@ }; /** - * Creates a plain object from a ListEntityTypesResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListEnvironmentsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ListEntityTypesResponse} message ListEntityTypesResponse + * @param {google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse} message ListEnvironmentsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListEntityTypesResponse.toObject = function toObject(message, options) { + ListEnvironmentsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.entityTypes = []; + object.environments = []; if (options.defaults) object.nextPageToken = ""; - if (message.entityTypes && message.entityTypes.length) { - object.entityTypes = []; - for (var j = 0; j < message.entityTypes.length; ++j) - object.entityTypes[j] = $root.google.cloud.dialogflow.cx.v3.EntityType.toObject(message.entityTypes[j], options); + if (message.environments && message.environments.length) { + object.environments = []; + for (var j = 0; j < message.environments.length; ++j) + object.environments[j] = $root.google.cloud.dialogflow.cx.v3.Environment.toObject(message.environments[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -23840,38 +24145,37 @@ }; /** - * Converts this ListEntityTypesResponse to JSON. + * Converts this ListEnvironmentsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse * @instance * @returns {Object.} JSON object */ - ListEntityTypesResponse.prototype.toJSON = function toJSON() { + ListEnvironmentsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListEntityTypesResponse; + return ListEnvironmentsResponse; })(); - v3.GetEntityTypeRequest = (function() { + v3.GetEnvironmentRequest = (function() { /** - * Properties of a GetEntityTypeRequest. + * Properties of a GetEnvironmentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IGetEntityTypeRequest - * @property {string|null} [name] GetEntityTypeRequest name - * @property {string|null} [languageCode] GetEntityTypeRequest languageCode + * @interface IGetEnvironmentRequest + * @property {string|null} [name] GetEnvironmentRequest name */ /** - * Constructs a new GetEntityTypeRequest. + * Constructs a new GetEnvironmentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a GetEntityTypeRequest. - * @implements IGetEntityTypeRequest + * @classdesc Represents a GetEnvironmentRequest. + * @implements IGetEnvironmentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest=} [properties] Properties to set */ - function GetEntityTypeRequest(properties) { + function GetEnvironmentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23879,89 +24183,76 @@ } /** - * GetEntityTypeRequest name. + * GetEnvironmentRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest - * @instance - */ - GetEntityTypeRequest.prototype.name = ""; - - /** - * GetEntityTypeRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEnvironmentRequest * @instance */ - GetEntityTypeRequest.prototype.languageCode = ""; + GetEnvironmentRequest.prototype.name = ""; /** - * Creates a new GetEntityTypeRequest instance using the specified properties. + * Creates a new GetEnvironmentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.GetEntityTypeRequest} GetEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetEnvironmentRequest} GetEnvironmentRequest instance */ - GetEntityTypeRequest.create = function create(properties) { - return new GetEntityTypeRequest(properties); + GetEnvironmentRequest.create = function create(properties) { + return new GetEnvironmentRequest(properties); }; /** - * Encodes the specified GetEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetEntityTypeRequest.verify|verify} messages. + * Encodes the specified GetEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetEnvironmentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest} message GetEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest} message GetEnvironmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetEntityTypeRequest.encode = function encode(message, writer) { + GetEnvironmentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); return writer; }; /** - * Encodes the specified GetEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetEntityTypeRequest.verify|verify} messages. + * Encodes the specified GetEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetEnvironmentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest} message GetEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest} message GetEnvironmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetEntityTypeRequest message from the specified reader or buffer. + * Decodes a GetEnvironmentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEnvironmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.GetEntityTypeRequest} GetEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.GetEnvironmentRequest} GetEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetEntityTypeRequest.decode = function decode(reader, length) { + GetEnvironmentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; - case 2: - message.languageCode = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -23971,118 +24262,108 @@ }; /** - * Decodes a GetEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a GetEnvironmentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEnvironmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.GetEntityTypeRequest} GetEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.GetEnvironmentRequest} GetEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + GetEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetEntityTypeRequest message. + * Verifies a GetEnvironmentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEnvironmentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetEntityTypeRequest.verify = function verify(message) { + GetEnvironmentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; return null; }; /** - * Creates a GetEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetEnvironmentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEnvironmentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.GetEntityTypeRequest} GetEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.GetEnvironmentRequest} GetEnvironmentRequest */ - GetEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest) + GetEnvironmentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest(); if (object.name != null) message.name = String(object.name); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a GetEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetEnvironmentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.GetEntityTypeRequest} message GetEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3.GetEnvironmentRequest} message GetEnvironmentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetEntityTypeRequest.toObject = function toObject(message, options) { + GetEnvironmentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { + if (options.defaults) object.name = ""; - object.languageCode = ""; - } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; return object; }; /** - * Converts this GetEntityTypeRequest to JSON. + * Converts this GetEnvironmentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEnvironmentRequest * @instance * @returns {Object.} JSON object */ - GetEntityTypeRequest.prototype.toJSON = function toJSON() { + GetEnvironmentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetEntityTypeRequest; + return GetEnvironmentRequest; })(); - v3.CreateEntityTypeRequest = (function() { + v3.CreateEnvironmentRequest = (function() { /** - * Properties of a CreateEntityTypeRequest. + * Properties of a CreateEnvironmentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ICreateEntityTypeRequest - * @property {string|null} [parent] CreateEntityTypeRequest parent - * @property {google.cloud.dialogflow.cx.v3.IEntityType|null} [entityType] CreateEntityTypeRequest entityType - * @property {string|null} [languageCode] CreateEntityTypeRequest languageCode + * @interface ICreateEnvironmentRequest + * @property {string|null} [parent] CreateEnvironmentRequest parent + * @property {google.cloud.dialogflow.cx.v3.IEnvironment|null} [environment] CreateEnvironmentRequest environment */ /** - * Constructs a new CreateEntityTypeRequest. + * Constructs a new CreateEnvironmentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CreateEntityTypeRequest. - * @implements ICreateEntityTypeRequest + * @classdesc Represents a CreateEnvironmentRequest. + * @implements ICreateEnvironmentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest=} [properties] Properties to set */ - function CreateEntityTypeRequest(properties) { + function CreateEnvironmentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24090,90 +24371,80 @@ } /** - * CreateEntityTypeRequest parent. + * CreateEnvironmentRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest - * @instance - */ - CreateEntityTypeRequest.prototype.parent = ""; - - /** - * CreateEntityTypeRequest entityType. - * @member {google.cloud.dialogflow.cx.v3.IEntityType|null|undefined} entityType - * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest * @instance */ - CreateEntityTypeRequest.prototype.entityType = null; + CreateEnvironmentRequest.prototype.parent = ""; /** - * CreateEntityTypeRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest + * CreateEnvironmentRequest environment. + * @member {google.cloud.dialogflow.cx.v3.IEnvironment|null|undefined} environment + * @memberof google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest * @instance */ - CreateEntityTypeRequest.prototype.languageCode = ""; + CreateEnvironmentRequest.prototype.environment = null; /** - * Creates a new CreateEntityTypeRequest instance using the specified properties. + * Creates a new CreateEnvironmentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest} CreateEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest} CreateEnvironmentRequest instance */ - CreateEntityTypeRequest.create = function create(properties) { - return new CreateEntityTypeRequest(properties); + CreateEnvironmentRequest.create = function create(properties) { + return new CreateEnvironmentRequest(properties); }; /** - * Encodes the specified CreateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest.verify|verify} messages. + * Encodes the specified CreateEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest} message CreateEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest} message CreateEnvironmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateEntityTypeRequest.encode = function encode(message, writer) { + CreateEnvironmentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) - $root.google.cloud.dialogflow.cx.v3.EntityType.encode(message.entityType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + $root.google.cloud.dialogflow.cx.v3.Environment.encode(message.environment, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest.verify|verify} messages. + * Encodes the specified CreateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest} message CreateEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest} message CreateEnvironmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateEntityTypeRequest message from the specified reader or buffer. + * Decodes a CreateEnvironmentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest} CreateEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest} CreateEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateEntityTypeRequest.decode = function decode(reader, length) { + CreateEnvironmentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -24181,10 +24452,7 @@ message.parent = reader.string(); break; case 2: - message.entityType = $root.google.cloud.dialogflow.cx.v3.EntityType.decode(reader, reader.uint32()); - break; - case 3: - message.languageCode = reader.string(); + message.environment = $root.google.cloud.dialogflow.cx.v3.Environment.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -24195,131 +24463,122 @@ }; /** - * Decodes a CreateEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateEnvironmentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest} CreateEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest} CreateEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + CreateEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateEntityTypeRequest message. + * Verifies a CreateEnvironmentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateEntityTypeRequest.verify = function verify(message) { + CreateEnvironmentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.entityType != null && message.hasOwnProperty("entityType")) { - var error = $root.google.cloud.dialogflow.cx.v3.EntityType.verify(message.entityType); + if (message.environment != null && message.hasOwnProperty("environment")) { + var error = $root.google.cloud.dialogflow.cx.v3.Environment.verify(message.environment); if (error) - return "entityType." + error; + return "environment." + error; } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; return null; }; /** - * Creates a CreateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest} CreateEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest} CreateEnvironmentRequest */ - CreateEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest) + CreateEnvironmentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.entityType != null) { - if (typeof object.entityType !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest.entityType: object expected"); - message.entityType = $root.google.cloud.dialogflow.cx.v3.EntityType.fromObject(object.entityType); + if (object.environment != null) { + if (typeof object.environment !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest.environment: object expected"); + message.environment = $root.google.cloud.dialogflow.cx.v3.Environment.fromObject(object.environment); } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a CreateEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateEnvironmentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest} message CreateEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest} message CreateEnvironmentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateEntityTypeRequest.toObject = function toObject(message, options) { + CreateEnvironmentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.entityType = null; - object.languageCode = ""; + object.environment = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.entityType != null && message.hasOwnProperty("entityType")) - object.entityType = $root.google.cloud.dialogflow.cx.v3.EntityType.toObject(message.entityType, options); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = $root.google.cloud.dialogflow.cx.v3.Environment.toObject(message.environment, options); return object; }; /** - * Converts this CreateEntityTypeRequest to JSON. + * Converts this CreateEnvironmentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest * @instance * @returns {Object.} JSON object */ - CreateEntityTypeRequest.prototype.toJSON = function toJSON() { + CreateEnvironmentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateEntityTypeRequest; + return CreateEnvironmentRequest; })(); - v3.UpdateEntityTypeRequest = (function() { + v3.UpdateEnvironmentRequest = (function() { /** - * Properties of an UpdateEntityTypeRequest. + * Properties of an UpdateEnvironmentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IUpdateEntityTypeRequest - * @property {google.cloud.dialogflow.cx.v3.IEntityType|null} [entityType] UpdateEntityTypeRequest entityType - * @property {string|null} [languageCode] UpdateEntityTypeRequest languageCode - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateEntityTypeRequest updateMask + * @interface IUpdateEnvironmentRequest + * @property {google.cloud.dialogflow.cx.v3.IEnvironment|null} [environment] UpdateEnvironmentRequest environment + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateEnvironmentRequest updateMask */ /** - * Constructs a new UpdateEntityTypeRequest. + * Constructs a new UpdateEnvironmentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an UpdateEntityTypeRequest. - * @implements IUpdateEntityTypeRequest + * @classdesc Represents an UpdateEnvironmentRequest. + * @implements IUpdateEnvironmentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest=} [properties] Properties to set */ - function UpdateEntityTypeRequest(properties) { + function UpdateEnvironmentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24327,100 +24586,87 @@ } /** - * UpdateEntityTypeRequest entityType. - * @member {google.cloud.dialogflow.cx.v3.IEntityType|null|undefined} entityType - * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest - * @instance - */ - UpdateEntityTypeRequest.prototype.entityType = null; - - /** - * UpdateEntityTypeRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest + * UpdateEnvironmentRequest environment. + * @member {google.cloud.dialogflow.cx.v3.IEnvironment|null|undefined} environment + * @memberof google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest * @instance */ - UpdateEntityTypeRequest.prototype.languageCode = ""; + UpdateEnvironmentRequest.prototype.environment = null; /** - * UpdateEntityTypeRequest updateMask. + * UpdateEnvironmentRequest updateMask. * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest * @instance */ - UpdateEntityTypeRequest.prototype.updateMask = null; + UpdateEnvironmentRequest.prototype.updateMask = null; /** - * Creates a new UpdateEntityTypeRequest instance using the specified properties. + * Creates a new UpdateEnvironmentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest} UpdateEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest} UpdateEnvironmentRequest instance */ - UpdateEntityTypeRequest.create = function create(properties) { - return new UpdateEntityTypeRequest(properties); + UpdateEnvironmentRequest.create = function create(properties) { + return new UpdateEnvironmentRequest(properties); }; /** - * Encodes the specified UpdateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest.verify|verify} messages. + * Encodes the specified UpdateEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest} message UpdateEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest} message UpdateEnvironmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateEntityTypeRequest.encode = function encode(message, writer) { + UpdateEnvironmentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) - $root.google.cloud.dialogflow.cx.v3.EntityType.encode(message.entityType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + $root.google.cloud.dialogflow.cx.v3.Environment.encode(message.environment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest.verify|verify} messages. + * Encodes the specified UpdateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest} message UpdateEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest} message UpdateEnvironmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer. + * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest} UpdateEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest} UpdateEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateEntityTypeRequest.decode = function decode(reader, length) { + UpdateEnvironmentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.entityType = $root.google.cloud.dialogflow.cx.v3.EntityType.decode(reader, reader.uint32()); + message.environment = $root.google.cloud.dialogflow.cx.v3.Environment.decode(reader, reader.uint32()); break; case 2: - message.languageCode = reader.string(); - break; - case 3: message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: @@ -24432,40 +24678,37 @@ }; /** - * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest} UpdateEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest} UpdateEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateEntityTypeRequest message. + * Verifies an UpdateEnvironmentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateEntityTypeRequest.verify = function verify(message) { + UpdateEnvironmentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.entityType != null && message.hasOwnProperty("entityType")) { - var error = $root.google.cloud.dialogflow.cx.v3.EntityType.verify(message.entityType); + if (message.environment != null && message.hasOwnProperty("environment")) { + var error = $root.google.cloud.dialogflow.cx.v3.Environment.verify(message.environment); if (error) - return "entityType." + error; + return "environment." + error; } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; if (message.updateMask != null && message.hasOwnProperty("updateMask")) { var error = $root.google.protobuf.FieldMask.verify(message.updateMask); if (error) @@ -24475,92 +24718,86 @@ }; /** - * Creates an UpdateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest} UpdateEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest} UpdateEnvironmentRequest */ - UpdateEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest) + UpdateEnvironmentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest(); - if (object.entityType != null) { - if (typeof object.entityType !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest.entityType: object expected"); - message.entityType = $root.google.cloud.dialogflow.cx.v3.EntityType.fromObject(object.entityType); + var message = new $root.google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest(); + if (object.environment != null) { + if (typeof object.environment !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest.environment: object expected"); + message.environment = $root.google.cloud.dialogflow.cx.v3.Environment.fromObject(object.environment); } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); if (object.updateMask != null) { if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest.updateMask: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest.updateMask: object expected"); message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from an UpdateEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateEnvironmentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest} message UpdateEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest} message UpdateEnvironmentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateEntityTypeRequest.toObject = function toObject(message, options) { + UpdateEnvironmentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.entityType = null; - object.languageCode = ""; + object.environment = null; object.updateMask = null; } - if (message.entityType != null && message.hasOwnProperty("entityType")) - object.entityType = $root.google.cloud.dialogflow.cx.v3.EntityType.toObject(message.entityType, options); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = $root.google.cloud.dialogflow.cx.v3.Environment.toObject(message.environment, options); if (message.updateMask != null && message.hasOwnProperty("updateMask")) object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this UpdateEntityTypeRequest to JSON. + * Converts this UpdateEnvironmentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest * @instance * @returns {Object.} JSON object */ - UpdateEntityTypeRequest.prototype.toJSON = function toJSON() { + UpdateEnvironmentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateEntityTypeRequest; + return UpdateEnvironmentRequest; })(); - v3.DeleteEntityTypeRequest = (function() { + v3.DeleteEnvironmentRequest = (function() { /** - * Properties of a DeleteEntityTypeRequest. + * Properties of a DeleteEnvironmentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDeleteEntityTypeRequest - * @property {string|null} [name] DeleteEntityTypeRequest name - * @property {boolean|null} [force] DeleteEntityTypeRequest force + * @interface IDeleteEnvironmentRequest + * @property {string|null} [name] DeleteEnvironmentRequest name */ /** - * Constructs a new DeleteEntityTypeRequest. + * Constructs a new DeleteEnvironmentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DeleteEntityTypeRequest. - * @implements IDeleteEntityTypeRequest + * @classdesc Represents a DeleteEnvironmentRequest. + * @implements IDeleteEnvironmentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest=} [properties] Properties to set */ - function DeleteEntityTypeRequest(properties) { + function DeleteEnvironmentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24568,89 +24805,76 @@ } /** - * DeleteEntityTypeRequest name. + * DeleteEnvironmentRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest - * @instance - */ - DeleteEntityTypeRequest.prototype.name = ""; - - /** - * DeleteEntityTypeRequest force. - * @member {boolean} force - * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest * @instance */ - DeleteEntityTypeRequest.prototype.force = false; + DeleteEnvironmentRequest.prototype.name = ""; /** - * Creates a new DeleteEntityTypeRequest instance using the specified properties. + * Creates a new DeleteEnvironmentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest} DeleteEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest} DeleteEnvironmentRequest instance */ - DeleteEntityTypeRequest.create = function create(properties) { - return new DeleteEntityTypeRequest(properties); + DeleteEnvironmentRequest.create = function create(properties) { + return new DeleteEnvironmentRequest(properties); }; /** - * Encodes the specified DeleteEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest.verify|verify} messages. + * Encodes the specified DeleteEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest} message DeleteEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest} message DeleteEnvironmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteEntityTypeRequest.encode = function encode(message, writer) { + DeleteEnvironmentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); return writer; }; /** - * Encodes the specified DeleteEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest.verify|verify} messages. + * Encodes the specified DeleteEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest} message DeleteEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest} message DeleteEnvironmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer. + * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest} DeleteEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest} DeleteEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteEntityTypeRequest.decode = function decode(reader, length) { + DeleteEnvironmentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; - case 2: - message.force = reader.bool(); - break; default: reader.skipType(tag & 7); break; @@ -24660,454 +24884,574 @@ }; /** - * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest} DeleteEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest} DeleteEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteEntityTypeRequest message. + * Verifies a DeleteEnvironmentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteEntityTypeRequest.verify = function verify(message) { + DeleteEnvironmentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; return null; }; /** - * Creates a DeleteEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteEnvironmentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest} DeleteEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest} DeleteEnvironmentRequest */ - DeleteEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest) + DeleteEnvironmentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest(); if (object.name != null) message.name = String(object.name); - if (object.force != null) - message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from a DeleteEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteEnvironmentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest} message DeleteEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest} message DeleteEnvironmentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteEntityTypeRequest.toObject = function toObject(message, options) { + DeleteEnvironmentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { + if (options.defaults) object.name = ""; - object.force = false; - } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; return object; }; /** - * Converts this DeleteEntityTypeRequest to JSON. + * Converts this DeleteEnvironmentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest * @instance * @returns {Object.} JSON object */ - DeleteEntityTypeRequest.prototype.toJSON = function toJSON() { + DeleteEnvironmentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteEntityTypeRequest; + return DeleteEnvironmentRequest; })(); - v3.Environments = (function() { + v3.LookupEnvironmentHistoryRequest = (function() { /** - * Constructs a new Environments service. + * Properties of a LookupEnvironmentHistoryRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an Environments - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Environments(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Environments.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Environments; - - /** - * Creates new Environments service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Environments - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {Environments} RPC service. Useful where requests and/or responses are streamed. + * @interface ILookupEnvironmentHistoryRequest + * @property {string|null} [name] LookupEnvironmentHistoryRequest name + * @property {number|null} [pageSize] LookupEnvironmentHistoryRequest pageSize + * @property {string|null} [pageToken] LookupEnvironmentHistoryRequest pageToken */ - Environments.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#listEnvironments}. - * @memberof google.cloud.dialogflow.cx.v3.Environments - * @typedef ListEnvironmentsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse} [response] ListEnvironmentsResponse + * Constructs a new LookupEnvironmentHistoryRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a LookupEnvironmentHistoryRequest. + * @implements ILookupEnvironmentHistoryRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest=} [properties] Properties to set */ + function LookupEnvironmentHistoryRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls ListEnvironments. - * @function listEnvironments - * @memberof google.cloud.dialogflow.cx.v3.Environments + * LookupEnvironmentHistoryRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest * @instance - * @param {google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest} request ListEnvironmentsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Environments.ListEnvironmentsCallback} callback Node-style callback called with the error, if any, and ListEnvironmentsResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(Environments.prototype.listEnvironments = function listEnvironments(request, callback) { - return this.rpcCall(listEnvironments, $root.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest, $root.google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse, request, callback); - }, "name", { value: "ListEnvironments" }); + LookupEnvironmentHistoryRequest.prototype.name = ""; /** - * Calls ListEnvironments. - * @function listEnvironments - * @memberof google.cloud.dialogflow.cx.v3.Environments + * LookupEnvironmentHistoryRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest * @instance - * @param {google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest} request ListEnvironmentsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#getEnvironment}. - * @memberof google.cloud.dialogflow.cx.v3.Environments - * @typedef GetEnvironmentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.Environment} [response] Environment */ + LookupEnvironmentHistoryRequest.prototype.pageSize = 0; /** - * Calls GetEnvironment. - * @function getEnvironment - * @memberof google.cloud.dialogflow.cx.v3.Environments + * LookupEnvironmentHistoryRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest} request GetEnvironmentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Environments.GetEnvironmentCallback} callback Node-style callback called with the error, if any, and Environment - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(Environments.prototype.getEnvironment = function getEnvironment(request, callback) { - return this.rpcCall(getEnvironment, $root.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest, $root.google.cloud.dialogflow.cx.v3.Environment, request, callback); - }, "name", { value: "GetEnvironment" }); + LookupEnvironmentHistoryRequest.prototype.pageToken = ""; /** - * Calls GetEnvironment. - * @function getEnvironment - * @memberof google.cloud.dialogflow.cx.v3.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest} request GetEnvironmentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new LookupEnvironmentHistoryRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest instance */ + LookupEnvironmentHistoryRequest.create = function create(properties) { + return new LookupEnvironmentHistoryRequest(properties); + }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#createEnvironment}. - * @memberof google.cloud.dialogflow.cx.v3.Environments - * @typedef CreateEnvironmentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Encodes the specified LookupEnvironmentHistoryRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest} message LookupEnvironmentHistoryRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + LookupEnvironmentHistoryRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + return writer; + }; /** - * Calls CreateEnvironment. - * @function createEnvironment - * @memberof google.cloud.dialogflow.cx.v3.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest} request CreateEnvironmentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Environments.CreateEnvironmentCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Encodes the specified LookupEnvironmentHistoryRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest} message LookupEnvironmentHistoryRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(Environments.prototype.createEnvironment = function createEnvironment(request, callback) { - return this.rpcCall(createEnvironment, $root.google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateEnvironment" }); + LookupEnvironmentHistoryRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls CreateEnvironment. - * @function createEnvironment - * @memberof google.cloud.dialogflow.cx.v3.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest} request CreateEnvironmentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a LookupEnvironmentHistoryRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + LookupEnvironmentHistoryRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#updateEnvironment}. - * @memberof google.cloud.dialogflow.cx.v3.Environments - * @typedef UpdateEnvironmentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Decodes a LookupEnvironmentHistoryRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + LookupEnvironmentHistoryRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls UpdateEnvironment. - * @function updateEnvironment - * @memberof google.cloud.dialogflow.cx.v3.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest} request UpdateEnvironmentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Environments.UpdateEnvironmentCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Verifies a LookupEnvironmentHistoryRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(Environments.prototype.updateEnvironment = function updateEnvironment(request, callback) { - return this.rpcCall(updateEnvironment, $root.google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "UpdateEnvironment" }); + LookupEnvironmentHistoryRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + return null; + }; /** - * Calls UpdateEnvironment. - * @function updateEnvironment - * @memberof google.cloud.dialogflow.cx.v3.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest} request UpdateEnvironmentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a LookupEnvironmentHistoryRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest */ + LookupEnvironmentHistoryRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + return message; + }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#deleteEnvironment}. - * @memberof google.cloud.dialogflow.cx.v3.Environments - * @typedef DeleteEnvironmentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Creates a plain object from a LookupEnvironmentHistoryRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest} message LookupEnvironmentHistoryRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + LookupEnvironmentHistoryRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + return object; + }; /** - * Calls DeleteEnvironment. - * @function deleteEnvironment - * @memberof google.cloud.dialogflow.cx.v3.Environments + * Converts this LookupEnvironmentHistoryRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest} request DeleteEnvironmentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Environments.DeleteEnvironmentCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(Environments.prototype.deleteEnvironment = function deleteEnvironment(request, callback) { - return this.rpcCall(deleteEnvironment, $root.google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteEnvironment" }); + LookupEnvironmentHistoryRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return LookupEnvironmentHistoryRequest; + })(); + + v3.LookupEnvironmentHistoryResponse = (function() { /** - * Calls DeleteEnvironment. - * @function deleteEnvironment - * @memberof google.cloud.dialogflow.cx.v3.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest} request DeleteEnvironmentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of a LookupEnvironmentHistoryResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface ILookupEnvironmentHistoryResponse + * @property {Array.|null} [environments] LookupEnvironmentHistoryResponse environments + * @property {string|null} [nextPageToken] LookupEnvironmentHistoryResponse nextPageToken */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#lookupEnvironmentHistory}. - * @memberof google.cloud.dialogflow.cx.v3.Environments - * @typedef LookupEnvironmentHistoryCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse} [response] LookupEnvironmentHistoryResponse + * Constructs a new LookupEnvironmentHistoryResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a LookupEnvironmentHistoryResponse. + * @implements ILookupEnvironmentHistoryResponse + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryResponse=} [properties] Properties to set */ + function LookupEnvironmentHistoryResponse(properties) { + this.environments = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls LookupEnvironmentHistory. - * @function lookupEnvironmentHistory - * @memberof google.cloud.dialogflow.cx.v3.Environments + * LookupEnvironmentHistoryResponse environments. + * @member {Array.} environments + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse * @instance - * @param {google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest} request LookupEnvironmentHistoryRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Environments.LookupEnvironmentHistoryCallback} callback Node-style callback called with the error, if any, and LookupEnvironmentHistoryResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(Environments.prototype.lookupEnvironmentHistory = function lookupEnvironmentHistory(request, callback) { - return this.rpcCall(lookupEnvironmentHistory, $root.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest, $root.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse, request, callback); - }, "name", { value: "LookupEnvironmentHistory" }); + LookupEnvironmentHistoryResponse.prototype.environments = $util.emptyArray; /** - * Calls LookupEnvironmentHistory. - * @function lookupEnvironmentHistory - * @memberof google.cloud.dialogflow.cx.v3.Environments + * LookupEnvironmentHistoryResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse * @instance - * @param {google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest} request LookupEnvironmentHistoryRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + LookupEnvironmentHistoryResponse.prototype.nextPageToken = ""; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#runContinuousTest}. - * @memberof google.cloud.dialogflow.cx.v3.Environments - * @typedef RunContinuousTestCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Creates a new LookupEnvironmentHistoryResponse instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse instance */ + LookupEnvironmentHistoryResponse.create = function create(properties) { + return new LookupEnvironmentHistoryResponse(properties); + }; /** - * Calls RunContinuousTest. - * @function runContinuousTest - * @memberof google.cloud.dialogflow.cx.v3.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3.IRunContinuousTestRequest} request RunContinuousTestRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Environments.RunContinuousTestCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Encodes the specified LookupEnvironmentHistoryResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryResponse} message LookupEnvironmentHistoryResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(Environments.prototype.runContinuousTest = function runContinuousTest(request, callback) { - return this.rpcCall(runContinuousTest, $root.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "RunContinuousTest" }); + LookupEnvironmentHistoryResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.environments != null && message.environments.length) + for (var i = 0; i < message.environments.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Environment.encode(message.environments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; /** - * Calls RunContinuousTest. - * @function runContinuousTest - * @memberof google.cloud.dialogflow.cx.v3.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3.IRunContinuousTestRequest} request RunContinuousTestRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified LookupEnvironmentHistoryResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryResponse} message LookupEnvironmentHistoryResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + LookupEnvironmentHistoryResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#listContinuousTestResults}. - * @memberof google.cloud.dialogflow.cx.v3.Environments - * @typedef ListContinuousTestResultsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse} [response] ListContinuousTestResultsResponse + * Decodes a LookupEnvironmentHistoryResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + LookupEnvironmentHistoryResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.environments && message.environments.length)) + message.environments = []; + message.environments.push($root.google.cloud.dialogflow.cx.v3.Environment.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls ListContinuousTestResults. - * @function listContinuousTestResults - * @memberof google.cloud.dialogflow.cx.v3.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3.IListContinuousTestResultsRequest} request ListContinuousTestResultsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Environments.ListContinuousTestResultsCallback} callback Node-style callback called with the error, if any, and ListContinuousTestResultsResponse - * @returns {undefined} - * @variation 1 + * Decodes a LookupEnvironmentHistoryResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(Environments.prototype.listContinuousTestResults = function listContinuousTestResults(request, callback) { - return this.rpcCall(listContinuousTestResults, $root.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest, $root.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse, request, callback); - }, "name", { value: "ListContinuousTestResults" }); + LookupEnvironmentHistoryResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls ListContinuousTestResults. - * @function listContinuousTestResults - * @memberof google.cloud.dialogflow.cx.v3.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3.IListContinuousTestResultsRequest} request ListContinuousTestResultsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a LookupEnvironmentHistoryResponse message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + LookupEnvironmentHistoryResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.environments != null && message.hasOwnProperty("environments")) { + if (!Array.isArray(message.environments)) + return "environments: array expected"; + for (var i = 0; i < message.environments.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Environment.verify(message.environments[i]); + if (error) + return "environments." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#deployFlow}. - * @memberof google.cloud.dialogflow.cx.v3.Environments - * @typedef DeployFlowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Creates a LookupEnvironmentHistoryResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse */ + LookupEnvironmentHistoryResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse(); + if (object.environments) { + if (!Array.isArray(object.environments)) + throw TypeError(".google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse.environments: array expected"); + message.environments = []; + for (var i = 0; i < object.environments.length; ++i) { + if (typeof object.environments[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse.environments: object expected"); + message.environments[i] = $root.google.cloud.dialogflow.cx.v3.Environment.fromObject(object.environments[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; /** - * Calls DeployFlow. - * @function deployFlow - * @memberof google.cloud.dialogflow.cx.v3.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeployFlowRequest} request DeployFlowRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Environments.DeployFlowCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Creates a plain object from a LookupEnvironmentHistoryResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse} message LookupEnvironmentHistoryResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(Environments.prototype.deployFlow = function deployFlow(request, callback) { - return this.rpcCall(deployFlow, $root.google.cloud.dialogflow.cx.v3.DeployFlowRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeployFlow" }); + LookupEnvironmentHistoryResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.environments = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.environments && message.environments.length) { + object.environments = []; + for (var j = 0; j < message.environments.length; ++j) + object.environments[j] = $root.google.cloud.dialogflow.cx.v3.Environment.toObject(message.environments[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; /** - * Calls DeployFlow. - * @function deployFlow - * @memberof google.cloud.dialogflow.cx.v3.Environments + * Converts this LookupEnvironmentHistoryResponse to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeployFlowRequest} request DeployFlowRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + LookupEnvironmentHistoryResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Environments; + return LookupEnvironmentHistoryResponse; })(); - v3.Environment = (function() { + v3.ContinuousTestResult = (function() { /** - * Properties of an Environment. + * Properties of a ContinuousTestResult. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IEnvironment - * @property {string|null} [name] Environment name - * @property {string|null} [displayName] Environment displayName - * @property {string|null} [description] Environment description - * @property {Array.|null} [versionConfigs] Environment versionConfigs - * @property {google.protobuf.ITimestamp|null} [updateTime] Environment updateTime - * @property {google.cloud.dialogflow.cx.v3.Environment.ITestCasesConfig|null} [testCasesConfig] Environment testCasesConfig + * @interface IContinuousTestResult + * @property {string|null} [name] ContinuousTestResult name + * @property {google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult|null} [result] ContinuousTestResult result + * @property {Array.|null} [testCaseResults] ContinuousTestResult testCaseResults + * @property {google.protobuf.ITimestamp|null} [runTime] ContinuousTestResult runTime */ /** - * Constructs a new Environment. + * Constructs a new ContinuousTestResult. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an Environment. - * @implements IEnvironment + * @classdesc Represents a ContinuousTestResult. + * @implements IContinuousTestResult * @constructor - * @param {google.cloud.dialogflow.cx.v3.IEnvironment=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IContinuousTestResult=} [properties] Properties to set */ - function Environment(properties) { - this.versionConfigs = []; + function ContinuousTestResult(properties) { + this.testCaseResults = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25115,121 +25459,101 @@ } /** - * Environment name. + * ContinuousTestResult name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.Environment - * @instance - */ - Environment.prototype.name = ""; - - /** - * Environment displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.Environment - * @instance - */ - Environment.prototype.displayName = ""; - - /** - * Environment description. - * @member {string} description - * @memberof google.cloud.dialogflow.cx.v3.Environment + * @memberof google.cloud.dialogflow.cx.v3.ContinuousTestResult * @instance */ - Environment.prototype.description = ""; + ContinuousTestResult.prototype.name = ""; /** - * Environment versionConfigs. - * @member {Array.} versionConfigs - * @memberof google.cloud.dialogflow.cx.v3.Environment + * ContinuousTestResult result. + * @member {google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult} result + * @memberof google.cloud.dialogflow.cx.v3.ContinuousTestResult * @instance */ - Environment.prototype.versionConfigs = $util.emptyArray; + ContinuousTestResult.prototype.result = 0; /** - * Environment updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.dialogflow.cx.v3.Environment + * ContinuousTestResult testCaseResults. + * @member {Array.} testCaseResults + * @memberof google.cloud.dialogflow.cx.v3.ContinuousTestResult * @instance */ - Environment.prototype.updateTime = null; + ContinuousTestResult.prototype.testCaseResults = $util.emptyArray; /** - * Environment testCasesConfig. - * @member {google.cloud.dialogflow.cx.v3.Environment.ITestCasesConfig|null|undefined} testCasesConfig - * @memberof google.cloud.dialogflow.cx.v3.Environment + * ContinuousTestResult runTime. + * @member {google.protobuf.ITimestamp|null|undefined} runTime + * @memberof google.cloud.dialogflow.cx.v3.ContinuousTestResult * @instance */ - Environment.prototype.testCasesConfig = null; + ContinuousTestResult.prototype.runTime = null; /** - * Creates a new Environment instance using the specified properties. + * Creates a new ContinuousTestResult instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Environment + * @memberof google.cloud.dialogflow.cx.v3.ContinuousTestResult * @static - * @param {google.cloud.dialogflow.cx.v3.IEnvironment=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Environment} Environment instance + * @param {google.cloud.dialogflow.cx.v3.IContinuousTestResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ContinuousTestResult} ContinuousTestResult instance */ - Environment.create = function create(properties) { - return new Environment(properties); + ContinuousTestResult.create = function create(properties) { + return new ContinuousTestResult(properties); }; /** - * Encodes the specified Environment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Environment.verify|verify} messages. + * Encodes the specified ContinuousTestResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ContinuousTestResult.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Environment + * @memberof google.cloud.dialogflow.cx.v3.ContinuousTestResult * @static - * @param {google.cloud.dialogflow.cx.v3.IEnvironment} message Environment message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IContinuousTestResult} message ContinuousTestResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Environment.encode = function encode(message, writer) { + ContinuousTestResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.versionConfigs != null && message.versionConfigs.length) - for (var i = 0; i < message.versionConfigs.length; ++i) - $root.google.cloud.dialogflow.cx.v3.Environment.VersionConfig.encode(message.versionConfigs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.testCasesConfig != null && Object.hasOwnProperty.call(message, "testCasesConfig")) - $root.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.encode(message.testCasesConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.result); + if (message.testCaseResults != null && message.testCaseResults.length) + for (var i = 0; i < message.testCaseResults.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.testCaseResults[i]); + if (message.runTime != null && Object.hasOwnProperty.call(message, "runTime")) + $root.google.protobuf.Timestamp.encode(message.runTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified Environment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Environment.verify|verify} messages. + * Encodes the specified ContinuousTestResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ContinuousTestResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Environment + * @memberof google.cloud.dialogflow.cx.v3.ContinuousTestResult * @static - * @param {google.cloud.dialogflow.cx.v3.IEnvironment} message Environment message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IContinuousTestResult} message ContinuousTestResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Environment.encodeDelimited = function encodeDelimited(message, writer) { + ContinuousTestResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Environment message from the specified reader or buffer. + * Decodes a ContinuousTestResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Environment + * @memberof google.cloud.dialogflow.cx.v3.ContinuousTestResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.Environment} Environment + * @returns {google.cloud.dialogflow.cx.v3.ContinuousTestResult} ContinuousTestResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Environment.decode = function decode(reader, length) { + ContinuousTestResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Environment(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ContinuousTestResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -25237,21 +25561,15 @@ message.name = reader.string(); break; case 2: - message.displayName = reader.string(); + message.result = reader.int32(); break; case 3: - message.description = reader.string(); - break; - case 6: - if (!(message.versionConfigs && message.versionConfigs.length)) - message.versionConfigs = []; - message.versionConfigs.push($root.google.cloud.dialogflow.cx.v3.Environment.VersionConfig.decode(reader, reader.uint32())); - break; - case 5: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + if (!(message.testCaseResults && message.testCaseResults.length)) + message.testCaseResults = []; + message.testCaseResults.push(reader.string()); break; - case 7: - message.testCasesConfig = $root.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.decode(reader, reader.uint32()); + case 4: + message.runTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -25262,614 +25580,371 @@ }; /** - * Decodes an Environment message from the specified reader or buffer, length delimited. + * Decodes a ContinuousTestResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Environment + * @memberof google.cloud.dialogflow.cx.v3.ContinuousTestResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Environment} Environment + * @returns {google.cloud.dialogflow.cx.v3.ContinuousTestResult} ContinuousTestResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Environment.decodeDelimited = function decodeDelimited(reader) { + ContinuousTestResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Environment message. + * Verifies a ContinuousTestResult message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Environment + * @memberof google.cloud.dialogflow.cx.v3.ContinuousTestResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Environment.verify = function verify(message) { + ContinuousTestResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.versionConfigs != null && message.hasOwnProperty("versionConfigs")) { - if (!Array.isArray(message.versionConfigs)) - return "versionConfigs: array expected"; - for (var i = 0; i < message.versionConfigs.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.Environment.VersionConfig.verify(message.versionConfigs[i]); - if (error) - return "versionConfigs." + error; - } - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; + if (message.result != null && message.hasOwnProperty("result")) + switch (message.result) { + default: + return "result: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.testCaseResults != null && message.hasOwnProperty("testCaseResults")) { + if (!Array.isArray(message.testCaseResults)) + return "testCaseResults: array expected"; + for (var i = 0; i < message.testCaseResults.length; ++i) + if (!$util.isString(message.testCaseResults[i])) + return "testCaseResults: string[] expected"; } - if (message.testCasesConfig != null && message.hasOwnProperty("testCasesConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.verify(message.testCasesConfig); + if (message.runTime != null && message.hasOwnProperty("runTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.runTime); if (error) - return "testCasesConfig." + error; + return "runTime." + error; } return null; }; /** - * Creates an Environment message from a plain object. Also converts values to their respective internal types. + * Creates a ContinuousTestResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Environment + * @memberof google.cloud.dialogflow.cx.v3.ContinuousTestResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Environment} Environment + * @returns {google.cloud.dialogflow.cx.v3.ContinuousTestResult} ContinuousTestResult */ - Environment.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Environment) + ContinuousTestResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ContinuousTestResult) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Environment(); + var message = new $root.google.cloud.dialogflow.cx.v3.ContinuousTestResult(); if (object.name != null) message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.description != null) - message.description = String(object.description); - if (object.versionConfigs) { - if (!Array.isArray(object.versionConfigs)) - throw TypeError(".google.cloud.dialogflow.cx.v3.Environment.versionConfigs: array expected"); - message.versionConfigs = []; - for (var i = 0; i < object.versionConfigs.length; ++i) { - if (typeof object.versionConfigs[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Environment.versionConfigs: object expected"); - message.versionConfigs[i] = $root.google.cloud.dialogflow.cx.v3.Environment.VersionConfig.fromObject(object.versionConfigs[i]); - } + switch (object.result) { + case "AGGREGATED_TEST_RESULT_UNSPECIFIED": + case 0: + message.result = 0; + break; + case "PASSED": + case 1: + message.result = 1; + break; + case "FAILED": + case 2: + message.result = 2; + break; } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Environment.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + if (object.testCaseResults) { + if (!Array.isArray(object.testCaseResults)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ContinuousTestResult.testCaseResults: array expected"); + message.testCaseResults = []; + for (var i = 0; i < object.testCaseResults.length; ++i) + message.testCaseResults[i] = String(object.testCaseResults[i]); } - if (object.testCasesConfig != null) { - if (typeof object.testCasesConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Environment.testCasesConfig: object expected"); - message.testCasesConfig = $root.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.fromObject(object.testCasesConfig); + if (object.runTime != null) { + if (typeof object.runTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ContinuousTestResult.runTime: object expected"); + message.runTime = $root.google.protobuf.Timestamp.fromObject(object.runTime); } return message; }; /** - * Creates a plain object from an Environment message. Also converts values to other types if specified. + * Creates a plain object from a ContinuousTestResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Environment + * @memberof google.cloud.dialogflow.cx.v3.ContinuousTestResult * @static - * @param {google.cloud.dialogflow.cx.v3.Environment} message Environment + * @param {google.cloud.dialogflow.cx.v3.ContinuousTestResult} message ContinuousTestResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Environment.toObject = function toObject(message, options) { + ContinuousTestResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.versionConfigs = []; + object.testCaseResults = []; if (options.defaults) { object.name = ""; - object.displayName = ""; - object.description = ""; - object.updateTime = null; - object.testCasesConfig = null; + object.result = options.enums === String ? "AGGREGATED_TEST_RESULT_UNSPECIFIED" : 0; + object.runTime = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.versionConfigs && message.versionConfigs.length) { - object.versionConfigs = []; - for (var j = 0; j < message.versionConfigs.length; ++j) - object.versionConfigs[j] = $root.google.cloud.dialogflow.cx.v3.Environment.VersionConfig.toObject(message.versionConfigs[j], options); + if (message.result != null && message.hasOwnProperty("result")) + object.result = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult[message.result] : message.result; + if (message.testCaseResults && message.testCaseResults.length) { + object.testCaseResults = []; + for (var j = 0; j < message.testCaseResults.length; ++j) + object.testCaseResults[j] = message.testCaseResults[j]; } - if (message.testCasesConfig != null && message.hasOwnProperty("testCasesConfig")) - object.testCasesConfig = $root.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.toObject(message.testCasesConfig, options); + if (message.runTime != null && message.hasOwnProperty("runTime")) + object.runTime = $root.google.protobuf.Timestamp.toObject(message.runTime, options); return object; }; /** - * Converts this Environment to JSON. + * Converts this ContinuousTestResult to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Environment + * @memberof google.cloud.dialogflow.cx.v3.ContinuousTestResult * @instance * @returns {Object.} JSON object */ - Environment.prototype.toJSON = function toJSON() { + ContinuousTestResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - Environment.VersionConfig = (function() { + /** + * AggregatedTestResult enum. + * @name google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult + * @enum {number} + * @property {number} AGGREGATED_TEST_RESULT_UNSPECIFIED=0 AGGREGATED_TEST_RESULT_UNSPECIFIED value + * @property {number} PASSED=1 PASSED value + * @property {number} FAILED=2 FAILED value + */ + ContinuousTestResult.AggregatedTestResult = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "AGGREGATED_TEST_RESULT_UNSPECIFIED"] = 0; + values[valuesById[1] = "PASSED"] = 1; + values[valuesById[2] = "FAILED"] = 2; + return values; + })(); - /** - * Properties of a VersionConfig. - * @memberof google.cloud.dialogflow.cx.v3.Environment - * @interface IVersionConfig - * @property {string|null} [version] VersionConfig version - */ + return ContinuousTestResult; + })(); - /** - * Constructs a new VersionConfig. - * @memberof google.cloud.dialogflow.cx.v3.Environment - * @classdesc Represents a VersionConfig. - * @implements IVersionConfig - * @constructor - * @param {google.cloud.dialogflow.cx.v3.Environment.IVersionConfig=} [properties] Properties to set - */ - function VersionConfig(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v3.RunContinuousTestRequest = (function() { - /** - * VersionConfig version. - * @member {string} version - * @memberof google.cloud.dialogflow.cx.v3.Environment.VersionConfig - * @instance - */ - VersionConfig.prototype.version = ""; + /** + * Properties of a RunContinuousTestRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IRunContinuousTestRequest + * @property {string|null} [environment] RunContinuousTestRequest environment + */ - /** - * Creates a new VersionConfig instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Environment.VersionConfig - * @static - * @param {google.cloud.dialogflow.cx.v3.Environment.IVersionConfig=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Environment.VersionConfig} VersionConfig instance - */ - VersionConfig.create = function create(properties) { - return new VersionConfig(properties); - }; + /** + * Constructs a new RunContinuousTestRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a RunContinuousTestRequest. + * @implements IRunContinuousTestRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IRunContinuousTestRequest=} [properties] Properties to set + */ + function RunContinuousTestRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified VersionConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Environment.VersionConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Environment.VersionConfig - * @static - * @param {google.cloud.dialogflow.cx.v3.Environment.IVersionConfig} message VersionConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VersionConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); - return writer; - }; + /** + * RunContinuousTestRequest environment. + * @member {string} environment + * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestRequest + * @instance + */ + RunContinuousTestRequest.prototype.environment = ""; - /** - * Encodes the specified VersionConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Environment.VersionConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Environment.VersionConfig - * @static - * @param {google.cloud.dialogflow.cx.v3.Environment.IVersionConfig} message VersionConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VersionConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new RunContinuousTestRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IRunContinuousTestRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.RunContinuousTestRequest} RunContinuousTestRequest instance + */ + RunContinuousTestRequest.create = function create(properties) { + return new RunContinuousTestRequest(properties); + }; - /** - * Decodes a VersionConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Environment.VersionConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.Environment.VersionConfig} VersionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VersionConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Environment.VersionConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.version = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified RunContinuousTestRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunContinuousTestRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IRunContinuousTestRequest} message RunContinuousTestRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RunContinuousTestRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.environment); + return writer; + }; - /** - * Decodes a VersionConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Environment.VersionConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Environment.VersionConfig} VersionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VersionConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified RunContinuousTestRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunContinuousTestRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IRunContinuousTestRequest} message RunContinuousTestRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RunContinuousTestRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies a VersionConfig message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Environment.VersionConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - VersionConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - return null; - }; + /** + * Decodes a RunContinuousTestRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.RunContinuousTestRequest} RunContinuousTestRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RunContinuousTestRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.environment = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a VersionConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Environment.VersionConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Environment.VersionConfig} VersionConfig - */ - VersionConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Environment.VersionConfig) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Environment.VersionConfig(); - if (object.version != null) - message.version = String(object.version); - return message; - }; + /** + * Decodes a RunContinuousTestRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.RunContinuousTestRequest} RunContinuousTestRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RunContinuousTestRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from a VersionConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Environment.VersionConfig - * @static - * @param {google.cloud.dialogflow.cx.v3.Environment.VersionConfig} message VersionConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - VersionConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.version = ""; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - return object; - }; + /** + * Verifies a RunContinuousTestRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RunContinuousTestRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.environment != null && message.hasOwnProperty("environment")) + if (!$util.isString(message.environment)) + return "environment: string expected"; + return null; + }; - /** - * Converts this VersionConfig to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Environment.VersionConfig - * @instance - * @returns {Object.} JSON object - */ - VersionConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a RunContinuousTestRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.RunContinuousTestRequest} RunContinuousTestRequest + */ + RunContinuousTestRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest(); + if (object.environment != null) + message.environment = String(object.environment); + return message; + }; - return VersionConfig; - })(); + /** + * Creates a plain object from a RunContinuousTestRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.RunContinuousTestRequest} message RunContinuousTestRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RunContinuousTestRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.environment = ""; + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = message.environment; + return object; + }; - Environment.TestCasesConfig = (function() { + /** + * Converts this RunContinuousTestRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestRequest + * @instance + * @returns {Object.} JSON object + */ + RunContinuousTestRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Properties of a TestCasesConfig. - * @memberof google.cloud.dialogflow.cx.v3.Environment - * @interface ITestCasesConfig - * @property {Array.|null} [testCases] TestCasesConfig testCases - * @property {boolean|null} [enableContinuousRun] TestCasesConfig enableContinuousRun - * @property {boolean|null} [enablePredeploymentRun] TestCasesConfig enablePredeploymentRun - */ + return RunContinuousTestRequest; + })(); - /** - * Constructs a new TestCasesConfig. - * @memberof google.cloud.dialogflow.cx.v3.Environment - * @classdesc Represents a TestCasesConfig. - * @implements ITestCasesConfig - * @constructor - * @param {google.cloud.dialogflow.cx.v3.Environment.ITestCasesConfig=} [properties] Properties to set - */ - function TestCasesConfig(properties) { - this.testCases = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TestCasesConfig testCases. - * @member {Array.} testCases - * @memberof google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig - * @instance - */ - TestCasesConfig.prototype.testCases = $util.emptyArray; - - /** - * TestCasesConfig enableContinuousRun. - * @member {boolean} enableContinuousRun - * @memberof google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig - * @instance - */ - TestCasesConfig.prototype.enableContinuousRun = false; - - /** - * TestCasesConfig enablePredeploymentRun. - * @member {boolean} enablePredeploymentRun - * @memberof google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig - * @instance - */ - TestCasesConfig.prototype.enablePredeploymentRun = false; - - /** - * Creates a new TestCasesConfig instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig - * @static - * @param {google.cloud.dialogflow.cx.v3.Environment.ITestCasesConfig=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig} TestCasesConfig instance - */ - TestCasesConfig.create = function create(properties) { - return new TestCasesConfig(properties); - }; - - /** - * Encodes the specified TestCasesConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig - * @static - * @param {google.cloud.dialogflow.cx.v3.Environment.ITestCasesConfig} message TestCasesConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TestCasesConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.testCases != null && message.testCases.length) - for (var i = 0; i < message.testCases.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.testCases[i]); - if (message.enableContinuousRun != null && Object.hasOwnProperty.call(message, "enableContinuousRun")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enableContinuousRun); - if (message.enablePredeploymentRun != null && Object.hasOwnProperty.call(message, "enablePredeploymentRun")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.enablePredeploymentRun); - return writer; - }; - - /** - * Encodes the specified TestCasesConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig - * @static - * @param {google.cloud.dialogflow.cx.v3.Environment.ITestCasesConfig} message TestCasesConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TestCasesConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a TestCasesConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig} TestCasesConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TestCasesConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.testCases && message.testCases.length)) - message.testCases = []; - message.testCases.push(reader.string()); - break; - case 2: - message.enableContinuousRun = reader.bool(); - break; - case 3: - message.enablePredeploymentRun = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a TestCasesConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig} TestCasesConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TestCasesConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TestCasesConfig message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TestCasesConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.testCases != null && message.hasOwnProperty("testCases")) { - if (!Array.isArray(message.testCases)) - return "testCases: array expected"; - for (var i = 0; i < message.testCases.length; ++i) - if (!$util.isString(message.testCases[i])) - return "testCases: string[] expected"; - } - if (message.enableContinuousRun != null && message.hasOwnProperty("enableContinuousRun")) - if (typeof message.enableContinuousRun !== "boolean") - return "enableContinuousRun: boolean expected"; - if (message.enablePredeploymentRun != null && message.hasOwnProperty("enablePredeploymentRun")) - if (typeof message.enablePredeploymentRun !== "boolean") - return "enablePredeploymentRun: boolean expected"; - return null; - }; - - /** - * Creates a TestCasesConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig} TestCasesConfig - */ - TestCasesConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig(); - if (object.testCases) { - if (!Array.isArray(object.testCases)) - throw TypeError(".google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.testCases: array expected"); - message.testCases = []; - for (var i = 0; i < object.testCases.length; ++i) - message.testCases[i] = String(object.testCases[i]); - } - if (object.enableContinuousRun != null) - message.enableContinuousRun = Boolean(object.enableContinuousRun); - if (object.enablePredeploymentRun != null) - message.enablePredeploymentRun = Boolean(object.enablePredeploymentRun); - return message; - }; - - /** - * Creates a plain object from a TestCasesConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig - * @static - * @param {google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig} message TestCasesConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TestCasesConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.testCases = []; - if (options.defaults) { - object.enableContinuousRun = false; - object.enablePredeploymentRun = false; - } - if (message.testCases && message.testCases.length) { - object.testCases = []; - for (var j = 0; j < message.testCases.length; ++j) - object.testCases[j] = message.testCases[j]; - } - if (message.enableContinuousRun != null && message.hasOwnProperty("enableContinuousRun")) - object.enableContinuousRun = message.enableContinuousRun; - if (message.enablePredeploymentRun != null && message.hasOwnProperty("enablePredeploymentRun")) - object.enablePredeploymentRun = message.enablePredeploymentRun; - return object; - }; - - /** - * Converts this TestCasesConfig to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig - * @instance - * @returns {Object.} JSON object - */ - TestCasesConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return TestCasesConfig; - })(); - - return Environment; - })(); - - v3.ListEnvironmentsRequest = (function() { + v3.RunContinuousTestResponse = (function() { /** - * Properties of a ListEnvironmentsRequest. + * Properties of a RunContinuousTestResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListEnvironmentsRequest - * @property {string|null} [parent] ListEnvironmentsRequest parent - * @property {number|null} [pageSize] ListEnvironmentsRequest pageSize - * @property {string|null} [pageToken] ListEnvironmentsRequest pageToken + * @interface IRunContinuousTestResponse + * @property {google.cloud.dialogflow.cx.v3.IContinuousTestResult|null} [continuousTestResult] RunContinuousTestResponse continuousTestResult */ /** - * Constructs a new ListEnvironmentsRequest. + * Constructs a new RunContinuousTestResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListEnvironmentsRequest. - * @implements IListEnvironmentsRequest + * @classdesc Represents a RunContinuousTestResponse. + * @implements IRunContinuousTestResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IRunContinuousTestResponse=} [properties] Properties to set */ - function ListEnvironmentsRequest(properties) { + function RunContinuousTestResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25877,101 +25952,75 @@ } /** - * ListEnvironmentsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest - * @instance - */ - ListEnvironmentsRequest.prototype.parent = ""; - - /** - * ListEnvironmentsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest - * @instance - */ - ListEnvironmentsRequest.prototype.pageSize = 0; - - /** - * ListEnvironmentsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest + * RunContinuousTestResponse continuousTestResult. + * @member {google.cloud.dialogflow.cx.v3.IContinuousTestResult|null|undefined} continuousTestResult + * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestResponse * @instance */ - ListEnvironmentsRequest.prototype.pageToken = ""; + RunContinuousTestResponse.prototype.continuousTestResult = null; /** - * Creates a new ListEnvironmentsRequest instance using the specified properties. + * Creates a new RunContinuousTestResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest} ListEnvironmentsRequest instance + * @param {google.cloud.dialogflow.cx.v3.IRunContinuousTestResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.RunContinuousTestResponse} RunContinuousTestResponse instance */ - ListEnvironmentsRequest.create = function create(properties) { - return new ListEnvironmentsRequest(properties); + RunContinuousTestResponse.create = function create(properties) { + return new RunContinuousTestResponse(properties); }; /** - * Encodes the specified ListEnvironmentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest.verify|verify} messages. + * Encodes the specified RunContinuousTestResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunContinuousTestResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest} message ListEnvironmentsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IRunContinuousTestResponse} message RunContinuousTestResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEnvironmentsRequest.encode = function encode(message, writer) { + RunContinuousTestResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.continuousTestResult != null && Object.hasOwnProperty.call(message, "continuousTestResult")) + $root.google.cloud.dialogflow.cx.v3.ContinuousTestResult.encode(message.continuousTestResult, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListEnvironmentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest.verify|verify} messages. + * Encodes the specified RunContinuousTestResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunContinuousTestResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest} message ListEnvironmentsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IRunContinuousTestResponse} message RunContinuousTestResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEnvironmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + RunContinuousTestResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListEnvironmentsRequest message from the specified reader or buffer. + * Decodes a RunContinuousTestResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest} ListEnvironmentsRequest + * @returns {google.cloud.dialogflow.cx.v3.RunContinuousTestResponse} RunContinuousTestResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEnvironmentsRequest.decode = function decode(reader, length) { + RunContinuousTestResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); + message.continuousTestResult = $root.google.cloud.dialogflow.cx.v3.ContinuousTestResult.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -25982,126 +26031,113 @@ }; /** - * Decodes a ListEnvironmentsRequest message from the specified reader or buffer, length delimited. + * Decodes a RunContinuousTestResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest} ListEnvironmentsRequest + * @returns {google.cloud.dialogflow.cx.v3.RunContinuousTestResponse} RunContinuousTestResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEnvironmentsRequest.decodeDelimited = function decodeDelimited(reader) { + RunContinuousTestResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListEnvironmentsRequest message. + * Verifies a RunContinuousTestResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListEnvironmentsRequest.verify = function verify(message) { + RunContinuousTestResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.continuousTestResult != null && message.hasOwnProperty("continuousTestResult")) { + var error = $root.google.cloud.dialogflow.cx.v3.ContinuousTestResult.verify(message.continuousTestResult); + if (error) + return "continuousTestResult." + error; + } return null; }; /** - * Creates a ListEnvironmentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RunContinuousTestResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest} ListEnvironmentsRequest + * @returns {google.cloud.dialogflow.cx.v3.RunContinuousTestResponse} RunContinuousTestResponse */ - ListEnvironmentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest) + RunContinuousTestResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse(); + if (object.continuousTestResult != null) { + if (typeof object.continuousTestResult !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.RunContinuousTestResponse.continuousTestResult: object expected"); + message.continuousTestResult = $root.google.cloud.dialogflow.cx.v3.ContinuousTestResult.fromObject(object.continuousTestResult); + } return message; }; /** - * Creates a plain object from a ListEnvironmentsRequest message. Also converts values to other types if specified. + * Creates a plain object from a RunContinuousTestResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest} message ListEnvironmentsRequest + * @param {google.cloud.dialogflow.cx.v3.RunContinuousTestResponse} message RunContinuousTestResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListEnvironmentsRequest.toObject = function toObject(message, options) { + RunContinuousTestResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (options.defaults) + object.continuousTestResult = null; + if (message.continuousTestResult != null && message.hasOwnProperty("continuousTestResult")) + object.continuousTestResult = $root.google.cloud.dialogflow.cx.v3.ContinuousTestResult.toObject(message.continuousTestResult, options); return object; }; /** - * Converts this ListEnvironmentsRequest to JSON. + * Converts this RunContinuousTestResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestResponse * @instance * @returns {Object.} JSON object */ - ListEnvironmentsRequest.prototype.toJSON = function toJSON() { + RunContinuousTestResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListEnvironmentsRequest; + return RunContinuousTestResponse; })(); - v3.ListEnvironmentsResponse = (function() { + v3.RunContinuousTestMetadata = (function() { /** - * Properties of a ListEnvironmentsResponse. + * Properties of a RunContinuousTestMetadata. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListEnvironmentsResponse - * @property {Array.|null} [environments] ListEnvironmentsResponse environments - * @property {string|null} [nextPageToken] ListEnvironmentsResponse nextPageToken + * @interface IRunContinuousTestMetadata + * @property {Array.|null} [errors] RunContinuousTestMetadata errors */ /** - * Constructs a new ListEnvironmentsResponse. + * Constructs a new RunContinuousTestMetadata. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListEnvironmentsResponse. - * @implements IListEnvironmentsResponse + * @classdesc Represents a RunContinuousTestMetadata. + * @implements IRunContinuousTestMetadata * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListEnvironmentsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IRunContinuousTestMetadata=} [properties] Properties to set */ - function ListEnvironmentsResponse(properties) { - this.environments = []; + function RunContinuousTestMetadata(properties) { + this.errors = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26109,91 +26145,78 @@ } /** - * ListEnvironmentsResponse environments. - * @member {Array.} environments - * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse - * @instance - */ - ListEnvironmentsResponse.prototype.environments = $util.emptyArray; - - /** - * ListEnvironmentsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse + * RunContinuousTestMetadata errors. + * @member {Array.} errors + * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata * @instance */ - ListEnvironmentsResponse.prototype.nextPageToken = ""; + RunContinuousTestMetadata.prototype.errors = $util.emptyArray; /** - * Creates a new ListEnvironmentsResponse instance using the specified properties. + * Creates a new RunContinuousTestMetadata instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.IListEnvironmentsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse} ListEnvironmentsResponse instance + * @param {google.cloud.dialogflow.cx.v3.IRunContinuousTestMetadata=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata} RunContinuousTestMetadata instance */ - ListEnvironmentsResponse.create = function create(properties) { - return new ListEnvironmentsResponse(properties); + RunContinuousTestMetadata.create = function create(properties) { + return new RunContinuousTestMetadata(properties); }; /** - * Encodes the specified ListEnvironmentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse.verify|verify} messages. + * Encodes the specified RunContinuousTestMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.IListEnvironmentsResponse} message ListEnvironmentsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IRunContinuousTestMetadata} message RunContinuousTestMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEnvironmentsResponse.encode = function encode(message, writer) { + RunContinuousTestMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.environments != null && message.environments.length) - for (var i = 0; i < message.environments.length; ++i) - $root.google.cloud.dialogflow.cx.v3.Environment.encode(message.environments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.errors != null && message.errors.length) + for (var i = 0; i < message.errors.length; ++i) + $root.google.cloud.dialogflow.cx.v3.TestError.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListEnvironmentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse.verify|verify} messages. + * Encodes the specified RunContinuousTestMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.IListEnvironmentsResponse} message ListEnvironmentsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IRunContinuousTestMetadata} message RunContinuousTestMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEnvironmentsResponse.encodeDelimited = function encodeDelimited(message, writer) { + RunContinuousTestMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListEnvironmentsResponse message from the specified reader or buffer. + * Decodes a RunContinuousTestMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse} ListEnvironmentsResponse + * @returns {google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata} RunContinuousTestMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEnvironmentsResponse.decode = function decode(reader, length) { + RunContinuousTestMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.environments && message.environments.length)) - message.environments = []; - message.environments.push($root.google.cloud.dialogflow.cx.v3.Environment.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); + if (!(message.errors && message.errors.length)) + message.errors = []; + message.errors.push($root.google.cloud.dialogflow.cx.v3.TestError.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -26204,133 +26227,126 @@ }; /** - * Decodes a ListEnvironmentsResponse message from the specified reader or buffer, length delimited. + * Decodes a RunContinuousTestMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse} ListEnvironmentsResponse + * @returns {google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata} RunContinuousTestMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEnvironmentsResponse.decodeDelimited = function decodeDelimited(reader) { + RunContinuousTestMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListEnvironmentsResponse message. + * Verifies a RunContinuousTestMetadata message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListEnvironmentsResponse.verify = function verify(message) { + RunContinuousTestMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.environments != null && message.hasOwnProperty("environments")) { - if (!Array.isArray(message.environments)) - return "environments: array expected"; - for (var i = 0; i < message.environments.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.Environment.verify(message.environments[i]); + if (message.errors != null && message.hasOwnProperty("errors")) { + if (!Array.isArray(message.errors)) + return "errors: array expected"; + for (var i = 0; i < message.errors.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.TestError.verify(message.errors[i]); if (error) - return "environments." + error; + return "errors." + error; } } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListEnvironmentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RunContinuousTestMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse} ListEnvironmentsResponse + * @returns {google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata} RunContinuousTestMetadata */ - ListEnvironmentsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse) + RunContinuousTestMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse(); - if (object.environments) { - if (!Array.isArray(object.environments)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse.environments: array expected"); - message.environments = []; - for (var i = 0; i < object.environments.length; ++i) { - if (typeof object.environments[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse.environments: object expected"); - message.environments[i] = $root.google.cloud.dialogflow.cx.v3.Environment.fromObject(object.environments[i]); + var message = new $root.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata(); + if (object.errors) { + if (!Array.isArray(object.errors)) + throw TypeError(".google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata.errors: array expected"); + message.errors = []; + for (var i = 0; i < object.errors.length; ++i) { + if (typeof object.errors[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata.errors: object expected"); + message.errors[i] = $root.google.cloud.dialogflow.cx.v3.TestError.fromObject(object.errors[i]); } } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListEnvironmentsResponse message. Also converts values to other types if specified. + * Creates a plain object from a RunContinuousTestMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse} message ListEnvironmentsResponse + * @param {google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata} message RunContinuousTestMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListEnvironmentsResponse.toObject = function toObject(message, options) { + RunContinuousTestMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.environments = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.environments && message.environments.length) { - object.environments = []; - for (var j = 0; j < message.environments.length; ++j) - object.environments[j] = $root.google.cloud.dialogflow.cx.v3.Environment.toObject(message.environments[j], options); + object.errors = []; + if (message.errors && message.errors.length) { + object.errors = []; + for (var j = 0; j < message.errors.length; ++j) + object.errors[j] = $root.google.cloud.dialogflow.cx.v3.TestError.toObject(message.errors[j], options); } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListEnvironmentsResponse to JSON. + * Converts this RunContinuousTestMetadata to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata * @instance * @returns {Object.} JSON object */ - ListEnvironmentsResponse.prototype.toJSON = function toJSON() { + RunContinuousTestMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListEnvironmentsResponse; + return RunContinuousTestMetadata; })(); - v3.GetEnvironmentRequest = (function() { + v3.ListContinuousTestResultsRequest = (function() { /** - * Properties of a GetEnvironmentRequest. + * Properties of a ListContinuousTestResultsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IGetEnvironmentRequest - * @property {string|null} [name] GetEnvironmentRequest name + * @interface IListContinuousTestResultsRequest + * @property {string|null} [parent] ListContinuousTestResultsRequest parent + * @property {number|null} [pageSize] ListContinuousTestResultsRequest pageSize + * @property {string|null} [pageToken] ListContinuousTestResultsRequest pageToken */ /** - * Constructs a new GetEnvironmentRequest. + * Constructs a new ListContinuousTestResultsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a GetEnvironmentRequest. - * @implements IGetEnvironmentRequest + * @classdesc Represents a ListContinuousTestResultsRequest. + * @implements IListContinuousTestResultsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListContinuousTestResultsRequest=} [properties] Properties to set */ - function GetEnvironmentRequest(properties) { + function ListContinuousTestResultsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26338,75 +26354,101 @@ } /** - * GetEnvironmentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.GetEnvironmentRequest + * ListContinuousTestResultsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest * @instance */ - GetEnvironmentRequest.prototype.name = ""; + ListContinuousTestResultsRequest.prototype.parent = ""; /** - * Creates a new GetEnvironmentRequest instance using the specified properties. + * ListContinuousTestResultsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest + * @instance + */ + ListContinuousTestResultsRequest.prototype.pageSize = 0; + + /** + * ListContinuousTestResultsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest + * @instance + */ + ListContinuousTestResultsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListContinuousTestResultsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.GetEnvironmentRequest} GetEnvironmentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IListContinuousTestResultsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest} ListContinuousTestResultsRequest instance */ - GetEnvironmentRequest.create = function create(properties) { - return new GetEnvironmentRequest(properties); + ListContinuousTestResultsRequest.create = function create(properties) { + return new ListContinuousTestResultsRequest(properties); }; /** - * Encodes the specified GetEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetEnvironmentRequest.verify|verify} messages. + * Encodes the specified ListContinuousTestResultsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest} message GetEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListContinuousTestResultsRequest} message ListContinuousTestResultsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetEnvironmentRequest.encode = function encode(message, writer) { + ListContinuousTestResultsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified GetEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetEnvironmentRequest.verify|verify} messages. + * Encodes the specified ListContinuousTestResultsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest} message GetEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListContinuousTestResultsRequest} message ListContinuousTestResultsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListContinuousTestResultsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetEnvironmentRequest message from the specified reader or buffer. + * Decodes a ListContinuousTestResultsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.GetEnvironmentRequest} GetEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest} ListContinuousTestResultsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetEnvironmentRequest.decode = function decode(reader, length) { + ListContinuousTestResultsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); + break; + case 2: + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -26417,108 +26459,126 @@ }; /** - * Decodes a GetEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes a ListContinuousTestResultsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.GetEnvironmentRequest} GetEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest} ListContinuousTestResultsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { + ListContinuousTestResultsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetEnvironmentRequest message. + * Verifies a ListContinuousTestResultsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetEnvironmentRequest.verify = function verify(message) { + ListContinuousTestResultsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a GetEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListContinuousTestResultsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.GetEnvironmentRequest} GetEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest} ListContinuousTestResultsRequest */ - GetEnvironmentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest) + ListContinuousTestResultsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a GetEnvironmentRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListContinuousTestResultsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.GetEnvironmentRequest} message GetEnvironmentRequest + * @param {google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest} message ListContinuousTestResultsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetEnvironmentRequest.toObject = function toObject(message, options) { + ListContinuousTestResultsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this GetEnvironmentRequest to JSON. + * Converts this ListContinuousTestResultsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest * @instance * @returns {Object.} JSON object */ - GetEnvironmentRequest.prototype.toJSON = function toJSON() { + ListContinuousTestResultsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetEnvironmentRequest; + return ListContinuousTestResultsRequest; })(); - v3.CreateEnvironmentRequest = (function() { + v3.ListContinuousTestResultsResponse = (function() { /** - * Properties of a CreateEnvironmentRequest. + * Properties of a ListContinuousTestResultsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ICreateEnvironmentRequest - * @property {string|null} [parent] CreateEnvironmentRequest parent - * @property {google.cloud.dialogflow.cx.v3.IEnvironment|null} [environment] CreateEnvironmentRequest environment + * @interface IListContinuousTestResultsResponse + * @property {Array.|null} [continuousTestResults] ListContinuousTestResultsResponse continuousTestResults + * @property {string|null} [nextPageToken] ListContinuousTestResultsResponse nextPageToken */ /** - * Constructs a new CreateEnvironmentRequest. + * Constructs a new ListContinuousTestResultsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CreateEnvironmentRequest. - * @implements ICreateEnvironmentRequest + * @classdesc Represents a ListContinuousTestResultsResponse. + * @implements IListContinuousTestResultsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListContinuousTestResultsResponse=} [properties] Properties to set */ - function CreateEnvironmentRequest(properties) { + function ListContinuousTestResultsResponse(properties) { + this.continuousTestResults = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26526,88 +26586,91 @@ } /** - * CreateEnvironmentRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest + * ListContinuousTestResultsResponse continuousTestResults. + * @member {Array.} continuousTestResults + * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse * @instance */ - CreateEnvironmentRequest.prototype.parent = ""; + ListContinuousTestResultsResponse.prototype.continuousTestResults = $util.emptyArray; /** - * CreateEnvironmentRequest environment. - * @member {google.cloud.dialogflow.cx.v3.IEnvironment|null|undefined} environment - * @memberof google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest + * ListContinuousTestResultsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse * @instance */ - CreateEnvironmentRequest.prototype.environment = null; + ListContinuousTestResultsResponse.prototype.nextPageToken = ""; /** - * Creates a new CreateEnvironmentRequest instance using the specified properties. + * Creates a new ListContinuousTestResultsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest} CreateEnvironmentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IListContinuousTestResultsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse} ListContinuousTestResultsResponse instance */ - CreateEnvironmentRequest.create = function create(properties) { - return new CreateEnvironmentRequest(properties); + ListContinuousTestResultsResponse.create = function create(properties) { + return new ListContinuousTestResultsResponse(properties); }; /** - * Encodes the specified CreateEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest.verify|verify} messages. + * Encodes the specified ListContinuousTestResultsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest} message CreateEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListContinuousTestResultsResponse} message ListContinuousTestResultsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateEnvironmentRequest.encode = function encode(message, writer) { + ListContinuousTestResultsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - $root.google.cloud.dialogflow.cx.v3.Environment.encode(message.environment, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.continuousTestResults != null && message.continuousTestResults.length) + for (var i = 0; i < message.continuousTestResults.length; ++i) + $root.google.cloud.dialogflow.cx.v3.ContinuousTestResult.encode(message.continuousTestResults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified CreateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest.verify|verify} messages. + * Encodes the specified ListContinuousTestResultsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest} message CreateEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListContinuousTestResultsResponse} message ListContinuousTestResultsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListContinuousTestResultsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateEnvironmentRequest message from the specified reader or buffer. + * Decodes a ListContinuousTestResultsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest} CreateEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse} ListContinuousTestResultsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateEnvironmentRequest.decode = function decode(reader, length) { + ListContinuousTestResultsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + if (!(message.continuousTestResults && message.continuousTestResults.length)) + message.continuousTestResults = []; + message.continuousTestResults.push($root.google.cloud.dialogflow.cx.v3.ContinuousTestResult.decode(reader, reader.uint32())); break; case 2: - message.environment = $root.google.cloud.dialogflow.cx.v3.Environment.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -26618,122 +26681,134 @@ }; /** - * Decodes a CreateEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes a ListContinuousTestResultsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest} CreateEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse} ListContinuousTestResultsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { + ListContinuousTestResultsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateEnvironmentRequest message. + * Verifies a ListContinuousTestResultsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateEnvironmentRequest.verify = function verify(message) { + ListContinuousTestResultsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.environment != null && message.hasOwnProperty("environment")) { - var error = $root.google.cloud.dialogflow.cx.v3.Environment.verify(message.environment); - if (error) - return "environment." + error; + if (message.continuousTestResults != null && message.hasOwnProperty("continuousTestResults")) { + if (!Array.isArray(message.continuousTestResults)) + return "continuousTestResults: array expected"; + for (var i = 0; i < message.continuousTestResults.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.ContinuousTestResult.verify(message.continuousTestResults[i]); + if (error) + return "continuousTestResults." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a CreateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListContinuousTestResultsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest} CreateEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse} ListContinuousTestResultsResponse */ - CreateEnvironmentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest) + ListContinuousTestResultsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.environment != null) { - if (typeof object.environment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest.environment: object expected"); - message.environment = $root.google.cloud.dialogflow.cx.v3.Environment.fromObject(object.environment); + var message = new $root.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse(); + if (object.continuousTestResults) { + if (!Array.isArray(object.continuousTestResults)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse.continuousTestResults: array expected"); + message.continuousTestResults = []; + for (var i = 0; i < object.continuousTestResults.length; ++i) { + if (typeof object.continuousTestResults[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse.continuousTestResults: object expected"); + message.continuousTestResults[i] = $root.google.cloud.dialogflow.cx.v3.ContinuousTestResult.fromObject(object.continuousTestResults[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a CreateEnvironmentRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListContinuousTestResultsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest} message CreateEnvironmentRequest + * @param {google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse} message ListContinuousTestResultsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateEnvironmentRequest.toObject = function toObject(message, options) { + ListContinuousTestResultsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.environment = null; + if (options.arrays || options.defaults) + object.continuousTestResults = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.continuousTestResults && message.continuousTestResults.length) { + object.continuousTestResults = []; + for (var j = 0; j < message.continuousTestResults.length; ++j) + object.continuousTestResults[j] = $root.google.cloud.dialogflow.cx.v3.ContinuousTestResult.toObject(message.continuousTestResults[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = $root.google.cloud.dialogflow.cx.v3.Environment.toObject(message.environment, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this CreateEnvironmentRequest to JSON. + * Converts this ListContinuousTestResultsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse * @instance * @returns {Object.} JSON object */ - CreateEnvironmentRequest.prototype.toJSON = function toJSON() { + ListContinuousTestResultsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateEnvironmentRequest; + return ListContinuousTestResultsResponse; })(); - v3.UpdateEnvironmentRequest = (function() { + v3.DeployFlowRequest = (function() { /** - * Properties of an UpdateEnvironmentRequest. + * Properties of a DeployFlowRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IUpdateEnvironmentRequest - * @property {google.cloud.dialogflow.cx.v3.IEnvironment|null} [environment] UpdateEnvironmentRequest environment - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateEnvironmentRequest updateMask + * @interface IDeployFlowRequest + * @property {string|null} [environment] DeployFlowRequest environment + * @property {string|null} [flowVersion] DeployFlowRequest flowVersion */ /** - * Constructs a new UpdateEnvironmentRequest. + * Constructs a new DeployFlowRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an UpdateEnvironmentRequest. - * @implements IUpdateEnvironmentRequest + * @classdesc Represents a DeployFlowRequest. + * @implements IDeployFlowRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDeployFlowRequest=} [properties] Properties to set */ - function UpdateEnvironmentRequest(properties) { + function DeployFlowRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26741,88 +26816,88 @@ } /** - * UpdateEnvironmentRequest environment. - * @member {google.cloud.dialogflow.cx.v3.IEnvironment|null|undefined} environment - * @memberof google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest + * DeployFlowRequest environment. + * @member {string} environment + * @memberof google.cloud.dialogflow.cx.v3.DeployFlowRequest * @instance */ - UpdateEnvironmentRequest.prototype.environment = null; + DeployFlowRequest.prototype.environment = ""; /** - * UpdateEnvironmentRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest + * DeployFlowRequest flowVersion. + * @member {string} flowVersion + * @memberof google.cloud.dialogflow.cx.v3.DeployFlowRequest * @instance */ - UpdateEnvironmentRequest.prototype.updateMask = null; + DeployFlowRequest.prototype.flowVersion = ""; /** - * Creates a new UpdateEnvironmentRequest instance using the specified properties. + * Creates a new DeployFlowRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeployFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest} UpdateEnvironmentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IDeployFlowRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeployFlowRequest} DeployFlowRequest instance */ - UpdateEnvironmentRequest.create = function create(properties) { - return new UpdateEnvironmentRequest(properties); + DeployFlowRequest.create = function create(properties) { + return new DeployFlowRequest(properties); }; /** - * Encodes the specified UpdateEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest.verify|verify} messages. + * Encodes the specified DeployFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeployFlowRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeployFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest} message UpdateEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeployFlowRequest} message DeployFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateEnvironmentRequest.encode = function encode(message, writer) { + DeployFlowRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - $root.google.cloud.dialogflow.cx.v3.Environment.encode(message.environment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.environment); + if (message.flowVersion != null && Object.hasOwnProperty.call(message, "flowVersion")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.flowVersion); return writer; }; /** - * Encodes the specified UpdateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest.verify|verify} messages. + * Encodes the specified DeployFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeployFlowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeployFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest} message UpdateEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeployFlowRequest} message DeployFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeployFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer. + * Decodes a DeployFlowRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeployFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest} UpdateEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3.DeployFlowRequest} DeployFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateEnvironmentRequest.decode = function decode(reader, length) { + DeployFlowRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeployFlowRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.environment = $root.google.cloud.dialogflow.cx.v3.Environment.decode(reader, reader.uint32()); + message.environment = reader.string(); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.flowVersion = reader.string(); break; default: reader.skipType(tag & 7); @@ -26833,126 +26908,117 @@ }; /** - * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes a DeployFlowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeployFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest} UpdateEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3.DeployFlowRequest} DeployFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { + DeployFlowRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateEnvironmentRequest message. + * Verifies a DeployFlowRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeployFlowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateEnvironmentRequest.verify = function verify(message) { + DeployFlowRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.environment != null && message.hasOwnProperty("environment")) { - var error = $root.google.cloud.dialogflow.cx.v3.Environment.verify(message.environment); - if (error) - return "environment." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + if (message.environment != null && message.hasOwnProperty("environment")) + if (!$util.isString(message.environment)) + return "environment: string expected"; + if (message.flowVersion != null && message.hasOwnProperty("flowVersion")) + if (!$util.isString(message.flowVersion)) + return "flowVersion: string expected"; return null; }; /** - * Creates an UpdateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeployFlowRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeployFlowRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest} UpdateEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3.DeployFlowRequest} DeployFlowRequest */ - UpdateEnvironmentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest) + DeployFlowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeployFlowRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest(); - if (object.environment != null) { - if (typeof object.environment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest.environment: object expected"); - message.environment = $root.google.cloud.dialogflow.cx.v3.Environment.fromObject(object.environment); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.cloud.dialogflow.cx.v3.DeployFlowRequest(); + if (object.environment != null) + message.environment = String(object.environment); + if (object.flowVersion != null) + message.flowVersion = String(object.flowVersion); return message; }; /** - * Creates a plain object from an UpdateEnvironmentRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeployFlowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeployFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest} message UpdateEnvironmentRequest + * @param {google.cloud.dialogflow.cx.v3.DeployFlowRequest} message DeployFlowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateEnvironmentRequest.toObject = function toObject(message, options) { + DeployFlowRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.environment = null; - object.updateMask = null; + object.environment = ""; + object.flowVersion = ""; } if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = $root.google.cloud.dialogflow.cx.v3.Environment.toObject(message.environment, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + object.environment = message.environment; + if (message.flowVersion != null && message.hasOwnProperty("flowVersion")) + object.flowVersion = message.flowVersion; return object; }; /** - * Converts this UpdateEnvironmentRequest to JSON. + * Converts this DeployFlowRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeployFlowRequest * @instance * @returns {Object.} JSON object */ - UpdateEnvironmentRequest.prototype.toJSON = function toJSON() { + DeployFlowRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateEnvironmentRequest; + return DeployFlowRequest; })(); - v3.DeleteEnvironmentRequest = (function() { + v3.DeployFlowResponse = (function() { /** - * Properties of a DeleteEnvironmentRequest. + * Properties of a DeployFlowResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDeleteEnvironmentRequest - * @property {string|null} [name] DeleteEnvironmentRequest name + * @interface IDeployFlowResponse + * @property {google.cloud.dialogflow.cx.v3.IEnvironment|null} [environment] DeployFlowResponse environment + * @property {string|null} [deployment] DeployFlowResponse deployment */ /** - * Constructs a new DeleteEnvironmentRequest. + * Constructs a new DeployFlowResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DeleteEnvironmentRequest. - * @implements IDeleteEnvironmentRequest + * @classdesc Represents a DeployFlowResponse. + * @implements IDeployFlowResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDeployFlowResponse=} [properties] Properties to set */ - function DeleteEnvironmentRequest(properties) { + function DeployFlowResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26960,75 +27026,88 @@ } /** - * DeleteEnvironmentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest + * DeployFlowResponse environment. + * @member {google.cloud.dialogflow.cx.v3.IEnvironment|null|undefined} environment + * @memberof google.cloud.dialogflow.cx.v3.DeployFlowResponse * @instance */ - DeleteEnvironmentRequest.prototype.name = ""; + DeployFlowResponse.prototype.environment = null; /** - * Creates a new DeleteEnvironmentRequest instance using the specified properties. + * DeployFlowResponse deployment. + * @member {string} deployment + * @memberof google.cloud.dialogflow.cx.v3.DeployFlowResponse + * @instance + */ + DeployFlowResponse.prototype.deployment = ""; + + /** + * Creates a new DeployFlowResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeployFlowResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest} DeleteEnvironmentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IDeployFlowResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeployFlowResponse} DeployFlowResponse instance */ - DeleteEnvironmentRequest.create = function create(properties) { - return new DeleteEnvironmentRequest(properties); + DeployFlowResponse.create = function create(properties) { + return new DeployFlowResponse(properties); }; /** - * Encodes the specified DeleteEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest.verify|verify} messages. + * Encodes the specified DeployFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeployFlowResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeployFlowResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest} message DeleteEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeployFlowResponse} message DeployFlowResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteEnvironmentRequest.encode = function encode(message, writer) { + DeployFlowResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + $root.google.cloud.dialogflow.cx.v3.Environment.encode(message.environment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.deployment != null && Object.hasOwnProperty.call(message, "deployment")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployment); return writer; }; /** - * Encodes the specified DeleteEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest.verify|verify} messages. + * Encodes the specified DeployFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeployFlowResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeployFlowResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest} message DeleteEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeployFlowResponse} message DeployFlowResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeployFlowResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer. + * Decodes a DeployFlowResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeployFlowResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest} DeleteEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3.DeployFlowResponse} DeployFlowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteEnvironmentRequest.decode = function decode(reader, length) { + DeployFlowResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeployFlowResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.environment = $root.google.cloud.dialogflow.cx.v3.Environment.decode(reader, reader.uint32()); + break; + case 2: + message.deployment = reader.string(); break; default: reader.skipType(tag & 7); @@ -27039,109 +27118,122 @@ }; /** - * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes a DeployFlowResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeployFlowResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest} DeleteEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3.DeployFlowResponse} DeployFlowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { + DeployFlowResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteEnvironmentRequest message. + * Verifies a DeployFlowResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeployFlowResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteEnvironmentRequest.verify = function verify(message) { + DeployFlowResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.environment != null && message.hasOwnProperty("environment")) { + var error = $root.google.cloud.dialogflow.cx.v3.Environment.verify(message.environment); + if (error) + return "environment." + error; + } + if (message.deployment != null && message.hasOwnProperty("deployment")) + if (!$util.isString(message.deployment)) + return "deployment: string expected"; return null; }; /** - * Creates a DeleteEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeployFlowResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeployFlowResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest} DeleteEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3.DeployFlowResponse} DeployFlowResponse */ - DeleteEnvironmentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest) + DeployFlowResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeployFlowResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3.DeployFlowResponse(); + if (object.environment != null) { + if (typeof object.environment !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.DeployFlowResponse.environment: object expected"); + message.environment = $root.google.cloud.dialogflow.cx.v3.Environment.fromObject(object.environment); + } + if (object.deployment != null) + message.deployment = String(object.deployment); return message; }; /** - * Creates a plain object from a DeleteEnvironmentRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeployFlowResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeployFlowResponse * @static - * @param {google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest} message DeleteEnvironmentRequest + * @param {google.cloud.dialogflow.cx.v3.DeployFlowResponse} message DeployFlowResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteEnvironmentRequest.toObject = function toObject(message, options) { + DeployFlowResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.environment = null; + object.deployment = ""; + } + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = $root.google.cloud.dialogflow.cx.v3.Environment.toObject(message.environment, options); + if (message.deployment != null && message.hasOwnProperty("deployment")) + object.deployment = message.deployment; return object; }; /** - * Converts this DeleteEnvironmentRequest to JSON. + * Converts this DeployFlowResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeployFlowResponse * @instance * @returns {Object.} JSON object */ - DeleteEnvironmentRequest.prototype.toJSON = function toJSON() { + DeployFlowResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteEnvironmentRequest; + return DeployFlowResponse; })(); - v3.LookupEnvironmentHistoryRequest = (function() { + v3.DeployFlowMetadata = (function() { /** - * Properties of a LookupEnvironmentHistoryRequest. + * Properties of a DeployFlowMetadata. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ILookupEnvironmentHistoryRequest - * @property {string|null} [name] LookupEnvironmentHistoryRequest name - * @property {number|null} [pageSize] LookupEnvironmentHistoryRequest pageSize - * @property {string|null} [pageToken] LookupEnvironmentHistoryRequest pageToken + * @interface IDeployFlowMetadata + * @property {Array.|null} [testErrors] DeployFlowMetadata testErrors */ /** - * Constructs a new LookupEnvironmentHistoryRequest. + * Constructs a new DeployFlowMetadata. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a LookupEnvironmentHistoryRequest. - * @implements ILookupEnvironmentHistoryRequest + * @classdesc Represents a DeployFlowMetadata. + * @implements IDeployFlowMetadata * @constructor - * @param {google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDeployFlowMetadata=} [properties] Properties to set */ - function LookupEnvironmentHistoryRequest(properties) { + function DeployFlowMetadata(properties) { + this.testErrors = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27149,101 +27241,78 @@ } /** - * LookupEnvironmentHistoryRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest - * @instance - */ - LookupEnvironmentHistoryRequest.prototype.name = ""; - - /** - * LookupEnvironmentHistoryRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest - * @instance - */ - LookupEnvironmentHistoryRequest.prototype.pageSize = 0; - - /** - * LookupEnvironmentHistoryRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest + * DeployFlowMetadata testErrors. + * @member {Array.} testErrors + * @memberof google.cloud.dialogflow.cx.v3.DeployFlowMetadata * @instance */ - LookupEnvironmentHistoryRequest.prototype.pageToken = ""; + DeployFlowMetadata.prototype.testErrors = $util.emptyArray; /** - * Creates a new LookupEnvironmentHistoryRequest instance using the specified properties. + * Creates a new DeployFlowMetadata instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3.DeployFlowMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest instance + * @param {google.cloud.dialogflow.cx.v3.IDeployFlowMetadata=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeployFlowMetadata} DeployFlowMetadata instance */ - LookupEnvironmentHistoryRequest.create = function create(properties) { - return new LookupEnvironmentHistoryRequest(properties); + DeployFlowMetadata.create = function create(properties) { + return new DeployFlowMetadata(properties); }; /** - * Encodes the specified LookupEnvironmentHistoryRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest.verify|verify} messages. + * Encodes the specified DeployFlowMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeployFlowMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3.DeployFlowMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest} message LookupEnvironmentHistoryRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeployFlowMetadata} message DeployFlowMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LookupEnvironmentHistoryRequest.encode = function encode(message, writer) { + DeployFlowMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.testErrors != null && message.testErrors.length) + for (var i = 0; i < message.testErrors.length; ++i) + $root.google.cloud.dialogflow.cx.v3.TestError.encode(message.testErrors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified LookupEnvironmentHistoryRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest.verify|verify} messages. + * Encodes the specified DeployFlowMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeployFlowMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3.DeployFlowMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest} message LookupEnvironmentHistoryRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeployFlowMetadata} message DeployFlowMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LookupEnvironmentHistoryRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeployFlowMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LookupEnvironmentHistoryRequest message from the specified reader or buffer. + * Decodes a DeployFlowMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3.DeployFlowMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest + * @returns {google.cloud.dialogflow.cx.v3.DeployFlowMetadata} DeployFlowMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LookupEnvironmentHistoryRequest.decode = function decode(reader, length) { + DeployFlowMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeployFlowMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); - break; - case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); + if (!(message.testErrors && message.testErrors.length)) + message.testErrors = []; + message.testErrors.push($root.google.cloud.dialogflow.cx.v3.TestError.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -27254,928 +27323,737 @@ }; /** - * Decodes a LookupEnvironmentHistoryRequest message from the specified reader or buffer, length delimited. + * Decodes a DeployFlowMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3.DeployFlowMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest + * @returns {google.cloud.dialogflow.cx.v3.DeployFlowMetadata} DeployFlowMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LookupEnvironmentHistoryRequest.decodeDelimited = function decodeDelimited(reader) { + DeployFlowMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LookupEnvironmentHistoryRequest message. + * Verifies a DeployFlowMetadata message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3.DeployFlowMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LookupEnvironmentHistoryRequest.verify = function verify(message) { + DeployFlowMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.testErrors != null && message.hasOwnProperty("testErrors")) { + if (!Array.isArray(message.testErrors)) + return "testErrors: array expected"; + for (var i = 0; i < message.testErrors.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.TestError.verify(message.testErrors[i]); + if (error) + return "testErrors." + error; + } + } return null; }; /** - * Creates a LookupEnvironmentHistoryRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeployFlowMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3.DeployFlowMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest + * @returns {google.cloud.dialogflow.cx.v3.DeployFlowMetadata} DeployFlowMetadata */ - LookupEnvironmentHistoryRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest) + DeployFlowMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeployFlowMetadata) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.dialogflow.cx.v3.DeployFlowMetadata(); + if (object.testErrors) { + if (!Array.isArray(object.testErrors)) + throw TypeError(".google.cloud.dialogflow.cx.v3.DeployFlowMetadata.testErrors: array expected"); + message.testErrors = []; + for (var i = 0; i < object.testErrors.length; ++i) { + if (typeof object.testErrors[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.DeployFlowMetadata.testErrors: object expected"); + message.testErrors[i] = $root.google.cloud.dialogflow.cx.v3.TestError.fromObject(object.testErrors[i]); + } + } return message; }; /** - * Creates a plain object from a LookupEnvironmentHistoryRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeployFlowMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3.DeployFlowMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest} message LookupEnvironmentHistoryRequest + * @param {google.cloud.dialogflow.cx.v3.DeployFlowMetadata} message DeployFlowMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LookupEnvironmentHistoryRequest.toObject = function toObject(message, options) { + DeployFlowMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.pageSize = 0; - object.pageToken = ""; + if (options.arrays || options.defaults) + object.testErrors = []; + if (message.testErrors && message.testErrors.length) { + object.testErrors = []; + for (var j = 0; j < message.testErrors.length; ++j) + object.testErrors[j] = $root.google.cloud.dialogflow.cx.v3.TestError.toObject(message.testErrors[j], options); } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; return object; }; /** - * Converts this LookupEnvironmentHistoryRequest to JSON. + * Converts this DeployFlowMetadata to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3.DeployFlowMetadata * @instance * @returns {Object.} JSON object */ - LookupEnvironmentHistoryRequest.prototype.toJSON = function toJSON() { + DeployFlowMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return LookupEnvironmentHistoryRequest; + return DeployFlowMetadata; })(); - v3.LookupEnvironmentHistoryResponse = (function() { + v3.TestCases = (function() { /** - * Properties of a LookupEnvironmentHistoryResponse. + * Constructs a new TestCases service. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ILookupEnvironmentHistoryResponse - * @property {Array.|null} [environments] LookupEnvironmentHistoryResponse environments - * @property {string|null} [nextPageToken] LookupEnvironmentHistoryResponse nextPageToken + * @classdesc Represents a TestCases + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ + function TestCases(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (TestCases.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = TestCases; /** - * Constructs a new LookupEnvironmentHistoryResponse. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a LookupEnvironmentHistoryResponse. - * @implements ILookupEnvironmentHistoryResponse - * @constructor - * @param {google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryResponse=} [properties] Properties to set + * Creates new TestCases service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {TestCases} RPC service. Useful where requests and/or responses are streamed. */ - function LookupEnvironmentHistoryResponse(properties) { - this.environments = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + TestCases.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * LookupEnvironmentHistoryResponse environments. - * @member {Array.} environments - * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#listTestCases}. + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @typedef ListTestCasesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.ListTestCasesResponse} [response] ListTestCasesResponse + */ + + /** + * Calls ListTestCases. + * @function listTestCases + * @memberof google.cloud.dialogflow.cx.v3.TestCases * @instance + * @param {google.cloud.dialogflow.cx.v3.IListTestCasesRequest} request ListTestCasesRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TestCases.ListTestCasesCallback} callback Node-style callback called with the error, if any, and ListTestCasesResponse + * @returns {undefined} + * @variation 1 */ - LookupEnvironmentHistoryResponse.prototype.environments = $util.emptyArray; + Object.defineProperty(TestCases.prototype.listTestCases = function listTestCases(request, callback) { + return this.rpcCall(listTestCases, $root.google.cloud.dialogflow.cx.v3.ListTestCasesRequest, $root.google.cloud.dialogflow.cx.v3.ListTestCasesResponse, request, callback); + }, "name", { value: "ListTestCases" }); /** - * LookupEnvironmentHistoryResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse + * Calls ListTestCases. + * @function listTestCases + * @memberof google.cloud.dialogflow.cx.v3.TestCases * @instance + * @param {google.cloud.dialogflow.cx.v3.IListTestCasesRequest} request ListTestCasesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - LookupEnvironmentHistoryResponse.prototype.nextPageToken = ""; /** - * Creates a new LookupEnvironmentHistoryResponse instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse instance + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#batchDeleteTestCases}. + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @typedef BatchDeleteTestCasesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - LookupEnvironmentHistoryResponse.create = function create(properties) { - return new LookupEnvironmentHistoryResponse(properties); - }; /** - * Encodes the specified LookupEnvironmentHistoryResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryResponse} message LookupEnvironmentHistoryResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls BatchDeleteTestCases. + * @function batchDeleteTestCases + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest} request BatchDeleteTestCasesRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TestCases.BatchDeleteTestCasesCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - LookupEnvironmentHistoryResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.environments != null && message.environments.length) - for (var i = 0; i < message.environments.length; ++i) - $root.google.cloud.dialogflow.cx.v3.Environment.encode(message.environments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - return writer; - }; + Object.defineProperty(TestCases.prototype.batchDeleteTestCases = function batchDeleteTestCases(request, callback) { + return this.rpcCall(batchDeleteTestCases, $root.google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "BatchDeleteTestCases" }); /** - * Encodes the specified LookupEnvironmentHistoryResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryResponse} message LookupEnvironmentHistoryResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls BatchDeleteTestCases. + * @function batchDeleteTestCases + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest} request BatchDeleteTestCasesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - LookupEnvironmentHistoryResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a LookupEnvironmentHistoryResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#getTestCase}. + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @typedef GetTestCaseCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.TestCase} [response] TestCase */ - LookupEnvironmentHistoryResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.environments && message.environments.length)) - message.environments = []; - message.environments.push($root.google.cloud.dialogflow.cx.v3.Environment.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a LookupEnvironmentHistoryResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetTestCase. + * @function getTestCase + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseRequest} request GetTestCaseRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TestCases.GetTestCaseCallback} callback Node-style callback called with the error, if any, and TestCase + * @returns {undefined} + * @variation 1 */ - LookupEnvironmentHistoryResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(TestCases.prototype.getTestCase = function getTestCase(request, callback) { + return this.rpcCall(getTestCase, $root.google.cloud.dialogflow.cx.v3.GetTestCaseRequest, $root.google.cloud.dialogflow.cx.v3.TestCase, request, callback); + }, "name", { value: "GetTestCase" }); /** - * Verifies a LookupEnvironmentHistoryResponse message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls GetTestCase. + * @function getTestCase + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseRequest} request GetTestCaseRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - LookupEnvironmentHistoryResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.environments != null && message.hasOwnProperty("environments")) { - if (!Array.isArray(message.environments)) - return "environments: array expected"; - for (var i = 0; i < message.environments.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.Environment.verify(message.environments[i]); - if (error) - return "environments." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; /** - * Creates a LookupEnvironmentHistoryResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#createTestCase}. + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @typedef CreateTestCaseCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.TestCase} [response] TestCase */ - LookupEnvironmentHistoryResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse(); - if (object.environments) { - if (!Array.isArray(object.environments)) - throw TypeError(".google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse.environments: array expected"); - message.environments = []; - for (var i = 0; i < object.environments.length; ++i) { - if (typeof object.environments[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse.environments: object expected"); - message.environments[i] = $root.google.cloud.dialogflow.cx.v3.Environment.fromObject(object.environments[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; /** - * Creates a plain object from a LookupEnvironmentHistoryResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse} message LookupEnvironmentHistoryResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls CreateTestCase. + * @function createTestCase + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest} request CreateTestCaseRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TestCases.CreateTestCaseCallback} callback Node-style callback called with the error, if any, and TestCase + * @returns {undefined} + * @variation 1 */ - LookupEnvironmentHistoryResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.environments = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.environments && message.environments.length) { - object.environments = []; - for (var j = 0; j < message.environments.length; ++j) - object.environments[j] = $root.google.cloud.dialogflow.cx.v3.Environment.toObject(message.environments[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; + Object.defineProperty(TestCases.prototype.createTestCase = function createTestCase(request, callback) { + return this.rpcCall(createTestCase, $root.google.cloud.dialogflow.cx.v3.CreateTestCaseRequest, $root.google.cloud.dialogflow.cx.v3.TestCase, request, callback); + }, "name", { value: "CreateTestCase" }); /** - * Converts this LookupEnvironmentHistoryResponse to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse + * Calls CreateTestCase. + * @function createTestCase + * @memberof google.cloud.dialogflow.cx.v3.TestCases * @instance - * @returns {Object.} JSON object + * @param {google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest} request CreateTestCaseRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - LookupEnvironmentHistoryResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - return LookupEnvironmentHistoryResponse; - })(); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#updateTestCase}. + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @typedef UpdateTestCaseCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.TestCase} [response] TestCase + */ - v3.ContinuousTestResult = (function() { + /** + * Calls UpdateTestCase. + * @function updateTestCase + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest} request UpdateTestCaseRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TestCases.UpdateTestCaseCallback} callback Node-style callback called with the error, if any, and TestCase + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(TestCases.prototype.updateTestCase = function updateTestCase(request, callback) { + return this.rpcCall(updateTestCase, $root.google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest, $root.google.cloud.dialogflow.cx.v3.TestCase, request, callback); + }, "name", { value: "UpdateTestCase" }); /** - * Properties of a ContinuousTestResult. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IContinuousTestResult - * @property {string|null} [name] ContinuousTestResult name - * @property {google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult|null} [result] ContinuousTestResult result - * @property {Array.|null} [testCaseResults] ContinuousTestResult testCaseResults - * @property {google.protobuf.ITimestamp|null} [runTime] ContinuousTestResult runTime + * Calls UpdateTestCase. + * @function updateTestCase + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest} request UpdateTestCaseRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new ContinuousTestResult. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ContinuousTestResult. - * @implements IContinuousTestResult - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IContinuousTestResult=} [properties] Properties to set + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#runTestCase}. + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @typedef RunTestCaseCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - function ContinuousTestResult(properties) { - this.testCaseResults = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } /** - * ContinuousTestResult name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.ContinuousTestResult + * Calls RunTestCase. + * @function runTestCase + * @memberof google.cloud.dialogflow.cx.v3.TestCases * @instance + * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseRequest} request RunTestCaseRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TestCases.RunTestCaseCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - ContinuousTestResult.prototype.name = ""; + Object.defineProperty(TestCases.prototype.runTestCase = function runTestCase(request, callback) { + return this.rpcCall(runTestCase, $root.google.cloud.dialogflow.cx.v3.RunTestCaseRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "RunTestCase" }); /** - * ContinuousTestResult result. - * @member {google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult} result - * @memberof google.cloud.dialogflow.cx.v3.ContinuousTestResult + * Calls RunTestCase. + * @function runTestCase + * @memberof google.cloud.dialogflow.cx.v3.TestCases * @instance + * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseRequest} request RunTestCaseRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ContinuousTestResult.prototype.result = 0; /** - * ContinuousTestResult testCaseResults. - * @member {Array.} testCaseResults - * @memberof google.cloud.dialogflow.cx.v3.ContinuousTestResult - * @instance + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#batchRunTestCases}. + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @typedef BatchRunTestCasesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - ContinuousTestResult.prototype.testCaseResults = $util.emptyArray; /** - * ContinuousTestResult runTime. - * @member {google.protobuf.ITimestamp|null|undefined} runTime - * @memberof google.cloud.dialogflow.cx.v3.ContinuousTestResult + * Calls BatchRunTestCases. + * @function batchRunTestCases + * @memberof google.cloud.dialogflow.cx.v3.TestCases * @instance + * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest} request BatchRunTestCasesRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCasesCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - ContinuousTestResult.prototype.runTime = null; + Object.defineProperty(TestCases.prototype.batchRunTestCases = function batchRunTestCases(request, callback) { + return this.rpcCall(batchRunTestCases, $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "BatchRunTestCases" }); /** - * Creates a new ContinuousTestResult instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.ContinuousTestResult - * @static - * @param {google.cloud.dialogflow.cx.v3.IContinuousTestResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ContinuousTestResult} ContinuousTestResult instance + * Calls BatchRunTestCases. + * @function batchRunTestCases + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest} request BatchRunTestCasesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ContinuousTestResult.create = function create(properties) { - return new ContinuousTestResult(properties); - }; /** - * Encodes the specified ContinuousTestResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ContinuousTestResult.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ContinuousTestResult - * @static - * @param {google.cloud.dialogflow.cx.v3.IContinuousTestResult} message ContinuousTestResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#calculateCoverage}. + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @typedef CalculateCoverageCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.CalculateCoverageResponse} [response] CalculateCoverageResponse */ - ContinuousTestResult.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.result); - if (message.testCaseResults != null && message.testCaseResults.length) - for (var i = 0; i < message.testCaseResults.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.testCaseResults[i]); - if (message.runTime != null && Object.hasOwnProperty.call(message, "runTime")) - $root.google.protobuf.Timestamp.encode(message.runTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; /** - * Encodes the specified ContinuousTestResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ContinuousTestResult.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ContinuousTestResult - * @static - * @param {google.cloud.dialogflow.cx.v3.IContinuousTestResult} message ContinuousTestResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CalculateCoverage. + * @function calculateCoverage + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest} request CalculateCoverageRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TestCases.CalculateCoverageCallback} callback Node-style callback called with the error, if any, and CalculateCoverageResponse + * @returns {undefined} + * @variation 1 */ - ContinuousTestResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(TestCases.prototype.calculateCoverage = function calculateCoverage(request, callback) { + return this.rpcCall(calculateCoverage, $root.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest, $root.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse, request, callback); + }, "name", { value: "CalculateCoverage" }); /** - * Decodes a ContinuousTestResult message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ContinuousTestResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ContinuousTestResult} ContinuousTestResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CalculateCoverage. + * @function calculateCoverage + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest} request CalculateCoverageRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ContinuousTestResult.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ContinuousTestResult(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.result = reader.int32(); - break; - case 3: - if (!(message.testCaseResults && message.testCaseResults.length)) - message.testCaseResults = []; - message.testCaseResults.push(reader.string()); - break; - case 4: - message.runTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a ContinuousTestResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ContinuousTestResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ContinuousTestResult} ContinuousTestResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#importTestCases}. + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @typedef ImportTestCasesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - ContinuousTestResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a ContinuousTestResult message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ContinuousTestResult - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls ImportTestCases. + * @function importTestCases + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesRequest} request ImportTestCasesRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TestCases.ImportTestCasesCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - ContinuousTestResult.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.result != null && message.hasOwnProperty("result")) - switch (message.result) { - default: - return "result: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.testCaseResults != null && message.hasOwnProperty("testCaseResults")) { - if (!Array.isArray(message.testCaseResults)) - return "testCaseResults: array expected"; - for (var i = 0; i < message.testCaseResults.length; ++i) - if (!$util.isString(message.testCaseResults[i])) - return "testCaseResults: string[] expected"; - } - if (message.runTime != null && message.hasOwnProperty("runTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.runTime); - if (error) - return "runTime." + error; - } - return null; - }; + Object.defineProperty(TestCases.prototype.importTestCases = function importTestCases(request, callback) { + return this.rpcCall(importTestCases, $root.google.cloud.dialogflow.cx.v3.ImportTestCasesRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "ImportTestCases" }); /** - * Creates a ContinuousTestResult message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ContinuousTestResult - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ContinuousTestResult} ContinuousTestResult + * Calls ImportTestCases. + * @function importTestCases + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesRequest} request ImportTestCasesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ContinuousTestResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ContinuousTestResult) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ContinuousTestResult(); - if (object.name != null) - message.name = String(object.name); - switch (object.result) { - case "AGGREGATED_TEST_RESULT_UNSPECIFIED": - case 0: - message.result = 0; - break; - case "PASSED": - case 1: - message.result = 1; - break; - case "FAILED": - case 2: - message.result = 2; - break; - } - if (object.testCaseResults) { - if (!Array.isArray(object.testCaseResults)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ContinuousTestResult.testCaseResults: array expected"); - message.testCaseResults = []; - for (var i = 0; i < object.testCaseResults.length; ++i) - message.testCaseResults[i] = String(object.testCaseResults[i]); - } - if (object.runTime != null) { - if (typeof object.runTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ContinuousTestResult.runTime: object expected"); - message.runTime = $root.google.protobuf.Timestamp.fromObject(object.runTime); - } - return message; - }; /** - * Creates a plain object from a ContinuousTestResult message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ContinuousTestResult - * @static - * @param {google.cloud.dialogflow.cx.v3.ContinuousTestResult} message ContinuousTestResult - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#exportTestCases}. + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @typedef ExportTestCasesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - ContinuousTestResult.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.testCaseResults = []; - if (options.defaults) { - object.name = ""; - object.result = options.enums === String ? "AGGREGATED_TEST_RESULT_UNSPECIFIED" : 0; - object.runTime = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.result != null && message.hasOwnProperty("result")) - object.result = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult[message.result] : message.result; - if (message.testCaseResults && message.testCaseResults.length) { - object.testCaseResults = []; - for (var j = 0; j < message.testCaseResults.length; ++j) - object.testCaseResults[j] = message.testCaseResults[j]; - } - if (message.runTime != null && message.hasOwnProperty("runTime")) - object.runTime = $root.google.protobuf.Timestamp.toObject(message.runTime, options); - return object; - }; /** - * Converts this ContinuousTestResult to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ContinuousTestResult + * Calls ExportTestCases. + * @function exportTestCases + * @memberof google.cloud.dialogflow.cx.v3.TestCases * @instance - * @returns {Object.} JSON object + * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesRequest} request ExportTestCasesRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TestCases.ExportTestCasesCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - ContinuousTestResult.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(TestCases.prototype.exportTestCases = function exportTestCases(request, callback) { + return this.rpcCall(exportTestCases, $root.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "ExportTestCases" }); /** - * AggregatedTestResult enum. - * @name google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult - * @enum {number} - * @property {number} AGGREGATED_TEST_RESULT_UNSPECIFIED=0 AGGREGATED_TEST_RESULT_UNSPECIFIED value - * @property {number} PASSED=1 PASSED value - * @property {number} FAILED=2 FAILED value + * Calls ExportTestCases. + * @function exportTestCases + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesRequest} request ExportTestCasesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ContinuousTestResult.AggregatedTestResult = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "AGGREGATED_TEST_RESULT_UNSPECIFIED"] = 0; - values[valuesById[1] = "PASSED"] = 1; - values[valuesById[2] = "FAILED"] = 2; - return values; - })(); - - return ContinuousTestResult; - })(); - - v3.RunContinuousTestRequest = (function() { /** - * Properties of a RunContinuousTestRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IRunContinuousTestRequest - * @property {string|null} [environment] RunContinuousTestRequest environment + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#listTestCaseResults}. + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @typedef ListTestCaseResultsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse} [response] ListTestCaseResultsResponse */ /** - * Constructs a new RunContinuousTestRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a RunContinuousTestRequest. - * @implements IRunContinuousTestRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IRunContinuousTestRequest=} [properties] Properties to set + * Calls ListTestCaseResults. + * @function listTestCaseResults + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest} request ListTestCaseResultsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResultsCallback} callback Node-style callback called with the error, if any, and ListTestCaseResultsResponse + * @returns {undefined} + * @variation 1 */ - function RunContinuousTestRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Object.defineProperty(TestCases.prototype.listTestCaseResults = function listTestCaseResults(request, callback) { + return this.rpcCall(listTestCaseResults, $root.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest, $root.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse, request, callback); + }, "name", { value: "ListTestCaseResults" }); /** - * RunContinuousTestRequest environment. - * @member {string} environment - * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestRequest + * Calls ListTestCaseResults. + * @function listTestCaseResults + * @memberof google.cloud.dialogflow.cx.v3.TestCases * @instance + * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest} request ListTestCaseResultsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - RunContinuousTestRequest.prototype.environment = ""; /** - * Creates a new RunContinuousTestRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IRunContinuousTestRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.RunContinuousTestRequest} RunContinuousTestRequest instance + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#getTestCaseResult}. + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @typedef GetTestCaseResultCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.TestCaseResult} [response] TestCaseResult */ - RunContinuousTestRequest.create = function create(properties) { - return new RunContinuousTestRequest(properties); - }; /** - * Encodes the specified RunContinuousTestRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunContinuousTestRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IRunContinuousTestRequest} message RunContinuousTestRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls GetTestCaseResult. + * @function getTestCaseResult + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseResultRequest} request GetTestCaseResultRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TestCases.GetTestCaseResultCallback} callback Node-style callback called with the error, if any, and TestCaseResult + * @returns {undefined} + * @variation 1 */ - RunContinuousTestRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.environment); - return writer; - }; + Object.defineProperty(TestCases.prototype.getTestCaseResult = function getTestCaseResult(request, callback) { + return this.rpcCall(getTestCaseResult, $root.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest, $root.google.cloud.dialogflow.cx.v3.TestCaseResult, request, callback); + }, "name", { value: "GetTestCaseResult" }); /** - * Encodes the specified RunContinuousTestRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunContinuousTestRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IRunContinuousTestRequest} message RunContinuousTestRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls GetTestCaseResult. + * @function getTestCaseResult + * @memberof google.cloud.dialogflow.cx.v3.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseResultRequest} request GetTestCaseResultRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - RunContinuousTestRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + + return TestCases; + })(); + + v3.TestCase = (function() { /** - * Decodes a RunContinuousTestRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.RunContinuousTestRequest} RunContinuousTestRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Properties of a TestCase. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface ITestCase + * @property {string|null} [name] TestCase name + * @property {Array.|null} [tags] TestCase tags + * @property {string|null} [displayName] TestCase displayName + * @property {string|null} [notes] TestCase notes + * @property {google.cloud.dialogflow.cx.v3.ITestConfig|null} [testConfig] TestCase testConfig + * @property {Array.|null} [testCaseConversationTurns] TestCase testCaseConversationTurns + * @property {google.protobuf.ITimestamp|null} [creationTime] TestCase creationTime + * @property {google.cloud.dialogflow.cx.v3.ITestCaseResult|null} [lastTestResult] TestCase lastTestResult */ - RunContinuousTestRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.environment = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a RunContinuousTestRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.RunContinuousTestRequest} RunContinuousTestRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Constructs a new TestCase. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a TestCase. + * @implements ITestCase + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ITestCase=} [properties] Properties to set */ - RunContinuousTestRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + function TestCase(properties) { + this.tags = []; + this.testCaseConversationTurns = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Verifies a RunContinuousTestRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * TestCase name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.TestCase + * @instance */ - RunContinuousTestRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.environment != null && message.hasOwnProperty("environment")) - if (!$util.isString(message.environment)) - return "environment: string expected"; - return null; - }; + TestCase.prototype.name = ""; /** - * Creates a RunContinuousTestRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.RunContinuousTestRequest} RunContinuousTestRequest + * TestCase tags. + * @member {Array.} tags + * @memberof google.cloud.dialogflow.cx.v3.TestCase + * @instance */ - RunContinuousTestRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest(); - if (object.environment != null) - message.environment = String(object.environment); - return message; - }; + TestCase.prototype.tags = $util.emptyArray; /** - * Creates a plain object from a RunContinuousTestRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.RunContinuousTestRequest} message RunContinuousTestRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * TestCase displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.TestCase + * @instance */ - RunContinuousTestRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.environment = ""; - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = message.environment; - return object; - }; + TestCase.prototype.displayName = ""; /** - * Converts this RunContinuousTestRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestRequest + * TestCase notes. + * @member {string} notes + * @memberof google.cloud.dialogflow.cx.v3.TestCase * @instance - * @returns {Object.} JSON object */ - RunContinuousTestRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return RunContinuousTestRequest; - })(); + TestCase.prototype.notes = ""; - v3.RunContinuousTestResponse = (function() { + /** + * TestCase testConfig. + * @member {google.cloud.dialogflow.cx.v3.ITestConfig|null|undefined} testConfig + * @memberof google.cloud.dialogflow.cx.v3.TestCase + * @instance + */ + TestCase.prototype.testConfig = null; /** - * Properties of a RunContinuousTestResponse. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IRunContinuousTestResponse - * @property {google.cloud.dialogflow.cx.v3.IContinuousTestResult|null} [continuousTestResult] RunContinuousTestResponse continuousTestResult + * TestCase testCaseConversationTurns. + * @member {Array.} testCaseConversationTurns + * @memberof google.cloud.dialogflow.cx.v3.TestCase + * @instance */ + TestCase.prototype.testCaseConversationTurns = $util.emptyArray; /** - * Constructs a new RunContinuousTestResponse. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a RunContinuousTestResponse. - * @implements IRunContinuousTestResponse - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IRunContinuousTestResponse=} [properties] Properties to set + * TestCase creationTime. + * @member {google.protobuf.ITimestamp|null|undefined} creationTime + * @memberof google.cloud.dialogflow.cx.v3.TestCase + * @instance */ - function RunContinuousTestResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + TestCase.prototype.creationTime = null; /** - * RunContinuousTestResponse continuousTestResult. - * @member {google.cloud.dialogflow.cx.v3.IContinuousTestResult|null|undefined} continuousTestResult - * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestResponse + * TestCase lastTestResult. + * @member {google.cloud.dialogflow.cx.v3.ITestCaseResult|null|undefined} lastTestResult + * @memberof google.cloud.dialogflow.cx.v3.TestCase * @instance */ - RunContinuousTestResponse.prototype.continuousTestResult = null; + TestCase.prototype.lastTestResult = null; /** - * Creates a new RunContinuousTestResponse instance using the specified properties. + * Creates a new TestCase instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestResponse + * @memberof google.cloud.dialogflow.cx.v3.TestCase * @static - * @param {google.cloud.dialogflow.cx.v3.IRunContinuousTestResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.RunContinuousTestResponse} RunContinuousTestResponse instance + * @param {google.cloud.dialogflow.cx.v3.ITestCase=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TestCase} TestCase instance */ - RunContinuousTestResponse.create = function create(properties) { - return new RunContinuousTestResponse(properties); + TestCase.create = function create(properties) { + return new TestCase(properties); }; /** - * Encodes the specified RunContinuousTestResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunContinuousTestResponse.verify|verify} messages. + * Encodes the specified TestCase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCase.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestResponse + * @memberof google.cloud.dialogflow.cx.v3.TestCase * @static - * @param {google.cloud.dialogflow.cx.v3.IRunContinuousTestResponse} message RunContinuousTestResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITestCase} message TestCase message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunContinuousTestResponse.encode = function encode(message, writer) { + TestCase.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.continuousTestResult != null && Object.hasOwnProperty.call(message, "continuousTestResult")) - $root.google.cloud.dialogflow.cx.v3.ContinuousTestResult.encode(message.continuousTestResult, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.tags != null && message.tags.length) + for (var i = 0; i < message.tags.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.tags[i]); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); + if (message.notes != null && Object.hasOwnProperty.call(message, "notes")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.notes); + if (message.testCaseConversationTurns != null && message.testCaseConversationTurns.length) + for (var i = 0; i < message.testCaseConversationTurns.length; ++i) + $root.google.cloud.dialogflow.cx.v3.ConversationTurn.encode(message.testCaseConversationTurns[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.creationTime != null && Object.hasOwnProperty.call(message, "creationTime")) + $root.google.protobuf.Timestamp.encode(message.creationTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.lastTestResult != null && Object.hasOwnProperty.call(message, "lastTestResult")) + $root.google.cloud.dialogflow.cx.v3.TestCaseResult.encode(message.lastTestResult, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.testConfig != null && Object.hasOwnProperty.call(message, "testConfig")) + $root.google.cloud.dialogflow.cx.v3.TestConfig.encode(message.testConfig, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); return writer; }; /** - * Encodes the specified RunContinuousTestResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunContinuousTestResponse.verify|verify} messages. + * Encodes the specified TestCase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCase.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestResponse + * @memberof google.cloud.dialogflow.cx.v3.TestCase * @static - * @param {google.cloud.dialogflow.cx.v3.IRunContinuousTestResponse} message RunContinuousTestResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITestCase} message TestCase message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunContinuousTestResponse.encodeDelimited = function encodeDelimited(message, writer) { + TestCase.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RunContinuousTestResponse message from the specified reader or buffer. + * Decodes a TestCase message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestResponse + * @memberof google.cloud.dialogflow.cx.v3.TestCase * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.RunContinuousTestResponse} RunContinuousTestResponse + * @returns {google.cloud.dialogflow.cx.v3.TestCase} TestCase * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunContinuousTestResponse.decode = function decode(reader, length) { + TestCase.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TestCase(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.continuousTestResult = $root.google.cloud.dialogflow.cx.v3.ContinuousTestResult.decode(reader, reader.uint32()); + message.name = reader.string(); + break; + case 2: + if (!(message.tags && message.tags.length)) + message.tags = []; + message.tags.push(reader.string()); + break; + case 3: + message.displayName = reader.string(); + break; + case 4: + message.notes = reader.string(); + break; + case 13: + message.testConfig = $root.google.cloud.dialogflow.cx.v3.TestConfig.decode(reader, reader.uint32()); + break; + case 5: + if (!(message.testCaseConversationTurns && message.testCaseConversationTurns.length)) + message.testCaseConversationTurns = []; + message.testCaseConversationTurns.push($root.google.cloud.dialogflow.cx.v3.ConversationTurn.decode(reader, reader.uint32())); + break; + case 10: + message.creationTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 12: + message.lastTestResult = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -28186,113 +28064,215 @@ }; /** - * Decodes a RunContinuousTestResponse message from the specified reader or buffer, length delimited. + * Decodes a TestCase message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestResponse + * @memberof google.cloud.dialogflow.cx.v3.TestCase * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.RunContinuousTestResponse} RunContinuousTestResponse + * @returns {google.cloud.dialogflow.cx.v3.TestCase} TestCase * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunContinuousTestResponse.decodeDelimited = function decodeDelimited(reader) { + TestCase.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RunContinuousTestResponse message. + * Verifies a TestCase message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestResponse + * @memberof google.cloud.dialogflow.cx.v3.TestCase * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RunContinuousTestResponse.verify = function verify(message) { + TestCase.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.continuousTestResult != null && message.hasOwnProperty("continuousTestResult")) { - var error = $root.google.cloud.dialogflow.cx.v3.ContinuousTestResult.verify(message.continuousTestResult); - if (error) - return "continuousTestResult." + error; - } - return null; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!Array.isArray(message.tags)) + return "tags: array expected"; + for (var i = 0; i < message.tags.length; ++i) + if (!$util.isString(message.tags[i])) + return "tags: string[] expected"; + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.notes != null && message.hasOwnProperty("notes")) + if (!$util.isString(message.notes)) + return "notes: string expected"; + if (message.testConfig != null && message.hasOwnProperty("testConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3.TestConfig.verify(message.testConfig); + if (error) + return "testConfig." + error; + } + if (message.testCaseConversationTurns != null && message.hasOwnProperty("testCaseConversationTurns")) { + if (!Array.isArray(message.testCaseConversationTurns)) + return "testCaseConversationTurns: array expected"; + for (var i = 0; i < message.testCaseConversationTurns.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.verify(message.testCaseConversationTurns[i]); + if (error) + return "testCaseConversationTurns." + error; + } + } + if (message.creationTime != null && message.hasOwnProperty("creationTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.creationTime); + if (error) + return "creationTime." + error; + } + if (message.lastTestResult != null && message.hasOwnProperty("lastTestResult")) { + var error = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.verify(message.lastTestResult); + if (error) + return "lastTestResult." + error; + } + return null; }; /** - * Creates a RunContinuousTestResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TestCase message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestResponse + * @memberof google.cloud.dialogflow.cx.v3.TestCase * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.RunContinuousTestResponse} RunContinuousTestResponse + * @returns {google.cloud.dialogflow.cx.v3.TestCase} TestCase */ - RunContinuousTestResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse) + TestCase.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TestCase) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse(); - if (object.continuousTestResult != null) { - if (typeof object.continuousTestResult !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.RunContinuousTestResponse.continuousTestResult: object expected"); - message.continuousTestResult = $root.google.cloud.dialogflow.cx.v3.ContinuousTestResult.fromObject(object.continuousTestResult); + var message = new $root.google.cloud.dialogflow.cx.v3.TestCase(); + if (object.name != null) + message.name = String(object.name); + if (object.tags) { + if (!Array.isArray(object.tags)) + throw TypeError(".google.cloud.dialogflow.cx.v3.TestCase.tags: array expected"); + message.tags = []; + for (var i = 0; i < object.tags.length; ++i) + message.tags[i] = String(object.tags[i]); + } + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.notes != null) + message.notes = String(object.notes); + if (object.testConfig != null) { + if (typeof object.testConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TestCase.testConfig: object expected"); + message.testConfig = $root.google.cloud.dialogflow.cx.v3.TestConfig.fromObject(object.testConfig); + } + if (object.testCaseConversationTurns) { + if (!Array.isArray(object.testCaseConversationTurns)) + throw TypeError(".google.cloud.dialogflow.cx.v3.TestCase.testCaseConversationTurns: array expected"); + message.testCaseConversationTurns = []; + for (var i = 0; i < object.testCaseConversationTurns.length; ++i) { + if (typeof object.testCaseConversationTurns[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TestCase.testCaseConversationTurns: object expected"); + message.testCaseConversationTurns[i] = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.fromObject(object.testCaseConversationTurns[i]); + } + } + if (object.creationTime != null) { + if (typeof object.creationTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TestCase.creationTime: object expected"); + message.creationTime = $root.google.protobuf.Timestamp.fromObject(object.creationTime); + } + if (object.lastTestResult != null) { + if (typeof object.lastTestResult !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TestCase.lastTestResult: object expected"); + message.lastTestResult = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.fromObject(object.lastTestResult); } return message; }; /** - * Creates a plain object from a RunContinuousTestResponse message. Also converts values to other types if specified. + * Creates a plain object from a TestCase message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestResponse + * @memberof google.cloud.dialogflow.cx.v3.TestCase * @static - * @param {google.cloud.dialogflow.cx.v3.RunContinuousTestResponse} message RunContinuousTestResponse + * @param {google.cloud.dialogflow.cx.v3.TestCase} message TestCase * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RunContinuousTestResponse.toObject = function toObject(message, options) { + TestCase.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.continuousTestResult = null; - if (message.continuousTestResult != null && message.hasOwnProperty("continuousTestResult")) - object.continuousTestResult = $root.google.cloud.dialogflow.cx.v3.ContinuousTestResult.toObject(message.continuousTestResult, options); + if (options.arrays || options.defaults) { + object.tags = []; + object.testCaseConversationTurns = []; + } + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.notes = ""; + object.creationTime = null; + object.lastTestResult = null; + object.testConfig = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.tags && message.tags.length) { + object.tags = []; + for (var j = 0; j < message.tags.length; ++j) + object.tags[j] = message.tags[j]; + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.notes != null && message.hasOwnProperty("notes")) + object.notes = message.notes; + if (message.testCaseConversationTurns && message.testCaseConversationTurns.length) { + object.testCaseConversationTurns = []; + for (var j = 0; j < message.testCaseConversationTurns.length; ++j) + object.testCaseConversationTurns[j] = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.toObject(message.testCaseConversationTurns[j], options); + } + if (message.creationTime != null && message.hasOwnProperty("creationTime")) + object.creationTime = $root.google.protobuf.Timestamp.toObject(message.creationTime, options); + if (message.lastTestResult != null && message.hasOwnProperty("lastTestResult")) + object.lastTestResult = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.toObject(message.lastTestResult, options); + if (message.testConfig != null && message.hasOwnProperty("testConfig")) + object.testConfig = $root.google.cloud.dialogflow.cx.v3.TestConfig.toObject(message.testConfig, options); return object; }; /** - * Converts this RunContinuousTestResponse to JSON. + * Converts this TestCase to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestResponse + * @memberof google.cloud.dialogflow.cx.v3.TestCase * @instance * @returns {Object.} JSON object */ - RunContinuousTestResponse.prototype.toJSON = function toJSON() { + TestCase.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RunContinuousTestResponse; + return TestCase; })(); - v3.RunContinuousTestMetadata = (function() { + v3.TestCaseResult = (function() { /** - * Properties of a RunContinuousTestMetadata. + * Properties of a TestCaseResult. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IRunContinuousTestMetadata - * @property {Array.|null} [errors] RunContinuousTestMetadata errors + * @interface ITestCaseResult + * @property {string|null} [name] TestCaseResult name + * @property {string|null} [environment] TestCaseResult environment + * @property {Array.|null} [conversationTurns] TestCaseResult conversationTurns + * @property {google.cloud.dialogflow.cx.v3.TestResult|null} [testResult] TestCaseResult testResult + * @property {google.protobuf.ITimestamp|null} [testTime] TestCaseResult testTime */ /** - * Constructs a new RunContinuousTestMetadata. + * Constructs a new TestCaseResult. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a RunContinuousTestMetadata. - * @implements IRunContinuousTestMetadata + * @classdesc Represents a TestCaseResult. + * @implements ITestCaseResult * @constructor - * @param {google.cloud.dialogflow.cx.v3.IRunContinuousTestMetadata=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ITestCaseResult=} [properties] Properties to set */ - function RunContinuousTestMetadata(properties) { - this.errors = []; + function TestCaseResult(properties) { + this.conversationTurns = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28300,78 +28280,130 @@ } /** - * RunContinuousTestMetadata errors. - * @member {Array.} errors - * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata + * TestCaseResult name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult * @instance */ - RunContinuousTestMetadata.prototype.errors = $util.emptyArray; + TestCaseResult.prototype.name = ""; /** - * Creates a new RunContinuousTestMetadata instance using the specified properties. + * TestCaseResult environment. + * @member {string} environment + * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @instance + */ + TestCaseResult.prototype.environment = ""; + + /** + * TestCaseResult conversationTurns. + * @member {Array.} conversationTurns + * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @instance + */ + TestCaseResult.prototype.conversationTurns = $util.emptyArray; + + /** + * TestCaseResult testResult. + * @member {google.cloud.dialogflow.cx.v3.TestResult} testResult + * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @instance + */ + TestCaseResult.prototype.testResult = 0; + + /** + * TestCaseResult testTime. + * @member {google.protobuf.ITimestamp|null|undefined} testTime + * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @instance + */ + TestCaseResult.prototype.testTime = null; + + /** + * Creates a new TestCaseResult instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata + * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult * @static - * @param {google.cloud.dialogflow.cx.v3.IRunContinuousTestMetadata=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata} RunContinuousTestMetadata instance + * @param {google.cloud.dialogflow.cx.v3.ITestCaseResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TestCaseResult} TestCaseResult instance */ - RunContinuousTestMetadata.create = function create(properties) { - return new RunContinuousTestMetadata(properties); + TestCaseResult.create = function create(properties) { + return new TestCaseResult(properties); }; /** - * Encodes the specified RunContinuousTestMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata.verify|verify} messages. + * Encodes the specified TestCaseResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCaseResult.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata + * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult * @static - * @param {google.cloud.dialogflow.cx.v3.IRunContinuousTestMetadata} message RunContinuousTestMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITestCaseResult} message TestCaseResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunContinuousTestMetadata.encode = function encode(message, writer) { + TestCaseResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.errors != null && message.errors.length) - for (var i = 0; i < message.errors.length; ++i) - $root.google.cloud.dialogflow.cx.v3.TestError.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.environment); + if (message.conversationTurns != null && message.conversationTurns.length) + for (var i = 0; i < message.conversationTurns.length; ++i) + $root.google.cloud.dialogflow.cx.v3.ConversationTurn.encode(message.conversationTurns[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.testResult != null && Object.hasOwnProperty.call(message, "testResult")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.testResult); + if (message.testTime != null && Object.hasOwnProperty.call(message, "testTime")) + $root.google.protobuf.Timestamp.encode(message.testTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified RunContinuousTestMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata.verify|verify} messages. + * Encodes the specified TestCaseResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCaseResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata + * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult * @static - * @param {google.cloud.dialogflow.cx.v3.IRunContinuousTestMetadata} message RunContinuousTestMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITestCaseResult} message TestCaseResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunContinuousTestMetadata.encodeDelimited = function encodeDelimited(message, writer) { + TestCaseResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RunContinuousTestMetadata message from the specified reader or buffer. + * Decodes a TestCaseResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata + * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata} RunContinuousTestMetadata + * @returns {google.cloud.dialogflow.cx.v3.TestCaseResult} TestCaseResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunContinuousTestMetadata.decode = function decode(reader, length) { + TestCaseResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TestCaseResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.errors && message.errors.length)) - message.errors = []; - message.errors.push($root.google.cloud.dialogflow.cx.v3.TestError.decode(reader, reader.uint32())); + message.name = reader.string(); + break; + case 2: + message.environment = reader.string(); + break; + case 3: + if (!(message.conversationTurns && message.conversationTurns.length)) + message.conversationTurns = []; + message.conversationTurns.push($root.google.cloud.dialogflow.cx.v3.ConversationTurn.decode(reader, reader.uint32())); + break; + case 4: + message.testResult = reader.int32(); + break; + case 5: + message.testTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -28382,126 +28414,183 @@ }; /** - * Decodes a RunContinuousTestMetadata message from the specified reader or buffer, length delimited. + * Decodes a TestCaseResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata + * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata} RunContinuousTestMetadata + * @returns {google.cloud.dialogflow.cx.v3.TestCaseResult} TestCaseResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunContinuousTestMetadata.decodeDelimited = function decodeDelimited(reader) { + TestCaseResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RunContinuousTestMetadata message. + * Verifies a TestCaseResult message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata + * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RunContinuousTestMetadata.verify = function verify(message) { + TestCaseResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.errors != null && message.hasOwnProperty("errors")) { - if (!Array.isArray(message.errors)) - return "errors: array expected"; - for (var i = 0; i < message.errors.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.TestError.verify(message.errors[i]); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.environment != null && message.hasOwnProperty("environment")) + if (!$util.isString(message.environment)) + return "environment: string expected"; + if (message.conversationTurns != null && message.hasOwnProperty("conversationTurns")) { + if (!Array.isArray(message.conversationTurns)) + return "conversationTurns: array expected"; + for (var i = 0; i < message.conversationTurns.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.verify(message.conversationTurns[i]); if (error) - return "errors." + error; + return "conversationTurns." + error; + } + } + if (message.testResult != null && message.hasOwnProperty("testResult")) + switch (message.testResult) { + default: + return "testResult: enum value expected"; + case 0: + case 1: + case 2: + break; } + if (message.testTime != null && message.hasOwnProperty("testTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.testTime); + if (error) + return "testTime." + error; } return null; }; /** - * Creates a RunContinuousTestMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a TestCaseResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata + * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata} RunContinuousTestMetadata + * @returns {google.cloud.dialogflow.cx.v3.TestCaseResult} TestCaseResult */ - RunContinuousTestMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata) + TestCaseResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TestCaseResult) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata(); - if (object.errors) { - if (!Array.isArray(object.errors)) - throw TypeError(".google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata.errors: array expected"); - message.errors = []; - for (var i = 0; i < object.errors.length; ++i) { - if (typeof object.errors[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata.errors: object expected"); - message.errors[i] = $root.google.cloud.dialogflow.cx.v3.TestError.fromObject(object.errors[i]); + var message = new $root.google.cloud.dialogflow.cx.v3.TestCaseResult(); + if (object.name != null) + message.name = String(object.name); + if (object.environment != null) + message.environment = String(object.environment); + if (object.conversationTurns) { + if (!Array.isArray(object.conversationTurns)) + throw TypeError(".google.cloud.dialogflow.cx.v3.TestCaseResult.conversationTurns: array expected"); + message.conversationTurns = []; + for (var i = 0; i < object.conversationTurns.length; ++i) { + if (typeof object.conversationTurns[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TestCaseResult.conversationTurns: object expected"); + message.conversationTurns[i] = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.fromObject(object.conversationTurns[i]); } } + switch (object.testResult) { + case "TEST_RESULT_UNSPECIFIED": + case 0: + message.testResult = 0; + break; + case "PASSED": + case 1: + message.testResult = 1; + break; + case "FAILED": + case 2: + message.testResult = 2; + break; + } + if (object.testTime != null) { + if (typeof object.testTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TestCaseResult.testTime: object expected"); + message.testTime = $root.google.protobuf.Timestamp.fromObject(object.testTime); + } return message; }; /** - * Creates a plain object from a RunContinuousTestMetadata message. Also converts values to other types if specified. + * Creates a plain object from a TestCaseResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata + * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult * @static - * @param {google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata} message RunContinuousTestMetadata + * @param {google.cloud.dialogflow.cx.v3.TestCaseResult} message TestCaseResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RunContinuousTestMetadata.toObject = function toObject(message, options) { + TestCaseResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.errors = []; - if (message.errors && message.errors.length) { - object.errors = []; - for (var j = 0; j < message.errors.length; ++j) - object.errors[j] = $root.google.cloud.dialogflow.cx.v3.TestError.toObject(message.errors[j], options); + object.conversationTurns = []; + if (options.defaults) { + object.name = ""; + object.environment = ""; + object.testResult = options.enums === String ? "TEST_RESULT_UNSPECIFIED" : 0; + object.testTime = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = message.environment; + if (message.conversationTurns && message.conversationTurns.length) { + object.conversationTurns = []; + for (var j = 0; j < message.conversationTurns.length; ++j) + object.conversationTurns[j] = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.toObject(message.conversationTurns[j], options); } + if (message.testResult != null && message.hasOwnProperty("testResult")) + object.testResult = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.TestResult[message.testResult] : message.testResult; + if (message.testTime != null && message.hasOwnProperty("testTime")) + object.testTime = $root.google.protobuf.Timestamp.toObject(message.testTime, options); return object; }; /** - * Converts this RunContinuousTestMetadata to JSON. + * Converts this TestCaseResult to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata + * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult * @instance * @returns {Object.} JSON object */ - RunContinuousTestMetadata.prototype.toJSON = function toJSON() { + TestCaseResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RunContinuousTestMetadata; + return TestCaseResult; })(); - v3.ListContinuousTestResultsRequest = (function() { + v3.TestConfig = (function() { /** - * Properties of a ListContinuousTestResultsRequest. + * Properties of a TestConfig. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListContinuousTestResultsRequest - * @property {string|null} [parent] ListContinuousTestResultsRequest parent - * @property {number|null} [pageSize] ListContinuousTestResultsRequest pageSize - * @property {string|null} [pageToken] ListContinuousTestResultsRequest pageToken + * @interface ITestConfig + * @property {Array.|null} [trackingParameters] TestConfig trackingParameters + * @property {string|null} [flow] TestConfig flow */ /** - * Constructs a new ListContinuousTestResultsRequest. + * Constructs a new TestConfig. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListContinuousTestResultsRequest. - * @implements IListContinuousTestResultsRequest + * @classdesc Represents a TestConfig. + * @implements ITestConfig * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListContinuousTestResultsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ITestConfig=} [properties] Properties to set */ - function ListContinuousTestResultsRequest(properties) { + function TestConfig(properties) { + this.trackingParameters = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28509,101 +28598,91 @@ } /** - * ListContinuousTestResultsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest - * @instance - */ - ListContinuousTestResultsRequest.prototype.parent = ""; - - /** - * ListContinuousTestResultsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest + * TestConfig trackingParameters. + * @member {Array.} trackingParameters + * @memberof google.cloud.dialogflow.cx.v3.TestConfig * @instance */ - ListContinuousTestResultsRequest.prototype.pageSize = 0; + TestConfig.prototype.trackingParameters = $util.emptyArray; /** - * ListContinuousTestResultsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest + * TestConfig flow. + * @member {string} flow + * @memberof google.cloud.dialogflow.cx.v3.TestConfig * @instance */ - ListContinuousTestResultsRequest.prototype.pageToken = ""; + TestConfig.prototype.flow = ""; /** - * Creates a new ListContinuousTestResultsRequest instance using the specified properties. + * Creates a new TestConfig instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest + * @memberof google.cloud.dialogflow.cx.v3.TestConfig * @static - * @param {google.cloud.dialogflow.cx.v3.IListContinuousTestResultsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest} ListContinuousTestResultsRequest instance + * @param {google.cloud.dialogflow.cx.v3.ITestConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TestConfig} TestConfig instance */ - ListContinuousTestResultsRequest.create = function create(properties) { - return new ListContinuousTestResultsRequest(properties); + TestConfig.create = function create(properties) { + return new TestConfig(properties); }; /** - * Encodes the specified ListContinuousTestResultsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest.verify|verify} messages. + * Encodes the specified TestConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest + * @memberof google.cloud.dialogflow.cx.v3.TestConfig * @static - * @param {google.cloud.dialogflow.cx.v3.IListContinuousTestResultsRequest} message ListContinuousTestResultsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITestConfig} message TestConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListContinuousTestResultsRequest.encode = function encode(message, writer) { + TestConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.trackingParameters != null && message.trackingParameters.length) + for (var i = 0; i < message.trackingParameters.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.trackingParameters[i]); + if (message.flow != null && Object.hasOwnProperty.call(message, "flow")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.flow); return writer; }; /** - * Encodes the specified ListContinuousTestResultsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest.verify|verify} messages. + * Encodes the specified TestConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest + * @memberof google.cloud.dialogflow.cx.v3.TestConfig * @static - * @param {google.cloud.dialogflow.cx.v3.IListContinuousTestResultsRequest} message ListContinuousTestResultsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITestConfig} message TestConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListContinuousTestResultsRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListContinuousTestResultsRequest message from the specified reader or buffer. + * Decodes a TestConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest + * @memberof google.cloud.dialogflow.cx.v3.TestConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest} ListContinuousTestResultsRequest + * @returns {google.cloud.dialogflow.cx.v3.TestConfig} TestConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListContinuousTestResultsRequest.decode = function decode(reader, length) { + TestConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TestConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + if (!(message.trackingParameters && message.trackingParameters.length)) + message.trackingParameters = []; + message.trackingParameters.push(reader.string()); break; case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); + message.flow = reader.string(); break; default: reader.skipType(tag & 7); @@ -28614,126 +28693,129 @@ }; /** - * Decodes a ListContinuousTestResultsRequest message from the specified reader or buffer, length delimited. + * Decodes a TestConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest + * @memberof google.cloud.dialogflow.cx.v3.TestConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest} ListContinuousTestResultsRequest + * @returns {google.cloud.dialogflow.cx.v3.TestConfig} TestConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListContinuousTestResultsRequest.decodeDelimited = function decodeDelimited(reader) { + TestConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListContinuousTestResultsRequest message. + * Verifies a TestConfig message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest + * @memberof google.cloud.dialogflow.cx.v3.TestConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListContinuousTestResultsRequest.verify = function verify(message) { + TestConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.trackingParameters != null && message.hasOwnProperty("trackingParameters")) { + if (!Array.isArray(message.trackingParameters)) + return "trackingParameters: array expected"; + for (var i = 0; i < message.trackingParameters.length; ++i) + if (!$util.isString(message.trackingParameters[i])) + return "trackingParameters: string[] expected"; + } + if (message.flow != null && message.hasOwnProperty("flow")) + if (!$util.isString(message.flow)) + return "flow: string expected"; return null; }; /** - * Creates a ListContinuousTestResultsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest + * @memberof google.cloud.dialogflow.cx.v3.TestConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest} ListContinuousTestResultsRequest + * @returns {google.cloud.dialogflow.cx.v3.TestConfig} TestConfig */ - ListContinuousTestResultsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest) + TestConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TestConfig) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.dialogflow.cx.v3.TestConfig(); + if (object.trackingParameters) { + if (!Array.isArray(object.trackingParameters)) + throw TypeError(".google.cloud.dialogflow.cx.v3.TestConfig.trackingParameters: array expected"); + message.trackingParameters = []; + for (var i = 0; i < object.trackingParameters.length; ++i) + message.trackingParameters[i] = String(object.trackingParameters[i]); + } + if (object.flow != null) + message.flow = String(object.flow); return message; }; /** - * Creates a plain object from a ListContinuousTestResultsRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest + * @memberof google.cloud.dialogflow.cx.v3.TestConfig * @static - * @param {google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest} message ListContinuousTestResultsRequest + * @param {google.cloud.dialogflow.cx.v3.TestConfig} message TestConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListContinuousTestResultsRequest.toObject = function toObject(message, options) { + TestConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + if (options.arrays || options.defaults) + object.trackingParameters = []; + if (options.defaults) + object.flow = ""; + if (message.trackingParameters && message.trackingParameters.length) { + object.trackingParameters = []; + for (var j = 0; j < message.trackingParameters.length; ++j) + object.trackingParameters[j] = message.trackingParameters[j]; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.flow != null && message.hasOwnProperty("flow")) + object.flow = message.flow; return object; }; /** - * Converts this ListContinuousTestResultsRequest to JSON. + * Converts this TestConfig to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest + * @memberof google.cloud.dialogflow.cx.v3.TestConfig * @instance * @returns {Object.} JSON object */ - ListContinuousTestResultsRequest.prototype.toJSON = function toJSON() { + TestConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListContinuousTestResultsRequest; + return TestConfig; })(); - v3.ListContinuousTestResultsResponse = (function() { + v3.ConversationTurn = (function() { /** - * Properties of a ListContinuousTestResultsResponse. + * Properties of a ConversationTurn. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListContinuousTestResultsResponse - * @property {Array.|null} [continuousTestResults] ListContinuousTestResultsResponse continuousTestResults - * @property {string|null} [nextPageToken] ListContinuousTestResultsResponse nextPageToken + * @interface IConversationTurn + * @property {google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput|null} [userInput] ConversationTurn userInput + * @property {google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput|null} [virtualAgentOutput] ConversationTurn virtualAgentOutput */ /** - * Constructs a new ListContinuousTestResultsResponse. + * Constructs a new ConversationTurn. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListContinuousTestResultsResponse. - * @implements IListContinuousTestResultsResponse + * @classdesc Represents a ConversationTurn. + * @implements IConversationTurn * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListContinuousTestResultsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IConversationTurn=} [properties] Properties to set */ - function ListContinuousTestResultsResponse(properties) { - this.continuousTestResults = []; + function ConversationTurn(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28741,91 +28823,88 @@ } /** - * ListContinuousTestResultsResponse continuousTestResults. - * @member {Array.} continuousTestResults - * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse + * ConversationTurn userInput. + * @member {google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput|null|undefined} userInput + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn * @instance */ - ListContinuousTestResultsResponse.prototype.continuousTestResults = $util.emptyArray; + ConversationTurn.prototype.userInput = null; /** - * ListContinuousTestResultsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse + * ConversationTurn virtualAgentOutput. + * @member {google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput|null|undefined} virtualAgentOutput + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn * @instance */ - ListContinuousTestResultsResponse.prototype.nextPageToken = ""; + ConversationTurn.prototype.virtualAgentOutput = null; /** - * Creates a new ListContinuousTestResultsResponse instance using the specified properties. + * Creates a new ConversationTurn instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn * @static - * @param {google.cloud.dialogflow.cx.v3.IListContinuousTestResultsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse} ListContinuousTestResultsResponse instance + * @param {google.cloud.dialogflow.cx.v3.IConversationTurn=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn} ConversationTurn instance */ - ListContinuousTestResultsResponse.create = function create(properties) { - return new ListContinuousTestResultsResponse(properties); + ConversationTurn.create = function create(properties) { + return new ConversationTurn(properties); }; /** - * Encodes the specified ListContinuousTestResultsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse.verify|verify} messages. + * Encodes the specified ConversationTurn message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn * @static - * @param {google.cloud.dialogflow.cx.v3.IListContinuousTestResultsResponse} message ListContinuousTestResultsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IConversationTurn} message ConversationTurn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListContinuousTestResultsResponse.encode = function encode(message, writer) { + ConversationTurn.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.continuousTestResults != null && message.continuousTestResults.length) - for (var i = 0; i < message.continuousTestResults.length; ++i) - $root.google.cloud.dialogflow.cx.v3.ContinuousTestResult.encode(message.continuousTestResults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.userInput != null && Object.hasOwnProperty.call(message, "userInput")) + $root.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.encode(message.userInput, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.virtualAgentOutput != null && Object.hasOwnProperty.call(message, "virtualAgentOutput")) + $root.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.encode(message.virtualAgentOutput, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListContinuousTestResultsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse.verify|verify} messages. + * Encodes the specified ConversationTurn message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn * @static - * @param {google.cloud.dialogflow.cx.v3.IListContinuousTestResultsResponse} message ListContinuousTestResultsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IConversationTurn} message ConversationTurn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListContinuousTestResultsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ConversationTurn.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListContinuousTestResultsResponse message from the specified reader or buffer. + * Decodes a ConversationTurn message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse} ListContinuousTestResultsResponse + * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn} ConversationTurn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListContinuousTestResultsResponse.decode = function decode(reader, length) { + ConversationTurn.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ConversationTurn(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.continuousTestResults && message.continuousTestResults.length)) - message.continuousTestResults = []; - message.continuousTestResults.push($root.google.cloud.dialogflow.cx.v3.ContinuousTestResult.decode(reader, reader.uint32())); + message.userInput = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.decode(reader, reader.uint32()); break; case 2: - message.nextPageToken = reader.string(); + message.virtualAgentOutput = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -28836,559 +28915,780 @@ }; /** - * Decodes a ListContinuousTestResultsResponse message from the specified reader or buffer, length delimited. + * Decodes a ConversationTurn message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse} ListContinuousTestResultsResponse + * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn} ConversationTurn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListContinuousTestResultsResponse.decodeDelimited = function decodeDelimited(reader) { + ConversationTurn.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListContinuousTestResultsResponse message. + * Verifies a ConversationTurn message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListContinuousTestResultsResponse.verify = function verify(message) { + ConversationTurn.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.continuousTestResults != null && message.hasOwnProperty("continuousTestResults")) { - if (!Array.isArray(message.continuousTestResults)) - return "continuousTestResults: array expected"; - for (var i = 0; i < message.continuousTestResults.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.ContinuousTestResult.verify(message.continuousTestResults[i]); - if (error) - return "continuousTestResults." + error; - } + if (message.userInput != null && message.hasOwnProperty("userInput")) { + var error = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.verify(message.userInput); + if (error) + return "userInput." + error; + } + if (message.virtualAgentOutput != null && message.hasOwnProperty("virtualAgentOutput")) { + var error = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.verify(message.virtualAgentOutput); + if (error) + return "virtualAgentOutput." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListContinuousTestResultsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ConversationTurn message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse} ListContinuousTestResultsResponse + * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn} ConversationTurn */ - ListContinuousTestResultsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse) + ConversationTurn.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ConversationTurn) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse(); - if (object.continuousTestResults) { - if (!Array.isArray(object.continuousTestResults)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse.continuousTestResults: array expected"); - message.continuousTestResults = []; - for (var i = 0; i < object.continuousTestResults.length; ++i) { - if (typeof object.continuousTestResults[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse.continuousTestResults: object expected"); - message.continuousTestResults[i] = $root.google.cloud.dialogflow.cx.v3.ContinuousTestResult.fromObject(object.continuousTestResults[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3.ConversationTurn(); + if (object.userInput != null) { + if (typeof object.userInput !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.userInput: object expected"); + message.userInput = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.fromObject(object.userInput); + } + if (object.virtualAgentOutput != null) { + if (typeof object.virtualAgentOutput !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.virtualAgentOutput: object expected"); + message.virtualAgentOutput = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.fromObject(object.virtualAgentOutput); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListContinuousTestResultsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ConversationTurn message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn * @static - * @param {google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse} message ListContinuousTestResultsResponse + * @param {google.cloud.dialogflow.cx.v3.ConversationTurn} message ConversationTurn * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListContinuousTestResultsResponse.toObject = function toObject(message, options) { + ConversationTurn.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.continuousTestResults = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.continuousTestResults && message.continuousTestResults.length) { - object.continuousTestResults = []; - for (var j = 0; j < message.continuousTestResults.length; ++j) - object.continuousTestResults[j] = $root.google.cloud.dialogflow.cx.v3.ContinuousTestResult.toObject(message.continuousTestResults[j], options); + if (options.defaults) { + object.userInput = null; + object.virtualAgentOutput = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.userInput != null && message.hasOwnProperty("userInput")) + object.userInput = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.toObject(message.userInput, options); + if (message.virtualAgentOutput != null && message.hasOwnProperty("virtualAgentOutput")) + object.virtualAgentOutput = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.toObject(message.virtualAgentOutput, options); return object; }; /** - * Converts this ListContinuousTestResultsResponse to JSON. + * Converts this ConversationTurn to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn * @instance * @returns {Object.} JSON object */ - ListContinuousTestResultsResponse.prototype.toJSON = function toJSON() { + ConversationTurn.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListContinuousTestResultsResponse; - })(); + ConversationTurn.UserInput = (function() { - v3.DeployFlowRequest = (function() { + /** + * Properties of a UserInput. + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @interface IUserInput + * @property {google.cloud.dialogflow.cx.v3.IQueryInput|null} [input] UserInput input + * @property {google.protobuf.IStruct|null} [injectedParameters] UserInput injectedParameters + * @property {boolean|null} [isWebhookEnabled] UserInput isWebhookEnabled + * @property {boolean|null} [enableSentimentAnalysis] UserInput enableSentimentAnalysis + */ - /** - * Properties of a DeployFlowRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDeployFlowRequest - * @property {string|null} [environment] DeployFlowRequest environment - * @property {string|null} [flowVersion] DeployFlowRequest flowVersion - */ + /** + * Constructs a new UserInput. + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @classdesc Represents a UserInput. + * @implements IUserInput + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput=} [properties] Properties to set + */ + function UserInput(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new DeployFlowRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DeployFlowRequest. - * @implements IDeployFlowRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDeployFlowRequest=} [properties] Properties to set - */ - function DeployFlowRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * UserInput input. + * @member {google.cloud.dialogflow.cx.v3.IQueryInput|null|undefined} input + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput + * @instance + */ + UserInput.prototype.input = null; - /** - * DeployFlowRequest environment. - * @member {string} environment - * @memberof google.cloud.dialogflow.cx.v3.DeployFlowRequest - * @instance - */ - DeployFlowRequest.prototype.environment = ""; + /** + * UserInput injectedParameters. + * @member {google.protobuf.IStruct|null|undefined} injectedParameters + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput + * @instance + */ + UserInput.prototype.injectedParameters = null; - /** - * DeployFlowRequest flowVersion. - * @member {string} flowVersion - * @memberof google.cloud.dialogflow.cx.v3.DeployFlowRequest - * @instance - */ - DeployFlowRequest.prototype.flowVersion = ""; + /** + * UserInput isWebhookEnabled. + * @member {boolean} isWebhookEnabled + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput + * @instance + */ + UserInput.prototype.isWebhookEnabled = false; - /** - * Creates a new DeployFlowRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.DeployFlowRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IDeployFlowRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.DeployFlowRequest} DeployFlowRequest instance - */ - DeployFlowRequest.create = function create(properties) { - return new DeployFlowRequest(properties); - }; + /** + * UserInput enableSentimentAnalysis. + * @member {boolean} enableSentimentAnalysis + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput + * @instance + */ + UserInput.prototype.enableSentimentAnalysis = false; - /** - * Encodes the specified DeployFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeployFlowRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.DeployFlowRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IDeployFlowRequest} message DeployFlowRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeployFlowRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.environment); - if (message.flowVersion != null && Object.hasOwnProperty.call(message, "flowVersion")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.flowVersion); - return writer; - }; + /** + * Creates a new UserInput instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput + * @static + * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput} UserInput instance + */ + UserInput.create = function create(properties) { + return new UserInput(properties); + }; - /** - * Encodes the specified DeployFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeployFlowRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeployFlowRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IDeployFlowRequest} message DeployFlowRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeployFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified UserInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput + * @static + * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput} message UserInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UserInput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.injectedParameters != null && Object.hasOwnProperty.call(message, "injectedParameters")) + $root.google.protobuf.Struct.encode(message.injectedParameters, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.isWebhookEnabled != null && Object.hasOwnProperty.call(message, "isWebhookEnabled")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isWebhookEnabled); + if (message.input != null && Object.hasOwnProperty.call(message, "input")) + $root.google.cloud.dialogflow.cx.v3.QueryInput.encode(message.input, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.enableSentimentAnalysis != null && Object.hasOwnProperty.call(message, "enableSentimentAnalysis")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.enableSentimentAnalysis); + return writer; + }; - /** - * Decodes a DeployFlowRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.DeployFlowRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.DeployFlowRequest} DeployFlowRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeployFlowRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeployFlowRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.environment = reader.string(); - break; - case 2: - message.flowVersion = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified UserInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput + * @static + * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput} message UserInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UserInput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a DeployFlowRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeployFlowRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.DeployFlowRequest} DeployFlowRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeployFlowRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeployFlowRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DeployFlowRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeployFlowRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.environment != null && message.hasOwnProperty("environment")) - if (!$util.isString(message.environment)) - return "environment: string expected"; - if (message.flowVersion != null && message.hasOwnProperty("flowVersion")) - if (!$util.isString(message.flowVersion)) - return "flowVersion: string expected"; - return null; - }; - - /** - * Creates a DeployFlowRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.DeployFlowRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DeployFlowRequest} DeployFlowRequest - */ - DeployFlowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeployFlowRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.DeployFlowRequest(); - if (object.environment != null) - message.environment = String(object.environment); - if (object.flowVersion != null) - message.flowVersion = String(object.flowVersion); - return message; - }; - - /** - * Creates a plain object from a DeployFlowRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.DeployFlowRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.DeployFlowRequest} message DeployFlowRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeployFlowRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.environment = ""; - object.flowVersion = ""; - } - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = message.environment; - if (message.flowVersion != null && message.hasOwnProperty("flowVersion")) - object.flowVersion = message.flowVersion; - return object; - }; - - /** - * Converts this DeployFlowRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DeployFlowRequest - * @instance - * @returns {Object.} JSON object - */ - DeployFlowRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return DeployFlowRequest; - })(); + /** + * Decodes a UserInput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput} UserInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UserInput.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 5: + message.input = $root.google.cloud.dialogflow.cx.v3.QueryInput.decode(reader, reader.uint32()); + break; + case 2: + message.injectedParameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 3: + message.isWebhookEnabled = reader.bool(); + break; + case 7: + message.enableSentimentAnalysis = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - v3.DeployFlowResponse = (function() { + /** + * Decodes a UserInput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput} UserInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UserInput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Properties of a DeployFlowResponse. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDeployFlowResponse - * @property {google.cloud.dialogflow.cx.v3.IEnvironment|null} [environment] DeployFlowResponse environment - * @property {string|null} [deployment] DeployFlowResponse deployment - */ + /** + * Verifies a UserInput message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UserInput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.input != null && message.hasOwnProperty("input")) { + var error = $root.google.cloud.dialogflow.cx.v3.QueryInput.verify(message.input); + if (error) + return "input." + error; + } + if (message.injectedParameters != null && message.hasOwnProperty("injectedParameters")) { + var error = $root.google.protobuf.Struct.verify(message.injectedParameters); + if (error) + return "injectedParameters." + error; + } + if (message.isWebhookEnabled != null && message.hasOwnProperty("isWebhookEnabled")) + if (typeof message.isWebhookEnabled !== "boolean") + return "isWebhookEnabled: boolean expected"; + if (message.enableSentimentAnalysis != null && message.hasOwnProperty("enableSentimentAnalysis")) + if (typeof message.enableSentimentAnalysis !== "boolean") + return "enableSentimentAnalysis: boolean expected"; + return null; + }; - /** - * Constructs a new DeployFlowResponse. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DeployFlowResponse. - * @implements IDeployFlowResponse - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDeployFlowResponse=} [properties] Properties to set - */ - function DeployFlowResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Creates a UserInput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput} UserInput + */ + UserInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput(); + if (object.input != null) { + if (typeof object.input !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.input: object expected"); + message.input = $root.google.cloud.dialogflow.cx.v3.QueryInput.fromObject(object.input); + } + if (object.injectedParameters != null) { + if (typeof object.injectedParameters !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.injectedParameters: object expected"); + message.injectedParameters = $root.google.protobuf.Struct.fromObject(object.injectedParameters); + } + if (object.isWebhookEnabled != null) + message.isWebhookEnabled = Boolean(object.isWebhookEnabled); + if (object.enableSentimentAnalysis != null) + message.enableSentimentAnalysis = Boolean(object.enableSentimentAnalysis); + return message; + }; - /** - * DeployFlowResponse environment. - * @member {google.cloud.dialogflow.cx.v3.IEnvironment|null|undefined} environment - * @memberof google.cloud.dialogflow.cx.v3.DeployFlowResponse - * @instance - */ - DeployFlowResponse.prototype.environment = null; + /** + * Creates a plain object from a UserInput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput + * @static + * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput} message UserInput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UserInput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.injectedParameters = null; + object.isWebhookEnabled = false; + object.input = null; + object.enableSentimentAnalysis = false; + } + if (message.injectedParameters != null && message.hasOwnProperty("injectedParameters")) + object.injectedParameters = $root.google.protobuf.Struct.toObject(message.injectedParameters, options); + if (message.isWebhookEnabled != null && message.hasOwnProperty("isWebhookEnabled")) + object.isWebhookEnabled = message.isWebhookEnabled; + if (message.input != null && message.hasOwnProperty("input")) + object.input = $root.google.cloud.dialogflow.cx.v3.QueryInput.toObject(message.input, options); + if (message.enableSentimentAnalysis != null && message.hasOwnProperty("enableSentimentAnalysis")) + object.enableSentimentAnalysis = message.enableSentimentAnalysis; + return object; + }; - /** - * DeployFlowResponse deployment. - * @member {string} deployment - * @memberof google.cloud.dialogflow.cx.v3.DeployFlowResponse - * @instance - */ - DeployFlowResponse.prototype.deployment = ""; + /** + * Converts this UserInput to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput + * @instance + * @returns {Object.} JSON object + */ + UserInput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a new DeployFlowResponse instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.DeployFlowResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.IDeployFlowResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.DeployFlowResponse} DeployFlowResponse instance - */ - DeployFlowResponse.create = function create(properties) { - return new DeployFlowResponse(properties); - }; + return UserInput; + })(); - /** - * Encodes the specified DeployFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeployFlowResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.DeployFlowResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.IDeployFlowResponse} message DeployFlowResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeployFlowResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - $root.google.cloud.dialogflow.cx.v3.Environment.encode(message.environment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.deployment != null && Object.hasOwnProperty.call(message, "deployment")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployment); - return writer; - }; + ConversationTurn.VirtualAgentOutput = (function() { - /** - * Encodes the specified DeployFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeployFlowResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeployFlowResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.IDeployFlowResponse} message DeployFlowResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeployFlowResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Properties of a VirtualAgentOutput. + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @interface IVirtualAgentOutput + * @property {google.protobuf.IStruct|null} [sessionParameters] VirtualAgentOutput sessionParameters + * @property {Array.|null} [differences] VirtualAgentOutput differences + * @property {google.protobuf.IStruct|null} [diagnosticInfo] VirtualAgentOutput diagnosticInfo + * @property {google.cloud.dialogflow.cx.v3.IIntent|null} [triggeredIntent] VirtualAgentOutput triggeredIntent + * @property {google.cloud.dialogflow.cx.v3.IPage|null} [currentPage] VirtualAgentOutput currentPage + * @property {Array.|null} [textResponses] VirtualAgentOutput textResponses + * @property {google.rpc.IStatus|null} [status] VirtualAgentOutput status + */ - /** - * Decodes a DeployFlowResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.DeployFlowResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.DeployFlowResponse} DeployFlowResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeployFlowResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeployFlowResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.environment = $root.google.cloud.dialogflow.cx.v3.Environment.decode(reader, reader.uint32()); - break; - case 2: - message.deployment = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } + /** + * Constructs a new VirtualAgentOutput. + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @classdesc Represents a VirtualAgentOutput. + * @implements IVirtualAgentOutput + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput=} [properties] Properties to set + */ + function VirtualAgentOutput(properties) { + this.differences = []; + this.textResponses = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - return message; - }; - /** - * Decodes a DeployFlowResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeployFlowResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.DeployFlowResponse} DeployFlowResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeployFlowResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * VirtualAgentOutput sessionParameters. + * @member {google.protobuf.IStruct|null|undefined} sessionParameters + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput + * @instance + */ + VirtualAgentOutput.prototype.sessionParameters = null; - /** - * Verifies a DeployFlowResponse message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DeployFlowResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeployFlowResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.environment != null && message.hasOwnProperty("environment")) { - var error = $root.google.cloud.dialogflow.cx.v3.Environment.verify(message.environment); - if (error) - return "environment." + error; - } - if (message.deployment != null && message.hasOwnProperty("deployment")) - if (!$util.isString(message.deployment)) - return "deployment: string expected"; - return null; - }; + /** + * VirtualAgentOutput differences. + * @member {Array.} differences + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput + * @instance + */ + VirtualAgentOutput.prototype.differences = $util.emptyArray; - /** - * Creates a DeployFlowResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.DeployFlowResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DeployFlowResponse} DeployFlowResponse - */ - DeployFlowResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeployFlowResponse) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.DeployFlowResponse(); - if (object.environment != null) { - if (typeof object.environment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.DeployFlowResponse.environment: object expected"); - message.environment = $root.google.cloud.dialogflow.cx.v3.Environment.fromObject(object.environment); - } - if (object.deployment != null) - message.deployment = String(object.deployment); - return message; - }; + /** + * VirtualAgentOutput diagnosticInfo. + * @member {google.protobuf.IStruct|null|undefined} diagnosticInfo + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput + * @instance + */ + VirtualAgentOutput.prototype.diagnosticInfo = null; - /** - * Creates a plain object from a DeployFlowResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.DeployFlowResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.DeployFlowResponse} message DeployFlowResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeployFlowResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.environment = null; - object.deployment = ""; - } - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = $root.google.cloud.dialogflow.cx.v3.Environment.toObject(message.environment, options); - if (message.deployment != null && message.hasOwnProperty("deployment")) - object.deployment = message.deployment; - return object; - }; + /** + * VirtualAgentOutput triggeredIntent. + * @member {google.cloud.dialogflow.cx.v3.IIntent|null|undefined} triggeredIntent + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput + * @instance + */ + VirtualAgentOutput.prototype.triggeredIntent = null; - /** - * Converts this DeployFlowResponse to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DeployFlowResponse - * @instance - * @returns {Object.} JSON object - */ - DeployFlowResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * VirtualAgentOutput currentPage. + * @member {google.cloud.dialogflow.cx.v3.IPage|null|undefined} currentPage + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput + * @instance + */ + VirtualAgentOutput.prototype.currentPage = null; - return DeployFlowResponse; - })(); + /** + * VirtualAgentOutput textResponses. + * @member {Array.} textResponses + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput + * @instance + */ + VirtualAgentOutput.prototype.textResponses = $util.emptyArray; - v3.DeployFlowMetadata = (function() { + /** + * VirtualAgentOutput status. + * @member {google.rpc.IStatus|null|undefined} status + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput + * @instance + */ + VirtualAgentOutput.prototype.status = null; - /** - * Properties of a DeployFlowMetadata. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDeployFlowMetadata - * @property {Array.|null} [testErrors] DeployFlowMetadata testErrors + /** + * Creates a new VirtualAgentOutput instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput + * @static + * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput} VirtualAgentOutput instance + */ + VirtualAgentOutput.create = function create(properties) { + return new VirtualAgentOutput(properties); + }; + + /** + * Encodes the specified VirtualAgentOutput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput + * @static + * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput} message VirtualAgentOutput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VirtualAgentOutput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sessionParameters != null && Object.hasOwnProperty.call(message, "sessionParameters")) + $root.google.protobuf.Struct.encode(message.sessionParameters, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.differences != null && message.differences.length) + for (var i = 0; i < message.differences.length; ++i) + $root.google.cloud.dialogflow.cx.v3.TestRunDifference.encode(message.differences[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.diagnosticInfo != null && Object.hasOwnProperty.call(message, "diagnosticInfo")) + $root.google.protobuf.Struct.encode(message.diagnosticInfo, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.triggeredIntent != null && Object.hasOwnProperty.call(message, "triggeredIntent")) + $root.google.cloud.dialogflow.cx.v3.Intent.encode(message.triggeredIntent, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) + $root.google.cloud.dialogflow.cx.v3.Page.encode(message.currentPage, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.textResponses != null && message.textResponses.length) + for (var i = 0; i < message.textResponses.length; ++i) + $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.encode(message.textResponses[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified VirtualAgentOutput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput + * @static + * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput} message VirtualAgentOutput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VirtualAgentOutput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VirtualAgentOutput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput} VirtualAgentOutput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VirtualAgentOutput.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 4: + message.sessionParameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 5: + if (!(message.differences && message.differences.length)) + message.differences = []; + message.differences.push($root.google.cloud.dialogflow.cx.v3.TestRunDifference.decode(reader, reader.uint32())); + break; + case 6: + message.diagnosticInfo = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 7: + message.triggeredIntent = $root.google.cloud.dialogflow.cx.v3.Intent.decode(reader, reader.uint32()); + break; + case 8: + message.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.decode(reader, reader.uint32()); + break; + case 9: + if (!(message.textResponses && message.textResponses.length)) + message.textResponses = []; + message.textResponses.push($root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.decode(reader, reader.uint32())); + break; + case 10: + message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VirtualAgentOutput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput} VirtualAgentOutput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VirtualAgentOutput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VirtualAgentOutput message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VirtualAgentOutput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.sessionParameters != null && message.hasOwnProperty("sessionParameters")) { + var error = $root.google.protobuf.Struct.verify(message.sessionParameters); + if (error) + return "sessionParameters." + error; + } + if (message.differences != null && message.hasOwnProperty("differences")) { + if (!Array.isArray(message.differences)) + return "differences: array expected"; + for (var i = 0; i < message.differences.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.TestRunDifference.verify(message.differences[i]); + if (error) + return "differences." + error; + } + } + if (message.diagnosticInfo != null && message.hasOwnProperty("diagnosticInfo")) { + var error = $root.google.protobuf.Struct.verify(message.diagnosticInfo); + if (error) + return "diagnosticInfo." + error; + } + if (message.triggeredIntent != null && message.hasOwnProperty("triggeredIntent")) { + var error = $root.google.cloud.dialogflow.cx.v3.Intent.verify(message.triggeredIntent); + if (error) + return "triggeredIntent." + error; + } + if (message.currentPage != null && message.hasOwnProperty("currentPage")) { + var error = $root.google.cloud.dialogflow.cx.v3.Page.verify(message.currentPage); + if (error) + return "currentPage." + error; + } + if (message.textResponses != null && message.hasOwnProperty("textResponses")) { + if (!Array.isArray(message.textResponses)) + return "textResponses: array expected"; + for (var i = 0; i < message.textResponses.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.verify(message.textResponses[i]); + if (error) + return "textResponses." + error; + } + } + if (message.status != null && message.hasOwnProperty("status")) { + var error = $root.google.rpc.Status.verify(message.status); + if (error) + return "status." + error; + } + return null; + }; + + /** + * Creates a VirtualAgentOutput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput} VirtualAgentOutput + */ + VirtualAgentOutput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput(); + if (object.sessionParameters != null) { + if (typeof object.sessionParameters !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.sessionParameters: object expected"); + message.sessionParameters = $root.google.protobuf.Struct.fromObject(object.sessionParameters); + } + if (object.differences) { + if (!Array.isArray(object.differences)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.differences: array expected"); + message.differences = []; + for (var i = 0; i < object.differences.length; ++i) { + if (typeof object.differences[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.differences: object expected"); + message.differences[i] = $root.google.cloud.dialogflow.cx.v3.TestRunDifference.fromObject(object.differences[i]); + } + } + if (object.diagnosticInfo != null) { + if (typeof object.diagnosticInfo !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.diagnosticInfo: object expected"); + message.diagnosticInfo = $root.google.protobuf.Struct.fromObject(object.diagnosticInfo); + } + if (object.triggeredIntent != null) { + if (typeof object.triggeredIntent !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.triggeredIntent: object expected"); + message.triggeredIntent = $root.google.cloud.dialogflow.cx.v3.Intent.fromObject(object.triggeredIntent); + } + if (object.currentPage != null) { + if (typeof object.currentPage !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.currentPage: object expected"); + message.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.fromObject(object.currentPage); + } + if (object.textResponses) { + if (!Array.isArray(object.textResponses)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.textResponses: array expected"); + message.textResponses = []; + for (var i = 0; i < object.textResponses.length; ++i) { + if (typeof object.textResponses[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.textResponses: object expected"); + message.textResponses[i] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.fromObject(object.textResponses[i]); + } + } + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.status: object expected"); + message.status = $root.google.rpc.Status.fromObject(object.status); + } + return message; + }; + + /** + * Creates a plain object from a VirtualAgentOutput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput + * @static + * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput} message VirtualAgentOutput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VirtualAgentOutput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.differences = []; + object.textResponses = []; + } + if (options.defaults) { + object.sessionParameters = null; + object.diagnosticInfo = null; + object.triggeredIntent = null; + object.currentPage = null; + object.status = null; + } + if (message.sessionParameters != null && message.hasOwnProperty("sessionParameters")) + object.sessionParameters = $root.google.protobuf.Struct.toObject(message.sessionParameters, options); + if (message.differences && message.differences.length) { + object.differences = []; + for (var j = 0; j < message.differences.length; ++j) + object.differences[j] = $root.google.cloud.dialogflow.cx.v3.TestRunDifference.toObject(message.differences[j], options); + } + if (message.diagnosticInfo != null && message.hasOwnProperty("diagnosticInfo")) + object.diagnosticInfo = $root.google.protobuf.Struct.toObject(message.diagnosticInfo, options); + if (message.triggeredIntent != null && message.hasOwnProperty("triggeredIntent")) + object.triggeredIntent = $root.google.cloud.dialogflow.cx.v3.Intent.toObject(message.triggeredIntent, options); + if (message.currentPage != null && message.hasOwnProperty("currentPage")) + object.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.toObject(message.currentPage, options); + if (message.textResponses && message.textResponses.length) { + object.textResponses = []; + for (var j = 0; j < message.textResponses.length; ++j) + object.textResponses[j] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.toObject(message.textResponses[j], options); + } + if (message.status != null && message.hasOwnProperty("status")) + object.status = $root.google.rpc.Status.toObject(message.status, options); + return object; + }; + + /** + * Converts this VirtualAgentOutput to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput + * @instance + * @returns {Object.} JSON object + */ + VirtualAgentOutput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return VirtualAgentOutput; + })(); + + return ConversationTurn; + })(); + + v3.TestRunDifference = (function() { + + /** + * Properties of a TestRunDifference. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface ITestRunDifference + * @property {google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType|null} [type] TestRunDifference type + * @property {string|null} [description] TestRunDifference description */ /** - * Constructs a new DeployFlowMetadata. + * Constructs a new TestRunDifference. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DeployFlowMetadata. - * @implements IDeployFlowMetadata + * @classdesc Represents a TestRunDifference. + * @implements ITestRunDifference * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDeployFlowMetadata=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ITestRunDifference=} [properties] Properties to set */ - function DeployFlowMetadata(properties) { - this.testErrors = []; + function TestRunDifference(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -29396,78 +29696,88 @@ } /** - * DeployFlowMetadata testErrors. - * @member {Array.} testErrors - * @memberof google.cloud.dialogflow.cx.v3.DeployFlowMetadata + * TestRunDifference type. + * @member {google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType} type + * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference * @instance */ - DeployFlowMetadata.prototype.testErrors = $util.emptyArray; + TestRunDifference.prototype.type = 0; /** - * Creates a new DeployFlowMetadata instance using the specified properties. + * TestRunDifference description. + * @member {string} description + * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference + * @instance + */ + TestRunDifference.prototype.description = ""; + + /** + * Creates a new TestRunDifference instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.DeployFlowMetadata + * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference * @static - * @param {google.cloud.dialogflow.cx.v3.IDeployFlowMetadata=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.DeployFlowMetadata} DeployFlowMetadata instance + * @param {google.cloud.dialogflow.cx.v3.ITestRunDifference=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TestRunDifference} TestRunDifference instance */ - DeployFlowMetadata.create = function create(properties) { - return new DeployFlowMetadata(properties); + TestRunDifference.create = function create(properties) { + return new TestRunDifference(properties); }; /** - * Encodes the specified DeployFlowMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeployFlowMetadata.verify|verify} messages. + * Encodes the specified TestRunDifference message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestRunDifference.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.DeployFlowMetadata + * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference * @static - * @param {google.cloud.dialogflow.cx.v3.IDeployFlowMetadata} message DeployFlowMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITestRunDifference} message TestRunDifference message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployFlowMetadata.encode = function encode(message, writer) { + TestRunDifference.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.testErrors != null && message.testErrors.length) - for (var i = 0; i < message.testErrors.length; ++i) - $root.google.cloud.dialogflow.cx.v3.TestError.encode(message.testErrors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); return writer; }; /** - * Encodes the specified DeployFlowMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeployFlowMetadata.verify|verify} messages. + * Encodes the specified TestRunDifference message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestRunDifference.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeployFlowMetadata + * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference * @static - * @param {google.cloud.dialogflow.cx.v3.IDeployFlowMetadata} message DeployFlowMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITestRunDifference} message TestRunDifference message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployFlowMetadata.encodeDelimited = function encodeDelimited(message, writer) { + TestRunDifference.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployFlowMetadata message from the specified reader or buffer. + * Decodes a TestRunDifference message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.DeployFlowMetadata + * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.DeployFlowMetadata} DeployFlowMetadata + * @returns {google.cloud.dialogflow.cx.v3.TestRunDifference} TestRunDifference * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployFlowMetadata.decode = function decode(reader, length) { + TestRunDifference.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeployFlowMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TestRunDifference(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.testErrors && message.testErrors.length)) - message.testErrors = []; - message.testErrors.push($root.google.cloud.dialogflow.cx.v3.TestError.decode(reader, reader.uint32())); + message.type = reader.int32(); + break; + case 2: + message.description = reader.string(); break; default: reader.skipType(tag & 7); @@ -29478,737 +29788,1079 @@ }; /** - * Decodes a DeployFlowMetadata message from the specified reader or buffer, length delimited. + * Decodes a TestRunDifference message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeployFlowMetadata + * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.DeployFlowMetadata} DeployFlowMetadata + * @returns {google.cloud.dialogflow.cx.v3.TestRunDifference} TestRunDifference * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployFlowMetadata.decodeDelimited = function decodeDelimited(reader) { + TestRunDifference.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeployFlowMetadata message. + * Verifies a TestRunDifference message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DeployFlowMetadata + * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeployFlowMetadata.verify = function verify(message) { + TestRunDifference.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.testErrors != null && message.hasOwnProperty("testErrors")) { - if (!Array.isArray(message.testErrors)) - return "testErrors: array expected"; - for (var i = 0; i < message.testErrors.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.TestError.verify(message.testErrors[i]); - if (error) - return "testErrors." + error; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } - } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; return null; }; /** - * Creates a DeployFlowMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a TestRunDifference message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.DeployFlowMetadata + * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DeployFlowMetadata} DeployFlowMetadata + * @returns {google.cloud.dialogflow.cx.v3.TestRunDifference} TestRunDifference */ - DeployFlowMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeployFlowMetadata) + TestRunDifference.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TestRunDifference) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.DeployFlowMetadata(); - if (object.testErrors) { - if (!Array.isArray(object.testErrors)) - throw TypeError(".google.cloud.dialogflow.cx.v3.DeployFlowMetadata.testErrors: array expected"); - message.testErrors = []; - for (var i = 0; i < object.testErrors.length; ++i) { - if (typeof object.testErrors[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.DeployFlowMetadata.testErrors: object expected"); - message.testErrors[i] = $root.google.cloud.dialogflow.cx.v3.TestError.fromObject(object.testErrors[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3.TestRunDifference(); + switch (object.type) { + case "DIFF_TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "INTENT": + case 1: + message.type = 1; + break; + case "PAGE": + case 2: + message.type = 2; + break; + case "PARAMETERS": + case 3: + message.type = 3; + break; + case "UTTERANCE": + case 4: + message.type = 4; + break; } + if (object.description != null) + message.description = String(object.description); return message; }; /** - * Creates a plain object from a DeployFlowMetadata message. Also converts values to other types if specified. + * Creates a plain object from a TestRunDifference message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.DeployFlowMetadata + * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference * @static - * @param {google.cloud.dialogflow.cx.v3.DeployFlowMetadata} message DeployFlowMetadata + * @param {google.cloud.dialogflow.cx.v3.TestRunDifference} message TestRunDifference * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployFlowMetadata.toObject = function toObject(message, options) { + TestRunDifference.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.testErrors = []; - if (message.testErrors && message.testErrors.length) { - object.testErrors = []; - for (var j = 0; j < message.testErrors.length; ++j) - object.testErrors[j] = $root.google.cloud.dialogflow.cx.v3.TestError.toObject(message.testErrors[j], options); + if (options.defaults) { + object.type = options.enums === String ? "DIFF_TYPE_UNSPECIFIED" : 0; + object.description = ""; } + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType[message.type] : message.type; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; return object; }; /** - * Converts this DeployFlowMetadata to JSON. + * Converts this TestRunDifference to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DeployFlowMetadata + * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference * @instance * @returns {Object.} JSON object */ - DeployFlowMetadata.prototype.toJSON = function toJSON() { + TestRunDifference.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeployFlowMetadata; - })(); - - v3.TestCases = (function() { - /** - * Constructs a new TestCases service. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a TestCases - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function TestCases(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (TestCases.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = TestCases; - - /** - * Creates new TestCases service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {TestCases} RPC service. Useful where requests and/or responses are streamed. + * DiffType enum. + * @name google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType + * @enum {number} + * @property {number} DIFF_TYPE_UNSPECIFIED=0 DIFF_TYPE_UNSPECIFIED value + * @property {number} INTENT=1 INTENT value + * @property {number} PAGE=2 PAGE value + * @property {number} PARAMETERS=3 PARAMETERS value + * @property {number} UTTERANCE=4 UTTERANCE value */ - TestCases.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; + TestRunDifference.DiffType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DIFF_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "INTENT"] = 1; + values[valuesById[2] = "PAGE"] = 2; + values[valuesById[3] = "PARAMETERS"] = 3; + values[valuesById[4] = "UTTERANCE"] = 4; + return values; + })(); - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#listTestCases}. - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @typedef ListTestCasesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.ListTestCasesResponse} [response] ListTestCasesResponse - */ + return TestRunDifference; + })(); - /** - * Calls ListTestCases. - * @function listTestCases - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.IListTestCasesRequest} request ListTestCasesRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.TestCases.ListTestCasesCallback} callback Node-style callback called with the error, if any, and ListTestCasesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.listTestCases = function listTestCases(request, callback) { - return this.rpcCall(listTestCases, $root.google.cloud.dialogflow.cx.v3.ListTestCasesRequest, $root.google.cloud.dialogflow.cx.v3.ListTestCasesResponse, request, callback); - }, "name", { value: "ListTestCases" }); + v3.TransitionCoverage = (function() { /** - * Calls ListTestCases. - * @function listTestCases - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.IListTestCasesRequest} request ListTestCasesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of a TransitionCoverage. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface ITransitionCoverage + * @property {Array.|null} [transitions] TransitionCoverage transitions + * @property {number|null} [coverageScore] TransitionCoverage coverageScore */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#batchDeleteTestCases}. - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @typedef BatchDeleteTestCasesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Constructs a new TransitionCoverage. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a TransitionCoverage. + * @implements ITransitionCoverage + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ITransitionCoverage=} [properties] Properties to set */ + function TransitionCoverage(properties) { + this.transitions = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls BatchDeleteTestCases. - * @function batchDeleteTestCases - * @memberof google.cloud.dialogflow.cx.v3.TestCases + * TransitionCoverage transitions. + * @member {Array.} transitions + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage * @instance - * @param {google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest} request BatchDeleteTestCasesRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.TestCases.BatchDeleteTestCasesCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(TestCases.prototype.batchDeleteTestCases = function batchDeleteTestCases(request, callback) { - return this.rpcCall(batchDeleteTestCases, $root.google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "BatchDeleteTestCases" }); + TransitionCoverage.prototype.transitions = $util.emptyArray; /** - * Calls BatchDeleteTestCases. - * @function batchDeleteTestCases - * @memberof google.cloud.dialogflow.cx.v3.TestCases + * TransitionCoverage coverageScore. + * @member {number} coverageScore + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage * @instance - * @param {google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest} request BatchDeleteTestCasesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + TransitionCoverage.prototype.coverageScore = 0; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#getTestCase}. - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @typedef GetTestCaseCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.TestCase} [response] TestCase + * Creates a new TransitionCoverage instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * @static + * @param {google.cloud.dialogflow.cx.v3.ITransitionCoverage=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage} TransitionCoverage instance */ + TransitionCoverage.create = function create(properties) { + return new TransitionCoverage(properties); + }; /** - * Calls GetTestCase. - * @function getTestCase - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseRequest} request GetTestCaseRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.TestCases.GetTestCaseCallback} callback Node-style callback called with the error, if any, and TestCase - * @returns {undefined} - * @variation 1 + * Encodes the specified TransitionCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * @static + * @param {google.cloud.dialogflow.cx.v3.ITransitionCoverage} message TransitionCoverage message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(TestCases.prototype.getTestCase = function getTestCase(request, callback) { - return this.rpcCall(getTestCase, $root.google.cloud.dialogflow.cx.v3.GetTestCaseRequest, $root.google.cloud.dialogflow.cx.v3.TestCase, request, callback); - }, "name", { value: "GetTestCase" }); + TransitionCoverage.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.transitions != null && message.transitions.length) + for (var i = 0; i < message.transitions.length; ++i) + $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.encode(message.transitions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.coverageScore != null && Object.hasOwnProperty.call(message, "coverageScore")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.coverageScore); + return writer; + }; /** - * Calls GetTestCase. - * @function getTestCase - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseRequest} request GetTestCaseRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified TransitionCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * @static + * @param {google.cloud.dialogflow.cx.v3.ITransitionCoverage} message TransitionCoverage message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + TransitionCoverage.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#createTestCase}. - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @typedef CreateTestCaseCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.TestCase} [response] TestCase + * Decodes a TransitionCoverage message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage} TransitionCoverage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + TransitionCoverage.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TransitionCoverage(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.transitions && message.transitions.length)) + message.transitions = []; + message.transitions.push($root.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.decode(reader, reader.uint32())); + break; + case 2: + message.coverageScore = reader.float(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls CreateTestCase. - * @function createTestCase - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest} request CreateTestCaseRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.TestCases.CreateTestCaseCallback} callback Node-style callback called with the error, if any, and TestCase - * @returns {undefined} - * @variation 1 + * Decodes a TransitionCoverage message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage} TransitionCoverage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(TestCases.prototype.createTestCase = function createTestCase(request, callback) { - return this.rpcCall(createTestCase, $root.google.cloud.dialogflow.cx.v3.CreateTestCaseRequest, $root.google.cloud.dialogflow.cx.v3.TestCase, request, callback); - }, "name", { value: "CreateTestCase" }); + TransitionCoverage.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls CreateTestCase. - * @function createTestCase - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest} request CreateTestCaseRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a TransitionCoverage message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + TransitionCoverage.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.transitions != null && message.hasOwnProperty("transitions")) { + if (!Array.isArray(message.transitions)) + return "transitions: array expected"; + for (var i = 0; i < message.transitions.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.verify(message.transitions[i]); + if (error) + return "transitions." + error; + } + } + if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + if (typeof message.coverageScore !== "number") + return "coverageScore: number expected"; + return null; + }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#updateTestCase}. - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @typedef UpdateTestCaseCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.TestCase} [response] TestCase + * Creates a TransitionCoverage message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage} TransitionCoverage */ + TransitionCoverage.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TransitionCoverage) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.TransitionCoverage(); + if (object.transitions) { + if (!Array.isArray(object.transitions)) + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionCoverage.transitions: array expected"); + message.transitions = []; + for (var i = 0; i < object.transitions.length; ++i) { + if (typeof object.transitions[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionCoverage.transitions: object expected"); + message.transitions[i] = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.fromObject(object.transitions[i]); + } + } + if (object.coverageScore != null) + message.coverageScore = Number(object.coverageScore); + return message; + }; /** - * Calls UpdateTestCase. - * @function updateTestCase - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest} request UpdateTestCaseRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.TestCases.UpdateTestCaseCallback} callback Node-style callback called with the error, if any, and TestCase - * @returns {undefined} - * @variation 1 + * Creates a plain object from a TransitionCoverage message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * @static + * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage} message TransitionCoverage + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(TestCases.prototype.updateTestCase = function updateTestCase(request, callback) { - return this.rpcCall(updateTestCase, $root.google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest, $root.google.cloud.dialogflow.cx.v3.TestCase, request, callback); - }, "name", { value: "UpdateTestCase" }); + TransitionCoverage.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.transitions = []; + if (options.defaults) + object.coverageScore = 0; + if (message.transitions && message.transitions.length) { + object.transitions = []; + for (var j = 0; j < message.transitions.length; ++j) + object.transitions[j] = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.toObject(message.transitions[j], options); + } + if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; + return object; + }; /** - * Calls UpdateTestCase. - * @function updateTestCase - * @memberof google.cloud.dialogflow.cx.v3.TestCases + * Converts this TransitionCoverage to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest} request UpdateTestCaseRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + TransitionCoverage.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#runTestCase}. - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @typedef RunTestCaseCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ + TransitionCoverage.TransitionNode = (function() { - /** - * Calls RunTestCase. - * @function runTestCase - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseRequest} request RunTestCaseRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.TestCases.RunTestCaseCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.runTestCase = function runTestCase(request, callback) { - return this.rpcCall(runTestCase, $root.google.cloud.dialogflow.cx.v3.RunTestCaseRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "RunTestCase" }); + /** + * Properties of a TransitionNode. + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * @interface ITransitionNode + * @property {google.cloud.dialogflow.cx.v3.IPage|null} [page] TransitionNode page + * @property {google.cloud.dialogflow.cx.v3.IFlow|null} [flow] TransitionNode flow + */ - /** - * Calls RunTestCase. - * @function runTestCase - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseRequest} request RunTestCaseRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Constructs a new TransitionNode. + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * @classdesc Represents a TransitionNode. + * @implements ITransitionNode + * @constructor + * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode=} [properties] Properties to set + */ + function TransitionNode(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#batchRunTestCases}. - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @typedef BatchRunTestCasesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ + /** + * TransitionNode page. + * @member {google.cloud.dialogflow.cx.v3.IPage|null|undefined} page + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode + * @instance + */ + TransitionNode.prototype.page = null; - /** - * Calls BatchRunTestCases. - * @function batchRunTestCases - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest} request BatchRunTestCasesRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCasesCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.batchRunTestCases = function batchRunTestCases(request, callback) { - return this.rpcCall(batchRunTestCases, $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "BatchRunTestCases" }); + /** + * TransitionNode flow. + * @member {google.cloud.dialogflow.cx.v3.IFlow|null|undefined} flow + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode + * @instance + */ + TransitionNode.prototype.flow = null; - /** - * Calls BatchRunTestCases. - * @function batchRunTestCases - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest} request BatchRunTestCasesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#calculateCoverage}. - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @typedef CalculateCoverageCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.CalculateCoverageResponse} [response] CalculateCoverageResponse - */ + /** + * TransitionNode kind. + * @member {"page"|"flow"|undefined} kind + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode + * @instance + */ + Object.defineProperty(TransitionNode.prototype, "kind", { + get: $util.oneOfGetter($oneOfFields = ["page", "flow"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Calls CalculateCoverage. - * @function calculateCoverage - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest} request CalculateCoverageRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.TestCases.CalculateCoverageCallback} callback Node-style callback called with the error, if any, and CalculateCoverageResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.calculateCoverage = function calculateCoverage(request, callback) { - return this.rpcCall(calculateCoverage, $root.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest, $root.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse, request, callback); - }, "name", { value: "CalculateCoverage" }); + /** + * Creates a new TransitionNode instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode + * @static + * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode} TransitionNode instance + */ + TransitionNode.create = function create(properties) { + return new TransitionNode(properties); + }; - /** - * Calls CalculateCoverage. - * @function calculateCoverage - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest} request CalculateCoverageRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Encodes the specified TransitionNode message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode + * @static + * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode} message TransitionNode message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TransitionNode.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.page != null && Object.hasOwnProperty.call(message, "page")) + $root.google.cloud.dialogflow.cx.v3.Page.encode(message.page, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.flow != null && Object.hasOwnProperty.call(message, "flow")) + $root.google.cloud.dialogflow.cx.v3.Flow.encode(message.flow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#importTestCases}. - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @typedef ImportTestCasesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls ImportTestCases. - * @function importTestCases - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesRequest} request ImportTestCasesRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.TestCases.ImportTestCasesCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.importTestCases = function importTestCases(request, callback) { - return this.rpcCall(importTestCases, $root.google.cloud.dialogflow.cx.v3.ImportTestCasesRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "ImportTestCases" }); - - /** - * Calls ImportTestCases. - * @function importTestCases - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesRequest} request ImportTestCasesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#exportTestCases}. - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @typedef ExportTestCasesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ + /** + * Encodes the specified TransitionNode message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode + * @static + * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode} message TransitionNode message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TransitionNode.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Calls ExportTestCases. - * @function exportTestCases - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesRequest} request ExportTestCasesRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.TestCases.ExportTestCasesCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.exportTestCases = function exportTestCases(request, callback) { - return this.rpcCall(exportTestCases, $root.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "ExportTestCases" }); + /** + * Decodes a TransitionNode message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode} TransitionNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TransitionNode.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.page = $root.google.cloud.dialogflow.cx.v3.Page.decode(reader, reader.uint32()); + break; + case 2: + message.flow = $root.google.cloud.dialogflow.cx.v3.Flow.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Calls ExportTestCases. - * @function exportTestCases - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesRequest} request ExportTestCasesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Decodes a TransitionNode message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode} TransitionNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TransitionNode.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#listTestCaseResults}. - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @typedef ListTestCaseResultsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse} [response] ListTestCaseResultsResponse - */ + /** + * Verifies a TransitionNode message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TransitionNode.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.page != null && message.hasOwnProperty("page")) { + properties.kind = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.Page.verify(message.page); + if (error) + return "page." + error; + } + } + if (message.flow != null && message.hasOwnProperty("flow")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.Flow.verify(message.flow); + if (error) + return "flow." + error; + } + } + return null; + }; - /** - * Calls ListTestCaseResults. - * @function listTestCaseResults - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest} request ListTestCaseResultsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResultsCallback} callback Node-style callback called with the error, if any, and ListTestCaseResultsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.listTestCaseResults = function listTestCaseResults(request, callback) { - return this.rpcCall(listTestCaseResults, $root.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest, $root.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse, request, callback); - }, "name", { value: "ListTestCaseResults" }); + /** + * Creates a TransitionNode message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode} TransitionNode + */ + TransitionNode.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode(); + if (object.page != null) { + if (typeof object.page !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.page: object expected"); + message.page = $root.google.cloud.dialogflow.cx.v3.Page.fromObject(object.page); + } + if (object.flow != null) { + if (typeof object.flow !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.flow: object expected"); + message.flow = $root.google.cloud.dialogflow.cx.v3.Flow.fromObject(object.flow); + } + return message; + }; - /** - * Calls ListTestCaseResults. - * @function listTestCaseResults - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest} request ListTestCaseResultsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Creates a plain object from a TransitionNode message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode + * @static + * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode} message TransitionNode + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TransitionNode.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.page != null && message.hasOwnProperty("page")) { + object.page = $root.google.cloud.dialogflow.cx.v3.Page.toObject(message.page, options); + if (options.oneofs) + object.kind = "page"; + } + if (message.flow != null && message.hasOwnProperty("flow")) { + object.flow = $root.google.cloud.dialogflow.cx.v3.Flow.toObject(message.flow, options); + if (options.oneofs) + object.kind = "flow"; + } + return object; + }; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TestCases#getTestCaseResult}. - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @typedef GetTestCaseResultCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.TestCaseResult} [response] TestCaseResult - */ + /** + * Converts this TransitionNode to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode + * @instance + * @returns {Object.} JSON object + */ + TransitionNode.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Calls GetTestCaseResult. - * @function getTestCaseResult - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseResultRequest} request GetTestCaseResultRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.TestCases.GetTestCaseResultCallback} callback Node-style callback called with the error, if any, and TestCaseResult - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.getTestCaseResult = function getTestCaseResult(request, callback) { - return this.rpcCall(getTestCaseResult, $root.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest, $root.google.cloud.dialogflow.cx.v3.TestCaseResult, request, callback); - }, "name", { value: "GetTestCaseResult" }); + return TransitionNode; + })(); - /** - * Calls GetTestCaseResult. - * @function getTestCaseResult - * @memberof google.cloud.dialogflow.cx.v3.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseResultRequest} request GetTestCaseResultRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + TransitionCoverage.Transition = (function() { - return TestCases; - })(); + /** + * Properties of a Transition. + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * @interface ITransition + * @property {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode|null} [source] Transition source + * @property {number|null} [index] Transition index + * @property {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode|null} [target] Transition target + * @property {boolean|null} [covered] Transition covered + * @property {google.cloud.dialogflow.cx.v3.ITransitionRoute|null} [transitionRoute] Transition transitionRoute + * @property {google.cloud.dialogflow.cx.v3.IEventHandler|null} [eventHandler] Transition eventHandler + */ - v3.TestCase = (function() { + /** + * Constructs a new Transition. + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * @classdesc Represents a Transition. + * @implements ITransition + * @constructor + * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition=} [properties] Properties to set + */ + function Transition(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Properties of a TestCase. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface ITestCase - * @property {string|null} [name] TestCase name - * @property {Array.|null} [tags] TestCase tags - * @property {string|null} [displayName] TestCase displayName - * @property {string|null} [notes] TestCase notes - * @property {google.cloud.dialogflow.cx.v3.ITestConfig|null} [testConfig] TestCase testConfig - * @property {Array.|null} [testCaseConversationTurns] TestCase testCaseConversationTurns - * @property {google.protobuf.ITimestamp|null} [creationTime] TestCase creationTime - * @property {google.cloud.dialogflow.cx.v3.ITestCaseResult|null} [lastTestResult] TestCase lastTestResult - */ + /** + * Transition source. + * @member {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode|null|undefined} source + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition + * @instance + */ + Transition.prototype.source = null; - /** - * Constructs a new TestCase. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a TestCase. - * @implements ITestCase - * @constructor - * @param {google.cloud.dialogflow.cx.v3.ITestCase=} [properties] Properties to set - */ - function TestCase(properties) { - this.tags = []; - this.testCaseConversationTurns = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Transition index. + * @member {number} index + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition + * @instance + */ + Transition.prototype.index = 0; - /** - * TestCase name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.TestCase - * @instance - */ - TestCase.prototype.name = ""; + /** + * Transition target. + * @member {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode|null|undefined} target + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition + * @instance + */ + Transition.prototype.target = null; - /** - * TestCase tags. - * @member {Array.} tags - * @memberof google.cloud.dialogflow.cx.v3.TestCase - * @instance - */ - TestCase.prototype.tags = $util.emptyArray; + /** + * Transition covered. + * @member {boolean} covered + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition + * @instance + */ + Transition.prototype.covered = false; - /** - * TestCase displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.TestCase - * @instance - */ - TestCase.prototype.displayName = ""; + /** + * Transition transitionRoute. + * @member {google.cloud.dialogflow.cx.v3.ITransitionRoute|null|undefined} transitionRoute + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition + * @instance + */ + Transition.prototype.transitionRoute = null; - /** - * TestCase notes. - * @member {string} notes - * @memberof google.cloud.dialogflow.cx.v3.TestCase - * @instance - */ - TestCase.prototype.notes = ""; + /** + * Transition eventHandler. + * @member {google.cloud.dialogflow.cx.v3.IEventHandler|null|undefined} eventHandler + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition + * @instance + */ + Transition.prototype.eventHandler = null; - /** - * TestCase testConfig. - * @member {google.cloud.dialogflow.cx.v3.ITestConfig|null|undefined} testConfig - * @memberof google.cloud.dialogflow.cx.v3.TestCase - * @instance - */ - TestCase.prototype.testConfig = null; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * TestCase testCaseConversationTurns. - * @member {Array.} testCaseConversationTurns - * @memberof google.cloud.dialogflow.cx.v3.TestCase - * @instance - */ - TestCase.prototype.testCaseConversationTurns = $util.emptyArray; + /** + * Transition detail. + * @member {"transitionRoute"|"eventHandler"|undefined} detail + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition + * @instance + */ + Object.defineProperty(Transition.prototype, "detail", { + get: $util.oneOfGetter($oneOfFields = ["transitionRoute", "eventHandler"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * TestCase creationTime. - * @member {google.protobuf.ITimestamp|null|undefined} creationTime - * @memberof google.cloud.dialogflow.cx.v3.TestCase - * @instance - */ - TestCase.prototype.creationTime = null; + /** + * Creates a new Transition instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition + * @static + * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition} Transition instance + */ + Transition.create = function create(properties) { + return new Transition(properties); + }; - /** - * TestCase lastTestResult. - * @member {google.cloud.dialogflow.cx.v3.ITestCaseResult|null|undefined} lastTestResult - * @memberof google.cloud.dialogflow.cx.v3.TestCase - * @instance - */ - TestCase.prototype.lastTestResult = null; + /** + * Encodes the specified Transition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition + * @static + * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition} message Transition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Transition.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.source != null && Object.hasOwnProperty.call(message, "source")) + $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.encode(message.source, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.encode(message.target, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.covered != null && Object.hasOwnProperty.call(message, "covered")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.covered); + if (message.index != null && Object.hasOwnProperty.call(message, "index")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.index); + if (message.transitionRoute != null && Object.hasOwnProperty.call(message, "transitionRoute")) + $root.google.cloud.dialogflow.cx.v3.TransitionRoute.encode(message.transitionRoute, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.eventHandler != null && Object.hasOwnProperty.call(message, "eventHandler")) + $root.google.cloud.dialogflow.cx.v3.EventHandler.encode(message.eventHandler, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; - /** - * Creates a new TestCase instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.TestCase - * @static - * @param {google.cloud.dialogflow.cx.v3.ITestCase=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.TestCase} TestCase instance - */ - TestCase.create = function create(properties) { - return new TestCase(properties); - }; + /** + * Encodes the specified Transition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition + * @static + * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition} message Transition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Transition.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified TestCase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCase.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.TestCase - * @static - * @param {google.cloud.dialogflow.cx.v3.ITestCase} message TestCase message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TestCase.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.tags != null && message.tags.length) - for (var i = 0; i < message.tags.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.tags[i]); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); - if (message.notes != null && Object.hasOwnProperty.call(message, "notes")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.notes); - if (message.testCaseConversationTurns != null && message.testCaseConversationTurns.length) - for (var i = 0; i < message.testCaseConversationTurns.length; ++i) - $root.google.cloud.dialogflow.cx.v3.ConversationTurn.encode(message.testCaseConversationTurns[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.creationTime != null && Object.hasOwnProperty.call(message, "creationTime")) - $root.google.protobuf.Timestamp.encode(message.creationTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.lastTestResult != null && Object.hasOwnProperty.call(message, "lastTestResult")) - $root.google.cloud.dialogflow.cx.v3.TestCaseResult.encode(message.lastTestResult, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.testConfig != null && Object.hasOwnProperty.call(message, "testConfig")) - $root.google.cloud.dialogflow.cx.v3.TestConfig.encode(message.testConfig, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + /** + * Decodes a Transition message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition} Transition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Transition.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.source = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.decode(reader, reader.uint32()); + break; + case 4: + message.index = reader.int32(); + break; + case 2: + message.target = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.decode(reader, reader.uint32()); + break; + case 3: + message.covered = reader.bool(); + break; + case 5: + message.transitionRoute = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.decode(reader, reader.uint32()); + break; + case 6: + message.eventHandler = $root.google.cloud.dialogflow.cx.v3.EventHandler.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Transition message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition} Transition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Transition.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Transition message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Transition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.source != null && message.hasOwnProperty("source")) { + var error = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.verify(message.source); + if (error) + return "source." + error; + } + if (message.index != null && message.hasOwnProperty("index")) + if (!$util.isInteger(message.index)) + return "index: integer expected"; + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.verify(message.target); + if (error) + return "target." + error; + } + if (message.covered != null && message.hasOwnProperty("covered")) + if (typeof message.covered !== "boolean") + return "covered: boolean expected"; + if (message.transitionRoute != null && message.hasOwnProperty("transitionRoute")) { + properties.detail = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.verify(message.transitionRoute); + if (error) + return "transitionRoute." + error; + } + } + if (message.eventHandler != null && message.hasOwnProperty("eventHandler")) { + if (properties.detail === 1) + return "detail: multiple values"; + properties.detail = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.EventHandler.verify(message.eventHandler); + if (error) + return "eventHandler." + error; + } + } + return null; + }; + + /** + * Creates a Transition message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition} Transition + */ + Transition.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition(); + if (object.source != null) { + if (typeof object.source !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.source: object expected"); + message.source = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.fromObject(object.source); + } + if (object.index != null) + message.index = object.index | 0; + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.target: object expected"); + message.target = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.fromObject(object.target); + } + if (object.covered != null) + message.covered = Boolean(object.covered); + if (object.transitionRoute != null) { + if (typeof object.transitionRoute !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.transitionRoute: object expected"); + message.transitionRoute = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.fromObject(object.transitionRoute); + } + if (object.eventHandler != null) { + if (typeof object.eventHandler !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.eventHandler: object expected"); + message.eventHandler = $root.google.cloud.dialogflow.cx.v3.EventHandler.fromObject(object.eventHandler); + } + return message; + }; + + /** + * Creates a plain object from a Transition message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition + * @static + * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition} message Transition + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Transition.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.source = null; + object.target = null; + object.covered = false; + object.index = 0; + } + if (message.source != null && message.hasOwnProperty("source")) + object.source = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.toObject(message.source, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.toObject(message.target, options); + if (message.covered != null && message.hasOwnProperty("covered")) + object.covered = message.covered; + if (message.index != null && message.hasOwnProperty("index")) + object.index = message.index; + if (message.transitionRoute != null && message.hasOwnProperty("transitionRoute")) { + object.transitionRoute = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.toObject(message.transitionRoute, options); + if (options.oneofs) + object.detail = "transitionRoute"; + } + if (message.eventHandler != null && message.hasOwnProperty("eventHandler")) { + object.eventHandler = $root.google.cloud.dialogflow.cx.v3.EventHandler.toObject(message.eventHandler, options); + if (options.oneofs) + object.detail = "eventHandler"; + } + return object; + }; + + /** + * Converts this Transition to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition + * @instance + * @returns {Object.} JSON object + */ + Transition.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Transition; + })(); + + return TransitionCoverage; + })(); + + v3.TransitionRouteGroupCoverage = (function() { + + /** + * Properties of a TransitionRouteGroupCoverage. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface ITransitionRouteGroupCoverage + * @property {Array.|null} [coverages] TransitionRouteGroupCoverage coverages + * @property {number|null} [coverageScore] TransitionRouteGroupCoverage coverageScore + */ + + /** + * Constructs a new TransitionRouteGroupCoverage. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a TransitionRouteGroupCoverage. + * @implements ITransitionRouteGroupCoverage + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage=} [properties] Properties to set + */ + function TransitionRouteGroupCoverage(properties) { + this.coverages = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TransitionRouteGroupCoverage coverages. + * @member {Array.} coverages + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage + * @instance + */ + TransitionRouteGroupCoverage.prototype.coverages = $util.emptyArray; + + /** + * TransitionRouteGroupCoverage coverageScore. + * @member {number} coverageScore + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage + * @instance + */ + TransitionRouteGroupCoverage.prototype.coverageScore = 0; + + /** + * Creates a new TransitionRouteGroupCoverage instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage + * @static + * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage instance + */ + TransitionRouteGroupCoverage.create = function create(properties) { + return new TransitionRouteGroupCoverage(properties); + }; + + /** + * Encodes the specified TransitionRouteGroupCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage + * @static + * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage} message TransitionRouteGroupCoverage message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TransitionRouteGroupCoverage.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.coverages != null && message.coverages.length) + for (var i = 0; i < message.coverages.length; ++i) + $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.encode(message.coverages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.coverageScore != null && Object.hasOwnProperty.call(message, "coverageScore")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.coverageScore); return writer; }; /** - * Encodes the specified TestCase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCase.verify|verify} messages. + * Encodes the specified TransitionRouteGroupCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TestCase + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage * @static - * @param {google.cloud.dialogflow.cx.v3.ITestCase} message TestCase message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage} message TransitionRouteGroupCoverage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestCase.encodeDelimited = function encodeDelimited(message, writer) { + TransitionRouteGroupCoverage.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestCase message from the specified reader or buffer. + * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.TestCase + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.TestCase} TestCase + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestCase.decode = function decode(reader, length) { + TransitionRouteGroupCoverage.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TestCase(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.coverages && message.coverages.length)) + message.coverages = []; + message.coverages.push($root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.decode(reader, reader.uint32())); break; case 2: - if (!(message.tags && message.tags.length)) - message.tags = []; - message.tags.push(reader.string()); - break; - case 3: - message.displayName = reader.string(); - break; - case 4: - message.notes = reader.string(); - break; - case 13: - message.testConfig = $root.google.cloud.dialogflow.cx.v3.TestConfig.decode(reader, reader.uint32()); - break; - case 5: - if (!(message.testCaseConversationTurns && message.testCaseConversationTurns.length)) - message.testCaseConversationTurns = []; - message.testCaseConversationTurns.push($root.google.cloud.dialogflow.cx.v3.ConversationTurn.decode(reader, reader.uint32())); - break; - case 10: - message.creationTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 12: - message.lastTestResult = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.decode(reader, reader.uint32()); + message.coverageScore = reader.float(); break; default: reader.skipType(tag & 7); @@ -30219,215 +30871,609 @@ }; /** - * Decodes a TestCase message from the specified reader or buffer, length delimited. + * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TestCase + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.TestCase} TestCase + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestCase.decodeDelimited = function decodeDelimited(reader) { + TransitionRouteGroupCoverage.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestCase message. + * Verifies a TransitionRouteGroupCoverage message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.TestCase + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestCase.verify = function verify(message) { + TransitionRouteGroupCoverage.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.tags != null && message.hasOwnProperty("tags")) { - if (!Array.isArray(message.tags)) - return "tags: array expected"; - for (var i = 0; i < message.tags.length; ++i) - if (!$util.isString(message.tags[i])) - return "tags: string[] expected"; - } - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.notes != null && message.hasOwnProperty("notes")) - if (!$util.isString(message.notes)) - return "notes: string expected"; - if (message.testConfig != null && message.hasOwnProperty("testConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3.TestConfig.verify(message.testConfig); - if (error) - return "testConfig." + error; - } - if (message.testCaseConversationTurns != null && message.hasOwnProperty("testCaseConversationTurns")) { - if (!Array.isArray(message.testCaseConversationTurns)) - return "testCaseConversationTurns: array expected"; - for (var i = 0; i < message.testCaseConversationTurns.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.verify(message.testCaseConversationTurns[i]); + if (message.coverages != null && message.hasOwnProperty("coverages")) { + if (!Array.isArray(message.coverages)) + return "coverages: array expected"; + for (var i = 0; i < message.coverages.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.verify(message.coverages[i]); if (error) - return "testCaseConversationTurns." + error; + return "coverages." + error; } } - if (message.creationTime != null && message.hasOwnProperty("creationTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.creationTime); - if (error) - return "creationTime." + error; - } - if (message.lastTestResult != null && message.hasOwnProperty("lastTestResult")) { - var error = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.verify(message.lastTestResult); - if (error) - return "lastTestResult." + error; - } + if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + if (typeof message.coverageScore !== "number") + return "coverageScore: number expected"; return null; }; /** - * Creates a TestCase message from a plain object. Also converts values to their respective internal types. + * Creates a TransitionRouteGroupCoverage message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.TestCase + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.TestCase} TestCase + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage */ - TestCase.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.TestCase) + TransitionRouteGroupCoverage.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.TestCase(); - if (object.name != null) - message.name = String(object.name); - if (object.tags) { - if (!Array.isArray(object.tags)) - throw TypeError(".google.cloud.dialogflow.cx.v3.TestCase.tags: array expected"); - message.tags = []; - for (var i = 0; i < object.tags.length; ++i) - message.tags[i] = String(object.tags[i]); - } - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.notes != null) - message.notes = String(object.notes); - if (object.testConfig != null) { - if (typeof object.testConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TestCase.testConfig: object expected"); - message.testConfig = $root.google.cloud.dialogflow.cx.v3.TestConfig.fromObject(object.testConfig); - } - if (object.testCaseConversationTurns) { - if (!Array.isArray(object.testCaseConversationTurns)) - throw TypeError(".google.cloud.dialogflow.cx.v3.TestCase.testCaseConversationTurns: array expected"); - message.testCaseConversationTurns = []; - for (var i = 0; i < object.testCaseConversationTurns.length; ++i) { - if (typeof object.testCaseConversationTurns[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TestCase.testCaseConversationTurns: object expected"); - message.testCaseConversationTurns[i] = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.fromObject(object.testCaseConversationTurns[i]); + var message = new $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage(); + if (object.coverages) { + if (!Array.isArray(object.coverages)) + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.coverages: array expected"); + message.coverages = []; + for (var i = 0; i < object.coverages.length; ++i) { + if (typeof object.coverages[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.coverages: object expected"); + message.coverages[i] = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.fromObject(object.coverages[i]); } } - if (object.creationTime != null) { - if (typeof object.creationTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TestCase.creationTime: object expected"); - message.creationTime = $root.google.protobuf.Timestamp.fromObject(object.creationTime); - } - if (object.lastTestResult != null) { - if (typeof object.lastTestResult !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TestCase.lastTestResult: object expected"); - message.lastTestResult = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.fromObject(object.lastTestResult); - } + if (object.coverageScore != null) + message.coverageScore = Number(object.coverageScore); return message; }; /** - * Creates a plain object from a TestCase message. Also converts values to other types if specified. + * Creates a plain object from a TransitionRouteGroupCoverage message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.TestCase + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage * @static - * @param {google.cloud.dialogflow.cx.v3.TestCase} message TestCase + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage} message TransitionRouteGroupCoverage * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestCase.toObject = function toObject(message, options) { + TransitionRouteGroupCoverage.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.tags = []; - object.testCaseConversationTurns = []; - } - if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.notes = ""; - object.creationTime = null; - object.lastTestResult = null; - object.testConfig = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.tags && message.tags.length) { - object.tags = []; - for (var j = 0; j < message.tags.length; ++j) - object.tags[j] = message.tags[j]; - } - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.notes != null && message.hasOwnProperty("notes")) - object.notes = message.notes; - if (message.testCaseConversationTurns && message.testCaseConversationTurns.length) { - object.testCaseConversationTurns = []; - for (var j = 0; j < message.testCaseConversationTurns.length; ++j) - object.testCaseConversationTurns[j] = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.toObject(message.testCaseConversationTurns[j], options); + if (options.arrays || options.defaults) + object.coverages = []; + if (options.defaults) + object.coverageScore = 0; + if (message.coverages && message.coverages.length) { + object.coverages = []; + for (var j = 0; j < message.coverages.length; ++j) + object.coverages[j] = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.toObject(message.coverages[j], options); } - if (message.creationTime != null && message.hasOwnProperty("creationTime")) - object.creationTime = $root.google.protobuf.Timestamp.toObject(message.creationTime, options); - if (message.lastTestResult != null && message.hasOwnProperty("lastTestResult")) - object.lastTestResult = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.toObject(message.lastTestResult, options); - if (message.testConfig != null && message.hasOwnProperty("testConfig")) - object.testConfig = $root.google.cloud.dialogflow.cx.v3.TestConfig.toObject(message.testConfig, options); + if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; return object; }; /** - * Converts this TestCase to JSON. + * Converts this TransitionRouteGroupCoverage to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.TestCase + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage * @instance * @returns {Object.} JSON object */ - TestCase.prototype.toJSON = function toJSON() { + TransitionRouteGroupCoverage.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TestCase; + TransitionRouteGroupCoverage.Coverage = (function() { + + /** + * Properties of a Coverage. + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage + * @interface ICoverage + * @property {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null} [routeGroup] Coverage routeGroup + * @property {Array.|null} [transitions] Coverage transitions + * @property {number|null} [coverageScore] Coverage coverageScore + */ + + /** + * Constructs a new Coverage. + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage + * @classdesc Represents a Coverage. + * @implements ICoverage + * @constructor + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage=} [properties] Properties to set + */ + function Coverage(properties) { + this.transitions = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Coverage routeGroup. + * @member {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null|undefined} routeGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage + * @instance + */ + Coverage.prototype.routeGroup = null; + + /** + * Coverage transitions. + * @member {Array.} transitions + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage + * @instance + */ + Coverage.prototype.transitions = $util.emptyArray; + + /** + * Coverage coverageScore. + * @member {number} coverageScore + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage + * @instance + */ + Coverage.prototype.coverageScore = 0; + + /** + * Creates a new Coverage instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage + * @static + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage} Coverage instance + */ + Coverage.create = function create(properties) { + return new Coverage(properties); + }; + + /** + * Encodes the specified Coverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage + * @static + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage} message Coverage message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Coverage.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.routeGroup != null && Object.hasOwnProperty.call(message, "routeGroup")) + $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.encode(message.routeGroup, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.transitions != null && message.transitions.length) + for (var i = 0; i < message.transitions.length; ++i) + $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.encode(message.transitions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.coverageScore != null && Object.hasOwnProperty.call(message, "coverageScore")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.coverageScore); + return writer; + }; + + /** + * Encodes the specified Coverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage + * @static + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage} message Coverage message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Coverage.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Coverage message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage} Coverage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Coverage.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.routeGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.decode(reader, reader.uint32()); + break; + case 2: + if (!(message.transitions && message.transitions.length)) + message.transitions = []; + message.transitions.push($root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.decode(reader, reader.uint32())); + break; + case 3: + message.coverageScore = reader.float(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Coverage message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage} Coverage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Coverage.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Coverage message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Coverage.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.routeGroup != null && message.hasOwnProperty("routeGroup")) { + var error = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify(message.routeGroup); + if (error) + return "routeGroup." + error; + } + if (message.transitions != null && message.hasOwnProperty("transitions")) { + if (!Array.isArray(message.transitions)) + return "transitions: array expected"; + for (var i = 0; i < message.transitions.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.verify(message.transitions[i]); + if (error) + return "transitions." + error; + } + } + if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + if (typeof message.coverageScore !== "number") + return "coverageScore: number expected"; + return null; + }; + + /** + * Creates a Coverage message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage} Coverage + */ + Coverage.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage(); + if (object.routeGroup != null) { + if (typeof object.routeGroup !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.routeGroup: object expected"); + message.routeGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.fromObject(object.routeGroup); + } + if (object.transitions) { + if (!Array.isArray(object.transitions)) + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.transitions: array expected"); + message.transitions = []; + for (var i = 0; i < object.transitions.length; ++i) { + if (typeof object.transitions[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.transitions: object expected"); + message.transitions[i] = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.fromObject(object.transitions[i]); + } + } + if (object.coverageScore != null) + message.coverageScore = Number(object.coverageScore); + return message; + }; + + /** + * Creates a plain object from a Coverage message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage + * @static + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage} message Coverage + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Coverage.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.transitions = []; + if (options.defaults) { + object.routeGroup = null; + object.coverageScore = 0; + } + if (message.routeGroup != null && message.hasOwnProperty("routeGroup")) + object.routeGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.toObject(message.routeGroup, options); + if (message.transitions && message.transitions.length) { + object.transitions = []; + for (var j = 0; j < message.transitions.length; ++j) + object.transitions[j] = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.toObject(message.transitions[j], options); + } + if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; + return object; + }; + + /** + * Converts this Coverage to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage + * @instance + * @returns {Object.} JSON object + */ + Coverage.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + Coverage.Transition = (function() { + + /** + * Properties of a Transition. + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage + * @interface ITransition + * @property {google.cloud.dialogflow.cx.v3.ITransitionRoute|null} [transitionRoute] Transition transitionRoute + * @property {boolean|null} [covered] Transition covered + */ + + /** + * Constructs a new Transition. + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage + * @classdesc Represents a Transition. + * @implements ITransition + * @constructor + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition=} [properties] Properties to set + */ + function Transition(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Transition transitionRoute. + * @member {google.cloud.dialogflow.cx.v3.ITransitionRoute|null|undefined} transitionRoute + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition + * @instance + */ + Transition.prototype.transitionRoute = null; + + /** + * Transition covered. + * @member {boolean} covered + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition + * @instance + */ + Transition.prototype.covered = false; + + /** + * Creates a new Transition instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition + * @static + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition} Transition instance + */ + Transition.create = function create(properties) { + return new Transition(properties); + }; + + /** + * Encodes the specified Transition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition + * @static + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition} message Transition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Transition.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.transitionRoute != null && Object.hasOwnProperty.call(message, "transitionRoute")) + $root.google.cloud.dialogflow.cx.v3.TransitionRoute.encode(message.transitionRoute, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.covered != null && Object.hasOwnProperty.call(message, "covered")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.covered); + return writer; + }; + + /** + * Encodes the specified Transition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition + * @static + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition} message Transition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Transition.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Transition message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition} Transition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Transition.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.transitionRoute = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.decode(reader, reader.uint32()); + break; + case 2: + message.covered = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Transition message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition} Transition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Transition.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Transition message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Transition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.transitionRoute != null && message.hasOwnProperty("transitionRoute")) { + var error = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.verify(message.transitionRoute); + if (error) + return "transitionRoute." + error; + } + if (message.covered != null && message.hasOwnProperty("covered")) + if (typeof message.covered !== "boolean") + return "covered: boolean expected"; + return null; + }; + + /** + * Creates a Transition message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition} Transition + */ + Transition.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition(); + if (object.transitionRoute != null) { + if (typeof object.transitionRoute !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.transitionRoute: object expected"); + message.transitionRoute = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.fromObject(object.transitionRoute); + } + if (object.covered != null) + message.covered = Boolean(object.covered); + return message; + }; + + /** + * Creates a plain object from a Transition message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition + * @static + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition} message Transition + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Transition.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.transitionRoute = null; + object.covered = false; + } + if (message.transitionRoute != null && message.hasOwnProperty("transitionRoute")) + object.transitionRoute = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.toObject(message.transitionRoute, options); + if (message.covered != null && message.hasOwnProperty("covered")) + object.covered = message.covered; + return object; + }; + + /** + * Converts this Transition to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition + * @instance + * @returns {Object.} JSON object + */ + Transition.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Transition; + })(); + + return Coverage; + })(); + + return TransitionRouteGroupCoverage; })(); - v3.TestCaseResult = (function() { + v3.IntentCoverage = (function() { /** - * Properties of a TestCaseResult. + * Properties of an IntentCoverage. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ITestCaseResult - * @property {string|null} [name] TestCaseResult name - * @property {string|null} [environment] TestCaseResult environment - * @property {Array.|null} [conversationTurns] TestCaseResult conversationTurns - * @property {google.cloud.dialogflow.cx.v3.TestResult|null} [testResult] TestCaseResult testResult - * @property {google.protobuf.ITimestamp|null} [testTime] TestCaseResult testTime + * @interface IIntentCoverage + * @property {Array.|null} [intents] IntentCoverage intents + * @property {number|null} [coverageScore] IntentCoverage coverageScore */ /** - * Constructs a new TestCaseResult. + * Constructs a new IntentCoverage. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a TestCaseResult. - * @implements ITestCaseResult + * @classdesc Represents an IntentCoverage. + * @implements IIntentCoverage * @constructor - * @param {google.cloud.dialogflow.cx.v3.ITestCaseResult=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IIntentCoverage=} [properties] Properties to set */ - function TestCaseResult(properties) { - this.conversationTurns = []; + function IntentCoverage(properties) { + this.intents = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30435,130 +31481,91 @@ } /** - * TestCaseResult name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * IntentCoverage intents. + * @member {Array.} intents + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage * @instance */ - TestCaseResult.prototype.name = ""; + IntentCoverage.prototype.intents = $util.emptyArray; /** - * TestCaseResult environment. - * @member {string} environment - * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult - * @instance - */ - TestCaseResult.prototype.environment = ""; - - /** - * TestCaseResult conversationTurns. - * @member {Array.} conversationTurns - * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult - * @instance - */ - TestCaseResult.prototype.conversationTurns = $util.emptyArray; - - /** - * TestCaseResult testResult. - * @member {google.cloud.dialogflow.cx.v3.TestResult} testResult - * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult - * @instance - */ - TestCaseResult.prototype.testResult = 0; - - /** - * TestCaseResult testTime. - * @member {google.protobuf.ITimestamp|null|undefined} testTime - * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * IntentCoverage coverageScore. + * @member {number} coverageScore + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage * @instance */ - TestCaseResult.prototype.testTime = null; + IntentCoverage.prototype.coverageScore = 0; /** - * Creates a new TestCaseResult instance using the specified properties. + * Creates a new IntentCoverage instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage * @static - * @param {google.cloud.dialogflow.cx.v3.ITestCaseResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.TestCaseResult} TestCaseResult instance + * @param {google.cloud.dialogflow.cx.v3.IIntentCoverage=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.IntentCoverage} IntentCoverage instance */ - TestCaseResult.create = function create(properties) { - return new TestCaseResult(properties); + IntentCoverage.create = function create(properties) { + return new IntentCoverage(properties); }; /** - * Encodes the specified TestCaseResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCaseResult.verify|verify} messages. + * Encodes the specified IntentCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentCoverage.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage * @static - * @param {google.cloud.dialogflow.cx.v3.ITestCaseResult} message TestCaseResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IIntentCoverage} message IntentCoverage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestCaseResult.encode = function encode(message, writer) { + IntentCoverage.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.environment); - if (message.conversationTurns != null && message.conversationTurns.length) - for (var i = 0; i < message.conversationTurns.length; ++i) - $root.google.cloud.dialogflow.cx.v3.ConversationTurn.encode(message.conversationTurns[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.testResult != null && Object.hasOwnProperty.call(message, "testResult")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.testResult); - if (message.testTime != null && Object.hasOwnProperty.call(message, "testTime")) - $root.google.protobuf.Timestamp.encode(message.testTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.intents != null && message.intents.length) + for (var i = 0; i < message.intents.length; ++i) + $root.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.encode(message.intents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.coverageScore != null && Object.hasOwnProperty.call(message, "coverageScore")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.coverageScore); return writer; }; /** - * Encodes the specified TestCaseResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCaseResult.verify|verify} messages. + * Encodes the specified IntentCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentCoverage.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage * @static - * @param {google.cloud.dialogflow.cx.v3.ITestCaseResult} message TestCaseResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IIntentCoverage} message IntentCoverage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestCaseResult.encodeDelimited = function encodeDelimited(message, writer) { + IntentCoverage.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestCaseResult message from the specified reader or buffer. + * Decodes an IntentCoverage message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.TestCaseResult} TestCaseResult + * @returns {google.cloud.dialogflow.cx.v3.IntentCoverage} IntentCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestCaseResult.decode = function decode(reader, length) { + IntentCoverage.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TestCaseResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.IntentCoverage(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.intents && message.intents.length)) + message.intents = []; + message.intents.push($root.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.decode(reader, reader.uint32())); break; case 2: - message.environment = reader.string(); - break; - case 3: - if (!(message.conversationTurns && message.conversationTurns.length)) - message.conversationTurns = []; - message.conversationTurns.push($root.google.cloud.dialogflow.cx.v3.ConversationTurn.decode(reader, reader.uint32())); - break; - case 4: - message.testResult = reader.int32(); - break; - case 5: - message.testTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.coverageScore = reader.float(); break; default: reader.skipType(tag & 7); @@ -30569,183 +31576,344 @@ }; /** - * Decodes a TestCaseResult message from the specified reader or buffer, length delimited. + * Decodes an IntentCoverage message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.TestCaseResult} TestCaseResult + * @returns {google.cloud.dialogflow.cx.v3.IntentCoverage} IntentCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestCaseResult.decodeDelimited = function decodeDelimited(reader) { + IntentCoverage.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestCaseResult message. + * Verifies an IntentCoverage message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestCaseResult.verify = function verify(message) { + IntentCoverage.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.environment != null && message.hasOwnProperty("environment")) - if (!$util.isString(message.environment)) - return "environment: string expected"; - if (message.conversationTurns != null && message.hasOwnProperty("conversationTurns")) { - if (!Array.isArray(message.conversationTurns)) - return "conversationTurns: array expected"; - for (var i = 0; i < message.conversationTurns.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.verify(message.conversationTurns[i]); + if (message.intents != null && message.hasOwnProperty("intents")) { + if (!Array.isArray(message.intents)) + return "intents: array expected"; + for (var i = 0; i < message.intents.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.verify(message.intents[i]); if (error) - return "conversationTurns." + error; - } - } - if (message.testResult != null && message.hasOwnProperty("testResult")) - switch (message.testResult) { - default: - return "testResult: enum value expected"; - case 0: - case 1: - case 2: - break; + return "intents." + error; } - if (message.testTime != null && message.hasOwnProperty("testTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.testTime); - if (error) - return "testTime." + error; } + if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + if (typeof message.coverageScore !== "number") + return "coverageScore: number expected"; return null; }; /** - * Creates a TestCaseResult message from a plain object. Also converts values to their respective internal types. + * Creates an IntentCoverage message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.TestCaseResult} TestCaseResult + * @returns {google.cloud.dialogflow.cx.v3.IntentCoverage} IntentCoverage */ - TestCaseResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.TestCaseResult) + IntentCoverage.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.IntentCoverage) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.TestCaseResult(); - if (object.name != null) - message.name = String(object.name); - if (object.environment != null) - message.environment = String(object.environment); - if (object.conversationTurns) { - if (!Array.isArray(object.conversationTurns)) - throw TypeError(".google.cloud.dialogflow.cx.v3.TestCaseResult.conversationTurns: array expected"); - message.conversationTurns = []; - for (var i = 0; i < object.conversationTurns.length; ++i) { - if (typeof object.conversationTurns[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TestCaseResult.conversationTurns: object expected"); - message.conversationTurns[i] = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.fromObject(object.conversationTurns[i]); + var message = new $root.google.cloud.dialogflow.cx.v3.IntentCoverage(); + if (object.intents) { + if (!Array.isArray(object.intents)) + throw TypeError(".google.cloud.dialogflow.cx.v3.IntentCoverage.intents: array expected"); + message.intents = []; + for (var i = 0; i < object.intents.length; ++i) { + if (typeof object.intents[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.IntentCoverage.intents: object expected"); + message.intents[i] = $root.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.fromObject(object.intents[i]); } } - switch (object.testResult) { - case "TEST_RESULT_UNSPECIFIED": - case 0: - message.testResult = 0; - break; - case "PASSED": - case 1: - message.testResult = 1; - break; - case "FAILED": - case 2: - message.testResult = 2; - break; - } - if (object.testTime != null) { - if (typeof object.testTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TestCaseResult.testTime: object expected"); - message.testTime = $root.google.protobuf.Timestamp.fromObject(object.testTime); - } + if (object.coverageScore != null) + message.coverageScore = Number(object.coverageScore); return message; }; /** - * Creates a plain object from a TestCaseResult message. Also converts values to other types if specified. + * Creates a plain object from an IntentCoverage message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage * @static - * @param {google.cloud.dialogflow.cx.v3.TestCaseResult} message TestCaseResult + * @param {google.cloud.dialogflow.cx.v3.IntentCoverage} message IntentCoverage * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestCaseResult.toObject = function toObject(message, options) { + IntentCoverage.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.conversationTurns = []; - if (options.defaults) { - object.name = ""; - object.environment = ""; - object.testResult = options.enums === String ? "TEST_RESULT_UNSPECIFIED" : 0; - object.testTime = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = message.environment; - if (message.conversationTurns && message.conversationTurns.length) { - object.conversationTurns = []; - for (var j = 0; j < message.conversationTurns.length; ++j) - object.conversationTurns[j] = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.toObject(message.conversationTurns[j], options); + object.intents = []; + if (options.defaults) + object.coverageScore = 0; + if (message.intents && message.intents.length) { + object.intents = []; + for (var j = 0; j < message.intents.length; ++j) + object.intents[j] = $root.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.toObject(message.intents[j], options); } - if (message.testResult != null && message.hasOwnProperty("testResult")) - object.testResult = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.TestResult[message.testResult] : message.testResult; - if (message.testTime != null && message.hasOwnProperty("testTime")) - object.testTime = $root.google.protobuf.Timestamp.toObject(message.testTime, options); + if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; return object; }; /** - * Converts this TestCaseResult to JSON. + * Converts this IntentCoverage to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage * @instance * @returns {Object.} JSON object */ - TestCaseResult.prototype.toJSON = function toJSON() { + IntentCoverage.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TestCaseResult; + IntentCoverage.Intent = (function() { + + /** + * Properties of an Intent. + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage + * @interface IIntent + * @property {string|null} [intent] Intent intent + * @property {boolean|null} [covered] Intent covered + */ + + /** + * Constructs a new Intent. + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage + * @classdesc Represents an Intent. + * @implements IIntent + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent=} [properties] Properties to set + */ + function Intent(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Intent intent. + * @member {string} intent + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent + * @instance + */ + Intent.prototype.intent = ""; + + /** + * Intent covered. + * @member {boolean} covered + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent + * @instance + */ + Intent.prototype.covered = false; + + /** + * Creates a new Intent instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent + * @static + * @param {google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.IntentCoverage.Intent} Intent instance + */ + Intent.create = function create(properties) { + return new Intent(properties); + }; + + /** + * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent + * @static + * @param {google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent} message Intent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Intent.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.intent); + if (message.covered != null && Object.hasOwnProperty.call(message, "covered")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.covered); + return writer; + }; + + /** + * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent + * @static + * @param {google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent} message Intent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Intent.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Intent message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.IntentCoverage.Intent} Intent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Intent.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.intent = reader.string(); + break; + case 2: + message.covered = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Intent message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.IntentCoverage.Intent} Intent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Intent.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Intent message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Intent.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.intent != null && message.hasOwnProperty("intent")) + if (!$util.isString(message.intent)) + return "intent: string expected"; + if (message.covered != null && message.hasOwnProperty("covered")) + if (typeof message.covered !== "boolean") + return "covered: boolean expected"; + return null; + }; + + /** + * Creates an Intent message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.IntentCoverage.Intent} Intent + */ + Intent.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent(); + if (object.intent != null) + message.intent = String(object.intent); + if (object.covered != null) + message.covered = Boolean(object.covered); + return message; + }; + + /** + * Creates a plain object from an Intent message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent + * @static + * @param {google.cloud.dialogflow.cx.v3.IntentCoverage.Intent} message Intent + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Intent.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.intent = ""; + object.covered = false; + } + if (message.intent != null && message.hasOwnProperty("intent")) + object.intent = message.intent; + if (message.covered != null && message.hasOwnProperty("covered")) + object.covered = message.covered; + return object; + }; + + /** + * Converts this Intent to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent + * @instance + * @returns {Object.} JSON object + */ + Intent.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Intent; + })(); + + return IntentCoverage; })(); - v3.TestConfig = (function() { + v3.CalculateCoverageRequest = (function() { /** - * Properties of a TestConfig. + * Properties of a CalculateCoverageRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ITestConfig - * @property {Array.|null} [trackingParameters] TestConfig trackingParameters - * @property {string|null} [flow] TestConfig flow + * @interface ICalculateCoverageRequest + * @property {string|null} [agent] CalculateCoverageRequest agent + * @property {google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType|null} [type] CalculateCoverageRequest type */ /** - * Constructs a new TestConfig. + * Constructs a new CalculateCoverageRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a TestConfig. - * @implements ITestConfig + * @classdesc Represents a CalculateCoverageRequest. + * @implements ICalculateCoverageRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.ITestConfig=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest=} [properties] Properties to set */ - function TestConfig(properties) { - this.trackingParameters = []; + function CalculateCoverageRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30753,91 +31921,88 @@ } /** - * TestConfig trackingParameters. - * @member {Array.} trackingParameters - * @memberof google.cloud.dialogflow.cx.v3.TestConfig + * CalculateCoverageRequest agent. + * @member {string} agent + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest * @instance */ - TestConfig.prototype.trackingParameters = $util.emptyArray; + CalculateCoverageRequest.prototype.agent = ""; /** - * TestConfig flow. - * @member {string} flow - * @memberof google.cloud.dialogflow.cx.v3.TestConfig + * CalculateCoverageRequest type. + * @member {google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType} type + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest * @instance */ - TestConfig.prototype.flow = ""; + CalculateCoverageRequest.prototype.type = 0; /** - * Creates a new TestConfig instance using the specified properties. + * Creates a new CalculateCoverageRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.TestConfig + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ITestConfig=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.TestConfig} TestConfig instance + * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CalculateCoverageRequest} CalculateCoverageRequest instance */ - TestConfig.create = function create(properties) { - return new TestConfig(properties); + CalculateCoverageRequest.create = function create(properties) { + return new CalculateCoverageRequest(properties); }; /** - * Encodes the specified TestConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestConfig.verify|verify} messages. + * Encodes the specified CalculateCoverageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.TestConfig + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ITestConfig} message TestConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest} message CalculateCoverageRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestConfig.encode = function encode(message, writer) { + CalculateCoverageRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.trackingParameters != null && message.trackingParameters.length) - for (var i = 0; i < message.trackingParameters.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.trackingParameters[i]); - if (message.flow != null && Object.hasOwnProperty.call(message, "flow")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.flow); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); + if (message.agent != null && Object.hasOwnProperty.call(message, "agent")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.agent); return writer; }; /** - * Encodes the specified TestConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestConfig.verify|verify} messages. + * Encodes the specified CalculateCoverageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TestConfig + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ITestConfig} message TestConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest} message CalculateCoverageRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestConfig.encodeDelimited = function encodeDelimited(message, writer) { + CalculateCoverageRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestConfig message from the specified reader or buffer. + * Decodes a CalculateCoverageRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.TestConfig + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.TestConfig} TestConfig + * @returns {google.cloud.dialogflow.cx.v3.CalculateCoverageRequest} CalculateCoverageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestConfig.decode = function decode(reader, length) { + CalculateCoverageRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TestConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.trackingParameters && message.trackingParameters.length)) - message.trackingParameters = []; - message.trackingParameters.push(reader.string()); + case 3: + message.agent = reader.string(); break; case 2: - message.flow = reader.string(); + message.type = reader.int32(); break; default: reader.skipType(tag & 7); @@ -30848,129 +32013,160 @@ }; /** - * Decodes a TestConfig message from the specified reader or buffer, length delimited. + * Decodes a CalculateCoverageRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TestConfig + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.TestConfig} TestConfig + * @returns {google.cloud.dialogflow.cx.v3.CalculateCoverageRequest} CalculateCoverageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestConfig.decodeDelimited = function decodeDelimited(reader) { + CalculateCoverageRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestConfig message. + * Verifies a CalculateCoverageRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.TestConfig + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestConfig.verify = function verify(message) { + CalculateCoverageRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.trackingParameters != null && message.hasOwnProperty("trackingParameters")) { - if (!Array.isArray(message.trackingParameters)) - return "trackingParameters: array expected"; - for (var i = 0; i < message.trackingParameters.length; ++i) - if (!$util.isString(message.trackingParameters[i])) - return "trackingParameters: string[] expected"; - } - if (message.flow != null && message.hasOwnProperty("flow")) - if (!$util.isString(message.flow)) - return "flow: string expected"; + if (message.agent != null && message.hasOwnProperty("agent")) + if (!$util.isString(message.agent)) + return "agent: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } return null; }; /** - * Creates a TestConfig message from a plain object. Also converts values to their respective internal types. + * Creates a CalculateCoverageRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.TestConfig + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.TestConfig} TestConfig + * @returns {google.cloud.dialogflow.cx.v3.CalculateCoverageRequest} CalculateCoverageRequest */ - TestConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.TestConfig) + CalculateCoverageRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.TestConfig(); - if (object.trackingParameters) { - if (!Array.isArray(object.trackingParameters)) - throw TypeError(".google.cloud.dialogflow.cx.v3.TestConfig.trackingParameters: array expected"); - message.trackingParameters = []; - for (var i = 0; i < object.trackingParameters.length; ++i) - message.trackingParameters[i] = String(object.trackingParameters[i]); + var message = new $root.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest(); + if (object.agent != null) + message.agent = String(object.agent); + switch (object.type) { + case "COVERAGE_TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "INTENT": + case 1: + message.type = 1; + break; + case "PAGE_TRANSITION": + case 2: + message.type = 2; + break; + case "TRANSITION_ROUTE_GROUP": + case 3: + message.type = 3; + break; } - if (object.flow != null) - message.flow = String(object.flow); return message; }; /** - * Creates a plain object from a TestConfig message. Also converts values to other types if specified. + * Creates a plain object from a CalculateCoverageRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.TestConfig + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest * @static - * @param {google.cloud.dialogflow.cx.v3.TestConfig} message TestConfig + * @param {google.cloud.dialogflow.cx.v3.CalculateCoverageRequest} message CalculateCoverageRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestConfig.toObject = function toObject(message, options) { + CalculateCoverageRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.trackingParameters = []; - if (options.defaults) - object.flow = ""; - if (message.trackingParameters && message.trackingParameters.length) { - object.trackingParameters = []; - for (var j = 0; j < message.trackingParameters.length; ++j) - object.trackingParameters[j] = message.trackingParameters[j]; + if (options.defaults) { + object.type = options.enums === String ? "COVERAGE_TYPE_UNSPECIFIED" : 0; + object.agent = ""; } - if (message.flow != null && message.hasOwnProperty("flow")) - object.flow = message.flow; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType[message.type] : message.type; + if (message.agent != null && message.hasOwnProperty("agent")) + object.agent = message.agent; return object; }; /** - * Converts this TestConfig to JSON. + * Converts this CalculateCoverageRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.TestConfig + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest * @instance * @returns {Object.} JSON object */ - TestConfig.prototype.toJSON = function toJSON() { + CalculateCoverageRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TestConfig; + /** + * CoverageType enum. + * @name google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType + * @enum {number} + * @property {number} COVERAGE_TYPE_UNSPECIFIED=0 COVERAGE_TYPE_UNSPECIFIED value + * @property {number} INTENT=1 INTENT value + * @property {number} PAGE_TRANSITION=2 PAGE_TRANSITION value + * @property {number} TRANSITION_ROUTE_GROUP=3 TRANSITION_ROUTE_GROUP value + */ + CalculateCoverageRequest.CoverageType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "COVERAGE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "INTENT"] = 1; + values[valuesById[2] = "PAGE_TRANSITION"] = 2; + values[valuesById[3] = "TRANSITION_ROUTE_GROUP"] = 3; + return values; + })(); + + return CalculateCoverageRequest; })(); - v3.ConversationTurn = (function() { + v3.CalculateCoverageResponse = (function() { /** - * Properties of a ConversationTurn. + * Properties of a CalculateCoverageResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IConversationTurn - * @property {google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput|null} [userInput] ConversationTurn userInput - * @property {google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput|null} [virtualAgentOutput] ConversationTurn virtualAgentOutput + * @interface ICalculateCoverageResponse + * @property {string|null} [agent] CalculateCoverageResponse agent + * @property {google.cloud.dialogflow.cx.v3.IIntentCoverage|null} [intentCoverage] CalculateCoverageResponse intentCoverage + * @property {google.cloud.dialogflow.cx.v3.ITransitionCoverage|null} [transitionCoverage] CalculateCoverageResponse transitionCoverage + * @property {google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage|null} [routeGroupCoverage] CalculateCoverageResponse routeGroupCoverage */ /** - * Constructs a new ConversationTurn. + * Constructs a new CalculateCoverageResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ConversationTurn. - * @implements IConversationTurn + * @classdesc Represents a CalculateCoverageResponse. + * @implements ICalculateCoverageResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IConversationTurn=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageResponse=} [properties] Properties to set */ - function ConversationTurn(properties) { + function CalculateCoverageResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30978,88 +32174,128 @@ } /** - * ConversationTurn userInput. - * @member {google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput|null|undefined} userInput - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * CalculateCoverageResponse agent. + * @member {string} agent + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse * @instance */ - ConversationTurn.prototype.userInput = null; + CalculateCoverageResponse.prototype.agent = ""; /** - * ConversationTurn virtualAgentOutput. - * @member {google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput|null|undefined} virtualAgentOutput - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * CalculateCoverageResponse intentCoverage. + * @member {google.cloud.dialogflow.cx.v3.IIntentCoverage|null|undefined} intentCoverage + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse * @instance */ - ConversationTurn.prototype.virtualAgentOutput = null; + CalculateCoverageResponse.prototype.intentCoverage = null; /** - * Creates a new ConversationTurn instance using the specified properties. + * CalculateCoverageResponse transitionCoverage. + * @member {google.cloud.dialogflow.cx.v3.ITransitionCoverage|null|undefined} transitionCoverage + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * @instance + */ + CalculateCoverageResponse.prototype.transitionCoverage = null; + + /** + * CalculateCoverageResponse routeGroupCoverage. + * @member {google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage|null|undefined} routeGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * @instance + */ + CalculateCoverageResponse.prototype.routeGroupCoverage = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * CalculateCoverageResponse coverageType. + * @member {"intentCoverage"|"transitionCoverage"|"routeGroupCoverage"|undefined} coverageType + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * @instance + */ + Object.defineProperty(CalculateCoverageResponse.prototype, "coverageType", { + get: $util.oneOfGetter($oneOfFields = ["intentCoverage", "transitionCoverage", "routeGroupCoverage"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CalculateCoverageResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IConversationTurn=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn} ConversationTurn instance + * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CalculateCoverageResponse} CalculateCoverageResponse instance */ - ConversationTurn.create = function create(properties) { - return new ConversationTurn(properties); + CalculateCoverageResponse.create = function create(properties) { + return new CalculateCoverageResponse(properties); }; /** - * Encodes the specified ConversationTurn message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.verify|verify} messages. + * Encodes the specified CalculateCoverageResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IConversationTurn} message ConversationTurn message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageResponse} message CalculateCoverageResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConversationTurn.encode = function encode(message, writer) { + CalculateCoverageResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.userInput != null && Object.hasOwnProperty.call(message, "userInput")) - $root.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.encode(message.userInput, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.virtualAgentOutput != null && Object.hasOwnProperty.call(message, "virtualAgentOutput")) - $root.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.encode(message.virtualAgentOutput, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.intentCoverage != null && Object.hasOwnProperty.call(message, "intentCoverage")) + $root.google.cloud.dialogflow.cx.v3.IntentCoverage.encode(message.intentCoverage, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.transitionCoverage != null && Object.hasOwnProperty.call(message, "transitionCoverage")) + $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.encode(message.transitionCoverage, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.agent != null && Object.hasOwnProperty.call(message, "agent")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.agent); + if (message.routeGroupCoverage != null && Object.hasOwnProperty.call(message, "routeGroupCoverage")) + $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.encode(message.routeGroupCoverage, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; /** - * Encodes the specified ConversationTurn message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.verify|verify} messages. + * Encodes the specified CalculateCoverageResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IConversationTurn} message ConversationTurn message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageResponse} message CalculateCoverageResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConversationTurn.encodeDelimited = function encodeDelimited(message, writer) { + CalculateCoverageResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConversationTurn message from the specified reader or buffer. + * Decodes a CalculateCoverageResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn} ConversationTurn + * @returns {google.cloud.dialogflow.cx.v3.CalculateCoverageResponse} CalculateCoverageResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConversationTurn.decode = function decode(reader, length) { + CalculateCoverageResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ConversationTurn(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.userInput = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.decode(reader, reader.uint32()); + case 5: + message.agent = reader.string(); break; case 2: - message.virtualAgentOutput = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.decode(reader, reader.uint32()); + message.intentCoverage = $root.google.cloud.dialogflow.cx.v3.IntentCoverage.decode(reader, reader.uint32()); + break; + case 4: + message.transitionCoverage = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.decode(reader, reader.uint32()); + break; + case 6: + message.routeGroupCoverage = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -31070,869 +32306,548 @@ }; /** - * Decodes a ConversationTurn message from the specified reader or buffer, length delimited. + * Decodes a CalculateCoverageResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn} ConversationTurn + * @returns {google.cloud.dialogflow.cx.v3.CalculateCoverageResponse} CalculateCoverageResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConversationTurn.decodeDelimited = function decodeDelimited(reader) { + CalculateCoverageResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConversationTurn message. + * Verifies a CalculateCoverageResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConversationTurn.verify = function verify(message) { + CalculateCoverageResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.userInput != null && message.hasOwnProperty("userInput")) { - var error = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.verify(message.userInput); - if (error) - return "userInput." + error; + var properties = {}; + if (message.agent != null && message.hasOwnProperty("agent")) + if (!$util.isString(message.agent)) + return "agent: string expected"; + if (message.intentCoverage != null && message.hasOwnProperty("intentCoverage")) { + properties.coverageType = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.IntentCoverage.verify(message.intentCoverage); + if (error) + return "intentCoverage." + error; + } } - if (message.virtualAgentOutput != null && message.hasOwnProperty("virtualAgentOutput")) { - var error = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.verify(message.virtualAgentOutput); - if (error) - return "virtualAgentOutput." + error; + if (message.transitionCoverage != null && message.hasOwnProperty("transitionCoverage")) { + if (properties.coverageType === 1) + return "coverageType: multiple values"; + properties.coverageType = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.verify(message.transitionCoverage); + if (error) + return "transitionCoverage." + error; + } + } + if (message.routeGroupCoverage != null && message.hasOwnProperty("routeGroupCoverage")) { + if (properties.coverageType === 1) + return "coverageType: multiple values"; + properties.coverageType = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.verify(message.routeGroupCoverage); + if (error) + return "routeGroupCoverage." + error; + } } return null; }; /** - * Creates a ConversationTurn message from a plain object. Also converts values to their respective internal types. + * Creates a CalculateCoverageResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn} ConversationTurn + * @returns {google.cloud.dialogflow.cx.v3.CalculateCoverageResponse} CalculateCoverageResponse */ - ConversationTurn.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ConversationTurn) + CalculateCoverageResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ConversationTurn(); - if (object.userInput != null) { - if (typeof object.userInput !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.userInput: object expected"); - message.userInput = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.fromObject(object.userInput); + var message = new $root.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse(); + if (object.agent != null) + message.agent = String(object.agent); + if (object.intentCoverage != null) { + if (typeof object.intentCoverage !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.intentCoverage: object expected"); + message.intentCoverage = $root.google.cloud.dialogflow.cx.v3.IntentCoverage.fromObject(object.intentCoverage); } - if (object.virtualAgentOutput != null) { - if (typeof object.virtualAgentOutput !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.virtualAgentOutput: object expected"); - message.virtualAgentOutput = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.fromObject(object.virtualAgentOutput); + if (object.transitionCoverage != null) { + if (typeof object.transitionCoverage !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.transitionCoverage: object expected"); + message.transitionCoverage = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.fromObject(object.transitionCoverage); + } + if (object.routeGroupCoverage != null) { + if (typeof object.routeGroupCoverage !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.routeGroupCoverage: object expected"); + message.routeGroupCoverage = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.fromObject(object.routeGroupCoverage); } return message; }; /** - * Creates a plain object from a ConversationTurn message. Also converts values to other types if specified. + * Creates a plain object from a CalculateCoverageResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ConversationTurn} message ConversationTurn + * @param {google.cloud.dialogflow.cx.v3.CalculateCoverageResponse} message CalculateCoverageResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConversationTurn.toObject = function toObject(message, options) { + CalculateCoverageResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.userInput = null; - object.virtualAgentOutput = null; + if (options.defaults) + object.agent = ""; + if (message.intentCoverage != null && message.hasOwnProperty("intentCoverage")) { + object.intentCoverage = $root.google.cloud.dialogflow.cx.v3.IntentCoverage.toObject(message.intentCoverage, options); + if (options.oneofs) + object.coverageType = "intentCoverage"; + } + if (message.transitionCoverage != null && message.hasOwnProperty("transitionCoverage")) { + object.transitionCoverage = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.toObject(message.transitionCoverage, options); + if (options.oneofs) + object.coverageType = "transitionCoverage"; + } + if (message.agent != null && message.hasOwnProperty("agent")) + object.agent = message.agent; + if (message.routeGroupCoverage != null && message.hasOwnProperty("routeGroupCoverage")) { + object.routeGroupCoverage = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.toObject(message.routeGroupCoverage, options); + if (options.oneofs) + object.coverageType = "routeGroupCoverage"; } - if (message.userInput != null && message.hasOwnProperty("userInput")) - object.userInput = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.toObject(message.userInput, options); - if (message.virtualAgentOutput != null && message.hasOwnProperty("virtualAgentOutput")) - object.virtualAgentOutput = $root.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.toObject(message.virtualAgentOutput, options); return object; }; /** - * Converts this ConversationTurn to JSON. + * Converts this CalculateCoverageResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse * @instance * @returns {Object.} JSON object */ - ConversationTurn.prototype.toJSON = function toJSON() { + CalculateCoverageResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - ConversationTurn.UserInput = (function() { + return CalculateCoverageResponse; + })(); - /** - * Properties of a UserInput. - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn - * @interface IUserInput - * @property {google.cloud.dialogflow.cx.v3.IQueryInput|null} [input] UserInput input - * @property {google.protobuf.IStruct|null} [injectedParameters] UserInput injectedParameters - * @property {boolean|null} [isWebhookEnabled] UserInput isWebhookEnabled - * @property {boolean|null} [enableSentimentAnalysis] UserInput enableSentimentAnalysis - */ + v3.ListTestCasesRequest = (function() { - /** - * Constructs a new UserInput. - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn - * @classdesc Represents a UserInput. - * @implements IUserInput - * @constructor - * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput=} [properties] Properties to set - */ - function UserInput(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a ListTestCasesRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IListTestCasesRequest + * @property {string|null} [parent] ListTestCasesRequest parent + * @property {number|null} [pageSize] ListTestCasesRequest pageSize + * @property {string|null} [pageToken] ListTestCasesRequest pageToken + * @property {google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView|null} [view] ListTestCasesRequest view + */ - /** - * UserInput input. - * @member {google.cloud.dialogflow.cx.v3.IQueryInput|null|undefined} input - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput - * @instance - */ - UserInput.prototype.input = null; + /** + * Constructs a new ListTestCasesRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a ListTestCasesRequest. + * @implements IListTestCasesRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IListTestCasesRequest=} [properties] Properties to set + */ + function ListTestCasesRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * UserInput injectedParameters. - * @member {google.protobuf.IStruct|null|undefined} injectedParameters - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput - * @instance - */ - UserInput.prototype.injectedParameters = null; + /** + * ListTestCasesRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @instance + */ + ListTestCasesRequest.prototype.parent = ""; - /** - * UserInput isWebhookEnabled. - * @member {boolean} isWebhookEnabled - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput - * @instance - */ - UserInput.prototype.isWebhookEnabled = false; + /** + * ListTestCasesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @instance + */ + ListTestCasesRequest.prototype.pageSize = 0; - /** - * UserInput enableSentimentAnalysis. - * @member {boolean} enableSentimentAnalysis - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput - * @instance - */ - UserInput.prototype.enableSentimentAnalysis = false; - - /** - * Creates a new UserInput instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput - * @static - * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput} UserInput instance - */ - UserInput.create = function create(properties) { - return new UserInput(properties); - }; + /** + * ListTestCasesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @instance + */ + ListTestCasesRequest.prototype.pageToken = ""; - /** - * Encodes the specified UserInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput - * @static - * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput} message UserInput message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserInput.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.injectedParameters != null && Object.hasOwnProperty.call(message, "injectedParameters")) - $root.google.protobuf.Struct.encode(message.injectedParameters, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.isWebhookEnabled != null && Object.hasOwnProperty.call(message, "isWebhookEnabled")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isWebhookEnabled); - if (message.input != null && Object.hasOwnProperty.call(message, "input")) - $root.google.cloud.dialogflow.cx.v3.QueryInput.encode(message.input, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.enableSentimentAnalysis != null && Object.hasOwnProperty.call(message, "enableSentimentAnalysis")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.enableSentimentAnalysis); - return writer; - }; + /** + * ListTestCasesRequest view. + * @member {google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView} view + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @instance + */ + ListTestCasesRequest.prototype.view = 0; - /** - * Encodes the specified UserInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput - * @static - * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.IUserInput} message UserInput message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserInput.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new ListTestCasesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IListTestCasesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListTestCasesRequest} ListTestCasesRequest instance + */ + ListTestCasesRequest.create = function create(properties) { + return new ListTestCasesRequest(properties); + }; - /** - * Decodes a UserInput message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput} UserInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserInput.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 5: - message.input = $root.google.cloud.dialogflow.cx.v3.QueryInput.decode(reader, reader.uint32()); - break; - case 2: - message.injectedParameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 3: - message.isWebhookEnabled = reader.bool(); - break; - case 7: - message.enableSentimentAnalysis = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified ListTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCasesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IListTestCasesRequest} message ListTestCasesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListTestCasesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.view != null && Object.hasOwnProperty.call(message, "view")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.view); + return writer; + }; - /** - * Decodes a UserInput message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput} UserInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserInput.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified ListTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCasesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IListTestCasesRequest} message ListTestCasesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies a UserInput message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UserInput.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.input != null && message.hasOwnProperty("input")) { - var error = $root.google.cloud.dialogflow.cx.v3.QueryInput.verify(message.input); - if (error) - return "input." + error; - } - if (message.injectedParameters != null && message.hasOwnProperty("injectedParameters")) { - var error = $root.google.protobuf.Struct.verify(message.injectedParameters); - if (error) - return "injectedParameters." + error; + /** + * Decodes a ListTestCasesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.ListTestCasesRequest} ListTestCasesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListTestCasesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListTestCasesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); + break; + case 4: + message.view = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; } - if (message.isWebhookEnabled != null && message.hasOwnProperty("isWebhookEnabled")) - if (typeof message.isWebhookEnabled !== "boolean") - return "isWebhookEnabled: boolean expected"; - if (message.enableSentimentAnalysis != null && message.hasOwnProperty("enableSentimentAnalysis")) - if (typeof message.enableSentimentAnalysis !== "boolean") - return "enableSentimentAnalysis: boolean expected"; - return null; - }; + } + return message; + }; - /** - * Creates a UserInput message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput} UserInput - */ - UserInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput(); - if (object.input != null) { - if (typeof object.input !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.input: object expected"); - message.input = $root.google.cloud.dialogflow.cx.v3.QueryInput.fromObject(object.input); - } - if (object.injectedParameters != null) { - if (typeof object.injectedParameters !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.injectedParameters: object expected"); - message.injectedParameters = $root.google.protobuf.Struct.fromObject(object.injectedParameters); - } - if (object.isWebhookEnabled != null) - message.isWebhookEnabled = Boolean(object.isWebhookEnabled); - if (object.enableSentimentAnalysis != null) - message.enableSentimentAnalysis = Boolean(object.enableSentimentAnalysis); - return message; - }; + /** + * Decodes a ListTestCasesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.ListTestCasesRequest} ListTestCasesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from a UserInput message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput - * @static - * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput} message UserInput - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UserInput.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.injectedParameters = null; - object.isWebhookEnabled = false; - object.input = null; - object.enableSentimentAnalysis = false; + /** + * Verifies a ListTestCasesRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListTestCasesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.view != null && message.hasOwnProperty("view")) + switch (message.view) { + default: + return "view: enum value expected"; + case 0: + case 1: + case 2: + break; } - if (message.injectedParameters != null && message.hasOwnProperty("injectedParameters")) - object.injectedParameters = $root.google.protobuf.Struct.toObject(message.injectedParameters, options); - if (message.isWebhookEnabled != null && message.hasOwnProperty("isWebhookEnabled")) - object.isWebhookEnabled = message.isWebhookEnabled; - if (message.input != null && message.hasOwnProperty("input")) - object.input = $root.google.cloud.dialogflow.cx.v3.QueryInput.toObject(message.input, options); - if (message.enableSentimentAnalysis != null && message.hasOwnProperty("enableSentimentAnalysis")) - object.enableSentimentAnalysis = message.enableSentimentAnalysis; + return null; + }; + + /** + * Creates a ListTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.ListTestCasesRequest} ListTestCasesRequest + */ + ListTestCasesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListTestCasesRequest) return object; - }; + var message = new $root.google.cloud.dialogflow.cx.v3.ListTestCasesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + switch (object.view) { + case "TEST_CASE_VIEW_UNSPECIFIED": + case 0: + message.view = 0; + break; + case "BASIC": + case 1: + message.view = 1; + break; + case "FULL": + case 2: + message.view = 2; + break; + } + return message; + }; - /** - * Converts this UserInput to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput - * @instance - * @returns {Object.} JSON object - */ - UserInput.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ListTestCasesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.ListTestCasesRequest} message ListTestCasesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListTestCasesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.view = options.enums === String ? "TEST_CASE_VIEW_UNSPECIFIED" : 0; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.view != null && message.hasOwnProperty("view")) + object.view = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView[message.view] : message.view; + return object; + }; - return UserInput; + /** + * Converts this ListTestCasesRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @instance + * @returns {Object.} JSON object + */ + ListTestCasesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * TestCaseView enum. + * @name google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView + * @enum {number} + * @property {number} TEST_CASE_VIEW_UNSPECIFIED=0 TEST_CASE_VIEW_UNSPECIFIED value + * @property {number} BASIC=1 BASIC value + * @property {number} FULL=2 FULL value + */ + ListTestCasesRequest.TestCaseView = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TEST_CASE_VIEW_UNSPECIFIED"] = 0; + values[valuesById[1] = "BASIC"] = 1; + values[valuesById[2] = "FULL"] = 2; + return values; })(); - ConversationTurn.VirtualAgentOutput = (function() { + return ListTestCasesRequest; + })(); - /** - * Properties of a VirtualAgentOutput. - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn - * @interface IVirtualAgentOutput - * @property {google.protobuf.IStruct|null} [sessionParameters] VirtualAgentOutput sessionParameters - * @property {Array.|null} [differences] VirtualAgentOutput differences - * @property {google.protobuf.IStruct|null} [diagnosticInfo] VirtualAgentOutput diagnosticInfo - * @property {google.cloud.dialogflow.cx.v3.IIntent|null} [triggeredIntent] VirtualAgentOutput triggeredIntent - * @property {google.cloud.dialogflow.cx.v3.IPage|null} [currentPage] VirtualAgentOutput currentPage - * @property {Array.|null} [textResponses] VirtualAgentOutput textResponses - * @property {google.rpc.IStatus|null} [status] VirtualAgentOutput status - */ + v3.ListTestCasesResponse = (function() { - /** - * Constructs a new VirtualAgentOutput. - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn - * @classdesc Represents a VirtualAgentOutput. - * @implements IVirtualAgentOutput - * @constructor - * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput=} [properties] Properties to set - */ - function VirtualAgentOutput(properties) { - this.differences = []; - this.textResponses = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a ListTestCasesResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IListTestCasesResponse + * @property {Array.|null} [testCases] ListTestCasesResponse testCases + * @property {string|null} [nextPageToken] ListTestCasesResponse nextPageToken + */ - /** - * VirtualAgentOutput sessionParameters. - * @member {google.protobuf.IStruct|null|undefined} sessionParameters - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput - * @instance - */ - VirtualAgentOutput.prototype.sessionParameters = null; + /** + * Constructs a new ListTestCasesResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a ListTestCasesResponse. + * @implements IListTestCasesResponse + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IListTestCasesResponse=} [properties] Properties to set + */ + function ListTestCasesResponse(properties) { + this.testCases = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * VirtualAgentOutput differences. - * @member {Array.} differences - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput - * @instance - */ - VirtualAgentOutput.prototype.differences = $util.emptyArray; + /** + * ListTestCasesResponse testCases. + * @member {Array.} testCases + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse + * @instance + */ + ListTestCasesResponse.prototype.testCases = $util.emptyArray; - /** - * VirtualAgentOutput diagnosticInfo. - * @member {google.protobuf.IStruct|null|undefined} diagnosticInfo - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput - * @instance - */ - VirtualAgentOutput.prototype.diagnosticInfo = null; - - /** - * VirtualAgentOutput triggeredIntent. - * @member {google.cloud.dialogflow.cx.v3.IIntent|null|undefined} triggeredIntent - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput - * @instance - */ - VirtualAgentOutput.prototype.triggeredIntent = null; - - /** - * VirtualAgentOutput currentPage. - * @member {google.cloud.dialogflow.cx.v3.IPage|null|undefined} currentPage - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput - * @instance - */ - VirtualAgentOutput.prototype.currentPage = null; - - /** - * VirtualAgentOutput textResponses. - * @member {Array.} textResponses - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput - * @instance - */ - VirtualAgentOutput.prototype.textResponses = $util.emptyArray; - - /** - * VirtualAgentOutput status. - * @member {google.rpc.IStatus|null|undefined} status - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput - * @instance - */ - VirtualAgentOutput.prototype.status = null; - - /** - * Creates a new VirtualAgentOutput instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput - * @static - * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput} VirtualAgentOutput instance - */ - VirtualAgentOutput.create = function create(properties) { - return new VirtualAgentOutput(properties); - }; - - /** - * Encodes the specified VirtualAgentOutput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput - * @static - * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput} message VirtualAgentOutput message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VirtualAgentOutput.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sessionParameters != null && Object.hasOwnProperty.call(message, "sessionParameters")) - $root.google.protobuf.Struct.encode(message.sessionParameters, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.differences != null && message.differences.length) - for (var i = 0; i < message.differences.length; ++i) - $root.google.cloud.dialogflow.cx.v3.TestRunDifference.encode(message.differences[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.diagnosticInfo != null && Object.hasOwnProperty.call(message, "diagnosticInfo")) - $root.google.protobuf.Struct.encode(message.diagnosticInfo, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.triggeredIntent != null && Object.hasOwnProperty.call(message, "triggeredIntent")) - $root.google.cloud.dialogflow.cx.v3.Intent.encode(message.triggeredIntent, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) - $root.google.cloud.dialogflow.cx.v3.Page.encode(message.currentPage, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.textResponses != null && message.textResponses.length) - for (var i = 0; i < message.textResponses.length; ++i) - $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.encode(message.textResponses[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified VirtualAgentOutput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput - * @static - * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.IVirtualAgentOutput} message VirtualAgentOutput message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VirtualAgentOutput.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a VirtualAgentOutput message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput} VirtualAgentOutput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VirtualAgentOutput.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 4: - message.sessionParameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 5: - if (!(message.differences && message.differences.length)) - message.differences = []; - message.differences.push($root.google.cloud.dialogflow.cx.v3.TestRunDifference.decode(reader, reader.uint32())); - break; - case 6: - message.diagnosticInfo = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 7: - message.triggeredIntent = $root.google.cloud.dialogflow.cx.v3.Intent.decode(reader, reader.uint32()); - break; - case 8: - message.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.decode(reader, reader.uint32()); - break; - case 9: - if (!(message.textResponses && message.textResponses.length)) - message.textResponses = []; - message.textResponses.push($root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.decode(reader, reader.uint32())); - break; - case 10: - message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a VirtualAgentOutput message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput} VirtualAgentOutput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VirtualAgentOutput.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a VirtualAgentOutput message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - VirtualAgentOutput.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sessionParameters != null && message.hasOwnProperty("sessionParameters")) { - var error = $root.google.protobuf.Struct.verify(message.sessionParameters); - if (error) - return "sessionParameters." + error; - } - if (message.differences != null && message.hasOwnProperty("differences")) { - if (!Array.isArray(message.differences)) - return "differences: array expected"; - for (var i = 0; i < message.differences.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.TestRunDifference.verify(message.differences[i]); - if (error) - return "differences." + error; - } - } - if (message.diagnosticInfo != null && message.hasOwnProperty("diagnosticInfo")) { - var error = $root.google.protobuf.Struct.verify(message.diagnosticInfo); - if (error) - return "diagnosticInfo." + error; - } - if (message.triggeredIntent != null && message.hasOwnProperty("triggeredIntent")) { - var error = $root.google.cloud.dialogflow.cx.v3.Intent.verify(message.triggeredIntent); - if (error) - return "triggeredIntent." + error; - } - if (message.currentPage != null && message.hasOwnProperty("currentPage")) { - var error = $root.google.cloud.dialogflow.cx.v3.Page.verify(message.currentPage); - if (error) - return "currentPage." + error; - } - if (message.textResponses != null && message.hasOwnProperty("textResponses")) { - if (!Array.isArray(message.textResponses)) - return "textResponses: array expected"; - for (var i = 0; i < message.textResponses.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.verify(message.textResponses[i]); - if (error) - return "textResponses." + error; - } - } - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.google.rpc.Status.verify(message.status); - if (error) - return "status." + error; - } - return null; - }; - - /** - * Creates a VirtualAgentOutput message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput} VirtualAgentOutput - */ - VirtualAgentOutput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput(); - if (object.sessionParameters != null) { - if (typeof object.sessionParameters !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.sessionParameters: object expected"); - message.sessionParameters = $root.google.protobuf.Struct.fromObject(object.sessionParameters); - } - if (object.differences) { - if (!Array.isArray(object.differences)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.differences: array expected"); - message.differences = []; - for (var i = 0; i < object.differences.length; ++i) { - if (typeof object.differences[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.differences: object expected"); - message.differences[i] = $root.google.cloud.dialogflow.cx.v3.TestRunDifference.fromObject(object.differences[i]); - } - } - if (object.diagnosticInfo != null) { - if (typeof object.diagnosticInfo !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.diagnosticInfo: object expected"); - message.diagnosticInfo = $root.google.protobuf.Struct.fromObject(object.diagnosticInfo); - } - if (object.triggeredIntent != null) { - if (typeof object.triggeredIntent !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.triggeredIntent: object expected"); - message.triggeredIntent = $root.google.cloud.dialogflow.cx.v3.Intent.fromObject(object.triggeredIntent); - } - if (object.currentPage != null) { - if (typeof object.currentPage !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.currentPage: object expected"); - message.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.fromObject(object.currentPage); - } - if (object.textResponses) { - if (!Array.isArray(object.textResponses)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.textResponses: array expected"); - message.textResponses = []; - for (var i = 0; i < object.textResponses.length; ++i) { - if (typeof object.textResponses[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.textResponses: object expected"); - message.textResponses[i] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.fromObject(object.textResponses[i]); - } - } - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.status: object expected"); - message.status = $root.google.rpc.Status.fromObject(object.status); - } - return message; - }; - - /** - * Creates a plain object from a VirtualAgentOutput message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput - * @static - * @param {google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput} message VirtualAgentOutput - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - VirtualAgentOutput.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.differences = []; - object.textResponses = []; - } - if (options.defaults) { - object.sessionParameters = null; - object.diagnosticInfo = null; - object.triggeredIntent = null; - object.currentPage = null; - object.status = null; - } - if (message.sessionParameters != null && message.hasOwnProperty("sessionParameters")) - object.sessionParameters = $root.google.protobuf.Struct.toObject(message.sessionParameters, options); - if (message.differences && message.differences.length) { - object.differences = []; - for (var j = 0; j < message.differences.length; ++j) - object.differences[j] = $root.google.cloud.dialogflow.cx.v3.TestRunDifference.toObject(message.differences[j], options); - } - if (message.diagnosticInfo != null && message.hasOwnProperty("diagnosticInfo")) - object.diagnosticInfo = $root.google.protobuf.Struct.toObject(message.diagnosticInfo, options); - if (message.triggeredIntent != null && message.hasOwnProperty("triggeredIntent")) - object.triggeredIntent = $root.google.cloud.dialogflow.cx.v3.Intent.toObject(message.triggeredIntent, options); - if (message.currentPage != null && message.hasOwnProperty("currentPage")) - object.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.toObject(message.currentPage, options); - if (message.textResponses && message.textResponses.length) { - object.textResponses = []; - for (var j = 0; j < message.textResponses.length; ++j) - object.textResponses[j] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.toObject(message.textResponses[j], options); - } - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.google.rpc.Status.toObject(message.status, options); - return object; - }; - - /** - * Converts this VirtualAgentOutput to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput - * @instance - * @returns {Object.} JSON object - */ - VirtualAgentOutput.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return VirtualAgentOutput; - })(); - - return ConversationTurn; - })(); - - v3.TestRunDifference = (function() { - - /** - * Properties of a TestRunDifference. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface ITestRunDifference - * @property {google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType|null} [type] TestRunDifference type - * @property {string|null} [description] TestRunDifference description - */ - - /** - * Constructs a new TestRunDifference. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a TestRunDifference. - * @implements ITestRunDifference - * @constructor - * @param {google.cloud.dialogflow.cx.v3.ITestRunDifference=} [properties] Properties to set - */ - function TestRunDifference(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TestRunDifference type. - * @member {google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType} type - * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference - * @instance - */ - TestRunDifference.prototype.type = 0; + /** + * ListTestCasesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse + * @instance + */ + ListTestCasesResponse.prototype.nextPageToken = ""; /** - * TestRunDifference description. - * @member {string} description - * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference - * @instance - */ - TestRunDifference.prototype.description = ""; - - /** - * Creates a new TestRunDifference instance using the specified properties. + * Creates a new ListTestCasesResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ITestRunDifference=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.TestRunDifference} TestRunDifference instance + * @param {google.cloud.dialogflow.cx.v3.IListTestCasesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListTestCasesResponse} ListTestCasesResponse instance */ - TestRunDifference.create = function create(properties) { - return new TestRunDifference(properties); + ListTestCasesResponse.create = function create(properties) { + return new ListTestCasesResponse(properties); }; /** - * Encodes the specified TestRunDifference message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestRunDifference.verify|verify} messages. + * Encodes the specified ListTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCasesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ITestRunDifference} message TestRunDifference message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListTestCasesResponse} message ListTestCasesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestRunDifference.encode = function encode(message, writer) { + ListTestCasesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + if (message.testCases != null && message.testCases.length) + for (var i = 0; i < message.testCases.length; ++i) + $root.google.cloud.dialogflow.cx.v3.TestCase.encode(message.testCases[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified TestRunDifference message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestRunDifference.verify|verify} messages. + * Encodes the specified ListTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCasesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ITestRunDifference} message TestRunDifference message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListTestCasesResponse} message ListTestCasesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestRunDifference.encodeDelimited = function encodeDelimited(message, writer) { + ListTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestRunDifference message from the specified reader or buffer. + * Decodes a ListTestCasesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.TestRunDifference} TestRunDifference + * @returns {google.cloud.dialogflow.cx.v3.ListTestCasesResponse} ListTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestRunDifference.decode = function decode(reader, length) { + ListTestCasesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TestRunDifference(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListTestCasesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.type = reader.int32(); + if (!(message.testCases && message.testCases.length)) + message.testCases = []; + message.testCases.push($root.google.cloud.dialogflow.cx.v3.TestCase.decode(reader, reader.uint32())); break; case 2: - message.description = reader.string(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -31943,166 +32858,135 @@ }; /** - * Decodes a TestRunDifference message from the specified reader or buffer, length delimited. + * Decodes a ListTestCasesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.TestRunDifference} TestRunDifference + * @returns {google.cloud.dialogflow.cx.v3.ListTestCasesResponse} ListTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestRunDifference.decodeDelimited = function decodeDelimited(reader) { + ListTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestRunDifference message. + * Verifies a ListTestCasesResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestRunDifference.verify = function verify(message) { + ListTestCasesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + if (message.testCases != null && message.hasOwnProperty("testCases")) { + if (!Array.isArray(message.testCases)) + return "testCases: array expected"; + for (var i = 0; i < message.testCases.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.TestCase.verify(message.testCases[i]); + if (error) + return "testCases." + error; } - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a TestRunDifference message from a plain object. Also converts values to their respective internal types. + * Creates a ListTestCasesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.TestRunDifference} TestRunDifference + * @returns {google.cloud.dialogflow.cx.v3.ListTestCasesResponse} ListTestCasesResponse */ - TestRunDifference.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.TestRunDifference) + ListTestCasesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListTestCasesResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.TestRunDifference(); - switch (object.type) { - case "DIFF_TYPE_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "INTENT": - case 1: - message.type = 1; - break; - case "PAGE": - case 2: - message.type = 2; - break; - case "PARAMETERS": - case 3: - message.type = 3; - break; - case "UTTERANCE": - case 4: - message.type = 4; - break; + var message = new $root.google.cloud.dialogflow.cx.v3.ListTestCasesResponse(); + if (object.testCases) { + if (!Array.isArray(object.testCases)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ListTestCasesResponse.testCases: array expected"); + message.testCases = []; + for (var i = 0; i < object.testCases.length; ++i) { + if (typeof object.testCases[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ListTestCasesResponse.testCases: object expected"); + message.testCases[i] = $root.google.cloud.dialogflow.cx.v3.TestCase.fromObject(object.testCases[i]); + } } - if (object.description != null) - message.description = String(object.description); - return message; + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; }; /** - * Creates a plain object from a TestRunDifference message. Also converts values to other types if specified. + * Creates a plain object from a ListTestCasesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.TestRunDifference} message TestRunDifference + * @param {google.cloud.dialogflow.cx.v3.ListTestCasesResponse} message ListTestCasesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestRunDifference.toObject = function toObject(message, options) { + ListTestCasesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.type = options.enums === String ? "DIFF_TYPE_UNSPECIFIED" : 0; - object.description = ""; + if (options.arrays || options.defaults) + object.testCases = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.testCases && message.testCases.length) { + object.testCases = []; + for (var j = 0; j < message.testCases.length; ++j) + object.testCases[j] = $root.google.cloud.dialogflow.cx.v3.TestCase.toObject(message.testCases[j], options); } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType[message.type] : message.type; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this TestRunDifference to JSON. + * Converts this ListTestCasesResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse * @instance * @returns {Object.} JSON object */ - TestRunDifference.prototype.toJSON = function toJSON() { + ListTestCasesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * DiffType enum. - * @name google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType - * @enum {number} - * @property {number} DIFF_TYPE_UNSPECIFIED=0 DIFF_TYPE_UNSPECIFIED value - * @property {number} INTENT=1 INTENT value - * @property {number} PAGE=2 PAGE value - * @property {number} PARAMETERS=3 PARAMETERS value - * @property {number} UTTERANCE=4 UTTERANCE value - */ - TestRunDifference.DiffType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DIFF_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "INTENT"] = 1; - values[valuesById[2] = "PAGE"] = 2; - values[valuesById[3] = "PARAMETERS"] = 3; - values[valuesById[4] = "UTTERANCE"] = 4; - return values; - })(); - - return TestRunDifference; + return ListTestCasesResponse; })(); - v3.TransitionCoverage = (function() { + v3.BatchDeleteTestCasesRequest = (function() { /** - * Properties of a TransitionCoverage. + * Properties of a BatchDeleteTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ITransitionCoverage - * @property {Array.|null} [transitions] TransitionCoverage transitions - * @property {number|null} [coverageScore] TransitionCoverage coverageScore + * @interface IBatchDeleteTestCasesRequest + * @property {string|null} [parent] BatchDeleteTestCasesRequest parent + * @property {Array.|null} [names] BatchDeleteTestCasesRequest names */ /** - * Constructs a new TransitionCoverage. + * Constructs a new BatchDeleteTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a TransitionCoverage. - * @implements ITransitionCoverage + * @classdesc Represents a BatchDeleteTestCasesRequest. + * @implements IBatchDeleteTestCasesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.ITransitionCoverage=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest=} [properties] Properties to set */ - function TransitionCoverage(properties) { - this.transitions = []; + function BatchDeleteTestCasesRequest(properties) { + this.names = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -32110,91 +32994,91 @@ } /** - * TransitionCoverage transitions. - * @member {Array.} transitions - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * BatchDeleteTestCasesRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest * @instance */ - TransitionCoverage.prototype.transitions = $util.emptyArray; + BatchDeleteTestCasesRequest.prototype.parent = ""; /** - * TransitionCoverage coverageScore. - * @member {number} coverageScore - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * BatchDeleteTestCasesRequest names. + * @member {Array.} names + * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest * @instance */ - TransitionCoverage.prototype.coverageScore = 0; + BatchDeleteTestCasesRequest.prototype.names = $util.emptyArray; /** - * Creates a new TransitionCoverage instance using the specified properties. + * Creates a new BatchDeleteTestCasesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ITransitionCoverage=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage} TransitionCoverage instance + * @param {google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest instance */ - TransitionCoverage.create = function create(properties) { - return new TransitionCoverage(properties); + BatchDeleteTestCasesRequest.create = function create(properties) { + return new BatchDeleteTestCasesRequest(properties); }; /** - * Encodes the specified TransitionCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.verify|verify} messages. + * Encodes the specified BatchDeleteTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ITransitionCoverage} message TransitionCoverage message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest} message BatchDeleteTestCasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransitionCoverage.encode = function encode(message, writer) { + BatchDeleteTestCasesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.transitions != null && message.transitions.length) - for (var i = 0; i < message.transitions.length; ++i) - $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.encode(message.transitions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.coverageScore != null && Object.hasOwnProperty.call(message, "coverageScore")) - writer.uint32(/* id 2, wireType 5 =*/21).float(message.coverageScore); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.names != null && message.names.length) + for (var i = 0; i < message.names.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.names[i]); return writer; }; /** - * Encodes the specified TransitionCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.verify|verify} messages. + * Encodes the specified BatchDeleteTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ITransitionCoverage} message TransitionCoverage message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest} message BatchDeleteTestCasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransitionCoverage.encodeDelimited = function encodeDelimited(message, writer) { + BatchDeleteTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TransitionCoverage message from the specified reader or buffer. + * Decodes a BatchDeleteTestCasesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage} TransitionCoverage + * @returns {google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TransitionCoverage.decode = function decode(reader, length) { + BatchDeleteTestCasesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TransitionCoverage(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.transitions && message.transitions.length)) - message.transitions = []; - message.transitions.push($root.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.decode(reader, reader.uint32())); + message.parent = reader.string(); break; - case 2: - message.coverageScore = reader.float(); + case 3: + if (!(message.names && message.names.length)) + message.names = []; + message.names.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -32205,725 +33089,563 @@ }; /** - * Decodes a TransitionCoverage message from the specified reader or buffer, length delimited. + * Decodes a BatchDeleteTestCasesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage} TransitionCoverage + * @returns {google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TransitionCoverage.decodeDelimited = function decodeDelimited(reader) { + BatchDeleteTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TransitionCoverage message. + * Verifies a BatchDeleteTestCasesRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TransitionCoverage.verify = function verify(message) { + BatchDeleteTestCasesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.transitions != null && message.hasOwnProperty("transitions")) { - if (!Array.isArray(message.transitions)) - return "transitions: array expected"; - for (var i = 0; i < message.transitions.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.verify(message.transitions[i]); - if (error) - return "transitions." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.names != null && message.hasOwnProperty("names")) { + if (!Array.isArray(message.names)) + return "names: array expected"; + for (var i = 0; i < message.names.length; ++i) + if (!$util.isString(message.names[i])) + return "names: string[] expected"; } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - if (typeof message.coverageScore !== "number") - return "coverageScore: number expected"; return null; }; /** - * Creates a TransitionCoverage message from a plain object. Also converts values to their respective internal types. + * Creates a BatchDeleteTestCasesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage} TransitionCoverage + * @returns {google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest */ - TransitionCoverage.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.TransitionCoverage) + BatchDeleteTestCasesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.TransitionCoverage(); - if (object.transitions) { - if (!Array.isArray(object.transitions)) - throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionCoverage.transitions: array expected"); - message.transitions = []; - for (var i = 0; i < object.transitions.length; ++i) { - if (typeof object.transitions[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionCoverage.transitions: object expected"); - message.transitions[i] = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.fromObject(object.transitions[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.names) { + if (!Array.isArray(object.names)) + throw TypeError(".google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest.names: array expected"); + message.names = []; + for (var i = 0; i < object.names.length; ++i) + message.names[i] = String(object.names[i]); } - if (object.coverageScore != null) - message.coverageScore = Number(object.coverageScore); return message; }; /** - * Creates a plain object from a TransitionCoverage message. Also converts values to other types if specified. + * Creates a plain object from a BatchDeleteTestCasesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage} message TransitionCoverage + * @param {google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest} message BatchDeleteTestCasesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TransitionCoverage.toObject = function toObject(message, options) { + BatchDeleteTestCasesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.transitions = []; + object.names = []; if (options.defaults) - object.coverageScore = 0; - if (message.transitions && message.transitions.length) { - object.transitions = []; - for (var j = 0; j < message.transitions.length; ++j) - object.transitions[j] = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.toObject(message.transitions[j], options); + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.names && message.names.length) { + object.names = []; + for (var j = 0; j < message.names.length; ++j) + object.names[j] = message.names[j]; } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; return object; }; /** - * Converts this TransitionCoverage to JSON. + * Converts this BatchDeleteTestCasesRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage + * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest * @instance * @returns {Object.} JSON object */ - TransitionCoverage.prototype.toJSON = function toJSON() { + BatchDeleteTestCasesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - TransitionCoverage.TransitionNode = (function() { - - /** - * Properties of a TransitionNode. - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage - * @interface ITransitionNode - * @property {google.cloud.dialogflow.cx.v3.IPage|null} [page] TransitionNode page - * @property {google.cloud.dialogflow.cx.v3.IFlow|null} [flow] TransitionNode flow - */ + return BatchDeleteTestCasesRequest; + })(); - /** - * Constructs a new TransitionNode. - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage - * @classdesc Represents a TransitionNode. - * @implements ITransitionNode - * @constructor - * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode=} [properties] Properties to set - */ - function TransitionNode(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v3.CreateTestCaseRequest = (function() { - /** - * TransitionNode page. - * @member {google.cloud.dialogflow.cx.v3.IPage|null|undefined} page - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode - * @instance - */ - TransitionNode.prototype.page = null; + /** + * Properties of a CreateTestCaseRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface ICreateTestCaseRequest + * @property {string|null} [parent] CreateTestCaseRequest parent + * @property {google.cloud.dialogflow.cx.v3.ITestCase|null} [testCase] CreateTestCaseRequest testCase + */ - /** - * TransitionNode flow. - * @member {google.cloud.dialogflow.cx.v3.IFlow|null|undefined} flow - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode - * @instance - */ - TransitionNode.prototype.flow = null; + /** + * Constructs a new CreateTestCaseRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a CreateTestCaseRequest. + * @implements ICreateTestCaseRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest=} [properties] Properties to set + */ + function CreateTestCaseRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * CreateTestCaseRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest + * @instance + */ + CreateTestCaseRequest.prototype.parent = ""; - /** - * TransitionNode kind. - * @member {"page"|"flow"|undefined} kind - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode - * @instance - */ - Object.defineProperty(TransitionNode.prototype, "kind", { - get: $util.oneOfGetter($oneOfFields = ["page", "flow"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * CreateTestCaseRequest testCase. + * @member {google.cloud.dialogflow.cx.v3.ITestCase|null|undefined} testCase + * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest + * @instance + */ + CreateTestCaseRequest.prototype.testCase = null; - /** - * Creates a new TransitionNode instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode - * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode} TransitionNode instance - */ - TransitionNode.create = function create(properties) { - return new TransitionNode(properties); - }; + /** + * Creates a new CreateTestCaseRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateTestCaseRequest} CreateTestCaseRequest instance + */ + CreateTestCaseRequest.create = function create(properties) { + return new CreateTestCaseRequest(properties); + }; - /** - * Encodes the specified TransitionNode message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode - * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode} message TransitionNode message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TransitionNode.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.page != null && Object.hasOwnProperty.call(message, "page")) - $root.google.cloud.dialogflow.cx.v3.Page.encode(message.page, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.flow != null && Object.hasOwnProperty.call(message, "flow")) - $root.google.cloud.dialogflow.cx.v3.Flow.encode(message.flow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified CreateTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTestCaseRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest} message CreateTestCaseRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateTestCaseRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.testCase != null && Object.hasOwnProperty.call(message, "testCase")) + $root.google.cloud.dialogflow.cx.v3.TestCase.encode(message.testCase, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified TransitionNode message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode - * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode} message TransitionNode message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TransitionNode.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified CreateTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTestCaseRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest} message CreateTestCaseRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a TransitionNode message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode} TransitionNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TransitionNode.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.page = $root.google.cloud.dialogflow.cx.v3.Page.decode(reader, reader.uint32()); - break; - case 2: - message.flow = $root.google.cloud.dialogflow.cx.v3.Flow.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } + /** + * Decodes a CreateTestCaseRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.CreateTestCaseRequest} CreateTestCaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateTestCaseRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateTestCaseRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Decodes a TransitionNode message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode} TransitionNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TransitionNode.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a CreateTestCaseRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.CreateTestCaseRequest} CreateTestCaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a TransitionNode message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TransitionNode.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.page != null && message.hasOwnProperty("page")) { - properties.kind = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.Page.verify(message.page); - if (error) - return "page." + error; - } - } - if (message.flow != null && message.hasOwnProperty("flow")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.Flow.verify(message.flow); - if (error) - return "flow." + error; - } - } - return null; - }; - - /** - * Creates a TransitionNode message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode} TransitionNode - */ - TransitionNode.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode(); - if (object.page != null) { - if (typeof object.page !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.page: object expected"); - message.page = $root.google.cloud.dialogflow.cx.v3.Page.fromObject(object.page); - } - if (object.flow != null) { - if (typeof object.flow !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.flow: object expected"); - message.flow = $root.google.cloud.dialogflow.cx.v3.Flow.fromObject(object.flow); - } - return message; - }; + /** + * Verifies a CreateTestCaseRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateTestCaseRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.testCase != null && message.hasOwnProperty("testCase")) { + var error = $root.google.cloud.dialogflow.cx.v3.TestCase.verify(message.testCase); + if (error) + return "testCase." + error; + } + return null; + }; - /** - * Creates a plain object from a TransitionNode message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode - * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode} message TransitionNode - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TransitionNode.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.page != null && message.hasOwnProperty("page")) { - object.page = $root.google.cloud.dialogflow.cx.v3.Page.toObject(message.page, options); - if (options.oneofs) - object.kind = "page"; - } - if (message.flow != null && message.hasOwnProperty("flow")) { - object.flow = $root.google.cloud.dialogflow.cx.v3.Flow.toObject(message.flow, options); - if (options.oneofs) - object.kind = "flow"; - } + /** + * Creates a CreateTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.CreateTestCaseRequest} CreateTestCaseRequest + */ + CreateTestCaseRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateTestCaseRequest) return object; - }; + var message = new $root.google.cloud.dialogflow.cx.v3.CreateTestCaseRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.testCase != null) { + if (typeof object.testCase !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CreateTestCaseRequest.testCase: object expected"); + message.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.fromObject(object.testCase); + } + return message; + }; - /** - * Converts this TransitionNode to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode - * @instance - * @returns {Object.} JSON object - */ - TransitionNode.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a CreateTestCaseRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.CreateTestCaseRequest} message CreateTestCaseRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateTestCaseRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.testCase = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.testCase != null && message.hasOwnProperty("testCase")) + object.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.toObject(message.testCase, options); + return object; + }; - return TransitionNode; - })(); + /** + * Converts this CreateTestCaseRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest + * @instance + * @returns {Object.} JSON object + */ + CreateTestCaseRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - TransitionCoverage.Transition = (function() { + return CreateTestCaseRequest; + })(); - /** - * Properties of a Transition. - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage - * @interface ITransition - * @property {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode|null} [source] Transition source - * @property {number|null} [index] Transition index - * @property {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode|null} [target] Transition target - * @property {boolean|null} [covered] Transition covered - * @property {google.cloud.dialogflow.cx.v3.ITransitionRoute|null} [transitionRoute] Transition transitionRoute - * @property {google.cloud.dialogflow.cx.v3.IEventHandler|null} [eventHandler] Transition eventHandler - */ + v3.UpdateTestCaseRequest = (function() { - /** - * Constructs a new Transition. - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage - * @classdesc Represents a Transition. - * @implements ITransition - * @constructor - * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition=} [properties] Properties to set - */ - function Transition(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of an UpdateTestCaseRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IUpdateTestCaseRequest + * @property {google.cloud.dialogflow.cx.v3.ITestCase|null} [testCase] UpdateTestCaseRequest testCase + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateTestCaseRequest updateMask + */ - /** - * Transition source. - * @member {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode|null|undefined} source - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition - * @instance - */ - Transition.prototype.source = null; + /** + * Constructs a new UpdateTestCaseRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents an UpdateTestCaseRequest. + * @implements IUpdateTestCaseRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest=} [properties] Properties to set + */ + function UpdateTestCaseRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Transition index. - * @member {number} index - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition - * @instance - */ - Transition.prototype.index = 0; + /** + * UpdateTestCaseRequest testCase. + * @member {google.cloud.dialogflow.cx.v3.ITestCase|null|undefined} testCase + * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest + * @instance + */ + UpdateTestCaseRequest.prototype.testCase = null; - /** - * Transition target. - * @member {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransitionNode|null|undefined} target - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition - * @instance - */ - Transition.prototype.target = null; + /** + * UpdateTestCaseRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest + * @instance + */ + UpdateTestCaseRequest.prototype.updateMask = null; - /** - * Transition covered. - * @member {boolean} covered - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition - * @instance - */ - Transition.prototype.covered = false; + /** + * Creates a new UpdateTestCaseRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest} UpdateTestCaseRequest instance + */ + UpdateTestCaseRequest.create = function create(properties) { + return new UpdateTestCaseRequest(properties); + }; - /** - * Transition transitionRoute. - * @member {google.cloud.dialogflow.cx.v3.ITransitionRoute|null|undefined} transitionRoute - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition - * @instance - */ - Transition.prototype.transitionRoute = null; + /** + * Encodes the specified UpdateTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest} message UpdateTestCaseRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateTestCaseRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.testCase != null && Object.hasOwnProperty.call(message, "testCase")) + $root.google.cloud.dialogflow.cx.v3.TestCase.encode(message.testCase, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Transition eventHandler. - * @member {google.cloud.dialogflow.cx.v3.IEventHandler|null|undefined} eventHandler - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition - * @instance - */ - Transition.prototype.eventHandler = null; + /** + * Encodes the specified UpdateTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest} message UpdateTestCaseRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Decodes an UpdateTestCaseRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest} UpdateTestCaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateTestCaseRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.decode(reader, reader.uint32()); + break; + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Transition detail. - * @member {"transitionRoute"|"eventHandler"|undefined} detail - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition - * @instance - */ - Object.defineProperty(Transition.prototype, "detail", { - get: $util.oneOfGetter($oneOfFields = ["transitionRoute", "eventHandler"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Decodes an UpdateTestCaseRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest} UpdateTestCaseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a new Transition instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition - * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition} Transition instance - */ - Transition.create = function create(properties) { - return new Transition(properties); - }; + /** + * Verifies an UpdateTestCaseRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateTestCaseRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.testCase != null && message.hasOwnProperty("testCase")) { + var error = $root.google.cloud.dialogflow.cx.v3.TestCase.verify(message.testCase); + if (error) + return "testCase." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + return null; + }; - /** - * Encodes the specified Transition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition - * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition} message Transition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Transition.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.source != null && Object.hasOwnProperty.call(message, "source")) - $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.encode(message.source, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.encode(message.target, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.covered != null && Object.hasOwnProperty.call(message, "covered")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.covered); - if (message.index != null && Object.hasOwnProperty.call(message, "index")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.index); - if (message.transitionRoute != null && Object.hasOwnProperty.call(message, "transitionRoute")) - $root.google.cloud.dialogflow.cx.v3.TransitionRoute.encode(message.transitionRoute, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.eventHandler != null && Object.hasOwnProperty.call(message, "eventHandler")) - $root.google.cloud.dialogflow.cx.v3.EventHandler.encode(message.eventHandler, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - return writer; - }; + /** + * Creates an UpdateTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest} UpdateTestCaseRequest + */ + UpdateTestCaseRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest(); + if (object.testCase != null) { + if (typeof object.testCase !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest.testCase: object expected"); + message.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.fromObject(object.testCase); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; - /** - * Encodes the specified Transition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition - * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.ITransition} message Transition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Transition.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a plain object from an UpdateTestCaseRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest} message UpdateTestCaseRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateTestCaseRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.testCase = null; + object.updateMask = null; + } + if (message.testCase != null && message.hasOwnProperty("testCase")) + object.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.toObject(message.testCase, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; - /** - * Decodes a Transition message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition} Transition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Transition.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.source = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.decode(reader, reader.uint32()); - break; - case 4: - message.index = reader.int32(); - break; - case 2: - message.target = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.decode(reader, reader.uint32()); - break; - case 3: - message.covered = reader.bool(); - break; - case 5: - message.transitionRoute = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.decode(reader, reader.uint32()); - break; - case 6: - message.eventHandler = $root.google.cloud.dialogflow.cx.v3.EventHandler.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Transition message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition} Transition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Transition.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Transition message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Transition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.source != null && message.hasOwnProperty("source")) { - var error = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.verify(message.source); - if (error) - return "source." + error; - } - if (message.index != null && message.hasOwnProperty("index")) - if (!$util.isInteger(message.index)) - return "index: integer expected"; - if (message.target != null && message.hasOwnProperty("target")) { - var error = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.verify(message.target); - if (error) - return "target." + error; - } - if (message.covered != null && message.hasOwnProperty("covered")) - if (typeof message.covered !== "boolean") - return "covered: boolean expected"; - if (message.transitionRoute != null && message.hasOwnProperty("transitionRoute")) { - properties.detail = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.verify(message.transitionRoute); - if (error) - return "transitionRoute." + error; - } - } - if (message.eventHandler != null && message.hasOwnProperty("eventHandler")) { - if (properties.detail === 1) - return "detail: multiple values"; - properties.detail = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.EventHandler.verify(message.eventHandler); - if (error) - return "eventHandler." + error; - } - } - return null; - }; - - /** - * Creates a Transition message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition} Transition - */ - Transition.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition(); - if (object.source != null) { - if (typeof object.source !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.source: object expected"); - message.source = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.fromObject(object.source); - } - if (object.index != null) - message.index = object.index | 0; - if (object.target != null) { - if (typeof object.target !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.target: object expected"); - message.target = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.fromObject(object.target); - } - if (object.covered != null) - message.covered = Boolean(object.covered); - if (object.transitionRoute != null) { - if (typeof object.transitionRoute !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.transitionRoute: object expected"); - message.transitionRoute = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.fromObject(object.transitionRoute); - } - if (object.eventHandler != null) { - if (typeof object.eventHandler !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition.eventHandler: object expected"); - message.eventHandler = $root.google.cloud.dialogflow.cx.v3.EventHandler.fromObject(object.eventHandler); - } - return message; - }; - - /** - * Creates a plain object from a Transition message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition - * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition} message Transition - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Transition.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.source = null; - object.target = null; - object.covered = false; - object.index = 0; - } - if (message.source != null && message.hasOwnProperty("source")) - object.source = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.toObject(message.source, options); - if (message.target != null && message.hasOwnProperty("target")) - object.target = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.toObject(message.target, options); - if (message.covered != null && message.hasOwnProperty("covered")) - object.covered = message.covered; - if (message.index != null && message.hasOwnProperty("index")) - object.index = message.index; - if (message.transitionRoute != null && message.hasOwnProperty("transitionRoute")) { - object.transitionRoute = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.toObject(message.transitionRoute, options); - if (options.oneofs) - object.detail = "transitionRoute"; - } - if (message.eventHandler != null && message.hasOwnProperty("eventHandler")) { - object.eventHandler = $root.google.cloud.dialogflow.cx.v3.EventHandler.toObject(message.eventHandler, options); - if (options.oneofs) - object.detail = "eventHandler"; - } - return object; - }; - - /** - * Converts this Transition to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition - * @instance - * @returns {Object.} JSON object - */ - Transition.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Transition; - })(); + /** + * Converts this UpdateTestCaseRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateTestCaseRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return TransitionCoverage; + return UpdateTestCaseRequest; })(); - v3.TransitionRouteGroupCoverage = (function() { + v3.GetTestCaseRequest = (function() { /** - * Properties of a TransitionRouteGroupCoverage. + * Properties of a GetTestCaseRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ITransitionRouteGroupCoverage - * @property {Array.|null} [coverages] TransitionRouteGroupCoverage coverages - * @property {number|null} [coverageScore] TransitionRouteGroupCoverage coverageScore + * @interface IGetTestCaseRequest + * @property {string|null} [name] GetTestCaseRequest name */ /** - * Constructs a new TransitionRouteGroupCoverage. + * Constructs a new GetTestCaseRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a TransitionRouteGroupCoverage. - * @implements ITransitionRouteGroupCoverage + * @classdesc Represents a GetTestCaseRequest. + * @implements IGetTestCaseRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseRequest=} [properties] Properties to set */ - function TransitionRouteGroupCoverage(properties) { - this.coverages = []; + function GetTestCaseRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -32931,91 +33653,75 @@ } /** - * TransitionRouteGroupCoverage coverages. - * @member {Array.} coverages - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage - * @instance - */ - TransitionRouteGroupCoverage.prototype.coverages = $util.emptyArray; - - /** - * TransitionRouteGroupCoverage coverageScore. - * @member {number} coverageScore - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage + * GetTestCaseRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest * @instance */ - TransitionRouteGroupCoverage.prototype.coverageScore = 0; + GetTestCaseRequest.prototype.name = ""; /** - * Creates a new TransitionRouteGroupCoverage instance using the specified properties. + * Creates a new GetTestCaseRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage instance + * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetTestCaseRequest} GetTestCaseRequest instance */ - TransitionRouteGroupCoverage.create = function create(properties) { - return new TransitionRouteGroupCoverage(properties); + GetTestCaseRequest.create = function create(properties) { + return new GetTestCaseRequest(properties); }; /** - * Encodes the specified TransitionRouteGroupCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.verify|verify} messages. + * Encodes the specified GetTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTestCaseRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage} message TransitionRouteGroupCoverage message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseRequest} message GetTestCaseRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransitionRouteGroupCoverage.encode = function encode(message, writer) { + GetTestCaseRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.coverages != null && message.coverages.length) - for (var i = 0; i < message.coverages.length; ++i) - $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.encode(message.coverages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.coverageScore != null && Object.hasOwnProperty.call(message, "coverageScore")) - writer.uint32(/* id 2, wireType 5 =*/21).float(message.coverageScore); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified TransitionRouteGroupCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.verify|verify} messages. + * Encodes the specified GetTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTestCaseRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage} message TransitionRouteGroupCoverage message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseRequest} message GetTestCaseRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransitionRouteGroupCoverage.encodeDelimited = function encodeDelimited(message, writer) { + GetTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer. + * Decodes a GetTestCaseRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage + * @returns {google.cloud.dialogflow.cx.v3.GetTestCaseRequest} GetTestCaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TransitionRouteGroupCoverage.decode = function decode(reader, length) { + GetTestCaseRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetTestCaseRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.coverages && message.coverages.length)) - message.coverages = []; - message.coverages.push($root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.decode(reader, reader.uint32())); - break; - case 2: - message.coverageScore = reader.float(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -33026,701 +33732,197 @@ }; /** - * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer, length delimited. + * Decodes a GetTestCaseRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage + * @returns {google.cloud.dialogflow.cx.v3.GetTestCaseRequest} GetTestCaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TransitionRouteGroupCoverage.decodeDelimited = function decodeDelimited(reader) { + GetTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TransitionRouteGroupCoverage message. + * Verifies a GetTestCaseRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TransitionRouteGroupCoverage.verify = function verify(message) { + GetTestCaseRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.coverages != null && message.hasOwnProperty("coverages")) { - if (!Array.isArray(message.coverages)) - return "coverages: array expected"; - for (var i = 0; i < message.coverages.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.verify(message.coverages[i]); - if (error) - return "coverages." + error; - } - } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - if (typeof message.coverageScore !== "number") - return "coverageScore: number expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a TransitionRouteGroupCoverage message from a plain object. Also converts values to their respective internal types. + * Creates a GetTestCaseRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage + * @returns {google.cloud.dialogflow.cx.v3.GetTestCaseRequest} GetTestCaseRequest */ - TransitionRouteGroupCoverage.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage) + GetTestCaseRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetTestCaseRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage(); - if (object.coverages) { - if (!Array.isArray(object.coverages)) - throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.coverages: array expected"); - message.coverages = []; - for (var i = 0; i < object.coverages.length; ++i) { - if (typeof object.coverages[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.coverages: object expected"); - message.coverages[i] = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.fromObject(object.coverages[i]); - } - } - if (object.coverageScore != null) - message.coverageScore = Number(object.coverageScore); + var message = new $root.google.cloud.dialogflow.cx.v3.GetTestCaseRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a TransitionRouteGroupCoverage message. Also converts values to other types if specified. + * Creates a plain object from a GetTestCaseRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage} message TransitionRouteGroupCoverage + * @param {google.cloud.dialogflow.cx.v3.GetTestCaseRequest} message GetTestCaseRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TransitionRouteGroupCoverage.toObject = function toObject(message, options) { + GetTestCaseRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.coverages = []; if (options.defaults) - object.coverageScore = 0; - if (message.coverages && message.coverages.length) { - object.coverages = []; - for (var j = 0; j < message.coverages.length; ++j) - object.coverages[j] = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.toObject(message.coverages[j], options); - } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this TransitionRouteGroupCoverage to JSON. + * Converts this GetTestCaseRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest * @instance * @returns {Object.} JSON object */ - TransitionRouteGroupCoverage.prototype.toJSON = function toJSON() { + GetTestCaseRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - TransitionRouteGroupCoverage.Coverage = (function() { + return GetTestCaseRequest; + })(); - /** - * Properties of a Coverage. - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage - * @interface ICoverage - * @property {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null} [routeGroup] Coverage routeGroup - * @property {Array.|null} [transitions] Coverage transitions - * @property {number|null} [coverageScore] Coverage coverageScore - */ + v3.RunTestCaseRequest = (function() { - /** - * Constructs a new Coverage. - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage - * @classdesc Represents a Coverage. - * @implements ICoverage - * @constructor - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage=} [properties] Properties to set - */ - function Coverage(properties) { - this.transitions = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a RunTestCaseRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IRunTestCaseRequest + * @property {string|null} [name] RunTestCaseRequest name + * @property {string|null} [environment] RunTestCaseRequest environment + */ - /** - * Coverage routeGroup. - * @member {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null|undefined} routeGroup - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage - * @instance - */ - Coverage.prototype.routeGroup = null; + /** + * Constructs a new RunTestCaseRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a RunTestCaseRequest. + * @implements IRunTestCaseRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseRequest=} [properties] Properties to set + */ + function RunTestCaseRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Coverage transitions. - * @member {Array.} transitions - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage - * @instance - */ - Coverage.prototype.transitions = $util.emptyArray; + /** + * RunTestCaseRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest + * @instance + */ + RunTestCaseRequest.prototype.name = ""; - /** - * Coverage coverageScore. - * @member {number} coverageScore - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage - * @instance - */ - Coverage.prototype.coverageScore = 0; + /** + * RunTestCaseRequest environment. + * @member {string} environment + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest + * @instance + */ + RunTestCaseRequest.prototype.environment = ""; - /** - * Creates a new Coverage instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage - * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage} Coverage instance - */ - Coverage.create = function create(properties) { - return new Coverage(properties); - }; + /** + * Creates a new RunTestCaseRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseRequest} RunTestCaseRequest instance + */ + RunTestCaseRequest.create = function create(properties) { + return new RunTestCaseRequest(properties); + }; - /** - * Encodes the specified Coverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage - * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage} message Coverage message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Coverage.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.routeGroup != null && Object.hasOwnProperty.call(message, "routeGroup")) - $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.encode(message.routeGroup, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.transitions != null && message.transitions.length) - for (var i = 0; i < message.transitions.length; ++i) - $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.encode(message.transitions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.coverageScore != null && Object.hasOwnProperty.call(message, "coverageScore")) - writer.uint32(/* id 3, wireType 5 =*/29).float(message.coverageScore); - return writer; - }; - - /** - * Encodes the specified Coverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage - * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.ICoverage} message Coverage message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Coverage.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Coverage message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage} Coverage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Coverage.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.routeGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.decode(reader, reader.uint32()); - break; - case 2: - if (!(message.transitions && message.transitions.length)) - message.transitions = []; - message.transitions.push($root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.decode(reader, reader.uint32())); - break; - case 3: - message.coverageScore = reader.float(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Coverage message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage} Coverage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Coverage.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Coverage message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Coverage.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.routeGroup != null && message.hasOwnProperty("routeGroup")) { - var error = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify(message.routeGroup); - if (error) - return "routeGroup." + error; - } - if (message.transitions != null && message.hasOwnProperty("transitions")) { - if (!Array.isArray(message.transitions)) - return "transitions: array expected"; - for (var i = 0; i < message.transitions.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.verify(message.transitions[i]); - if (error) - return "transitions." + error; - } - } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - if (typeof message.coverageScore !== "number") - return "coverageScore: number expected"; - return null; - }; - - /** - * Creates a Coverage message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage} Coverage - */ - Coverage.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage(); - if (object.routeGroup != null) { - if (typeof object.routeGroup !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.routeGroup: object expected"); - message.routeGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.fromObject(object.routeGroup); - } - if (object.transitions) { - if (!Array.isArray(object.transitions)) - throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.transitions: array expected"); - message.transitions = []; - for (var i = 0; i < object.transitions.length; ++i) { - if (typeof object.transitions[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.transitions: object expected"); - message.transitions[i] = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.fromObject(object.transitions[i]); - } - } - if (object.coverageScore != null) - message.coverageScore = Number(object.coverageScore); - return message; - }; - - /** - * Creates a plain object from a Coverage message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage - * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage} message Coverage - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Coverage.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.transitions = []; - if (options.defaults) { - object.routeGroup = null; - object.coverageScore = 0; - } - if (message.routeGroup != null && message.hasOwnProperty("routeGroup")) - object.routeGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.toObject(message.routeGroup, options); - if (message.transitions && message.transitions.length) { - object.transitions = []; - for (var j = 0; j < message.transitions.length; ++j) - object.transitions[j] = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.toObject(message.transitions[j], options); - } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; - return object; - }; - - /** - * Converts this Coverage to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage - * @instance - * @returns {Object.} JSON object - */ - Coverage.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - Coverage.Transition = (function() { - - /** - * Properties of a Transition. - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage - * @interface ITransition - * @property {google.cloud.dialogflow.cx.v3.ITransitionRoute|null} [transitionRoute] Transition transitionRoute - * @property {boolean|null} [covered] Transition covered - */ - - /** - * Constructs a new Transition. - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage - * @classdesc Represents a Transition. - * @implements ITransition - * @constructor - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition=} [properties] Properties to set - */ - function Transition(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Transition transitionRoute. - * @member {google.cloud.dialogflow.cx.v3.ITransitionRoute|null|undefined} transitionRoute - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition - * @instance - */ - Transition.prototype.transitionRoute = null; - - /** - * Transition covered. - * @member {boolean} covered - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition - * @instance - */ - Transition.prototype.covered = false; - - /** - * Creates a new Transition instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition - * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition} Transition instance - */ - Transition.create = function create(properties) { - return new Transition(properties); - }; - - /** - * Encodes the specified Transition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition - * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition} message Transition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Transition.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.transitionRoute != null && Object.hasOwnProperty.call(message, "transitionRoute")) - $root.google.cloud.dialogflow.cx.v3.TransitionRoute.encode(message.transitionRoute, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.covered != null && Object.hasOwnProperty.call(message, "covered")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.covered); - return writer; - }; - - /** - * Encodes the specified Transition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition - * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.ITransition} message Transition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Transition.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Transition message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition} Transition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Transition.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.transitionRoute = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.decode(reader, reader.uint32()); - break; - case 2: - message.covered = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Transition message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition} Transition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Transition.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Transition message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Transition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.transitionRoute != null && message.hasOwnProperty("transitionRoute")) { - var error = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.verify(message.transitionRoute); - if (error) - return "transitionRoute." + error; - } - if (message.covered != null && message.hasOwnProperty("covered")) - if (typeof message.covered !== "boolean") - return "covered: boolean expected"; - return null; - }; - - /** - * Creates a Transition message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition} Transition - */ - Transition.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition(); - if (object.transitionRoute != null) { - if (typeof object.transitionRoute !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition.transitionRoute: object expected"); - message.transitionRoute = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.fromObject(object.transitionRoute); - } - if (object.covered != null) - message.covered = Boolean(object.covered); - return message; - }; - - /** - * Creates a plain object from a Transition message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition - * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition} message Transition - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Transition.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.transitionRoute = null; - object.covered = false; - } - if (message.transitionRoute != null && message.hasOwnProperty("transitionRoute")) - object.transitionRoute = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.toObject(message.transitionRoute, options); - if (message.covered != null && message.hasOwnProperty("covered")) - object.covered = message.covered; - return object; - }; - - /** - * Converts this Transition to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition - * @instance - * @returns {Object.} JSON object - */ - Transition.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Transition; - })(); - - return Coverage; - })(); - - return TransitionRouteGroupCoverage; - })(); - - v3.IntentCoverage = (function() { - - /** - * Properties of an IntentCoverage. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IIntentCoverage - * @property {Array.|null} [intents] IntentCoverage intents - * @property {number|null} [coverageScore] IntentCoverage coverageScore - */ - - /** - * Constructs a new IntentCoverage. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an IntentCoverage. - * @implements IIntentCoverage - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IIntentCoverage=} [properties] Properties to set - */ - function IntentCoverage(properties) { - this.intents = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * IntentCoverage intents. - * @member {Array.} intents - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage - * @instance - */ - IntentCoverage.prototype.intents = $util.emptyArray; - - /** - * IntentCoverage coverageScore. - * @member {number} coverageScore - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage - * @instance - */ - IntentCoverage.prototype.coverageScore = 0; - - /** - * Creates a new IntentCoverage instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage - * @static - * @param {google.cloud.dialogflow.cx.v3.IIntentCoverage=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.IntentCoverage} IntentCoverage instance - */ - IntentCoverage.create = function create(properties) { - return new IntentCoverage(properties); - }; - - /** - * Encodes the specified IntentCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentCoverage.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage - * @static - * @param {google.cloud.dialogflow.cx.v3.IIntentCoverage} message IntentCoverage message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IntentCoverage.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.intents != null && message.intents.length) - for (var i = 0; i < message.intents.length; ++i) - $root.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.encode(message.intents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.coverageScore != null && Object.hasOwnProperty.call(message, "coverageScore")) - writer.uint32(/* id 2, wireType 5 =*/21).float(message.coverageScore); - return writer; - }; + /** + * Encodes the specified RunTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseRequest} message RunTestCaseRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RunTestCaseRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.environment); + return writer; + }; /** - * Encodes the specified IntentCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentCoverage.verify|verify} messages. + * Encodes the specified RunTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IIntentCoverage} message IntentCoverage message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseRequest} message RunTestCaseRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IntentCoverage.encodeDelimited = function encodeDelimited(message, writer) { + RunTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IntentCoverage message from the specified reader or buffer. + * Decodes a RunTestCaseRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.IntentCoverage} IntentCoverage + * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseRequest} RunTestCaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IntentCoverage.decode = function decode(reader, length) { + RunTestCaseRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.IntentCoverage(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.RunTestCaseRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.intents && message.intents.length)) - message.intents = []; - message.intents.push($root.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.decode(reader, reader.uint32())); + message.name = reader.string(); break; case 2: - message.coverageScore = reader.float(); + message.environment = reader.string(); break; default: reader.skipType(tag & 7); @@ -33731,344 +33933,116 @@ }; /** - * Decodes an IntentCoverage message from the specified reader or buffer, length delimited. + * Decodes a RunTestCaseRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.IntentCoverage} IntentCoverage + * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseRequest} RunTestCaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IntentCoverage.decodeDelimited = function decodeDelimited(reader) { + RunTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IntentCoverage message. + * Verifies a RunTestCaseRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IntentCoverage.verify = function verify(message) { + RunTestCaseRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.intents != null && message.hasOwnProperty("intents")) { - if (!Array.isArray(message.intents)) - return "intents: array expected"; - for (var i = 0; i < message.intents.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.verify(message.intents[i]); - if (error) - return "intents." + error; - } - } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - if (typeof message.coverageScore !== "number") - return "coverageScore: number expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.environment != null && message.hasOwnProperty("environment")) + if (!$util.isString(message.environment)) + return "environment: string expected"; return null; }; /** - * Creates an IntentCoverage message from a plain object. Also converts values to their respective internal types. + * Creates a RunTestCaseRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.IntentCoverage} IntentCoverage + * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseRequest} RunTestCaseRequest */ - IntentCoverage.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.IntentCoverage) + RunTestCaseRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.RunTestCaseRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.IntentCoverage(); - if (object.intents) { - if (!Array.isArray(object.intents)) - throw TypeError(".google.cloud.dialogflow.cx.v3.IntentCoverage.intents: array expected"); - message.intents = []; - for (var i = 0; i < object.intents.length; ++i) { - if (typeof object.intents[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.IntentCoverage.intents: object expected"); - message.intents[i] = $root.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.fromObject(object.intents[i]); - } - } - if (object.coverageScore != null) - message.coverageScore = Number(object.coverageScore); + var message = new $root.google.cloud.dialogflow.cx.v3.RunTestCaseRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.environment != null) + message.environment = String(object.environment); return message; }; /** - * Creates a plain object from an IntentCoverage message. Also converts values to other types if specified. + * Creates a plain object from a RunTestCaseRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IntentCoverage} message IntentCoverage + * @param {google.cloud.dialogflow.cx.v3.RunTestCaseRequest} message RunTestCaseRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IntentCoverage.toObject = function toObject(message, options) { + RunTestCaseRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.intents = []; - if (options.defaults) - object.coverageScore = 0; - if (message.intents && message.intents.length) { - object.intents = []; - for (var j = 0; j < message.intents.length; ++j) - object.intents[j] = $root.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.toObject(message.intents[j], options); + if (options.defaults) { + object.name = ""; + object.environment = ""; } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = message.environment; return object; }; /** - * Converts this IntentCoverage to JSON. + * Converts this RunTestCaseRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest * @instance * @returns {Object.} JSON object */ - IntentCoverage.prototype.toJSON = function toJSON() { + RunTestCaseRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - IntentCoverage.Intent = (function() { - - /** - * Properties of an Intent. - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage - * @interface IIntent - * @property {string|null} [intent] Intent intent - * @property {boolean|null} [covered] Intent covered - */ - - /** - * Constructs a new Intent. - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage - * @classdesc Represents an Intent. - * @implements IIntent - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent=} [properties] Properties to set - */ - function Intent(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Intent intent. - * @member {string} intent - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent - * @instance - */ - Intent.prototype.intent = ""; - - /** - * Intent covered. - * @member {boolean} covered - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent - * @instance - */ - Intent.prototype.covered = false; - - /** - * Creates a new Intent instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent - * @static - * @param {google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.IntentCoverage.Intent} Intent instance - */ - Intent.create = function create(properties) { - return new Intent(properties); - }; - - /** - * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent - * @static - * @param {google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent} message Intent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Intent.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.intent); - if (message.covered != null && Object.hasOwnProperty.call(message, "covered")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.covered); - return writer; - }; - - /** - * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentCoverage.Intent.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent - * @static - * @param {google.cloud.dialogflow.cx.v3.IntentCoverage.IIntent} message Intent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Intent.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an Intent message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.IntentCoverage.Intent} Intent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Intent.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.intent = reader.string(); - break; - case 2: - message.covered = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an Intent message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.IntentCoverage.Intent} Intent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Intent.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an Intent message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Intent.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.intent != null && message.hasOwnProperty("intent")) - if (!$util.isString(message.intent)) - return "intent: string expected"; - if (message.covered != null && message.hasOwnProperty("covered")) - if (typeof message.covered !== "boolean") - return "covered: boolean expected"; - return null; - }; - - /** - * Creates an Intent message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.IntentCoverage.Intent} Intent - */ - Intent.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent(); - if (object.intent != null) - message.intent = String(object.intent); - if (object.covered != null) - message.covered = Boolean(object.covered); - return message; - }; - - /** - * Creates a plain object from an Intent message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent - * @static - * @param {google.cloud.dialogflow.cx.v3.IntentCoverage.Intent} message Intent - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Intent.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.intent = ""; - object.covered = false; - } - if (message.intent != null && message.hasOwnProperty("intent")) - object.intent = message.intent; - if (message.covered != null && message.hasOwnProperty("covered")) - object.covered = message.covered; - return object; - }; - - /** - * Converts this Intent to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.IntentCoverage.Intent - * @instance - * @returns {Object.} JSON object - */ - Intent.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Intent; - })(); - - return IntentCoverage; + return RunTestCaseRequest; })(); - v3.CalculateCoverageRequest = (function() { + v3.RunTestCaseResponse = (function() { /** - * Properties of a CalculateCoverageRequest. + * Properties of a RunTestCaseResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ICalculateCoverageRequest - * @property {string|null} [agent] CalculateCoverageRequest agent - * @property {google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType|null} [type] CalculateCoverageRequest type + * @interface IRunTestCaseResponse + * @property {google.cloud.dialogflow.cx.v3.ITestCaseResult|null} [result] RunTestCaseResponse result */ /** - * Constructs a new CalculateCoverageRequest. + * Constructs a new RunTestCaseResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CalculateCoverageRequest. - * @implements ICalculateCoverageRequest + * @classdesc Represents a RunTestCaseResponse. + * @implements IRunTestCaseResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseResponse=} [properties] Properties to set */ - function CalculateCoverageRequest(properties) { + function RunTestCaseResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34076,88 +34050,75 @@ } /** - * CalculateCoverageRequest agent. - * @member {string} agent - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest - * @instance - */ - CalculateCoverageRequest.prototype.agent = ""; - - /** - * CalculateCoverageRequest type. - * @member {google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType} type - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest + * RunTestCaseResponse result. + * @member {google.cloud.dialogflow.cx.v3.ITestCaseResult|null|undefined} result + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse * @instance */ - CalculateCoverageRequest.prototype.type = 0; + RunTestCaseResponse.prototype.result = null; /** - * Creates a new CalculateCoverageRequest instance using the specified properties. + * Creates a new RunTestCaseResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.CalculateCoverageRequest} CalculateCoverageRequest instance + * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseResponse} RunTestCaseResponse instance */ - CalculateCoverageRequest.create = function create(properties) { - return new CalculateCoverageRequest(properties); + RunTestCaseResponse.create = function create(properties) { + return new RunTestCaseResponse(properties); }; /** - * Encodes the specified CalculateCoverageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.verify|verify} messages. + * Encodes the specified RunTestCaseResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest} message CalculateCoverageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseResponse} message RunTestCaseResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CalculateCoverageRequest.encode = function encode(message, writer) { + RunTestCaseResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); - if (message.agent != null && Object.hasOwnProperty.call(message, "agent")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.agent); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.google.cloud.dialogflow.cx.v3.TestCaseResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CalculateCoverageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.verify|verify} messages. + * Encodes the specified RunTestCaseResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest} message CalculateCoverageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseResponse} message RunTestCaseResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CalculateCoverageRequest.encodeDelimited = function encodeDelimited(message, writer) { + RunTestCaseResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CalculateCoverageRequest message from the specified reader or buffer. + * Decodes a RunTestCaseResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.CalculateCoverageRequest} CalculateCoverageRequest + * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseResponse} RunTestCaseResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CalculateCoverageRequest.decode = function decode(reader, length) { + RunTestCaseResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.RunTestCaseResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 3: - message.agent = reader.string(); - break; case 2: - message.type = reader.int32(); + message.result = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -34168,160 +34129,111 @@ }; /** - * Decodes a CalculateCoverageRequest message from the specified reader or buffer, length delimited. + * Decodes a RunTestCaseResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.CalculateCoverageRequest} CalculateCoverageRequest + * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseResponse} RunTestCaseResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CalculateCoverageRequest.decodeDelimited = function decodeDelimited(reader) { + RunTestCaseResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CalculateCoverageRequest message. + * Verifies a RunTestCaseResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CalculateCoverageRequest.verify = function verify(message) { + RunTestCaseResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.agent != null && message.hasOwnProperty("agent")) - if (!$util.isString(message.agent)) - return "agent: string expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } + if (message.result != null && message.hasOwnProperty("result")) { + var error = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.verify(message.result); + if (error) + return "result." + error; + } return null; }; /** - * Creates a CalculateCoverageRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RunTestCaseResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CalculateCoverageRequest} CalculateCoverageRequest + * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseResponse} RunTestCaseResponse */ - CalculateCoverageRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest) + RunTestCaseResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.RunTestCaseResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest(); - if (object.agent != null) - message.agent = String(object.agent); - switch (object.type) { - case "COVERAGE_TYPE_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "INTENT": - case 1: - message.type = 1; - break; - case "PAGE_TRANSITION": - case 2: - message.type = 2; - break; - case "TRANSITION_ROUTE_GROUP": - case 3: - message.type = 3; - break; + var message = new $root.google.cloud.dialogflow.cx.v3.RunTestCaseResponse(); + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.RunTestCaseResponse.result: object expected"); + message.result = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.fromObject(object.result); } return message; }; /** - * Creates a plain object from a CalculateCoverageRequest message. Also converts values to other types if specified. + * Creates a plain object from a RunTestCaseResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse * @static - * @param {google.cloud.dialogflow.cx.v3.CalculateCoverageRequest} message CalculateCoverageRequest + * @param {google.cloud.dialogflow.cx.v3.RunTestCaseResponse} message RunTestCaseResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CalculateCoverageRequest.toObject = function toObject(message, options) { + RunTestCaseResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.type = options.enums === String ? "COVERAGE_TYPE_UNSPECIFIED" : 0; - object.agent = ""; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType[message.type] : message.type; - if (message.agent != null && message.hasOwnProperty("agent")) - object.agent = message.agent; + if (options.defaults) + object.result = null; + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.toObject(message.result, options); return object; }; /** - * Converts this CalculateCoverageRequest to JSON. + * Converts this RunTestCaseResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse * @instance * @returns {Object.} JSON object */ - CalculateCoverageRequest.prototype.toJSON = function toJSON() { + RunTestCaseResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * CoverageType enum. - * @name google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType - * @enum {number} - * @property {number} COVERAGE_TYPE_UNSPECIFIED=0 COVERAGE_TYPE_UNSPECIFIED value - * @property {number} INTENT=1 INTENT value - * @property {number} PAGE_TRANSITION=2 PAGE_TRANSITION value - * @property {number} TRANSITION_ROUTE_GROUP=3 TRANSITION_ROUTE_GROUP value - */ - CalculateCoverageRequest.CoverageType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "COVERAGE_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "INTENT"] = 1; - values[valuesById[2] = "PAGE_TRANSITION"] = 2; - values[valuesById[3] = "TRANSITION_ROUTE_GROUP"] = 3; - return values; - })(); - - return CalculateCoverageRequest; + return RunTestCaseResponse; })(); - v3.CalculateCoverageResponse = (function() { + v3.RunTestCaseMetadata = (function() { /** - * Properties of a CalculateCoverageResponse. + * Properties of a RunTestCaseMetadata. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ICalculateCoverageResponse - * @property {string|null} [agent] CalculateCoverageResponse agent - * @property {google.cloud.dialogflow.cx.v3.IIntentCoverage|null} [intentCoverage] CalculateCoverageResponse intentCoverage - * @property {google.cloud.dialogflow.cx.v3.ITransitionCoverage|null} [transitionCoverage] CalculateCoverageResponse transitionCoverage - * @property {google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage|null} [routeGroupCoverage] CalculateCoverageResponse routeGroupCoverage + * @interface IRunTestCaseMetadata */ /** - * Constructs a new CalculateCoverageResponse. + * Constructs a new RunTestCaseMetadata. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CalculateCoverageResponse. - * @implements ICalculateCoverageResponse + * @classdesc Represents a RunTestCaseMetadata. + * @implements IRunTestCaseMetadata * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseMetadata=} [properties] Properties to set */ - function CalculateCoverageResponse(properties) { + function RunTestCaseMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34329,129 +34241,63 @@ } /** - * CalculateCoverageResponse agent. - * @member {string} agent - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse - * @instance + * Creates a new RunTestCaseMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata + * @static + * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseMetadata=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseMetadata} RunTestCaseMetadata instance */ - CalculateCoverageResponse.prototype.agent = ""; + RunTestCaseMetadata.create = function create(properties) { + return new RunTestCaseMetadata(properties); + }; /** - * CalculateCoverageResponse intentCoverage. - * @member {google.cloud.dialogflow.cx.v3.IIntentCoverage|null|undefined} intentCoverage - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse - * @instance + * Encodes the specified RunTestCaseMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata + * @static + * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseMetadata} message RunTestCaseMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - CalculateCoverageResponse.prototype.intentCoverage = null; - - /** - * CalculateCoverageResponse transitionCoverage. - * @member {google.cloud.dialogflow.cx.v3.ITransitionCoverage|null|undefined} transitionCoverage - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse - * @instance - */ - CalculateCoverageResponse.prototype.transitionCoverage = null; - - /** - * CalculateCoverageResponse routeGroupCoverage. - * @member {google.cloud.dialogflow.cx.v3.ITransitionRouteGroupCoverage|null|undefined} routeGroupCoverage - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse - * @instance - */ - CalculateCoverageResponse.prototype.routeGroupCoverage = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * CalculateCoverageResponse coverageType. - * @member {"intentCoverage"|"transitionCoverage"|"routeGroupCoverage"|undefined} coverageType - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse - * @instance - */ - Object.defineProperty(CalculateCoverageResponse.prototype, "coverageType", { - get: $util.oneOfGetter($oneOfFields = ["intentCoverage", "transitionCoverage", "routeGroupCoverage"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new CalculateCoverageResponse instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.CalculateCoverageResponse} CalculateCoverageResponse instance - */ - CalculateCoverageResponse.create = function create(properties) { - return new CalculateCoverageResponse(properties); - }; - - /** - * Encodes the specified CalculateCoverageResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageResponse} message CalculateCoverageResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CalculateCoverageResponse.encode = function encode(message, writer) { + RunTestCaseMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.intentCoverage != null && Object.hasOwnProperty.call(message, "intentCoverage")) - $root.google.cloud.dialogflow.cx.v3.IntentCoverage.encode(message.intentCoverage, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.transitionCoverage != null && Object.hasOwnProperty.call(message, "transitionCoverage")) - $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.encode(message.transitionCoverage, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.agent != null && Object.hasOwnProperty.call(message, "agent")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.agent); - if (message.routeGroupCoverage != null && Object.hasOwnProperty.call(message, "routeGroupCoverage")) - $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.encode(message.routeGroupCoverage, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; /** - * Encodes the specified CalculateCoverageResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.verify|verify} messages. + * Encodes the specified RunTestCaseMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.ICalculateCoverageResponse} message CalculateCoverageResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseMetadata} message RunTestCaseMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CalculateCoverageResponse.encodeDelimited = function encodeDelimited(message, writer) { + RunTestCaseMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CalculateCoverageResponse message from the specified reader or buffer. + * Decodes a RunTestCaseMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.CalculateCoverageResponse} CalculateCoverageResponse + * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseMetadata} RunTestCaseMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CalculateCoverageResponse.decode = function decode(reader, length) { + RunTestCaseMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.RunTestCaseMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 5: - message.agent = reader.string(); - break; - case 2: - message.intentCoverage = $root.google.cloud.dialogflow.cx.v3.IntentCoverage.decode(reader, reader.uint32()); - break; - case 4: - message.transitionCoverage = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.decode(reader, reader.uint32()); - break; - case 6: - message.routeGroupCoverage = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -34461,169 +34307,97 @@ }; /** - * Decodes a CalculateCoverageResponse message from the specified reader or buffer, length delimited. + * Decodes a RunTestCaseMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.CalculateCoverageResponse} CalculateCoverageResponse + * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseMetadata} RunTestCaseMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CalculateCoverageResponse.decodeDelimited = function decodeDelimited(reader) { + RunTestCaseMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CalculateCoverageResponse message. + * Verifies a RunTestCaseMetadata message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CalculateCoverageResponse.verify = function verify(message) { + RunTestCaseMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.agent != null && message.hasOwnProperty("agent")) - if (!$util.isString(message.agent)) - return "agent: string expected"; - if (message.intentCoverage != null && message.hasOwnProperty("intentCoverage")) { - properties.coverageType = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.IntentCoverage.verify(message.intentCoverage); - if (error) - return "intentCoverage." + error; - } - } - if (message.transitionCoverage != null && message.hasOwnProperty("transitionCoverage")) { - if (properties.coverageType === 1) - return "coverageType: multiple values"; - properties.coverageType = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.verify(message.transitionCoverage); - if (error) - return "transitionCoverage." + error; - } - } - if (message.routeGroupCoverage != null && message.hasOwnProperty("routeGroupCoverage")) { - if (properties.coverageType === 1) - return "coverageType: multiple values"; - properties.coverageType = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.verify(message.routeGroupCoverage); - if (error) - return "routeGroupCoverage." + error; - } - } return null; }; /** - * Creates a CalculateCoverageResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RunTestCaseMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CalculateCoverageResponse} CalculateCoverageResponse + * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseMetadata} RunTestCaseMetadata */ - CalculateCoverageResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse) + RunTestCaseMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.RunTestCaseMetadata) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse(); - if (object.agent != null) - message.agent = String(object.agent); - if (object.intentCoverage != null) { - if (typeof object.intentCoverage !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.intentCoverage: object expected"); - message.intentCoverage = $root.google.cloud.dialogflow.cx.v3.IntentCoverage.fromObject(object.intentCoverage); - } - if (object.transitionCoverage != null) { - if (typeof object.transitionCoverage !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.transitionCoverage: object expected"); - message.transitionCoverage = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.fromObject(object.transitionCoverage); - } - if (object.routeGroupCoverage != null) { - if (typeof object.routeGroupCoverage !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CalculateCoverageResponse.routeGroupCoverage: object expected"); - message.routeGroupCoverage = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.fromObject(object.routeGroupCoverage); - } - return message; + return new $root.google.cloud.dialogflow.cx.v3.RunTestCaseMetadata(); }; /** - * Creates a plain object from a CalculateCoverageResponse message. Also converts values to other types if specified. + * Creates a plain object from a RunTestCaseMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.CalculateCoverageResponse} message CalculateCoverageResponse + * @param {google.cloud.dialogflow.cx.v3.RunTestCaseMetadata} message RunTestCaseMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CalculateCoverageResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.agent = ""; - if (message.intentCoverage != null && message.hasOwnProperty("intentCoverage")) { - object.intentCoverage = $root.google.cloud.dialogflow.cx.v3.IntentCoverage.toObject(message.intentCoverage, options); - if (options.oneofs) - object.coverageType = "intentCoverage"; - } - if (message.transitionCoverage != null && message.hasOwnProperty("transitionCoverage")) { - object.transitionCoverage = $root.google.cloud.dialogflow.cx.v3.TransitionCoverage.toObject(message.transitionCoverage, options); - if (options.oneofs) - object.coverageType = "transitionCoverage"; - } - if (message.agent != null && message.hasOwnProperty("agent")) - object.agent = message.agent; - if (message.routeGroupCoverage != null && message.hasOwnProperty("routeGroupCoverage")) { - object.routeGroupCoverage = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.toObject(message.routeGroupCoverage, options); - if (options.oneofs) - object.coverageType = "routeGroupCoverage"; - } - return object; + RunTestCaseMetadata.toObject = function toObject() { + return {}; }; /** - * Converts this CalculateCoverageResponse to JSON. + * Converts this RunTestCaseMetadata to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata * @instance * @returns {Object.} JSON object */ - CalculateCoverageResponse.prototype.toJSON = function toJSON() { + RunTestCaseMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CalculateCoverageResponse; + return RunTestCaseMetadata; })(); - v3.ListTestCasesRequest = (function() { + v3.BatchRunTestCasesRequest = (function() { /** - * Properties of a ListTestCasesRequest. + * Properties of a BatchRunTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListTestCasesRequest - * @property {string|null} [parent] ListTestCasesRequest parent - * @property {number|null} [pageSize] ListTestCasesRequest pageSize - * @property {string|null} [pageToken] ListTestCasesRequest pageToken - * @property {google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView|null} [view] ListTestCasesRequest view + * @interface IBatchRunTestCasesRequest + * @property {string|null} [parent] BatchRunTestCasesRequest parent + * @property {string|null} [environment] BatchRunTestCasesRequest environment + * @property {Array.|null} [testCases] BatchRunTestCasesRequest testCases */ /** - * Constructs a new ListTestCasesRequest. + * Constructs a new BatchRunTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListTestCasesRequest. - * @implements IListTestCasesRequest + * @classdesc Represents a BatchRunTestCasesRequest. + * @implements IBatchRunTestCasesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListTestCasesRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest=} [properties] Properties to set */ - function ListTestCasesRequest(properties) { + function BatchRunTestCasesRequest(properties) { + this.testCases = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34631,100 +34405,91 @@ } /** - * ListTestCasesRequest parent. + * BatchRunTestCasesRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest - * @instance - */ - ListTestCasesRequest.prototype.parent = ""; - - /** - * ListTestCasesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest * @instance */ - ListTestCasesRequest.prototype.pageSize = 0; + BatchRunTestCasesRequest.prototype.parent = ""; /** - * ListTestCasesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * BatchRunTestCasesRequest environment. + * @member {string} environment + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest * @instance */ - ListTestCasesRequest.prototype.pageToken = ""; + BatchRunTestCasesRequest.prototype.environment = ""; /** - * ListTestCasesRequest view. - * @member {google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView} view - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * BatchRunTestCasesRequest testCases. + * @member {Array.} testCases + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest * @instance */ - ListTestCasesRequest.prototype.view = 0; + BatchRunTestCasesRequest.prototype.testCases = $util.emptyArray; /** - * Creates a new ListTestCasesRequest instance using the specified properties. + * Creates a new BatchRunTestCasesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListTestCasesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListTestCasesRequest} ListTestCasesRequest instance + * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest} BatchRunTestCasesRequest instance */ - ListTestCasesRequest.create = function create(properties) { - return new ListTestCasesRequest(properties); + BatchRunTestCasesRequest.create = function create(properties) { + return new BatchRunTestCasesRequest(properties); }; /** - * Encodes the specified ListTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCasesRequest.verify|verify} messages. + * Encodes the specified BatchRunTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListTestCasesRequest} message ListTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest} message BatchRunTestCasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTestCasesRequest.encode = function encode(message, writer) { + BatchRunTestCasesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.view != null && Object.hasOwnProperty.call(message, "view")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.view); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.environment); + if (message.testCases != null && message.testCases.length) + for (var i = 0; i < message.testCases.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.testCases[i]); return writer; }; /** - * Encodes the specified ListTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCasesRequest.verify|verify} messages. + * Encodes the specified BatchRunTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListTestCasesRequest} message ListTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest} message BatchRunTestCasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchRunTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTestCasesRequest message from the specified reader or buffer. + * Decodes a BatchRunTestCasesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListTestCasesRequest} ListTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest} BatchRunTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTestCasesRequest.decode = function decode(reader, length) { + BatchRunTestCasesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListTestCasesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -34732,13 +34497,12 @@ message.parent = reader.string(); break; case 2: - message.pageSize = reader.int32(); + message.environment = reader.string(); break; case 3: - message.pageToken = reader.string(); - break; - case 4: - message.view = reader.int32(); + if (!(message.testCases && message.testCases.length)) + message.testCases = []; + message.testCases.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -34749,168 +34513,138 @@ }; /** - * Decodes a ListTestCasesRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchRunTestCasesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListTestCasesRequest} ListTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest} BatchRunTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { + BatchRunTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTestCasesRequest message. + * Verifies a BatchRunTestCasesRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTestCasesRequest.verify = function verify(message) { + BatchRunTestCasesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.view != null && message.hasOwnProperty("view")) - switch (message.view) { - default: - return "view: enum value expected"; - case 0: - case 1: - case 2: - break; - } + if (message.environment != null && message.hasOwnProperty("environment")) + if (!$util.isString(message.environment)) + return "environment: string expected"; + if (message.testCases != null && message.hasOwnProperty("testCases")) { + if (!Array.isArray(message.testCases)) + return "testCases: array expected"; + for (var i = 0; i < message.testCases.length; ++i) + if (!$util.isString(message.testCases[i])) + return "testCases: string[] expected"; + } return null; }; /** - * Creates a ListTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchRunTestCasesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListTestCasesRequest} ListTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest} BatchRunTestCasesRequest */ - ListTestCasesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListTestCasesRequest) + BatchRunTestCasesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListTestCasesRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - switch (object.view) { - case "TEST_CASE_VIEW_UNSPECIFIED": - case 0: - message.view = 0; - break; - case "BASIC": - case 1: - message.view = 1; - break; - case "FULL": - case 2: - message.view = 2; - break; + if (object.environment != null) + message.environment = String(object.environment); + if (object.testCases) { + if (!Array.isArray(object.testCases)) + throw TypeError(".google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest.testCases: array expected"); + message.testCases = []; + for (var i = 0; i < object.testCases.length; ++i) + message.testCases[i] = String(object.testCases[i]); } return message; }; /** - * Creates a plain object from a ListTestCasesRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchRunTestCasesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ListTestCasesRequest} message ListTestCasesRequest + * @param {google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest} message BatchRunTestCasesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTestCasesRequest.toObject = function toObject(message, options) { + BatchRunTestCasesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.testCases = []; if (options.defaults) { object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.view = options.enums === String ? "TEST_CASE_VIEW_UNSPECIFIED" : 0; + object.environment = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.view != null && message.hasOwnProperty("view")) - object.view = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView[message.view] : message.view; + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = message.environment; + if (message.testCases && message.testCases.length) { + object.testCases = []; + for (var j = 0; j < message.testCases.length; ++j) + object.testCases[j] = message.testCases[j]; + } return object; }; /** - * Converts this ListTestCasesRequest to JSON. + * Converts this BatchRunTestCasesRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest * @instance * @returns {Object.} JSON object */ - ListTestCasesRequest.prototype.toJSON = function toJSON() { + BatchRunTestCasesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * TestCaseView enum. - * @name google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView - * @enum {number} - * @property {number} TEST_CASE_VIEW_UNSPECIFIED=0 TEST_CASE_VIEW_UNSPECIFIED value - * @property {number} BASIC=1 BASIC value - * @property {number} FULL=2 FULL value - */ - ListTestCasesRequest.TestCaseView = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TEST_CASE_VIEW_UNSPECIFIED"] = 0; - values[valuesById[1] = "BASIC"] = 1; - values[valuesById[2] = "FULL"] = 2; - return values; - })(); - - return ListTestCasesRequest; + return BatchRunTestCasesRequest; })(); - v3.ListTestCasesResponse = (function() { + v3.BatchRunTestCasesResponse = (function() { /** - * Properties of a ListTestCasesResponse. + * Properties of a BatchRunTestCasesResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListTestCasesResponse - * @property {Array.|null} [testCases] ListTestCasesResponse testCases - * @property {string|null} [nextPageToken] ListTestCasesResponse nextPageToken + * @interface IBatchRunTestCasesResponse + * @property {Array.|null} [results] BatchRunTestCasesResponse results */ /** - * Constructs a new ListTestCasesResponse. + * Constructs a new BatchRunTestCasesResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListTestCasesResponse. - * @implements IListTestCasesResponse + * @classdesc Represents a BatchRunTestCasesResponse. + * @implements IBatchRunTestCasesResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListTestCasesResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesResponse=} [properties] Properties to set */ - function ListTestCasesResponse(properties) { - this.testCases = []; + function BatchRunTestCasesResponse(properties) { + this.results = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34918,91 +34652,78 @@ } /** - * ListTestCasesResponse testCases. - * @member {Array.} testCases - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse - * @instance - */ - ListTestCasesResponse.prototype.testCases = $util.emptyArray; - - /** - * ListTestCasesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse + * BatchRunTestCasesResponse results. + * @member {Array.} results + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse * @instance */ - ListTestCasesResponse.prototype.nextPageToken = ""; + BatchRunTestCasesResponse.prototype.results = $util.emptyArray; /** - * Creates a new ListTestCasesResponse instance using the specified properties. + * Creates a new BatchRunTestCasesResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IListTestCasesResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListTestCasesResponse} ListTestCasesResponse instance + * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse} BatchRunTestCasesResponse instance */ - ListTestCasesResponse.create = function create(properties) { - return new ListTestCasesResponse(properties); + BatchRunTestCasesResponse.create = function create(properties) { + return new BatchRunTestCasesResponse(properties); }; /** - * Encodes the specified ListTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCasesResponse.verify|verify} messages. + * Encodes the specified BatchRunTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IListTestCasesResponse} message ListTestCasesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesResponse} message BatchRunTestCasesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTestCasesResponse.encode = function encode(message, writer) { + BatchRunTestCasesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.testCases != null && message.testCases.length) - for (var i = 0; i < message.testCases.length; ++i) - $root.google.cloud.dialogflow.cx.v3.TestCase.encode(message.testCases[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.results != null && message.results.length) + for (var i = 0; i < message.results.length; ++i) + $root.google.cloud.dialogflow.cx.v3.TestCaseResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCasesResponse.verify|verify} messages. + * Encodes the specified BatchRunTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IListTestCasesResponse} message ListTestCasesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesResponse} message BatchRunTestCasesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { + BatchRunTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTestCasesResponse message from the specified reader or buffer. + * Decodes a BatchRunTestCasesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListTestCasesResponse} ListTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse} BatchRunTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTestCasesResponse.decode = function decode(reader, length) { + BatchRunTestCasesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListTestCasesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.testCases && message.testCases.length)) - message.testCases = []; - message.testCases.push($root.google.cloud.dialogflow.cx.v3.TestCase.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); + if (!(message.results && message.results.length)) + message.results = []; + message.results.push($root.google.cloud.dialogflow.cx.v3.TestCaseResult.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -35013,135 +34734,125 @@ }; /** - * Decodes a ListTestCasesResponse message from the specified reader or buffer, length delimited. + * Decodes a BatchRunTestCasesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListTestCasesResponse} ListTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse} BatchRunTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { + BatchRunTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTestCasesResponse message. + * Verifies a BatchRunTestCasesResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTestCasesResponse.verify = function verify(message) { + BatchRunTestCasesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.testCases != null && message.hasOwnProperty("testCases")) { - if (!Array.isArray(message.testCases)) - return "testCases: array expected"; - for (var i = 0; i < message.testCases.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.TestCase.verify(message.testCases[i]); + if (message.results != null && message.hasOwnProperty("results")) { + if (!Array.isArray(message.results)) + return "results: array expected"; + for (var i = 0; i < message.results.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.verify(message.results[i]); if (error) - return "testCases." + error; + return "results." + error; } } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListTestCasesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BatchRunTestCasesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListTestCasesResponse} ListTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse} BatchRunTestCasesResponse */ - ListTestCasesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListTestCasesResponse) + BatchRunTestCasesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListTestCasesResponse(); - if (object.testCases) { - if (!Array.isArray(object.testCases)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ListTestCasesResponse.testCases: array expected"); - message.testCases = []; - for (var i = 0; i < object.testCases.length; ++i) { - if (typeof object.testCases[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ListTestCasesResponse.testCases: object expected"); - message.testCases[i] = $root.google.cloud.dialogflow.cx.v3.TestCase.fromObject(object.testCases[i]); + var message = new $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse(); + if (object.results) { + if (!Array.isArray(object.results)) + throw TypeError(".google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse.results: array expected"); + message.results = []; + for (var i = 0; i < object.results.length; ++i) { + if (typeof object.results[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse.results: object expected"); + message.results[i] = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.fromObject(object.results[i]); } } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListTestCasesResponse message. Also converts values to other types if specified. + * Creates a plain object from a BatchRunTestCasesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ListTestCasesResponse} message ListTestCasesResponse + * @param {google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse} message BatchRunTestCasesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTestCasesResponse.toObject = function toObject(message, options) { + BatchRunTestCasesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.testCases = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.testCases && message.testCases.length) { - object.testCases = []; - for (var j = 0; j < message.testCases.length; ++j) - object.testCases[j] = $root.google.cloud.dialogflow.cx.v3.TestCase.toObject(message.testCases[j], options); + object.results = []; + if (message.results && message.results.length) { + object.results = []; + for (var j = 0; j < message.results.length; ++j) + object.results[j] = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.toObject(message.results[j], options); } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListTestCasesResponse to JSON. + * Converts this BatchRunTestCasesResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse * @instance * @returns {Object.} JSON object */ - ListTestCasesResponse.prototype.toJSON = function toJSON() { + BatchRunTestCasesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListTestCasesResponse; + return BatchRunTestCasesResponse; })(); - v3.BatchDeleteTestCasesRequest = (function() { + v3.BatchRunTestCasesMetadata = (function() { /** - * Properties of a BatchDeleteTestCasesRequest. + * Properties of a BatchRunTestCasesMetadata. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IBatchDeleteTestCasesRequest - * @property {string|null} [parent] BatchDeleteTestCasesRequest parent - * @property {Array.|null} [names] BatchDeleteTestCasesRequest names + * @interface IBatchRunTestCasesMetadata + * @property {Array.|null} [errors] BatchRunTestCasesMetadata errors */ /** - * Constructs a new BatchDeleteTestCasesRequest. + * Constructs a new BatchRunTestCasesMetadata. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a BatchDeleteTestCasesRequest. - * @implements IBatchDeleteTestCasesRequest + * @classdesc Represents a BatchRunTestCasesMetadata. + * @implements IBatchRunTestCasesMetadata * @constructor - * @param {google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesMetadata=} [properties] Properties to set */ - function BatchDeleteTestCasesRequest(properties) { - this.names = []; + function BatchRunTestCasesMetadata(properties) { + this.errors = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35149,91 +34860,78 @@ } /** - * BatchDeleteTestCasesRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest - * @instance - */ - BatchDeleteTestCasesRequest.prototype.parent = ""; - - /** - * BatchDeleteTestCasesRequest names. - * @member {Array.} names - * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest + * BatchRunTestCasesMetadata errors. + * @member {Array.} errors + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata * @instance */ - BatchDeleteTestCasesRequest.prototype.names = $util.emptyArray; + BatchRunTestCasesMetadata.prototype.errors = $util.emptyArray; /** - * Creates a new BatchDeleteTestCasesRequest instance using the specified properties. + * Creates a new BatchRunTestCasesMetadata instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest instance + * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesMetadata=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata instance */ - BatchDeleteTestCasesRequest.create = function create(properties) { - return new BatchDeleteTestCasesRequest(properties); + BatchRunTestCasesMetadata.create = function create(properties) { + return new BatchRunTestCasesMetadata(properties); }; /** - * Encodes the specified BatchDeleteTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest.verify|verify} messages. + * Encodes the specified BatchRunTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest} message BatchDeleteTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesMetadata} message BatchRunTestCasesMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchDeleteTestCasesRequest.encode = function encode(message, writer) { + BatchRunTestCasesMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.names != null && message.names.length) - for (var i = 0; i < message.names.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.names[i]); + if (message.errors != null && message.errors.length) + for (var i = 0; i < message.errors.length; ++i) + $root.google.cloud.dialogflow.cx.v3.TestError.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified BatchDeleteTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest.verify|verify} messages. + * Encodes the specified BatchRunTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest} message BatchDeleteTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesMetadata} message BatchRunTestCasesMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchDeleteTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchRunTestCasesMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchDeleteTestCasesRequest message from the specified reader or buffer. + * Decodes a BatchRunTestCasesMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchDeleteTestCasesRequest.decode = function decode(reader, length) { + BatchRunTestCasesMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 3: - if (!(message.names && message.names.length)) - message.names = []; - message.names.push(reader.string()); + if (!(message.errors && message.errors.length)) + message.errors = []; + message.errors.push($root.google.cloud.dialogflow.cx.v3.TestError.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -35244,129 +34942,126 @@ }; /** - * Decodes a BatchDeleteTestCasesRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchRunTestCasesMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchDeleteTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { + BatchRunTestCasesMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchDeleteTestCasesRequest message. + * Verifies a BatchRunTestCasesMetadata message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchDeleteTestCasesRequest.verify = function verify(message) { + BatchRunTestCasesMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.names != null && message.hasOwnProperty("names")) { - if (!Array.isArray(message.names)) - return "names: array expected"; - for (var i = 0; i < message.names.length; ++i) - if (!$util.isString(message.names[i])) - return "names: string[] expected"; + if (message.errors != null && message.hasOwnProperty("errors")) { + if (!Array.isArray(message.errors)) + return "errors: array expected"; + for (var i = 0; i < message.errors.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.TestError.verify(message.errors[i]); + if (error) + return "errors." + error; + } } return null; }; /** - * Creates a BatchDeleteTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchRunTestCasesMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata */ - BatchDeleteTestCasesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest) + BatchRunTestCasesMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.names) { - if (!Array.isArray(object.names)) - throw TypeError(".google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest.names: array expected"); - message.names = []; - for (var i = 0; i < object.names.length; ++i) - message.names[i] = String(object.names[i]); + var message = new $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata(); + if (object.errors) { + if (!Array.isArray(object.errors)) + throw TypeError(".google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata.errors: array expected"); + message.errors = []; + for (var i = 0; i < object.errors.length; ++i) { + if (typeof object.errors[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata.errors: object expected"); + message.errors[i] = $root.google.cloud.dialogflow.cx.v3.TestError.fromObject(object.errors[i]); + } } return message; }; /** - * Creates a plain object from a BatchDeleteTestCasesRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchRunTestCasesMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest} message BatchDeleteTestCasesRequest + * @param {google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata} message BatchRunTestCasesMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchDeleteTestCasesRequest.toObject = function toObject(message, options) { + BatchRunTestCasesMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.names = []; - if (options.defaults) - object.parent = ""; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.names && message.names.length) { - object.names = []; - for (var j = 0; j < message.names.length; ++j) - object.names[j] = message.names[j]; + object.errors = []; + if (message.errors && message.errors.length) { + object.errors = []; + for (var j = 0; j < message.errors.length; ++j) + object.errors[j] = $root.google.cloud.dialogflow.cx.v3.TestError.toObject(message.errors[j], options); } return object; }; /** - * Converts this BatchDeleteTestCasesRequest to JSON. + * Converts this BatchRunTestCasesMetadata to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata * @instance * @returns {Object.} JSON object */ - BatchDeleteTestCasesRequest.prototype.toJSON = function toJSON() { + BatchRunTestCasesMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchDeleteTestCasesRequest; + return BatchRunTestCasesMetadata; })(); - v3.CreateTestCaseRequest = (function() { + v3.TestError = (function() { /** - * Properties of a CreateTestCaseRequest. + * Properties of a TestError. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ICreateTestCaseRequest - * @property {string|null} [parent] CreateTestCaseRequest parent - * @property {google.cloud.dialogflow.cx.v3.ITestCase|null} [testCase] CreateTestCaseRequest testCase + * @interface ITestError + * @property {string|null} [testCase] TestError testCase + * @property {google.rpc.IStatus|null} [status] TestError status + * @property {google.protobuf.ITimestamp|null} [testTime] TestError testTime */ /** - * Constructs a new CreateTestCaseRequest. + * Constructs a new TestError. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CreateTestCaseRequest. - * @implements ICreateTestCaseRequest + * @classdesc Represents a TestError. + * @implements ITestError * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ITestError=} [properties] Properties to set */ - function CreateTestCaseRequest(properties) { + function TestError(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35374,88 +35069,101 @@ } /** - * CreateTestCaseRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest + * TestError testCase. + * @member {string} testCase + * @memberof google.cloud.dialogflow.cx.v3.TestError * @instance */ - CreateTestCaseRequest.prototype.parent = ""; + TestError.prototype.testCase = ""; /** - * CreateTestCaseRequest testCase. - * @member {google.cloud.dialogflow.cx.v3.ITestCase|null|undefined} testCase - * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest + * TestError status. + * @member {google.rpc.IStatus|null|undefined} status + * @memberof google.cloud.dialogflow.cx.v3.TestError * @instance */ - CreateTestCaseRequest.prototype.testCase = null; + TestError.prototype.status = null; /** - * Creates a new CreateTestCaseRequest instance using the specified properties. + * TestError testTime. + * @member {google.protobuf.ITimestamp|null|undefined} testTime + * @memberof google.cloud.dialogflow.cx.v3.TestError + * @instance + */ + TestError.prototype.testTime = null; + + /** + * Creates a new TestError instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.TestError * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.CreateTestCaseRequest} CreateTestCaseRequest instance + * @param {google.cloud.dialogflow.cx.v3.ITestError=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TestError} TestError instance */ - CreateTestCaseRequest.create = function create(properties) { - return new CreateTestCaseRequest(properties); + TestError.create = function create(properties) { + return new TestError(properties); }; /** - * Encodes the specified CreateTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTestCaseRequest.verify|verify} messages. + * Encodes the specified TestError message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestError.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.TestError * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest} message CreateTestCaseRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITestError} message TestError message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTestCaseRequest.encode = function encode(message, writer) { + TestError.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); if (message.testCase != null && Object.hasOwnProperty.call(message, "testCase")) - $root.google.cloud.dialogflow.cx.v3.TestCase.encode(message.testCase, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.testCase); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.testTime != null && Object.hasOwnProperty.call(message, "testTime")) + $root.google.protobuf.Timestamp.encode(message.testTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTestCaseRequest.verify|verify} messages. + * Encodes the specified TestError message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestError.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.TestError * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest} message CreateTestCaseRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITestError} message TestError message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestError.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateTestCaseRequest message from the specified reader or buffer. + * Decodes a TestError message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.TestError * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.CreateTestCaseRequest} CreateTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3.TestError} TestError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTestCaseRequest.decode = function decode(reader, length) { + TestError.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateTestCaseRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TestError(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.testCase = reader.string(); break; case 2: - message.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.decode(reader, reader.uint32()); + message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + case 3: + message.testTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -35466,122 +35174,136 @@ }; /** - * Decodes a CreateTestCaseRequest message from the specified reader or buffer, length delimited. + * Decodes a TestError message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.TestError * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.CreateTestCaseRequest} CreateTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3.TestError} TestError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { + TestError.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateTestCaseRequest message. + * Verifies a TestError message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.TestError * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateTestCaseRequest.verify = function verify(message) { + TestError.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.testCase != null && message.hasOwnProperty("testCase")) { - var error = $root.google.cloud.dialogflow.cx.v3.TestCase.verify(message.testCase); + if (message.testCase != null && message.hasOwnProperty("testCase")) + if (!$util.isString(message.testCase)) + return "testCase: string expected"; + if (message.status != null && message.hasOwnProperty("status")) { + var error = $root.google.rpc.Status.verify(message.status); if (error) - return "testCase." + error; + return "status." + error; + } + if (message.testTime != null && message.hasOwnProperty("testTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.testTime); + if (error) + return "testTime." + error; } return null; }; /** - * Creates a CreateTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestError message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.TestError * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CreateTestCaseRequest} CreateTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3.TestError} TestError */ - CreateTestCaseRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateTestCaseRequest) + TestError.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TestError) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.CreateTestCaseRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.testCase != null) { - if (typeof object.testCase !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CreateTestCaseRequest.testCase: object expected"); - message.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.fromObject(object.testCase); + var message = new $root.google.cloud.dialogflow.cx.v3.TestError(); + if (object.testCase != null) + message.testCase = String(object.testCase); + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TestError.status: object expected"); + message.status = $root.google.rpc.Status.fromObject(object.status); + } + if (object.testTime != null) { + if (typeof object.testTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TestError.testTime: object expected"); + message.testTime = $root.google.protobuf.Timestamp.fromObject(object.testTime); } return message; }; /** - * Creates a plain object from a CreateTestCaseRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestError message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.TestError * @static - * @param {google.cloud.dialogflow.cx.v3.CreateTestCaseRequest} message CreateTestCaseRequest + * @param {google.cloud.dialogflow.cx.v3.TestError} message TestError * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateTestCaseRequest.toObject = function toObject(message, options) { + TestError.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.testCase = null; + object.testCase = ""; + object.status = null; + object.testTime = null; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; if (message.testCase != null && message.hasOwnProperty("testCase")) - object.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.toObject(message.testCase, options); + object.testCase = message.testCase; + if (message.status != null && message.hasOwnProperty("status")) + object.status = $root.google.rpc.Status.toObject(message.status, options); + if (message.testTime != null && message.hasOwnProperty("testTime")) + object.testTime = $root.google.protobuf.Timestamp.toObject(message.testTime, options); return object; }; /** - * Converts this CreateTestCaseRequest to JSON. + * Converts this TestError to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.TestError * @instance * @returns {Object.} JSON object */ - CreateTestCaseRequest.prototype.toJSON = function toJSON() { + TestError.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateTestCaseRequest; + return TestError; })(); - v3.UpdateTestCaseRequest = (function() { + v3.ImportTestCasesRequest = (function() { /** - * Properties of an UpdateTestCaseRequest. + * Properties of an ImportTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IUpdateTestCaseRequest - * @property {google.cloud.dialogflow.cx.v3.ITestCase|null} [testCase] UpdateTestCaseRequest testCase - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateTestCaseRequest updateMask + * @interface IImportTestCasesRequest + * @property {string|null} [parent] ImportTestCasesRequest parent + * @property {string|null} [gcsUri] ImportTestCasesRequest gcsUri + * @property {Uint8Array|null} [content] ImportTestCasesRequest content */ /** - * Constructs a new UpdateTestCaseRequest. + * Constructs a new ImportTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an UpdateTestCaseRequest. - * @implements IUpdateTestCaseRequest + * @classdesc Represents an ImportTestCasesRequest. + * @implements IImportTestCasesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesRequest=} [properties] Properties to set */ - function UpdateTestCaseRequest(properties) { + function ImportTestCasesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35589,88 +35311,115 @@ } /** - * UpdateTestCaseRequest testCase. - * @member {google.cloud.dialogflow.cx.v3.ITestCase|null|undefined} testCase - * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest + * ImportTestCasesRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest * @instance */ - UpdateTestCaseRequest.prototype.testCase = null; + ImportTestCasesRequest.prototype.parent = ""; /** - * UpdateTestCaseRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest + * ImportTestCasesRequest gcsUri. + * @member {string|null|undefined} gcsUri + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest * @instance */ - UpdateTestCaseRequest.prototype.updateMask = null; + ImportTestCasesRequest.prototype.gcsUri = null; /** - * Creates a new UpdateTestCaseRequest instance using the specified properties. + * ImportTestCasesRequest content. + * @member {Uint8Array|null|undefined} content + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest + * @instance + */ + ImportTestCasesRequest.prototype.content = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ImportTestCasesRequest source. + * @member {"gcsUri"|"content"|undefined} source + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest + * @instance + */ + Object.defineProperty(ImportTestCasesRequest.prototype, "source", { + get: $util.oneOfGetter($oneOfFields = ["gcsUri", "content"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ImportTestCasesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest} UpdateTestCaseRequest instance + * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesRequest} ImportTestCasesRequest instance */ - UpdateTestCaseRequest.create = function create(properties) { - return new UpdateTestCaseRequest(properties); + ImportTestCasesRequest.create = function create(properties) { + return new ImportTestCasesRequest(properties); }; /** - * Encodes the specified UpdateTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest.verify|verify} messages. + * Encodes the specified ImportTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest} message UpdateTestCaseRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesRequest} message ImportTestCasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateTestCaseRequest.encode = function encode(message, writer) { + ImportTestCasesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.testCase != null && Object.hasOwnProperty.call(message, "testCase")) - $root.google.cloud.dialogflow.cx.v3.TestCase.encode(message.testCase, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.gcsUri != null && Object.hasOwnProperty.call(message, "gcsUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.gcsUri); + if (message.content != null && Object.hasOwnProperty.call(message, "content")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.content); return writer; }; /** - * Encodes the specified UpdateTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest.verify|verify} messages. + * Encodes the specified ImportTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest} message UpdateTestCaseRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesRequest} message ImportTestCasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { + ImportTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateTestCaseRequest message from the specified reader or buffer. + * Decodes an ImportTestCasesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest} UpdateTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesRequest} ImportTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateTestCaseRequest.decode = function decode(reader, length) { + ImportTestCasesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ImportTestCasesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.decode(reader, reader.uint32()); + message.parent = reader.string(); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.gcsUri = reader.string(); + break; + case 3: + message.content = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -35681,126 +35430,138 @@ }; /** - * Decodes an UpdateTestCaseRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportTestCasesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest} UpdateTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesRequest} ImportTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { + ImportTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateTestCaseRequest message. + * Verifies an ImportTestCasesRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateTestCaseRequest.verify = function verify(message) { + ImportTestCasesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.testCase != null && message.hasOwnProperty("testCase")) { - var error = $root.google.cloud.dialogflow.cx.v3.TestCase.verify(message.testCase); - if (error) - return "testCase." + error; + var properties = {}; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { + properties.source = 1; + if (!$util.isString(message.gcsUri)) + return "gcsUri: string expected"; } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; + if (message.content != null && message.hasOwnProperty("content")) { + if (properties.source === 1) + return "source: multiple values"; + properties.source = 1; + if (!(message.content && typeof message.content.length === "number" || $util.isString(message.content))) + return "content: buffer expected"; } return null; }; /** - * Creates an UpdateTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ImportTestCasesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest} UpdateTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesRequest} ImportTestCasesRequest */ - UpdateTestCaseRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest) + ImportTestCasesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ImportTestCasesRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest(); - if (object.testCase != null) { - if (typeof object.testCase !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest.testCase: object expected"); - message.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.fromObject(object.testCase); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.cloud.dialogflow.cx.v3.ImportTestCasesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.gcsUri != null) + message.gcsUri = String(object.gcsUri); + if (object.content != null) + if (typeof object.content === "string") + $util.base64.decode(object.content, message.content = $util.newBuffer($util.base64.length(object.content)), 0); + else if (object.content.length) + message.content = object.content; return message; }; /** - * Creates a plain object from an UpdateTestCaseRequest message. Also converts values to other types if specified. + * Creates a plain object from an ImportTestCasesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest} message UpdateTestCaseRequest + * @param {google.cloud.dialogflow.cx.v3.ImportTestCasesRequest} message ImportTestCasesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateTestCaseRequest.toObject = function toObject(message, options) { + ImportTestCasesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.testCase = null; - object.updateMask = null; + if (options.defaults) + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { + object.gcsUri = message.gcsUri; + if (options.oneofs) + object.source = "gcsUri"; + } + if (message.content != null && message.hasOwnProperty("content")) { + object.content = options.bytes === String ? $util.base64.encode(message.content, 0, message.content.length) : options.bytes === Array ? Array.prototype.slice.call(message.content) : message.content; + if (options.oneofs) + object.source = "content"; } - if (message.testCase != null && message.hasOwnProperty("testCase")) - object.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.toObject(message.testCase, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this UpdateTestCaseRequest to JSON. + * Converts this ImportTestCasesRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest * @instance * @returns {Object.} JSON object */ - UpdateTestCaseRequest.prototype.toJSON = function toJSON() { + ImportTestCasesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateTestCaseRequest; + return ImportTestCasesRequest; })(); - v3.GetTestCaseRequest = (function() { + v3.ImportTestCasesResponse = (function() { /** - * Properties of a GetTestCaseRequest. + * Properties of an ImportTestCasesResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IGetTestCaseRequest - * @property {string|null} [name] GetTestCaseRequest name + * @interface IImportTestCasesResponse + * @property {Array.|null} [names] ImportTestCasesResponse names */ /** - * Constructs a new GetTestCaseRequest. + * Constructs a new ImportTestCasesResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a GetTestCaseRequest. - * @implements IGetTestCaseRequest + * @classdesc Represents an ImportTestCasesResponse. + * @implements IImportTestCasesResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesResponse=} [properties] Properties to set */ - function GetTestCaseRequest(properties) { + function ImportTestCasesResponse(properties) { + this.names = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35808,75 +35569,78 @@ } /** - * GetTestCaseRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest + * ImportTestCasesResponse names. + * @member {Array.} names + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse * @instance */ - GetTestCaseRequest.prototype.name = ""; + ImportTestCasesResponse.prototype.names = $util.emptyArray; /** - * Creates a new GetTestCaseRequest instance using the specified properties. + * Creates a new ImportTestCasesResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.GetTestCaseRequest} GetTestCaseRequest instance + * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesResponse} ImportTestCasesResponse instance */ - GetTestCaseRequest.create = function create(properties) { - return new GetTestCaseRequest(properties); + ImportTestCasesResponse.create = function create(properties) { + return new ImportTestCasesResponse(properties); }; /** - * Encodes the specified GetTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTestCaseRequest.verify|verify} messages. + * Encodes the specified ImportTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseRequest} message GetTestCaseRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesResponse} message ImportTestCasesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTestCaseRequest.encode = function encode(message, writer) { + ImportTestCasesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.names != null && message.names.length) + for (var i = 0; i < message.names.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.names[i]); return writer; }; /** - * Encodes the specified GetTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTestCaseRequest.verify|verify} messages. + * Encodes the specified ImportTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseRequest} message GetTestCaseRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesResponse} message ImportTestCasesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { + ImportTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTestCaseRequest message from the specified reader or buffer. + * Decodes an ImportTestCasesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.GetTestCaseRequest} GetTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesResponse} ImportTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTestCaseRequest.decode = function decode(reader, length) { + ImportTestCasesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetTestCaseRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ImportTestCasesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.names && message.names.length)) + message.names = []; + message.names.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -35887,108 +35651,120 @@ }; /** - * Decodes a GetTestCaseRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportTestCasesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.GetTestCaseRequest} GetTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesResponse} ImportTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { + ImportTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetTestCaseRequest message. + * Verifies an ImportTestCasesResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetTestCaseRequest.verify = function verify(message) { + ImportTestCasesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.names != null && message.hasOwnProperty("names")) { + if (!Array.isArray(message.names)) + return "names: array expected"; + for (var i = 0; i < message.names.length; ++i) + if (!$util.isString(message.names[i])) + return "names: string[] expected"; + } return null; }; /** - * Creates a GetTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ImportTestCasesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.GetTestCaseRequest} GetTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesResponse} ImportTestCasesResponse */ - GetTestCaseRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetTestCaseRequest) + ImportTestCasesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ImportTestCasesResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.GetTestCaseRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3.ImportTestCasesResponse(); + if (object.names) { + if (!Array.isArray(object.names)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ImportTestCasesResponse.names: array expected"); + message.names = []; + for (var i = 0; i < object.names.length; ++i) + message.names[i] = String(object.names[i]); + } return message; }; /** - * Creates a plain object from a GetTestCaseRequest message. Also converts values to other types if specified. + * Creates a plain object from an ImportTestCasesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.GetTestCaseRequest} message GetTestCaseRequest + * @param {google.cloud.dialogflow.cx.v3.ImportTestCasesResponse} message ImportTestCasesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTestCaseRequest.toObject = function toObject(message, options) { + ImportTestCasesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.arrays || options.defaults) + object.names = []; + if (message.names && message.names.length) { + object.names = []; + for (var j = 0; j < message.names.length; ++j) + object.names[j] = message.names[j]; + } return object; }; /** - * Converts this GetTestCaseRequest to JSON. + * Converts this ImportTestCasesResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse * @instance * @returns {Object.} JSON object */ - GetTestCaseRequest.prototype.toJSON = function toJSON() { + ImportTestCasesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetTestCaseRequest; + return ImportTestCasesResponse; })(); - v3.RunTestCaseRequest = (function() { + v3.ImportTestCasesMetadata = (function() { /** - * Properties of a RunTestCaseRequest. + * Properties of an ImportTestCasesMetadata. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IRunTestCaseRequest - * @property {string|null} [name] RunTestCaseRequest name - * @property {string|null} [environment] RunTestCaseRequest environment + * @interface IImportTestCasesMetadata + * @property {Array.|null} [errors] ImportTestCasesMetadata errors */ /** - * Constructs a new RunTestCaseRequest. + * Constructs a new ImportTestCasesMetadata. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a RunTestCaseRequest. - * @implements IRunTestCaseRequest + * @classdesc Represents an ImportTestCasesMetadata. + * @implements IImportTestCasesMetadata * @constructor - * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesMetadata=} [properties] Properties to set */ - function RunTestCaseRequest(properties) { + function ImportTestCasesMetadata(properties) { + this.errors = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35996,88 +35772,78 @@ } /** - * RunTestCaseRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest - * @instance - */ - RunTestCaseRequest.prototype.name = ""; - - /** - * RunTestCaseRequest environment. - * @member {string} environment - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest + * ImportTestCasesMetadata errors. + * @member {Array.} errors + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata * @instance */ - RunTestCaseRequest.prototype.environment = ""; + ImportTestCasesMetadata.prototype.errors = $util.emptyArray; /** - * Creates a new RunTestCaseRequest instance using the specified properties. + * Creates a new ImportTestCasesMetadata instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseRequest} RunTestCaseRequest instance + * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesMetadata=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata} ImportTestCasesMetadata instance */ - RunTestCaseRequest.create = function create(properties) { - return new RunTestCaseRequest(properties); + ImportTestCasesMetadata.create = function create(properties) { + return new ImportTestCasesMetadata(properties); }; /** - * Encodes the specified RunTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseRequest.verify|verify} messages. + * Encodes the specified ImportTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseRequest} message RunTestCaseRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesMetadata} message ImportTestCasesMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunTestCaseRequest.encode = function encode(message, writer) { + ImportTestCasesMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.environment); + if (message.errors != null && message.errors.length) + for (var i = 0; i < message.errors.length; ++i) + $root.google.cloud.dialogflow.cx.v3.TestCaseError.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified RunTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseRequest.verify|verify} messages. + * Encodes the specified ImportTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseRequest} message RunTestCaseRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesMetadata} message ImportTestCasesMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { + ImportTestCasesMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RunTestCaseRequest message from the specified reader or buffer. + * Decodes an ImportTestCasesMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseRequest} RunTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata} ImportTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunTestCaseRequest.decode = function decode(reader, length) { + ImportTestCasesMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.RunTestCaseRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); - break; - case 2: - message.environment = reader.string(); + if (!(message.errors && message.errors.length)) + message.errors = []; + message.errors.push($root.google.cloud.dialogflow.cx.v3.TestCaseError.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -36088,116 +35854,125 @@ }; /** - * Decodes a RunTestCaseRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportTestCasesMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseRequest} RunTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata} ImportTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { + ImportTestCasesMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RunTestCaseRequest message. + * Verifies an ImportTestCasesMetadata message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RunTestCaseRequest.verify = function verify(message) { + ImportTestCasesMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.environment != null && message.hasOwnProperty("environment")) - if (!$util.isString(message.environment)) - return "environment: string expected"; + if (message.errors != null && message.hasOwnProperty("errors")) { + if (!Array.isArray(message.errors)) + return "errors: array expected"; + for (var i = 0; i < message.errors.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.TestCaseError.verify(message.errors[i]); + if (error) + return "errors." + error; + } + } return null; }; /** - * Creates a RunTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ImportTestCasesMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseRequest} RunTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata} ImportTestCasesMetadata */ - RunTestCaseRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.RunTestCaseRequest) + ImportTestCasesMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.RunTestCaseRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.environment != null) - message.environment = String(object.environment); + var message = new $root.google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata(); + if (object.errors) { + if (!Array.isArray(object.errors)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata.errors: array expected"); + message.errors = []; + for (var i = 0; i < object.errors.length; ++i) { + if (typeof object.errors[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata.errors: object expected"); + message.errors[i] = $root.google.cloud.dialogflow.cx.v3.TestCaseError.fromObject(object.errors[i]); + } + } return message; }; /** - * Creates a plain object from a RunTestCaseRequest message. Also converts values to other types if specified. + * Creates a plain object from an ImportTestCasesMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.RunTestCaseRequest} message RunTestCaseRequest + * @param {google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata} message ImportTestCasesMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RunTestCaseRequest.toObject = function toObject(message, options) { + ImportTestCasesMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.environment = ""; + if (options.arrays || options.defaults) + object.errors = []; + if (message.errors && message.errors.length) { + object.errors = []; + for (var j = 0; j < message.errors.length; ++j) + object.errors[j] = $root.google.cloud.dialogflow.cx.v3.TestCaseError.toObject(message.errors[j], options); } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = message.environment; return object; }; /** - * Converts this RunTestCaseRequest to JSON. + * Converts this ImportTestCasesMetadata to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata * @instance * @returns {Object.} JSON object */ - RunTestCaseRequest.prototype.toJSON = function toJSON() { + ImportTestCasesMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RunTestCaseRequest; + return ImportTestCasesMetadata; })(); - v3.RunTestCaseResponse = (function() { + v3.TestCaseError = (function() { /** - * Properties of a RunTestCaseResponse. + * Properties of a TestCaseError. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IRunTestCaseResponse - * @property {google.cloud.dialogflow.cx.v3.ITestCaseResult|null} [result] RunTestCaseResponse result + * @interface ITestCaseError + * @property {google.cloud.dialogflow.cx.v3.ITestCase|null} [testCase] TestCaseError testCase + * @property {google.rpc.IStatus|null} [status] TestCaseError status */ /** - * Constructs a new RunTestCaseResponse. + * Constructs a new TestCaseError. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a RunTestCaseResponse. - * @implements IRunTestCaseResponse + * @classdesc Represents a TestCaseError. + * @implements ITestCaseError * @constructor - * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ITestCaseError=} [properties] Properties to set */ - function RunTestCaseResponse(properties) { + function TestCaseError(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36205,75 +35980,88 @@ } /** - * RunTestCaseResponse result. - * @member {google.cloud.dialogflow.cx.v3.ITestCaseResult|null|undefined} result - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse + * TestCaseError testCase. + * @member {google.cloud.dialogflow.cx.v3.ITestCase|null|undefined} testCase + * @memberof google.cloud.dialogflow.cx.v3.TestCaseError * @instance */ - RunTestCaseResponse.prototype.result = null; + TestCaseError.prototype.testCase = null; /** - * Creates a new RunTestCaseResponse instance using the specified properties. + * TestCaseError status. + * @member {google.rpc.IStatus|null|undefined} status + * @memberof google.cloud.dialogflow.cx.v3.TestCaseError + * @instance + */ + TestCaseError.prototype.status = null; + + /** + * Creates a new TestCaseError instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse + * @memberof google.cloud.dialogflow.cx.v3.TestCaseError * @static - * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseResponse} RunTestCaseResponse instance + * @param {google.cloud.dialogflow.cx.v3.ITestCaseError=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TestCaseError} TestCaseError instance */ - RunTestCaseResponse.create = function create(properties) { - return new RunTestCaseResponse(properties); + TestCaseError.create = function create(properties) { + return new TestCaseError(properties); }; /** - * Encodes the specified RunTestCaseResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseResponse.verify|verify} messages. + * Encodes the specified TestCaseError message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCaseError.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse + * @memberof google.cloud.dialogflow.cx.v3.TestCaseError * @static - * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseResponse} message RunTestCaseResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITestCaseError} message TestCaseError message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunTestCaseResponse.encode = function encode(message, writer) { + TestCaseError.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.google.cloud.dialogflow.cx.v3.TestCaseResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.testCase != null && Object.hasOwnProperty.call(message, "testCase")) + $root.google.cloud.dialogflow.cx.v3.TestCase.encode(message.testCase, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified RunTestCaseResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseResponse.verify|verify} messages. + * Encodes the specified TestCaseError message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCaseError.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse + * @memberof google.cloud.dialogflow.cx.v3.TestCaseError * @static - * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseResponse} message RunTestCaseResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITestCaseError} message TestCaseError message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunTestCaseResponse.encodeDelimited = function encodeDelimited(message, writer) { + TestCaseError.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RunTestCaseResponse message from the specified reader or buffer. + * Decodes a TestCaseError message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse + * @memberof google.cloud.dialogflow.cx.v3.TestCaseError * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseResponse} RunTestCaseResponse + * @returns {google.cloud.dialogflow.cx.v3.TestCaseError} TestCaseError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunTestCaseResponse.decode = function decode(reader, length) { + TestCaseError.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.RunTestCaseResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TestCaseError(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.decode(reader, reader.uint32()); + break; case 2: - message.result = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.decode(reader, reader.uint32()); + message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -36284,111 +36072,129 @@ }; /** - * Decodes a RunTestCaseResponse message from the specified reader or buffer, length delimited. + * Decodes a TestCaseError message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse + * @memberof google.cloud.dialogflow.cx.v3.TestCaseError * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseResponse} RunTestCaseResponse + * @returns {google.cloud.dialogflow.cx.v3.TestCaseError} TestCaseError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunTestCaseResponse.decodeDelimited = function decodeDelimited(reader) { + TestCaseError.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RunTestCaseResponse message. + * Verifies a TestCaseError message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse + * @memberof google.cloud.dialogflow.cx.v3.TestCaseError * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RunTestCaseResponse.verify = function verify(message) { + TestCaseError.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) { - var error = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.verify(message.result); + if (message.testCase != null && message.hasOwnProperty("testCase")) { + var error = $root.google.cloud.dialogflow.cx.v3.TestCase.verify(message.testCase); if (error) - return "result." + error; + return "testCase." + error; + } + if (message.status != null && message.hasOwnProperty("status")) { + var error = $root.google.rpc.Status.verify(message.status); + if (error) + return "status." + error; } return null; }; /** - * Creates a RunTestCaseResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TestCaseError message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse + * @memberof google.cloud.dialogflow.cx.v3.TestCaseError * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseResponse} RunTestCaseResponse + * @returns {google.cloud.dialogflow.cx.v3.TestCaseError} TestCaseError */ - RunTestCaseResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.RunTestCaseResponse) + TestCaseError.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TestCaseError) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.RunTestCaseResponse(); - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.RunTestCaseResponse.result: object expected"); - message.result = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.fromObject(object.result); + var message = new $root.google.cloud.dialogflow.cx.v3.TestCaseError(); + if (object.testCase != null) { + if (typeof object.testCase !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TestCaseError.testCase: object expected"); + message.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.fromObject(object.testCase); + } + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TestCaseError.status: object expected"); + message.status = $root.google.rpc.Status.fromObject(object.status); } return message; }; /** - * Creates a plain object from a RunTestCaseResponse message. Also converts values to other types if specified. + * Creates a plain object from a TestCaseError message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse + * @memberof google.cloud.dialogflow.cx.v3.TestCaseError * @static - * @param {google.cloud.dialogflow.cx.v3.RunTestCaseResponse} message RunTestCaseResponse + * @param {google.cloud.dialogflow.cx.v3.TestCaseError} message TestCaseError * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RunTestCaseResponse.toObject = function toObject(message, options) { + TestCaseError.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.result = null; - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.toObject(message.result, options); + if (options.defaults) { + object.testCase = null; + object.status = null; + } + if (message.testCase != null && message.hasOwnProperty("testCase")) + object.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.toObject(message.testCase, options); + if (message.status != null && message.hasOwnProperty("status")) + object.status = $root.google.rpc.Status.toObject(message.status, options); return object; }; /** - * Converts this RunTestCaseResponse to JSON. + * Converts this TestCaseError to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseResponse + * @memberof google.cloud.dialogflow.cx.v3.TestCaseError * @instance * @returns {Object.} JSON object */ - RunTestCaseResponse.prototype.toJSON = function toJSON() { + TestCaseError.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RunTestCaseResponse; + return TestCaseError; })(); - v3.RunTestCaseMetadata = (function() { + v3.ExportTestCasesRequest = (function() { /** - * Properties of a RunTestCaseMetadata. + * Properties of an ExportTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IRunTestCaseMetadata + * @interface IExportTestCasesRequest + * @property {string|null} [parent] ExportTestCasesRequest parent + * @property {string|null} [gcsUri] ExportTestCasesRequest gcsUri + * @property {google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat|null} [dataFormat] ExportTestCasesRequest dataFormat + * @property {string|null} [filter] ExportTestCasesRequest filter */ /** - * Constructs a new RunTestCaseMetadata. + * Constructs a new ExportTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a RunTestCaseMetadata. - * @implements IRunTestCaseMetadata + * @classdesc Represents an ExportTestCasesRequest. + * @implements IExportTestCasesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseMetadata=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesRequest=} [properties] Properties to set */ - function RunTestCaseMetadata(properties) { + function ExportTestCasesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36396,63 +36202,129 @@ } /** - * Creates a new RunTestCaseMetadata instance using the specified properties. + * ExportTestCasesRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest + * @instance + */ + ExportTestCasesRequest.prototype.parent = ""; + + /** + * ExportTestCasesRequest gcsUri. + * @member {string|null|undefined} gcsUri + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest + * @instance + */ + ExportTestCasesRequest.prototype.gcsUri = null; + + /** + * ExportTestCasesRequest dataFormat. + * @member {google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat} dataFormat + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest + * @instance + */ + ExportTestCasesRequest.prototype.dataFormat = 0; + + /** + * ExportTestCasesRequest filter. + * @member {string} filter + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest + * @instance + */ + ExportTestCasesRequest.prototype.filter = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ExportTestCasesRequest destination. + * @member {"gcsUri"|undefined} destination + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest + * @instance + */ + Object.defineProperty(ExportTestCasesRequest.prototype, "destination", { + get: $util.oneOfGetter($oneOfFields = ["gcsUri"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ExportTestCasesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseMetadata=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseMetadata} RunTestCaseMetadata instance + * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesRequest} ExportTestCasesRequest instance */ - RunTestCaseMetadata.create = function create(properties) { - return new RunTestCaseMetadata(properties); + ExportTestCasesRequest.create = function create(properties) { + return new ExportTestCasesRequest(properties); }; /** - * Encodes the specified RunTestCaseMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseMetadata.verify|verify} messages. + * Encodes the specified ExportTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseMetadata} message RunTestCaseMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesRequest} message ExportTestCasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunTestCaseMetadata.encode = function encode(message, writer) { + ExportTestCasesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.gcsUri != null && Object.hasOwnProperty.call(message, "gcsUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.gcsUri); + if (message.dataFormat != null && Object.hasOwnProperty.call(message, "dataFormat")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.dataFormat); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); return writer; }; /** - * Encodes the specified RunTestCaseMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RunTestCaseMetadata.verify|verify} messages. + * Encodes the specified ExportTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IRunTestCaseMetadata} message RunTestCaseMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesRequest} message ExportTestCasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunTestCaseMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ExportTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RunTestCaseMetadata message from the specified reader or buffer. + * Decodes an ExportTestCasesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseMetadata} RunTestCaseMetadata + * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesRequest} ExportTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunTestCaseMetadata.decode = function decode(reader, length) { + ExportTestCasesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.RunTestCaseMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.gcsUri = reader.string(); + break; + case 3: + message.dataFormat = reader.int32(); + break; + case 4: + message.filter = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -36462,97 +36334,172 @@ }; /** - * Decodes a RunTestCaseMetadata message from the specified reader or buffer, length delimited. + * Decodes an ExportTestCasesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseMetadata} RunTestCaseMetadata + * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesRequest} ExportTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunTestCaseMetadata.decodeDelimited = function decodeDelimited(reader) { + ExportTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RunTestCaseMetadata message. + * Verifies an ExportTestCasesRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RunTestCaseMetadata.verify = function verify(message) { + ExportTestCasesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { + properties.destination = 1; + if (!$util.isString(message.gcsUri)) + return "gcsUri: string expected"; + } + if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) + switch (message.dataFormat) { + default: + return "dataFormat: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; return null; }; /** - * Creates a RunTestCaseMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an ExportTestCasesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.RunTestCaseMetadata} RunTestCaseMetadata + * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesRequest} ExportTestCasesRequest */ - RunTestCaseMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.RunTestCaseMetadata) + ExportTestCasesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest) return object; - return new $root.google.cloud.dialogflow.cx.v3.RunTestCaseMetadata(); + var message = new $root.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.gcsUri != null) + message.gcsUri = String(object.gcsUri); + switch (object.dataFormat) { + case "DATA_FORMAT_UNSPECIFIED": + case 0: + message.dataFormat = 0; + break; + case "BLOB": + case 1: + message.dataFormat = 1; + break; + case "JSON": + case 2: + message.dataFormat = 2; + break; + } + if (object.filter != null) + message.filter = String(object.filter); + return message; }; /** - * Creates a plain object from a RunTestCaseMetadata message. Also converts values to other types if specified. + * Creates a plain object from an ExportTestCasesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.RunTestCaseMetadata} message RunTestCaseMetadata + * @param {google.cloud.dialogflow.cx.v3.ExportTestCasesRequest} message ExportTestCasesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RunTestCaseMetadata.toObject = function toObject() { - return {}; + ExportTestCasesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.dataFormat = options.enums === String ? "DATA_FORMAT_UNSPECIFIED" : 0; + object.filter = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { + object.gcsUri = message.gcsUri; + if (options.oneofs) + object.destination = "gcsUri"; + } + if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) + object.dataFormat = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat[message.dataFormat] : message.dataFormat; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + return object; }; /** - * Converts this RunTestCaseMetadata to JSON. + * Converts this ExportTestCasesRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.RunTestCaseMetadata + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest * @instance * @returns {Object.} JSON object */ - RunTestCaseMetadata.prototype.toJSON = function toJSON() { + ExportTestCasesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RunTestCaseMetadata; + /** + * DataFormat enum. + * @name google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat + * @enum {number} + * @property {number} DATA_FORMAT_UNSPECIFIED=0 DATA_FORMAT_UNSPECIFIED value + * @property {number} BLOB=1 BLOB value + * @property {number} JSON=2 JSON value + */ + ExportTestCasesRequest.DataFormat = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DATA_FORMAT_UNSPECIFIED"] = 0; + values[valuesById[1] = "BLOB"] = 1; + values[valuesById[2] = "JSON"] = 2; + return values; + })(); + + return ExportTestCasesRequest; })(); - v3.BatchRunTestCasesRequest = (function() { + v3.ExportTestCasesResponse = (function() { /** - * Properties of a BatchRunTestCasesRequest. + * Properties of an ExportTestCasesResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IBatchRunTestCasesRequest - * @property {string|null} [parent] BatchRunTestCasesRequest parent - * @property {string|null} [environment] BatchRunTestCasesRequest environment - * @property {Array.|null} [testCases] BatchRunTestCasesRequest testCases + * @interface IExportTestCasesResponse + * @property {string|null} [gcsUri] ExportTestCasesResponse gcsUri + * @property {Uint8Array|null} [content] ExportTestCasesResponse content */ /** - * Constructs a new BatchRunTestCasesRequest. + * Constructs a new ExportTestCasesResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a BatchRunTestCasesRequest. - * @implements IBatchRunTestCasesRequest + * @classdesc Represents an ExportTestCasesResponse. + * @implements IExportTestCasesResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesResponse=} [properties] Properties to set */ - function BatchRunTestCasesRequest(properties) { - this.testCases = []; + function ExportTestCasesResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36560,104 +36507,102 @@ } /** - * BatchRunTestCasesRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest + * ExportTestCasesResponse gcsUri. + * @member {string|null|undefined} gcsUri + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse * @instance */ - BatchRunTestCasesRequest.prototype.parent = ""; + ExportTestCasesResponse.prototype.gcsUri = null; /** - * BatchRunTestCasesRequest environment. - * @member {string} environment - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest + * ExportTestCasesResponse content. + * @member {Uint8Array|null|undefined} content + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse * @instance */ - BatchRunTestCasesRequest.prototype.environment = ""; + ExportTestCasesResponse.prototype.content = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * BatchRunTestCasesRequest testCases. - * @member {Array.} testCases - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest + * ExportTestCasesResponse destination. + * @member {"gcsUri"|"content"|undefined} destination + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse * @instance */ - BatchRunTestCasesRequest.prototype.testCases = $util.emptyArray; + Object.defineProperty(ExportTestCasesResponse.prototype, "destination", { + get: $util.oneOfGetter($oneOfFields = ["gcsUri", "content"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new BatchRunTestCasesRequest instance using the specified properties. + * Creates a new ExportTestCasesResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest} BatchRunTestCasesRequest instance + * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesResponse} ExportTestCasesResponse instance */ - BatchRunTestCasesRequest.create = function create(properties) { - return new BatchRunTestCasesRequest(properties); + ExportTestCasesResponse.create = function create(properties) { + return new ExportTestCasesResponse(properties); }; /** - * Encodes the specified BatchRunTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest.verify|verify} messages. + * Encodes the specified ExportTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest} message BatchRunTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesResponse} message ExportTestCasesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchRunTestCasesRequest.encode = function encode(message, writer) { + ExportTestCasesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.environment); - if (message.testCases != null && message.testCases.length) - for (var i = 0; i < message.testCases.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.testCases[i]); + if (message.gcsUri != null && Object.hasOwnProperty.call(message, "gcsUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.gcsUri); + if (message.content != null && Object.hasOwnProperty.call(message, "content")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.content); return writer; }; /** - * Encodes the specified BatchRunTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest.verify|verify} messages. + * Encodes the specified ExportTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest} message BatchRunTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesResponse} message ExportTestCasesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchRunTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ExportTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchRunTestCasesRequest message from the specified reader or buffer. + * Decodes an ExportTestCasesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest} BatchRunTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesResponse} ExportTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchRunTestCasesRequest.decode = function decode(reader, length) { + ExportTestCasesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ExportTestCasesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.gcsUri = reader.string(); break; case 2: - message.environment = reader.string(); - break; - case 3: - if (!(message.testCases && message.testCases.length)) - message.testCases = []; - message.testCases.push(reader.string()); + message.content = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -36668,138 +36613,127 @@ }; /** - * Decodes a BatchRunTestCasesRequest message from the specified reader or buffer, length delimited. + * Decodes an ExportTestCasesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest} BatchRunTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesResponse} ExportTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchRunTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { + ExportTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchRunTestCasesRequest message. + * Verifies an ExportTestCasesResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchRunTestCasesRequest.verify = function verify(message) { + ExportTestCasesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.environment != null && message.hasOwnProperty("environment")) - if (!$util.isString(message.environment)) - return "environment: string expected"; - if (message.testCases != null && message.hasOwnProperty("testCases")) { - if (!Array.isArray(message.testCases)) - return "testCases: array expected"; - for (var i = 0; i < message.testCases.length; ++i) - if (!$util.isString(message.testCases[i])) - return "testCases: string[] expected"; + var properties = {}; + if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { + properties.destination = 1; + if (!$util.isString(message.gcsUri)) + return "gcsUri: string expected"; + } + if (message.content != null && message.hasOwnProperty("content")) { + if (properties.destination === 1) + return "destination: multiple values"; + properties.destination = 1; + if (!(message.content && typeof message.content.length === "number" || $util.isString(message.content))) + return "content: buffer expected"; } return null; }; /** - * Creates a BatchRunTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExportTestCasesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest} BatchRunTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesResponse} ExportTestCasesResponse */ - BatchRunTestCasesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest) + ExportTestCasesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ExportTestCasesResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.environment != null) - message.environment = String(object.environment); - if (object.testCases) { - if (!Array.isArray(object.testCases)) - throw TypeError(".google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest.testCases: array expected"); - message.testCases = []; - for (var i = 0; i < object.testCases.length; ++i) - message.testCases[i] = String(object.testCases[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3.ExportTestCasesResponse(); + if (object.gcsUri != null) + message.gcsUri = String(object.gcsUri); + if (object.content != null) + if (typeof object.content === "string") + $util.base64.decode(object.content, message.content = $util.newBuffer($util.base64.length(object.content)), 0); + else if (object.content.length) + message.content = object.content; return message; }; /** - * Creates a plain object from a BatchRunTestCasesRequest message. Also converts values to other types if specified. + * Creates a plain object from an ExportTestCasesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest} message BatchRunTestCasesRequest + * @param {google.cloud.dialogflow.cx.v3.ExportTestCasesResponse} message ExportTestCasesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchRunTestCasesRequest.toObject = function toObject(message, options) { + ExportTestCasesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.testCases = []; - if (options.defaults) { - object.parent = ""; - object.environment = ""; + if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { + object.gcsUri = message.gcsUri; + if (options.oneofs) + object.destination = "gcsUri"; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = message.environment; - if (message.testCases && message.testCases.length) { - object.testCases = []; - for (var j = 0; j < message.testCases.length; ++j) - object.testCases[j] = message.testCases[j]; + if (message.content != null && message.hasOwnProperty("content")) { + object.content = options.bytes === String ? $util.base64.encode(message.content, 0, message.content.length) : options.bytes === Array ? Array.prototype.slice.call(message.content) : message.content; + if (options.oneofs) + object.destination = "content"; } return object; }; /** - * Converts this BatchRunTestCasesRequest to JSON. + * Converts this ExportTestCasesResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse * @instance * @returns {Object.} JSON object */ - BatchRunTestCasesRequest.prototype.toJSON = function toJSON() { + ExportTestCasesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchRunTestCasesRequest; + return ExportTestCasesResponse; })(); - v3.BatchRunTestCasesResponse = (function() { + v3.ExportTestCasesMetadata = (function() { /** - * Properties of a BatchRunTestCasesResponse. + * Properties of an ExportTestCasesMetadata. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IBatchRunTestCasesResponse - * @property {Array.|null} [results] BatchRunTestCasesResponse results + * @interface IExportTestCasesMetadata */ /** - * Constructs a new BatchRunTestCasesResponse. + * Constructs a new ExportTestCasesMetadata. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a BatchRunTestCasesResponse. - * @implements IBatchRunTestCasesResponse + * @classdesc Represents an ExportTestCasesMetadata. + * @implements IExportTestCasesMetadata * @constructor - * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesMetadata=} [properties] Properties to set */ - function BatchRunTestCasesResponse(properties) { - this.results = []; + function ExportTestCasesMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36807,79 +36741,63 @@ } /** - * BatchRunTestCasesResponse results. - * @member {Array.} results - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse - * @instance - */ - BatchRunTestCasesResponse.prototype.results = $util.emptyArray; - - /** - * Creates a new BatchRunTestCasesResponse instance using the specified properties. + * Creates a new ExportTestCasesMetadata instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse} BatchRunTestCasesResponse instance + * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesMetadata=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata} ExportTestCasesMetadata instance */ - BatchRunTestCasesResponse.create = function create(properties) { - return new BatchRunTestCasesResponse(properties); + ExportTestCasesMetadata.create = function create(properties) { + return new ExportTestCasesMetadata(properties); }; /** - * Encodes the specified BatchRunTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse.verify|verify} messages. + * Encodes the specified ExportTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesResponse} message BatchRunTestCasesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesMetadata} message ExportTestCasesMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchRunTestCasesResponse.encode = function encode(message, writer) { + ExportTestCasesMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.results != null && message.results.length) - for (var i = 0; i < message.results.length; ++i) - $root.google.cloud.dialogflow.cx.v3.TestCaseResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified BatchRunTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse.verify|verify} messages. + * Encodes the specified ExportTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesResponse} message BatchRunTestCasesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesMetadata} message ExportTestCasesMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchRunTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ExportTestCasesMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchRunTestCasesResponse message from the specified reader or buffer. + * Decodes an ExportTestCasesMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse} BatchRunTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata} ExportTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchRunTestCasesResponse.decode = function decode(reader, length) { + ExportTestCasesMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.results && message.results.length)) - message.results = []; - message.results.push($root.google.cloud.dialogflow.cx.v3.TestCaseResult.decode(reader, reader.uint32())); - break; default: reader.skipType(tag & 7); break; @@ -36889,125 +36807,97 @@ }; /** - * Decodes a BatchRunTestCasesResponse message from the specified reader or buffer, length delimited. + * Decodes an ExportTestCasesMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse} BatchRunTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata} ExportTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchRunTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { + ExportTestCasesMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchRunTestCasesResponse message. + * Verifies an ExportTestCasesMetadata message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchRunTestCasesResponse.verify = function verify(message) { + ExportTestCasesMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.results != null && message.hasOwnProperty("results")) { - if (!Array.isArray(message.results)) - return "results: array expected"; - for (var i = 0; i < message.results.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.verify(message.results[i]); - if (error) - return "results." + error; - } - } return null; }; /** - * Creates a BatchRunTestCasesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExportTestCasesMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse} BatchRunTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata} ExportTestCasesMetadata */ - BatchRunTestCasesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse) + ExportTestCasesMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse(); - if (object.results) { - if (!Array.isArray(object.results)) - throw TypeError(".google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse.results: array expected"); - message.results = []; - for (var i = 0; i < object.results.length; ++i) { - if (typeof object.results[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse.results: object expected"); - message.results[i] = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.fromObject(object.results[i]); - } - } - return message; + return new $root.google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata(); }; /** - * Creates a plain object from a BatchRunTestCasesResponse message. Also converts values to other types if specified. + * Creates a plain object from an ExportTestCasesMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse} message BatchRunTestCasesResponse + * @param {google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata} message ExportTestCasesMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchRunTestCasesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.results = []; - if (message.results && message.results.length) { - object.results = []; - for (var j = 0; j < message.results.length; ++j) - object.results[j] = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.toObject(message.results[j], options); - } - return object; + ExportTestCasesMetadata.toObject = function toObject() { + return {}; }; /** - * Converts this BatchRunTestCasesResponse to JSON. + * Converts this ExportTestCasesMetadata to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata * @instance * @returns {Object.} JSON object */ - BatchRunTestCasesResponse.prototype.toJSON = function toJSON() { + ExportTestCasesMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchRunTestCasesResponse; + return ExportTestCasesMetadata; })(); - v3.BatchRunTestCasesMetadata = (function() { + v3.ListTestCaseResultsRequest = (function() { /** - * Properties of a BatchRunTestCasesMetadata. + * Properties of a ListTestCaseResultsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IBatchRunTestCasesMetadata - * @property {Array.|null} [errors] BatchRunTestCasesMetadata errors + * @interface IListTestCaseResultsRequest + * @property {string|null} [parent] ListTestCaseResultsRequest parent + * @property {number|null} [pageSize] ListTestCaseResultsRequest pageSize + * @property {string|null} [pageToken] ListTestCaseResultsRequest pageToken + * @property {string|null} [filter] ListTestCaseResultsRequest filter */ /** - * Constructs a new BatchRunTestCasesMetadata. + * Constructs a new ListTestCaseResultsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a BatchRunTestCasesMetadata. - * @implements IBatchRunTestCasesMetadata + * @classdesc Represents a ListTestCaseResultsRequest. + * @implements IListTestCaseResultsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesMetadata=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest=} [properties] Properties to set */ - function BatchRunTestCasesMetadata(properties) { - this.errors = []; + function ListTestCaseResultsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37015,78 +36905,114 @@ } /** - * BatchRunTestCasesMetadata errors. - * @member {Array.} errors - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata + * ListTestCaseResultsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest * @instance */ - BatchRunTestCasesMetadata.prototype.errors = $util.emptyArray; + ListTestCaseResultsRequest.prototype.parent = ""; /** - * Creates a new BatchRunTestCasesMetadata instance using the specified properties. + * ListTestCaseResultsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest + * @instance + */ + ListTestCaseResultsRequest.prototype.pageSize = 0; + + /** + * ListTestCaseResultsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest + * @instance + */ + ListTestCaseResultsRequest.prototype.pageToken = ""; + + /** + * ListTestCaseResultsRequest filter. + * @member {string} filter + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest + * @instance + */ + ListTestCaseResultsRequest.prototype.filter = ""; + + /** + * Creates a new ListTestCaseResultsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesMetadata=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata instance + * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest} ListTestCaseResultsRequest instance */ - BatchRunTestCasesMetadata.create = function create(properties) { - return new BatchRunTestCasesMetadata(properties); + ListTestCaseResultsRequest.create = function create(properties) { + return new ListTestCaseResultsRequest(properties); }; /** - * Encodes the specified BatchRunTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata.verify|verify} messages. + * Encodes the specified ListTestCaseResultsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesMetadata} message BatchRunTestCasesMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest} message ListTestCaseResultsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchRunTestCasesMetadata.encode = function encode(message, writer) { + ListTestCaseResultsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.errors != null && message.errors.length) - for (var i = 0; i < message.errors.length; ++i) - $root.google.cloud.dialogflow.cx.v3.TestError.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); return writer; }; /** - * Encodes the specified BatchRunTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata.verify|verify} messages. + * Encodes the specified ListTestCaseResultsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IBatchRunTestCasesMetadata} message BatchRunTestCasesMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest} message ListTestCaseResultsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchRunTestCasesMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ListTestCaseResultsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchRunTestCasesMetadata message from the specified reader or buffer. + * Decodes a ListTestCaseResultsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata + * @returns {google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest} ListTestCaseResultsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchRunTestCasesMetadata.decode = function decode(reader, length) { + ListTestCaseResultsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.errors && message.errors.length)) - message.errors = []; - message.errors.push($root.google.cloud.dialogflow.cx.v3.TestError.decode(reader, reader.uint32())); + message.parent = reader.string(); + break; + case 2: + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); + break; + case 4: + message.filter = reader.string(); break; default: reader.skipType(tag & 7); @@ -37097,126 +37023,134 @@ }; /** - * Decodes a BatchRunTestCasesMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListTestCaseResultsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata + * @returns {google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest} ListTestCaseResultsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchRunTestCasesMetadata.decodeDelimited = function decodeDelimited(reader) { + ListTestCaseResultsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchRunTestCasesMetadata message. + * Verifies a ListTestCaseResultsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchRunTestCasesMetadata.verify = function verify(message) { + ListTestCaseResultsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.errors != null && message.hasOwnProperty("errors")) { - if (!Array.isArray(message.errors)) - return "errors: array expected"; - for (var i = 0; i < message.errors.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.TestError.verify(message.errors[i]); - if (error) - return "errors." + error; - } - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; return null; }; /** - * Creates a BatchRunTestCasesMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListTestCaseResultsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata + * @returns {google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest} ListTestCaseResultsRequest */ - BatchRunTestCasesMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata) + ListTestCaseResultsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata(); - if (object.errors) { - if (!Array.isArray(object.errors)) - throw TypeError(".google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata.errors: array expected"); - message.errors = []; - for (var i = 0; i < object.errors.length; ++i) { - if (typeof object.errors[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata.errors: object expected"); - message.errors[i] = $root.google.cloud.dialogflow.cx.v3.TestError.fromObject(object.errors[i]); - } - } + var message = new $root.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); return message; }; /** - * Creates a plain object from a BatchRunTestCasesMetadata message. Also converts values to other types if specified. + * Creates a plain object from a ListTestCaseResultsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata} message BatchRunTestCasesMetadata + * @param {google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest} message ListTestCaseResultsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchRunTestCasesMetadata.toObject = function toObject(message, options) { + ListTestCaseResultsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.errors = []; - if (message.errors && message.errors.length) { - object.errors = []; - for (var j = 0; j < message.errors.length; ++j) - object.errors[j] = $root.google.cloud.dialogflow.cx.v3.TestError.toObject(message.errors[j], options); + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; return object; }; /** - * Converts this BatchRunTestCasesMetadata to JSON. + * Converts this ListTestCaseResultsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest * @instance * @returns {Object.} JSON object */ - BatchRunTestCasesMetadata.prototype.toJSON = function toJSON() { + ListTestCaseResultsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchRunTestCasesMetadata; + return ListTestCaseResultsRequest; })(); - v3.TestError = (function() { + v3.ListTestCaseResultsResponse = (function() { /** - * Properties of a TestError. + * Properties of a ListTestCaseResultsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ITestError - * @property {string|null} [testCase] TestError testCase - * @property {google.rpc.IStatus|null} [status] TestError status - * @property {google.protobuf.ITimestamp|null} [testTime] TestError testTime + * @interface IListTestCaseResultsResponse + * @property {Array.|null} [testCaseResults] ListTestCaseResultsResponse testCaseResults + * @property {string|null} [nextPageToken] ListTestCaseResultsResponse nextPageToken */ /** - * Constructs a new TestError. + * Constructs a new ListTestCaseResultsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a TestError. - * @implements ITestError + * @classdesc Represents a ListTestCaseResultsResponse. + * @implements IListTestCaseResultsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.ITestError=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsResponse=} [properties] Properties to set */ - function TestError(properties) { + function ListTestCaseResultsResponse(properties) { + this.testCaseResults = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37224,101 +37158,91 @@ } /** - * TestError testCase. - * @member {string} testCase - * @memberof google.cloud.dialogflow.cx.v3.TestError + * ListTestCaseResultsResponse testCaseResults. + * @member {Array.} testCaseResults + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse * @instance */ - TestError.prototype.testCase = ""; + ListTestCaseResultsResponse.prototype.testCaseResults = $util.emptyArray; /** - * TestError status. - * @member {google.rpc.IStatus|null|undefined} status - * @memberof google.cloud.dialogflow.cx.v3.TestError + * ListTestCaseResultsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse * @instance */ - TestError.prototype.status = null; + ListTestCaseResultsResponse.prototype.nextPageToken = ""; /** - * TestError testTime. - * @member {google.protobuf.ITimestamp|null|undefined} testTime - * @memberof google.cloud.dialogflow.cx.v3.TestError - * @instance - */ - TestError.prototype.testTime = null; - - /** - * Creates a new TestError instance using the specified properties. + * Creates a new ListTestCaseResultsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.TestError + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ITestError=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.TestError} TestError instance + * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse} ListTestCaseResultsResponse instance */ - TestError.create = function create(properties) { - return new TestError(properties); + ListTestCaseResultsResponse.create = function create(properties) { + return new ListTestCaseResultsResponse(properties); }; /** - * Encodes the specified TestError message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestError.verify|verify} messages. + * Encodes the specified ListTestCaseResultsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.TestError + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ITestError} message TestError message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsResponse} message ListTestCaseResultsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestError.encode = function encode(message, writer) { + ListTestCaseResultsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.testCase != null && Object.hasOwnProperty.call(message, "testCase")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.testCase); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.testTime != null && Object.hasOwnProperty.call(message, "testTime")) - $root.google.protobuf.Timestamp.encode(message.testTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.testCaseResults != null && message.testCaseResults.length) + for (var i = 0; i < message.testCaseResults.length; ++i) + $root.google.cloud.dialogflow.cx.v3.TestCaseResult.encode(message.testCaseResults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified TestError message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestError.verify|verify} messages. + * Encodes the specified ListTestCaseResultsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TestError + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ITestError} message TestError message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsResponse} message ListTestCaseResultsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestError.encodeDelimited = function encodeDelimited(message, writer) { + ListTestCaseResultsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestError message from the specified reader or buffer. + * Decodes a ListTestCaseResultsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.TestError + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.TestError} TestError + * @returns {google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse} ListTestCaseResultsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestError.decode = function decode(reader, length) { + ListTestCaseResultsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TestError(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.testCase = reader.string(); + if (!(message.testCaseResults && message.testCaseResults.length)) + message.testCaseResults = []; + message.testCaseResults.push($root.google.cloud.dialogflow.cx.v3.TestCaseResult.decode(reader, reader.uint32())); break; case 2: - message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - case 3: - message.testTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -37329,136 +37253,133 @@ }; /** - * Decodes a TestError message from the specified reader or buffer, length delimited. + * Decodes a ListTestCaseResultsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TestError + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.TestError} TestError + * @returns {google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse} ListTestCaseResultsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestError.decodeDelimited = function decodeDelimited(reader) { + ListTestCaseResultsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestError message. + * Verifies a ListTestCaseResultsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.TestError + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestError.verify = function verify(message) { + ListTestCaseResultsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.testCase != null && message.hasOwnProperty("testCase")) - if (!$util.isString(message.testCase)) - return "testCase: string expected"; - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.google.rpc.Status.verify(message.status); - if (error) - return "status." + error; - } - if (message.testTime != null && message.hasOwnProperty("testTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.testTime); - if (error) - return "testTime." + error; + if (message.testCaseResults != null && message.hasOwnProperty("testCaseResults")) { + if (!Array.isArray(message.testCaseResults)) + return "testCaseResults: array expected"; + for (var i = 0; i < message.testCaseResults.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.verify(message.testCaseResults[i]); + if (error) + return "testCaseResults." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a TestError message from a plain object. Also converts values to their respective internal types. + * Creates a ListTestCaseResultsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.TestError + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.TestError} TestError + * @returns {google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse} ListTestCaseResultsResponse */ - TestError.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.TestError) + ListTestCaseResultsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.TestError(); - if (object.testCase != null) - message.testCase = String(object.testCase); - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TestError.status: object expected"); - message.status = $root.google.rpc.Status.fromObject(object.status); - } - if (object.testTime != null) { - if (typeof object.testTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TestError.testTime: object expected"); - message.testTime = $root.google.protobuf.Timestamp.fromObject(object.testTime); + var message = new $root.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse(); + if (object.testCaseResults) { + if (!Array.isArray(object.testCaseResults)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse.testCaseResults: array expected"); + message.testCaseResults = []; + for (var i = 0; i < object.testCaseResults.length; ++i) { + if (typeof object.testCaseResults[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse.testCaseResults: object expected"); + message.testCaseResults[i] = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.fromObject(object.testCaseResults[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a TestError message. Also converts values to other types if specified. + * Creates a plain object from a ListTestCaseResultsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.TestError + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.TestError} message TestError + * @param {google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse} message ListTestCaseResultsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestError.toObject = function toObject(message, options) { + ListTestCaseResultsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.testCase = ""; - object.status = null; - object.testTime = null; + if (options.arrays || options.defaults) + object.testCaseResults = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.testCaseResults && message.testCaseResults.length) { + object.testCaseResults = []; + for (var j = 0; j < message.testCaseResults.length; ++j) + object.testCaseResults[j] = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.toObject(message.testCaseResults[j], options); } - if (message.testCase != null && message.hasOwnProperty("testCase")) - object.testCase = message.testCase; - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.google.rpc.Status.toObject(message.status, options); - if (message.testTime != null && message.hasOwnProperty("testTime")) - object.testTime = $root.google.protobuf.Timestamp.toObject(message.testTime, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this TestError to JSON. + * Converts this ListTestCaseResultsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.TestError + * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse * @instance * @returns {Object.} JSON object */ - TestError.prototype.toJSON = function toJSON() { + ListTestCaseResultsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TestError; + return ListTestCaseResultsResponse; })(); - v3.ImportTestCasesRequest = (function() { + v3.GetTestCaseResultRequest = (function() { /** - * Properties of an ImportTestCasesRequest. + * Properties of a GetTestCaseResultRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IImportTestCasesRequest - * @property {string|null} [parent] ImportTestCasesRequest parent - * @property {string|null} [gcsUri] ImportTestCasesRequest gcsUri - * @property {Uint8Array|null} [content] ImportTestCasesRequest content + * @interface IGetTestCaseResultRequest + * @property {string|null} [name] GetTestCaseResultRequest name */ /** - * Constructs a new ImportTestCasesRequest. + * Constructs a new GetTestCaseResultRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an ImportTestCasesRequest. - * @implements IImportTestCasesRequest + * @classdesc Represents a GetTestCaseResultRequest. + * @implements IGetTestCaseResultRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseResultRequest=} [properties] Properties to set */ - function ImportTestCasesRequest(properties) { + function GetTestCaseResultRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37466,115 +37387,75 @@ } /** - * ImportTestCasesRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest - * @instance - */ - ImportTestCasesRequest.prototype.parent = ""; - - /** - * ImportTestCasesRequest gcsUri. - * @member {string|null|undefined} gcsUri - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest - * @instance - */ - ImportTestCasesRequest.prototype.gcsUri = null; - - /** - * ImportTestCasesRequest content. - * @member {Uint8Array|null|undefined} content - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest - * @instance - */ - ImportTestCasesRequest.prototype.content = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * ImportTestCasesRequest source. - * @member {"gcsUri"|"content"|undefined} source - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest + * GetTestCaseResultRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest * @instance */ - Object.defineProperty(ImportTestCasesRequest.prototype, "source", { - get: $util.oneOfGetter($oneOfFields = ["gcsUri", "content"]), - set: $util.oneOfSetter($oneOfFields) - }); + GetTestCaseResultRequest.prototype.name = ""; /** - * Creates a new ImportTestCasesRequest instance using the specified properties. + * Creates a new GetTestCaseResultRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesRequest} ImportTestCasesRequest instance + * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseResultRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest} GetTestCaseResultRequest instance */ - ImportTestCasesRequest.create = function create(properties) { - return new ImportTestCasesRequest(properties); + GetTestCaseResultRequest.create = function create(properties) { + return new GetTestCaseResultRequest(properties); }; /** - * Encodes the specified ImportTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesRequest.verify|verify} messages. + * Encodes the specified GetTestCaseResultRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesRequest} message ImportTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseResultRequest} message GetTestCaseResultRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportTestCasesRequest.encode = function encode(message, writer) { + GetTestCaseResultRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.gcsUri != null && Object.hasOwnProperty.call(message, "gcsUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.gcsUri); - if (message.content != null && Object.hasOwnProperty.call(message, "content")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.content); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ImportTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesRequest.verify|verify} messages. + * Encodes the specified GetTestCaseResultRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesRequest} message ImportTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseResultRequest} message GetTestCaseResultRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetTestCaseResultRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportTestCasesRequest message from the specified reader or buffer. + * Decodes a GetTestCaseResultRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesRequest} ImportTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest} GetTestCaseResultRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportTestCasesRequest.decode = function decode(reader, length) { + GetTestCaseResultRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ImportTestCasesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - message.gcsUri = reader.string(); - break; - case 3: - message.content = reader.bytes(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -37585,341 +37466,333 @@ }; /** - * Decodes an ImportTestCasesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetTestCaseResultRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesRequest} ImportTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest} GetTestCaseResultRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { + GetTestCaseResultRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImportTestCasesRequest message. + * Verifies a GetTestCaseResultRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ImportTestCasesRequest.verify = function verify(message) { + GetTestCaseResultRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { - properties.source = 1; - if (!$util.isString(message.gcsUri)) - return "gcsUri: string expected"; - } - if (message.content != null && message.hasOwnProperty("content")) { - if (properties.source === 1) - return "source: multiple values"; - properties.source = 1; - if (!(message.content && typeof message.content.length === "number" || $util.isString(message.content))) - return "content: buffer expected"; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an ImportTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetTestCaseResultRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesRequest} ImportTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest} GetTestCaseResultRequest */ - ImportTestCasesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ImportTestCasesRequest) + GetTestCaseResultRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ImportTestCasesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.gcsUri != null) - message.gcsUri = String(object.gcsUri); - if (object.content != null) - if (typeof object.content === "string") - $util.base64.decode(object.content, message.content = $util.newBuffer($util.base64.length(object.content)), 0); - else if (object.content.length) - message.content = object.content; + var message = new $root.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an ImportTestCasesRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetTestCaseResultRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ImportTestCasesRequest} message ImportTestCasesRequest + * @param {google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest} message GetTestCaseResultRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportTestCasesRequest.toObject = function toObject(message, options) { + GetTestCaseResultRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.parent = ""; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { - object.gcsUri = message.gcsUri; - if (options.oneofs) - object.source = "gcsUri"; - } - if (message.content != null && message.hasOwnProperty("content")) { - object.content = options.bytes === String ? $util.base64.encode(message.content, 0, message.content.length) : options.bytes === Array ? Array.prototype.slice.call(message.content) : message.content; - if (options.oneofs) - object.source = "content"; - } + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ImportTestCasesRequest to JSON. + * Converts this GetTestCaseResultRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest * @instance * @returns {Object.} JSON object */ - ImportTestCasesRequest.prototype.toJSON = function toJSON() { + GetTestCaseResultRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ImportTestCasesRequest; + return GetTestCaseResultRequest; })(); - v3.ImportTestCasesResponse = (function() { + /** + * TestResult enum. + * @name google.cloud.dialogflow.cx.v3.TestResult + * @enum {number} + * @property {number} TEST_RESULT_UNSPECIFIED=0 TEST_RESULT_UNSPECIFIED value + * @property {number} PASSED=1 PASSED value + * @property {number} FAILED=2 FAILED value + */ + v3.TestResult = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TEST_RESULT_UNSPECIFIED"] = 0; + values[valuesById[1] = "PASSED"] = 1; + values[valuesById[2] = "FAILED"] = 2; + return values; + })(); - /** - * Properties of an ImportTestCasesResponse. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IImportTestCasesResponse - * @property {Array.|null} [names] ImportTestCasesResponse names - */ + v3.Intents = (function() { /** - * Constructs a new ImportTestCasesResponse. + * Constructs a new Intents service. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an ImportTestCasesResponse. - * @implements IImportTestCasesResponse + * @classdesc Represents an Intents + * @extends $protobuf.rpc.Service * @constructor - * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesResponse=} [properties] Properties to set + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - function ImportTestCasesResponse(properties) { - this.names = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + function Intents(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - /** - * ImportTestCasesResponse names. - * @member {Array.} names - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse - * @instance - */ - ImportTestCasesResponse.prototype.names = $util.emptyArray; + (Intents.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Intents; /** - * Creates a new ImportTestCasesResponse instance using the specified properties. + * Creates new Intents service using the specified rpc implementation. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.Intents * @static - * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesResponse} ImportTestCasesResponse instance + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {Intents} RPC service. Useful where requests and/or responses are streamed. */ - ImportTestCasesResponse.create = function create(properties) { - return new ImportTestCasesResponse(properties); + Intents.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Encodes the specified ImportTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesResponse} message ImportTestCasesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#listIntents}. + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @typedef ListIntentsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.ListIntentsResponse} [response] ListIntentsResponse */ - ImportTestCasesResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.names != null && message.names.length) - for (var i = 0; i < message.names.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.names[i]); - return writer; - }; /** - * Encodes the specified ImportTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesResponse} message ImportTestCasesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ListIntents. + * @function listIntents + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3.IListIntentsRequest} request ListIntentsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Intents.ListIntentsCallback} callback Node-style callback called with the error, if any, and ListIntentsResponse + * @returns {undefined} + * @variation 1 */ - ImportTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(Intents.prototype.listIntents = function listIntents(request, callback) { + return this.rpcCall(listIntents, $root.google.cloud.dialogflow.cx.v3.ListIntentsRequest, $root.google.cloud.dialogflow.cx.v3.ListIntentsResponse, request, callback); + }, "name", { value: "ListIntents" }); /** - * Decodes an ImportTestCasesResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesResponse} ImportTestCasesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListIntents. + * @function listIntents + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3.IListIntentsRequest} request ListIntentsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ImportTestCasesResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ImportTestCasesResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.names && message.names.length)) - message.names = []; - message.names.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes an ImportTestCasesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesResponse} ImportTestCasesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#getIntent}. + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @typedef GetIntentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.Intent} [response] Intent */ - ImportTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies an ImportTestCasesResponse message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls GetIntent. + * @function getIntent + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetIntentRequest} request GetIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Intents.GetIntentCallback} callback Node-style callback called with the error, if any, and Intent + * @returns {undefined} + * @variation 1 */ - ImportTestCasesResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.names != null && message.hasOwnProperty("names")) { - if (!Array.isArray(message.names)) - return "names: array expected"; - for (var i = 0; i < message.names.length; ++i) - if (!$util.isString(message.names[i])) - return "names: string[] expected"; - } - return null; - }; + Object.defineProperty(Intents.prototype.getIntent = function getIntent(request, callback) { + return this.rpcCall(getIntent, $root.google.cloud.dialogflow.cx.v3.GetIntentRequest, $root.google.cloud.dialogflow.cx.v3.Intent, request, callback); + }, "name", { value: "GetIntent" }); /** - * Creates an ImportTestCasesResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesResponse} ImportTestCasesResponse + * Calls GetIntent. + * @function getIntent + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetIntentRequest} request GetIntentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ImportTestCasesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ImportTestCasesResponse) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ImportTestCasesResponse(); - if (object.names) { - if (!Array.isArray(object.names)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ImportTestCasesResponse.names: array expected"); - message.names = []; - for (var i = 0; i < object.names.length; ++i) - message.names[i] = String(object.names[i]); - } - return message; - }; /** - * Creates a plain object from an ImportTestCasesResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.ImportTestCasesResponse} message ImportTestCasesResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#createIntent}. + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @typedef CreateIntentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.Intent} [response] Intent */ - ImportTestCasesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.names = []; - if (message.names && message.names.length) { - object.names = []; - for (var j = 0; j < message.names.length; ++j) - object.names[j] = message.names[j]; - } - return object; - }; /** - * Converts this ImportTestCasesResponse to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesResponse + * Calls CreateIntent. + * @function createIntent + * @memberof google.cloud.dialogflow.cx.v3.Intents * @instance - * @returns {Object.} JSON object + * @param {google.cloud.dialogflow.cx.v3.ICreateIntentRequest} request CreateIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Intents.CreateIntentCallback} callback Node-style callback called with the error, if any, and Intent + * @returns {undefined} + * @variation 1 */ - ImportTestCasesResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(Intents.prototype.createIntent = function createIntent(request, callback) { + return this.rpcCall(createIntent, $root.google.cloud.dialogflow.cx.v3.CreateIntentRequest, $root.google.cloud.dialogflow.cx.v3.Intent, request, callback); + }, "name", { value: "CreateIntent" }); - return ImportTestCasesResponse; + /** + * Calls CreateIntent. + * @function createIntent + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3.ICreateIntentRequest} request CreateIntentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#updateIntent}. + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @typedef UpdateIntentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.Intent} [response] Intent + */ + + /** + * Calls UpdateIntent. + * @function updateIntent + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateIntentRequest} request UpdateIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Intents.UpdateIntentCallback} callback Node-style callback called with the error, if any, and Intent + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Intents.prototype.updateIntent = function updateIntent(request, callback) { + return this.rpcCall(updateIntent, $root.google.cloud.dialogflow.cx.v3.UpdateIntentRequest, $root.google.cloud.dialogflow.cx.v3.Intent, request, callback); + }, "name", { value: "UpdateIntent" }); + + /** + * Calls UpdateIntent. + * @function updateIntent + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateIntentRequest} request UpdateIntentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#deleteIntent}. + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @typedef DeleteIntentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteIntent. + * @function deleteIntent + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteIntentRequest} request DeleteIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Intents.DeleteIntentCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Intents.prototype.deleteIntent = function deleteIntent(request, callback) { + return this.rpcCall(deleteIntent, $root.google.cloud.dialogflow.cx.v3.DeleteIntentRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteIntent" }); + + /** + * Calls DeleteIntent. + * @function deleteIntent + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteIntentRequest} request DeleteIntentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Intents; })(); - v3.ImportTestCasesMetadata = (function() { + v3.Intent = (function() { /** - * Properties of an ImportTestCasesMetadata. + * Properties of an Intent. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IImportTestCasesMetadata - * @property {Array.|null} [errors] ImportTestCasesMetadata errors + * @interface IIntent + * @property {string|null} [name] Intent name + * @property {string|null} [displayName] Intent displayName + * @property {Array.|null} [trainingPhrases] Intent trainingPhrases + * @property {Array.|null} [parameters] Intent parameters + * @property {number|null} [priority] Intent priority + * @property {boolean|null} [isFallback] Intent isFallback + * @property {Object.|null} [labels] Intent labels + * @property {string|null} [description] Intent description */ /** - * Constructs a new ImportTestCasesMetadata. + * Constructs a new Intent. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an ImportTestCasesMetadata. - * @implements IImportTestCasesMetadata + * @classdesc Represents an Intent. + * @implements IIntent * @constructor - * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesMetadata=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IIntent=} [properties] Properties to set */ - function ImportTestCasesMetadata(properties) { - this.errors = []; + function Intent(properties) { + this.trainingPhrases = []; + this.parameters = []; + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37927,78 +37800,192 @@ } /** - * ImportTestCasesMetadata errors. - * @member {Array.} errors - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata + * Intent name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.Intent * @instance */ - ImportTestCasesMetadata.prototype.errors = $util.emptyArray; + Intent.prototype.name = ""; /** - * Creates a new ImportTestCasesMetadata instance using the specified properties. + * Intent displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @instance + */ + Intent.prototype.displayName = ""; + + /** + * Intent trainingPhrases. + * @member {Array.} trainingPhrases + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @instance + */ + Intent.prototype.trainingPhrases = $util.emptyArray; + + /** + * Intent parameters. + * @member {Array.} parameters + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @instance + */ + Intent.prototype.parameters = $util.emptyArray; + + /** + * Intent priority. + * @member {number} priority + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @instance + */ + Intent.prototype.priority = 0; + + /** + * Intent isFallback. + * @member {boolean} isFallback + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @instance + */ + Intent.prototype.isFallback = false; + + /** + * Intent labels. + * @member {Object.} labels + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @instance + */ + Intent.prototype.labels = $util.emptyObject; + + /** + * Intent description. + * @member {string} description + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @instance + */ + Intent.prototype.description = ""; + + /** + * Creates a new Intent instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.Intent * @static - * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesMetadata=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata} ImportTestCasesMetadata instance + * @param {google.cloud.dialogflow.cx.v3.IIntent=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Intent} Intent instance */ - ImportTestCasesMetadata.create = function create(properties) { - return new ImportTestCasesMetadata(properties); + Intent.create = function create(properties) { + return new Intent(properties); }; /** - * Encodes the specified ImportTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata.verify|verify} messages. + * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.Intent * @static - * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesMetadata} message ImportTestCasesMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IIntent} message Intent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportTestCasesMetadata.encode = function encode(message, writer) { + Intent.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.errors != null && message.errors.length) - for (var i = 0; i < message.errors.length; ++i) - $root.google.cloud.dialogflow.cx.v3.TestCaseError.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.trainingPhrases != null && message.trainingPhrases.length) + for (var i = 0; i < message.trainingPhrases.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.encode(message.trainingPhrases[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.parameters != null && message.parameters.length) + for (var i = 0; i < message.parameters.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Intent.Parameter.encode(message.parameters[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.priority != null && Object.hasOwnProperty.call(message, "priority")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.priority); + if (message.isFallback != null && Object.hasOwnProperty.call(message, "isFallback")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isFallback); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.description); return writer; }; /** - * Encodes the specified ImportTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata.verify|verify} messages. + * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.Intent * @static - * @param {google.cloud.dialogflow.cx.v3.IImportTestCasesMetadata} message ImportTestCasesMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IIntent} message Intent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportTestCasesMetadata.encodeDelimited = function encodeDelimited(message, writer) { + Intent.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportTestCasesMetadata message from the specified reader or buffer. + * Decodes an Intent message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.Intent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata} ImportTestCasesMetadata + * @returns {google.cloud.dialogflow.cx.v3.Intent} Intent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportTestCasesMetadata.decode = function decode(reader, length) { + Intent.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Intent(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.errors && message.errors.length)) - message.errors = []; - message.errors.push($root.google.cloud.dialogflow.cx.v3.TestCaseError.decode(reader, reader.uint32())); + message.name = reader.string(); + break; + case 2: + message.displayName = reader.string(); + break; + case 3: + if (!(message.trainingPhrases && message.trainingPhrases.length)) + message.trainingPhrases = []; + message.trainingPhrases.push($root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.decode(reader, reader.uint32())); + break; + case 4: + if (!(message.parameters && message.parameters.length)) + message.parameters = []; + message.parameters.push($root.google.cloud.dialogflow.cx.v3.Intent.Parameter.decode(reader, reader.uint32())); + break; + case 5: + message.priority = reader.int32(); + break; + case 6: + message.isFallback = reader.bool(); + break; + case 7: + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + case 8: + message.description = reader.string(); break; default: reader.skipType(tag & 7); @@ -38009,347 +37996,937 @@ }; /** - * Decodes an ImportTestCasesMetadata message from the specified reader or buffer, length delimited. + * Decodes an Intent message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.Intent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata} ImportTestCasesMetadata + * @returns {google.cloud.dialogflow.cx.v3.Intent} Intent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportTestCasesMetadata.decodeDelimited = function decodeDelimited(reader) { + Intent.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImportTestCasesMetadata message. + * Verifies an Intent message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.Intent * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ImportTestCasesMetadata.verify = function verify(message) { + Intent.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.errors != null && message.hasOwnProperty("errors")) { - if (!Array.isArray(message.errors)) - return "errors: array expected"; - for (var i = 0; i < message.errors.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.TestCaseError.verify(message.errors[i]); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.trainingPhrases != null && message.hasOwnProperty("trainingPhrases")) { + if (!Array.isArray(message.trainingPhrases)) + return "trainingPhrases: array expected"; + for (var i = 0; i < message.trainingPhrases.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.verify(message.trainingPhrases[i]); if (error) - return "errors." + error; + return "trainingPhrases." + error; + } + } + if (message.parameters != null && message.hasOwnProperty("parameters")) { + if (!Array.isArray(message.parameters)) + return "parameters: array expected"; + for (var i = 0; i < message.parameters.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Intent.Parameter.verify(message.parameters[i]); + if (error) + return "parameters." + error; } } + if (message.priority != null && message.hasOwnProperty("priority")) + if (!$util.isInteger(message.priority)) + return "priority: integer expected"; + if (message.isFallback != null && message.hasOwnProperty("isFallback")) + if (typeof message.isFallback !== "boolean") + return "isFallback: boolean expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; return null; }; /** - * Creates an ImportTestCasesMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an Intent message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.Intent * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata} ImportTestCasesMetadata + * @returns {google.cloud.dialogflow.cx.v3.Intent} Intent */ - ImportTestCasesMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata) + Intent.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Intent) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata(); - if (object.errors) { - if (!Array.isArray(object.errors)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata.errors: array expected"); - message.errors = []; - for (var i = 0; i < object.errors.length; ++i) { - if (typeof object.errors[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata.errors: object expected"); - message.errors[i] = $root.google.cloud.dialogflow.cx.v3.TestCaseError.fromObject(object.errors[i]); + var message = new $root.google.cloud.dialogflow.cx.v3.Intent(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.trainingPhrases) { + if (!Array.isArray(object.trainingPhrases)) + throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.trainingPhrases: array expected"); + message.trainingPhrases = []; + for (var i = 0; i < object.trainingPhrases.length; ++i) { + if (typeof object.trainingPhrases[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.trainingPhrases: object expected"); + message.trainingPhrases[i] = $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.fromObject(object.trainingPhrases[i]); + } + } + if (object.parameters) { + if (!Array.isArray(object.parameters)) + throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.parameters: array expected"); + message.parameters = []; + for (var i = 0; i < object.parameters.length; ++i) { + if (typeof object.parameters[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.parameters: object expected"); + message.parameters[i] = $root.google.cloud.dialogflow.cx.v3.Intent.Parameter.fromObject(object.parameters[i]); } } + if (object.priority != null) + message.priority = object.priority | 0; + if (object.isFallback != null) + message.isFallback = Boolean(object.isFallback); + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.description != null) + message.description = String(object.description); return message; }; /** - * Creates a plain object from an ImportTestCasesMetadata message. Also converts values to other types if specified. + * Creates a plain object from an Intent message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.Intent * @static - * @param {google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata} message ImportTestCasesMetadata + * @param {google.cloud.dialogflow.cx.v3.Intent} message Intent * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportTestCasesMetadata.toObject = function toObject(message, options) { + Intent.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.errors = []; - if (message.errors && message.errors.length) { - object.errors = []; - for (var j = 0; j < message.errors.length; ++j) - object.errors[j] = $root.google.cloud.dialogflow.cx.v3.TestCaseError.toObject(message.errors[j], options); + if (options.arrays || options.defaults) { + object.trainingPhrases = []; + object.parameters = []; + } + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.priority = 0; + object.isFallback = false; + object.description = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.trainingPhrases && message.trainingPhrases.length) { + object.trainingPhrases = []; + for (var j = 0; j < message.trainingPhrases.length; ++j) + object.trainingPhrases[j] = $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.toObject(message.trainingPhrases[j], options); + } + if (message.parameters && message.parameters.length) { + object.parameters = []; + for (var j = 0; j < message.parameters.length; ++j) + object.parameters[j] = $root.google.cloud.dialogflow.cx.v3.Intent.Parameter.toObject(message.parameters[j], options); } + if (message.priority != null && message.hasOwnProperty("priority")) + object.priority = message.priority; + if (message.isFallback != null && message.hasOwnProperty("isFallback")) + object.isFallback = message.isFallback; + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; return object; }; /** - * Converts this ImportTestCasesMetadata to JSON. + * Converts this Intent to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.Intent * @instance * @returns {Object.} JSON object */ - ImportTestCasesMetadata.prototype.toJSON = function toJSON() { + Intent.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ImportTestCasesMetadata; - })(); + Intent.TrainingPhrase = (function() { - v3.TestCaseError = (function() { + /** + * Properties of a TrainingPhrase. + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @interface ITrainingPhrase + * @property {string|null} [id] TrainingPhrase id + * @property {Array.|null} [parts] TrainingPhrase parts + * @property {number|null} [repeatCount] TrainingPhrase repeatCount + */ - /** - * Properties of a TestCaseError. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface ITestCaseError - * @property {google.cloud.dialogflow.cx.v3.ITestCase|null} [testCase] TestCaseError testCase - * @property {google.rpc.IStatus|null} [status] TestCaseError status - */ + /** + * Constructs a new TrainingPhrase. + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @classdesc Represents a TrainingPhrase. + * @implements ITrainingPhrase + * @constructor + * @param {google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase=} [properties] Properties to set + */ + function TrainingPhrase(properties) { + this.parts = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new TestCaseError. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a TestCaseError. - * @implements ITestCaseError - * @constructor - * @param {google.cloud.dialogflow.cx.v3.ITestCaseError=} [properties] Properties to set - */ - function TestCaseError(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * TrainingPhrase id. + * @member {string} id + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @instance + */ + TrainingPhrase.prototype.id = ""; - /** - * TestCaseError testCase. - * @member {google.cloud.dialogflow.cx.v3.ITestCase|null|undefined} testCase - * @memberof google.cloud.dialogflow.cx.v3.TestCaseError - * @instance - */ - TestCaseError.prototype.testCase = null; + /** + * TrainingPhrase parts. + * @member {Array.} parts + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @instance + */ + TrainingPhrase.prototype.parts = $util.emptyArray; - /** - * TestCaseError status. - * @member {google.rpc.IStatus|null|undefined} status - * @memberof google.cloud.dialogflow.cx.v3.TestCaseError - * @instance - */ - TestCaseError.prototype.status = null; + /** + * TrainingPhrase repeatCount. + * @member {number} repeatCount + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @instance + */ + TrainingPhrase.prototype.repeatCount = 0; - /** - * Creates a new TestCaseError instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.TestCaseError - * @static - * @param {google.cloud.dialogflow.cx.v3.ITestCaseError=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.TestCaseError} TestCaseError instance - */ - TestCaseError.create = function create(properties) { - return new TestCaseError(properties); - }; + /** + * Creates a new TrainingPhrase instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase} TrainingPhrase instance + */ + TrainingPhrase.create = function create(properties) { + return new TrainingPhrase(properties); + }; - /** - * Encodes the specified TestCaseError message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCaseError.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.TestCaseError - * @static - * @param {google.cloud.dialogflow.cx.v3.ITestCaseError} message TestCaseError message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TestCaseError.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.testCase != null && Object.hasOwnProperty.call(message, "testCase")) - $root.google.cloud.dialogflow.cx.v3.TestCase.encode(message.testCase, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified TrainingPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase} message TrainingPhrase message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrainingPhrase.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.parts != null && message.parts.length) + for (var i = 0; i < message.parts.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.encode(message.parts[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.repeatCount != null && Object.hasOwnProperty.call(message, "repeatCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.repeatCount); + return writer; + }; - /** - * Encodes the specified TestCaseError message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TestCaseError.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TestCaseError - * @static - * @param {google.cloud.dialogflow.cx.v3.ITestCaseError} message TestCaseError message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TestCaseError.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified TrainingPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase} message TrainingPhrase message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrainingPhrase.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a TestCaseError message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.TestCaseError - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.TestCaseError} TestCaseError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TestCaseError.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TestCaseError(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.decode(reader, reader.uint32()); - break; - case 2: - message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Decodes a TrainingPhrase message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase} TrainingPhrase + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrainingPhrase.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + if (!(message.parts && message.parts.length)) + message.parts = []; + message.parts.push($root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.decode(reader, reader.uint32())); + break; + case 3: + message.repeatCount = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; - - /** - * Decodes a TestCaseError message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TestCaseError - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.TestCaseError} TestCaseError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TestCaseError.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + return message; + }; - /** - * Verifies a TestCaseError message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.TestCaseError - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TestCaseError.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.testCase != null && message.hasOwnProperty("testCase")) { - var error = $root.google.cloud.dialogflow.cx.v3.TestCase.verify(message.testCase); - if (error) - return "testCase." + error; - } - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.google.rpc.Status.verify(message.status); - if (error) - return "status." + error; - } - return null; - }; + /** + * Decodes a TrainingPhrase message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase} TrainingPhrase + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrainingPhrase.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a TestCaseError message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.TestCaseError - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.TestCaseError} TestCaseError - */ - TestCaseError.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.TestCaseError) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.TestCaseError(); - if (object.testCase != null) { - if (typeof object.testCase !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TestCaseError.testCase: object expected"); - message.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.fromObject(object.testCase); - } - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TestCaseError.status: object expected"); - message.status = $root.google.rpc.Status.fromObject(object.status); - } - return message; - }; + /** + * Verifies a TrainingPhrase message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TrainingPhrase.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.parts != null && message.hasOwnProperty("parts")) { + if (!Array.isArray(message.parts)) + return "parts: array expected"; + for (var i = 0; i < message.parts.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.verify(message.parts[i]); + if (error) + return "parts." + error; + } + } + if (message.repeatCount != null && message.hasOwnProperty("repeatCount")) + if (!$util.isInteger(message.repeatCount)) + return "repeatCount: integer expected"; + return null; + }; - /** - * Creates a plain object from a TestCaseError message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.TestCaseError - * @static - * @param {google.cloud.dialogflow.cx.v3.TestCaseError} message TestCaseError - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TestCaseError.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.testCase = null; - object.status = null; - } - if (message.testCase != null && message.hasOwnProperty("testCase")) - object.testCase = $root.google.cloud.dialogflow.cx.v3.TestCase.toObject(message.testCase, options); - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.google.rpc.Status.toObject(message.status, options); - return object; - }; + /** + * Creates a TrainingPhrase message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase} TrainingPhrase + */ + TrainingPhrase.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase(); + if (object.id != null) + message.id = String(object.id); + if (object.parts) { + if (!Array.isArray(object.parts)) + throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.parts: array expected"); + message.parts = []; + for (var i = 0; i < object.parts.length; ++i) { + if (typeof object.parts[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.parts: object expected"); + message.parts[i] = $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.fromObject(object.parts[i]); + } + } + if (object.repeatCount != null) + message.repeatCount = object.repeatCount | 0; + return message; + }; - /** - * Converts this TestCaseError to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.TestCaseError - * @instance - * @returns {Object.} JSON object - */ - TestCaseError.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a TrainingPhrase message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase} message TrainingPhrase + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TrainingPhrase.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.parts = []; + if (options.defaults) { + object.id = ""; + object.repeatCount = 0; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.parts && message.parts.length) { + object.parts = []; + for (var j = 0; j < message.parts.length; ++j) + object.parts[j] = $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.toObject(message.parts[j], options); + } + if (message.repeatCount != null && message.hasOwnProperty("repeatCount")) + object.repeatCount = message.repeatCount; + return object; + }; - return TestCaseError; - })(); + /** + * Converts this TrainingPhrase to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @instance + * @returns {Object.} JSON object + */ + TrainingPhrase.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - v3.ExportTestCasesRequest = (function() { + TrainingPhrase.Part = (function() { - /** - * Properties of an ExportTestCasesRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IExportTestCasesRequest - * @property {string|null} [parent] ExportTestCasesRequest parent - * @property {string|null} [gcsUri] ExportTestCasesRequest gcsUri - * @property {google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat|null} [dataFormat] ExportTestCasesRequest dataFormat - * @property {string|null} [filter] ExportTestCasesRequest filter - */ + /** + * Properties of a Part. + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @interface IPart + * @property {string|null} [text] Part text + * @property {string|null} [parameterId] Part parameterId + */ - /** - * Constructs a new ExportTestCasesRequest. + /** + * Constructs a new Part. + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @classdesc Represents a Part. + * @implements IPart + * @constructor + * @param {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart=} [properties] Properties to set + */ + function Part(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Part text. + * @member {string} text + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part + * @instance + */ + Part.prototype.text = ""; + + /** + * Part parameterId. + * @member {string} parameterId + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part + * @instance + */ + Part.prototype.parameterId = ""; + + /** + * Creates a new Part instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part} Part instance + */ + Part.create = function create(properties) { + return new Part(properties); + }; + + /** + * Encodes the specified Part message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart} message Part message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Part.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); + if (message.parameterId != null && Object.hasOwnProperty.call(message, "parameterId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parameterId); + return writer; + }; + + /** + * Encodes the specified Part message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart} message Part message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Part.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Part message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part} Part + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Part.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.text = reader.string(); + break; + case 2: + message.parameterId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Part message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part} Part + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Part.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Part message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Part.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.text != null && message.hasOwnProperty("text")) + if (!$util.isString(message.text)) + return "text: string expected"; + if (message.parameterId != null && message.hasOwnProperty("parameterId")) + if (!$util.isString(message.parameterId)) + return "parameterId: string expected"; + return null; + }; + + /** + * Creates a Part message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part} Part + */ + Part.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part(); + if (object.text != null) + message.text = String(object.text); + if (object.parameterId != null) + message.parameterId = String(object.parameterId); + return message; + }; + + /** + * Creates a plain object from a Part message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part} message Part + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Part.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.text = ""; + object.parameterId = ""; + } + if (message.text != null && message.hasOwnProperty("text")) + object.text = message.text; + if (message.parameterId != null && message.hasOwnProperty("parameterId")) + object.parameterId = message.parameterId; + return object; + }; + + /** + * Converts this Part to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part + * @instance + * @returns {Object.} JSON object + */ + Part.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Part; + })(); + + return TrainingPhrase; + })(); + + Intent.Parameter = (function() { + + /** + * Properties of a Parameter. + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @interface IParameter + * @property {string|null} [id] Parameter id + * @property {string|null} [entityType] Parameter entityType + * @property {boolean|null} [isList] Parameter isList + * @property {boolean|null} [redact] Parameter redact + */ + + /** + * Constructs a new Parameter. + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @classdesc Represents a Parameter. + * @implements IParameter + * @constructor + * @param {google.cloud.dialogflow.cx.v3.Intent.IParameter=} [properties] Properties to set + */ + function Parameter(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Parameter id. + * @member {string} id + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @instance + */ + Parameter.prototype.id = ""; + + /** + * Parameter entityType. + * @member {string} entityType + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @instance + */ + Parameter.prototype.entityType = ""; + + /** + * Parameter isList. + * @member {boolean} isList + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @instance + */ + Parameter.prototype.isList = false; + + /** + * Parameter redact. + * @member {boolean} redact + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @instance + */ + Parameter.prototype.redact = false; + + /** + * Creates a new Parameter instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.IParameter=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Intent.Parameter} Parameter instance + */ + Parameter.create = function create(properties) { + return new Parameter(properties); + }; + + /** + * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.Parameter.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.IParameter} message Parameter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Parameter.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityType); + if (message.isList != null && Object.hasOwnProperty.call(message, "isList")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isList); + if (message.redact != null && Object.hasOwnProperty.call(message, "redact")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.redact); + return writer; + }; + + /** + * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.Parameter.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.IParameter} message Parameter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Parameter.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Parameter message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.Intent.Parameter} Parameter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Parameter.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Intent.Parameter(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.entityType = reader.string(); + break; + case 3: + message.isList = reader.bool(); + break; + case 4: + message.redact = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Parameter message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.Intent.Parameter} Parameter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Parameter.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Parameter message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Parameter.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.entityType != null && message.hasOwnProperty("entityType")) + if (!$util.isString(message.entityType)) + return "entityType: string expected"; + if (message.isList != null && message.hasOwnProperty("isList")) + if (typeof message.isList !== "boolean") + return "isList: boolean expected"; + if (message.redact != null && message.hasOwnProperty("redact")) + if (typeof message.redact !== "boolean") + return "redact: boolean expected"; + return null; + }; + + /** + * Creates a Parameter message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.Intent.Parameter} Parameter + */ + Parameter.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Intent.Parameter) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.Intent.Parameter(); + if (object.id != null) + message.id = String(object.id); + if (object.entityType != null) + message.entityType = String(object.entityType); + if (object.isList != null) + message.isList = Boolean(object.isList); + if (object.redact != null) + message.redact = Boolean(object.redact); + return message; + }; + + /** + * Creates a plain object from a Parameter message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.Parameter} message Parameter + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Parameter.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.id = ""; + object.entityType = ""; + object.isList = false; + object.redact = false; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.entityType != null && message.hasOwnProperty("entityType")) + object.entityType = message.entityType; + if (message.isList != null && message.hasOwnProperty("isList")) + object.isList = message.isList; + if (message.redact != null && message.hasOwnProperty("redact")) + object.redact = message.redact; + return object; + }; + + /** + * Converts this Parameter to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @instance + * @returns {Object.} JSON object + */ + Parameter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Parameter; + })(); + + return Intent; + })(); + + v3.ListIntentsRequest = (function() { + + /** + * Properties of a ListIntentsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an ExportTestCasesRequest. - * @implements IExportTestCasesRequest + * @interface IListIntentsRequest + * @property {string|null} [parent] ListIntentsRequest parent + * @property {string|null} [languageCode] ListIntentsRequest languageCode + * @property {google.cloud.dialogflow.cx.v3.IntentView|null} [intentView] ListIntentsRequest intentView + * @property {number|null} [pageSize] ListIntentsRequest pageSize + * @property {string|null} [pageToken] ListIntentsRequest pageToken + */ + + /** + * Constructs a new ListIntentsRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a ListIntentsRequest. + * @implements IListIntentsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListIntentsRequest=} [properties] Properties to set */ - function ExportTestCasesRequest(properties) { + function ListIntentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38357,114 +38934,110 @@ } /** - * ExportTestCasesRequest parent. + * ListIntentsRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @instance */ - ExportTestCasesRequest.prototype.parent = ""; + ListIntentsRequest.prototype.parent = ""; /** - * ExportTestCasesRequest gcsUri. - * @member {string|null|undefined} gcsUri - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest + * ListIntentsRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @instance */ - ExportTestCasesRequest.prototype.gcsUri = null; + ListIntentsRequest.prototype.languageCode = ""; /** - * ExportTestCasesRequest dataFormat. - * @member {google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat} dataFormat - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest + * ListIntentsRequest intentView. + * @member {google.cloud.dialogflow.cx.v3.IntentView} intentView + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @instance */ - ExportTestCasesRequest.prototype.dataFormat = 0; + ListIntentsRequest.prototype.intentView = 0; /** - * ExportTestCasesRequest filter. - * @member {string} filter - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest + * ListIntentsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @instance */ - ExportTestCasesRequest.prototype.filter = ""; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ListIntentsRequest.prototype.pageSize = 0; /** - * ExportTestCasesRequest destination. - * @member {"gcsUri"|undefined} destination - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest + * ListIntentsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @instance */ - Object.defineProperty(ExportTestCasesRequest.prototype, "destination", { - get: $util.oneOfGetter($oneOfFields = ["gcsUri"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListIntentsRequest.prototype.pageToken = ""; /** - * Creates a new ExportTestCasesRequest instance using the specified properties. + * Creates a new ListIntentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesRequest} ExportTestCasesRequest instance + * @param {google.cloud.dialogflow.cx.v3.IListIntentsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListIntentsRequest} ListIntentsRequest instance */ - ExportTestCasesRequest.create = function create(properties) { - return new ExportTestCasesRequest(properties); + ListIntentsRequest.create = function create(properties) { + return new ListIntentsRequest(properties); }; /** - * Encodes the specified ExportTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.verify|verify} messages. + * Encodes the specified ListIntentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesRequest} message ExportTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListIntentsRequest} message ListIntentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportTestCasesRequest.encode = function encode(message, writer) { + ListIntentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.gcsUri != null && Object.hasOwnProperty.call(message, "gcsUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.gcsUri); - if (message.dataFormat != null && Object.hasOwnProperty.call(message, "dataFormat")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.dataFormat); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.intentView != null && Object.hasOwnProperty.call(message, "intentView")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.intentView); return writer; }; /** - * Encodes the specified ExportTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.verify|verify} messages. + * Encodes the specified ListIntentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesRequest} message ExportTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListIntentsRequest} message ListIntentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListIntentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportTestCasesRequest message from the specified reader or buffer. + * Decodes a ListIntentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesRequest} ExportTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3.ListIntentsRequest} ListIntentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportTestCasesRequest.decode = function decode(reader, length) { + ListIntentsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListIntentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -38472,13 +39045,16 @@ message.parent = reader.string(); break; case 2: - message.gcsUri = reader.string(); + message.languageCode = reader.string(); + break; + case 5: + message.intentView = reader.int32(); break; case 3: - message.dataFormat = reader.int32(); + message.pageSize = reader.int32(); break; case 4: - message.filter = reader.string(); + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -38489,172 +39065,160 @@ }; /** - * Decodes an ExportTestCasesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListIntentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesRequest} ExportTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3.ListIntentsRequest} ListIntentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { + ListIntentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportTestCasesRequest message. + * Verifies a ListIntentsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportTestCasesRequest.verify = function verify(message) { + ListIntentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { - properties.destination = 1; - if (!$util.isString(message.gcsUri)) - return "gcsUri: string expected"; - } - if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) - switch (message.dataFormat) { + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + if (message.intentView != null && message.hasOwnProperty("intentView")) + switch (message.intentView) { default: - return "dataFormat: enum value expected"; + return "intentView: enum value expected"; case 0: case 1: case 2: break; } - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates an ExportTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListIntentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesRequest} ExportTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3.ListIntentsRequest} ListIntentsRequest */ - ExportTestCasesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest) + ListIntentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListIntentsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.ListIntentsRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.gcsUri != null) - message.gcsUri = String(object.gcsUri); - switch (object.dataFormat) { - case "DATA_FORMAT_UNSPECIFIED": + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + switch (object.intentView) { + case "INTENT_VIEW_UNSPECIFIED": case 0: - message.dataFormat = 0; + message.intentView = 0; break; - case "BLOB": + case "INTENT_VIEW_PARTIAL": case 1: - message.dataFormat = 1; + message.intentView = 1; break; - case "JSON": + case "INTENT_VIEW_FULL": case 2: - message.dataFormat = 2; + message.intentView = 2; break; } - if (object.filter != null) - message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from an ExportTestCasesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListIntentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ExportTestCasesRequest} message ExportTestCasesRequest + * @param {google.cloud.dialogflow.cx.v3.ListIntentsRequest} message ListIntentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportTestCasesRequest.toObject = function toObject(message, options) { + ListIntentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.dataFormat = options.enums === String ? "DATA_FORMAT_UNSPECIFIED" : 0; - object.filter = ""; + object.languageCode = ""; + object.pageSize = 0; + object.pageToken = ""; + object.intentView = options.enums === String ? "INTENT_VIEW_UNSPECIFIED" : 0; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { - object.gcsUri = message.gcsUri; - if (options.oneofs) - object.destination = "gcsUri"; - } - if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) - object.dataFormat = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat[message.dataFormat] : message.dataFormat; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.intentView != null && message.hasOwnProperty("intentView")) + object.intentView = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.IntentView[message.intentView] : message.intentView; return object; }; /** - * Converts this ExportTestCasesRequest to JSON. + * Converts this ListIntentsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @instance * @returns {Object.} JSON object */ - ExportTestCasesRequest.prototype.toJSON = function toJSON() { + ListIntentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * DataFormat enum. - * @name google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat - * @enum {number} - * @property {number} DATA_FORMAT_UNSPECIFIED=0 DATA_FORMAT_UNSPECIFIED value - * @property {number} BLOB=1 BLOB value - * @property {number} JSON=2 JSON value - */ - ExportTestCasesRequest.DataFormat = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DATA_FORMAT_UNSPECIFIED"] = 0; - values[valuesById[1] = "BLOB"] = 1; - values[valuesById[2] = "JSON"] = 2; - return values; - })(); - - return ExportTestCasesRequest; + return ListIntentsRequest; })(); - v3.ExportTestCasesResponse = (function() { + v3.ListIntentsResponse = (function() { /** - * Properties of an ExportTestCasesResponse. + * Properties of a ListIntentsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IExportTestCasesResponse - * @property {string|null} [gcsUri] ExportTestCasesResponse gcsUri - * @property {Uint8Array|null} [content] ExportTestCasesResponse content + * @interface IListIntentsResponse + * @property {Array.|null} [intents] ListIntentsResponse intents + * @property {string|null} [nextPageToken] ListIntentsResponse nextPageToken */ /** - * Constructs a new ExportTestCasesResponse. + * Constructs a new ListIntentsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an ExportTestCasesResponse. - * @implements IExportTestCasesResponse + * @classdesc Represents a ListIntentsResponse. + * @implements IListIntentsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListIntentsResponse=} [properties] Properties to set */ - function ExportTestCasesResponse(properties) { + function ListIntentsResponse(properties) { + this.intents = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38662,102 +39226,91 @@ } /** - * ExportTestCasesResponse gcsUri. - * @member {string|null|undefined} gcsUri - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse - * @instance - */ - ExportTestCasesResponse.prototype.gcsUri = null; - - /** - * ExportTestCasesResponse content. - * @member {Uint8Array|null|undefined} content - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse + * ListIntentsResponse intents. + * @member {Array.} intents + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse * @instance */ - ExportTestCasesResponse.prototype.content = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ListIntentsResponse.prototype.intents = $util.emptyArray; /** - * ExportTestCasesResponse destination. - * @member {"gcsUri"|"content"|undefined} destination - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse + * ListIntentsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse * @instance */ - Object.defineProperty(ExportTestCasesResponse.prototype, "destination", { - get: $util.oneOfGetter($oneOfFields = ["gcsUri", "content"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListIntentsResponse.prototype.nextPageToken = ""; /** - * Creates a new ExportTestCasesResponse instance using the specified properties. + * Creates a new ListIntentsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesResponse} ExportTestCasesResponse instance + * @param {google.cloud.dialogflow.cx.v3.IListIntentsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListIntentsResponse} ListIntentsResponse instance */ - ExportTestCasesResponse.create = function create(properties) { - return new ExportTestCasesResponse(properties); + ListIntentsResponse.create = function create(properties) { + return new ListIntentsResponse(properties); }; /** - * Encodes the specified ExportTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesResponse.verify|verify} messages. + * Encodes the specified ListIntentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesResponse} message ExportTestCasesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListIntentsResponse} message ListIntentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportTestCasesResponse.encode = function encode(message, writer) { + ListIntentsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.gcsUri != null && Object.hasOwnProperty.call(message, "gcsUri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.gcsUri); - if (message.content != null && Object.hasOwnProperty.call(message, "content")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.content); + if (message.intents != null && message.intents.length) + for (var i = 0; i < message.intents.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Intent.encode(message.intents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ExportTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesResponse.verify|verify} messages. + * Encodes the specified ListIntentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesResponse} message ExportTestCasesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListIntentsResponse} message ListIntentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListIntentsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportTestCasesResponse message from the specified reader or buffer. + * Decodes a ListIntentsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesResponse} ExportTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3.ListIntentsResponse} ListIntentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportTestCasesResponse.decode = function decode(reader, length) { + ListIntentsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ExportTestCasesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListIntentsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.gcsUri = reader.string(); + if (!(message.intents && message.intents.length)) + message.intents = []; + message.intents.push($root.google.cloud.dialogflow.cx.v3.Intent.decode(reader, reader.uint32())); break; case 2: - message.content = reader.bytes(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -38768,127 +39321,134 @@ }; /** - * Decodes an ExportTestCasesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListIntentsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesResponse} ExportTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3.ListIntentsResponse} ListIntentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { + ListIntentsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportTestCasesResponse message. + * Verifies a ListIntentsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportTestCasesResponse.verify = function verify(message) { + ListIntentsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { - properties.destination = 1; - if (!$util.isString(message.gcsUri)) - return "gcsUri: string expected"; - } - if (message.content != null && message.hasOwnProperty("content")) { - if (properties.destination === 1) - return "destination: multiple values"; - properties.destination = 1; - if (!(message.content && typeof message.content.length === "number" || $util.isString(message.content))) - return "content: buffer expected"; + if (message.intents != null && message.hasOwnProperty("intents")) { + if (!Array.isArray(message.intents)) + return "intents: array expected"; + for (var i = 0; i < message.intents.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Intent.verify(message.intents[i]); + if (error) + return "intents." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an ExportTestCasesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListIntentsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesResponse} ExportTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3.ListIntentsResponse} ListIntentsResponse */ - ExportTestCasesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ExportTestCasesResponse) + ListIntentsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListIntentsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ExportTestCasesResponse(); - if (object.gcsUri != null) - message.gcsUri = String(object.gcsUri); - if (object.content != null) - if (typeof object.content === "string") - $util.base64.decode(object.content, message.content = $util.newBuffer($util.base64.length(object.content)), 0); - else if (object.content.length) - message.content = object.content; + var message = new $root.google.cloud.dialogflow.cx.v3.ListIntentsResponse(); + if (object.intents) { + if (!Array.isArray(object.intents)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ListIntentsResponse.intents: array expected"); + message.intents = []; + for (var i = 0; i < object.intents.length; ++i) { + if (typeof object.intents[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ListIntentsResponse.intents: object expected"); + message.intents[i] = $root.google.cloud.dialogflow.cx.v3.Intent.fromObject(object.intents[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an ExportTestCasesResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListIntentsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ExportTestCasesResponse} message ExportTestCasesResponse + * @param {google.cloud.dialogflow.cx.v3.ListIntentsResponse} message ListIntentsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportTestCasesResponse.toObject = function toObject(message, options) { + ListIntentsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { - object.gcsUri = message.gcsUri; - if (options.oneofs) - object.destination = "gcsUri"; - } - if (message.content != null && message.hasOwnProperty("content")) { - object.content = options.bytes === String ? $util.base64.encode(message.content, 0, message.content.length) : options.bytes === Array ? Array.prototype.slice.call(message.content) : message.content; - if (options.oneofs) - object.destination = "content"; + if (options.arrays || options.defaults) + object.intents = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.intents && message.intents.length) { + object.intents = []; + for (var j = 0; j < message.intents.length; ++j) + object.intents[j] = $root.google.cloud.dialogflow.cx.v3.Intent.toObject(message.intents[j], options); } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ExportTestCasesResponse to JSON. + * Converts this ListIntentsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse * @instance * @returns {Object.} JSON object */ - ExportTestCasesResponse.prototype.toJSON = function toJSON() { + ListIntentsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExportTestCasesResponse; + return ListIntentsResponse; })(); - v3.ExportTestCasesMetadata = (function() { + v3.GetIntentRequest = (function() { /** - * Properties of an ExportTestCasesMetadata. + * Properties of a GetIntentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IExportTestCasesMetadata + * @interface IGetIntentRequest + * @property {string|null} [name] GetIntentRequest name + * @property {string|null} [languageCode] GetIntentRequest languageCode */ /** - * Constructs a new ExportTestCasesMetadata. + * Constructs a new GetIntentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an ExportTestCasesMetadata. - * @implements IExportTestCasesMetadata + * @classdesc Represents a GetIntentRequest. + * @implements IGetIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesMetadata=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetIntentRequest=} [properties] Properties to set */ - function ExportTestCasesMetadata(properties) { + function GetIntentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38896,63 +39456,89 @@ } /** - * Creates a new ExportTestCasesMetadata instance using the specified properties. + * GetIntentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest + * @instance + */ + GetIntentRequest.prototype.name = ""; + + /** + * GetIntentRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest + * @instance + */ + GetIntentRequest.prototype.languageCode = ""; + + /** + * Creates a new GetIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesMetadata=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata} ExportTestCasesMetadata instance + * @param {google.cloud.dialogflow.cx.v3.IGetIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetIntentRequest} GetIntentRequest instance */ - ExportTestCasesMetadata.create = function create(properties) { - return new ExportTestCasesMetadata(properties); + GetIntentRequest.create = function create(properties) { + return new GetIntentRequest(properties); }; /** - * Encodes the specified ExportTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata.verify|verify} messages. + * Encodes the specified GetIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetIntentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesMetadata} message ExportTestCasesMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetIntentRequest} message GetIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportTestCasesMetadata.encode = function encode(message, writer) { + GetIntentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); return writer; }; /** - * Encodes the specified ExportTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata.verify|verify} messages. + * Encodes the specified GetIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetIntentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IExportTestCasesMetadata} message ExportTestCasesMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetIntentRequest} message GetIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportTestCasesMetadata.encodeDelimited = function encodeDelimited(message, writer) { + GetIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportTestCasesMetadata message from the specified reader or buffer. + * Decodes a GetIntentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata} ExportTestCasesMetadata + * @returns {google.cloud.dialogflow.cx.v3.GetIntentRequest} GetIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportTestCasesMetadata.decode = function decode(reader, length) { + GetIntentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetIntentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.languageCode = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -38962,97 +39548,118 @@ }; /** - * Decodes an ExportTestCasesMetadata message from the specified reader or buffer, length delimited. + * Decodes a GetIntentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata} ExportTestCasesMetadata + * @returns {google.cloud.dialogflow.cx.v3.GetIntentRequest} GetIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportTestCasesMetadata.decodeDelimited = function decodeDelimited(reader) { + GetIntentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportTestCasesMetadata message. + * Verifies a GetIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportTestCasesMetadata.verify = function verify(message) { + GetIntentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - return null; - }; - - /** - * Creates an ExportTestCasesMetadata message from a plain object. Also converts values to their respective internal types. + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + return null; + }; + + /** + * Creates a GetIntentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata} ExportTestCasesMetadata + * @returns {google.cloud.dialogflow.cx.v3.GetIntentRequest} GetIntentRequest */ - ExportTestCasesMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata) + GetIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetIntentRequest) return object; - return new $root.google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata(); + var message = new $root.google.cloud.dialogflow.cx.v3.GetIntentRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + return message; }; /** - * Creates a plain object from an ExportTestCasesMetadata message. Also converts values to other types if specified. + * Creates a plain object from a GetIntentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata} message ExportTestCasesMetadata + * @param {google.cloud.dialogflow.cx.v3.GetIntentRequest} message GetIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportTestCasesMetadata.toObject = function toObject() { - return {}; + GetIntentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.languageCode = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + return object; }; /** - * Converts this ExportTestCasesMetadata to JSON. + * Converts this GetIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest * @instance * @returns {Object.} JSON object */ - ExportTestCasesMetadata.prototype.toJSON = function toJSON() { + GetIntentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExportTestCasesMetadata; + return GetIntentRequest; })(); - v3.ListTestCaseResultsRequest = (function() { + v3.CreateIntentRequest = (function() { /** - * Properties of a ListTestCaseResultsRequest. + * Properties of a CreateIntentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListTestCaseResultsRequest - * @property {string|null} [parent] ListTestCaseResultsRequest parent - * @property {number|null} [pageSize] ListTestCaseResultsRequest pageSize - * @property {string|null} [pageToken] ListTestCaseResultsRequest pageToken - * @property {string|null} [filter] ListTestCaseResultsRequest filter + * @interface ICreateIntentRequest + * @property {string|null} [parent] CreateIntentRequest parent + * @property {google.cloud.dialogflow.cx.v3.IIntent|null} [intent] CreateIntentRequest intent + * @property {string|null} [languageCode] CreateIntentRequest languageCode */ /** - * Constructs a new ListTestCaseResultsRequest. + * Constructs a new CreateIntentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListTestCaseResultsRequest. - * @implements IListTestCaseResultsRequest + * @classdesc Represents a CreateIntentRequest. + * @implements ICreateIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICreateIntentRequest=} [properties] Properties to set */ - function ListTestCaseResultsRequest(properties) { + function CreateIntentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39060,100 +39667,90 @@ } /** - * ListTestCaseResultsRequest parent. + * CreateIntentRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest - * @instance - */ - ListTestCaseResultsRequest.prototype.parent = ""; - - /** - * ListTestCaseResultsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @instance */ - ListTestCaseResultsRequest.prototype.pageSize = 0; + CreateIntentRequest.prototype.parent = ""; /** - * ListTestCaseResultsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest + * CreateIntentRequest intent. + * @member {google.cloud.dialogflow.cx.v3.IIntent|null|undefined} intent + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @instance */ - ListTestCaseResultsRequest.prototype.pageToken = ""; + CreateIntentRequest.prototype.intent = null; /** - * ListTestCaseResultsRequest filter. - * @member {string} filter - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest + * CreateIntentRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @instance */ - ListTestCaseResultsRequest.prototype.filter = ""; + CreateIntentRequest.prototype.languageCode = ""; /** - * Creates a new ListTestCaseResultsRequest instance using the specified properties. + * Creates a new CreateIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest} ListTestCaseResultsRequest instance + * @param {google.cloud.dialogflow.cx.v3.ICreateIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateIntentRequest} CreateIntentRequest instance */ - ListTestCaseResultsRequest.create = function create(properties) { - return new ListTestCaseResultsRequest(properties); + CreateIntentRequest.create = function create(properties) { + return new CreateIntentRequest(properties); }; /** - * Encodes the specified ListTestCaseResultsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest.verify|verify} messages. + * Encodes the specified CreateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateIntentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest} message ListTestCaseResultsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateIntentRequest} message CreateIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTestCaseResultsRequest.encode = function encode(message, writer) { + CreateIntentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) + $root.google.cloud.dialogflow.cx.v3.Intent.encode(message.intent, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); return writer; }; /** - * Encodes the specified ListTestCaseResultsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest.verify|verify} messages. + * Encodes the specified CreateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateIntentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest} message ListTestCaseResultsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateIntentRequest} message CreateIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTestCaseResultsRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTestCaseResultsRequest message from the specified reader or buffer. + * Decodes a CreateIntentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest} ListTestCaseResultsRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateIntentRequest} CreateIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTestCaseResultsRequest.decode = function decode(reader, length) { + CreateIntentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateIntentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -39161,13 +39758,10 @@ message.parent = reader.string(); break; case 2: - message.pageSize = reader.int32(); + message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.decode(reader, reader.uint32()); break; case 3: - message.pageToken = reader.string(); - break; - case 4: - message.filter = reader.string(); + message.languageCode = reader.string(); break; default: reader.skipType(tag & 7); @@ -39178,134 +39772,131 @@ }; /** - * Decodes a ListTestCaseResultsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateIntentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest} ListTestCaseResultsRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateIntentRequest} CreateIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTestCaseResultsRequest.decodeDelimited = function decodeDelimited(reader) { + CreateIntentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTestCaseResultsRequest message. + * Verifies a CreateIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTestCaseResultsRequest.verify = function verify(message) { + CreateIntentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; + if (message.intent != null && message.hasOwnProperty("intent")) { + var error = $root.google.cloud.dialogflow.cx.v3.Intent.verify(message.intent); + if (error) + return "intent." + error; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates a ListTestCaseResultsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateIntentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest} ListTestCaseResultsRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateIntentRequest} CreateIntentRequest */ - ListTestCaseResultsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest) + CreateIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateIntentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.CreateIntentRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.filter != null) - message.filter = String(object.filter); + if (object.intent != null) { + if (typeof object.intent !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CreateIntentRequest.intent: object expected"); + message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.fromObject(object.intent); + } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a ListTestCaseResultsRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateIntentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest} message ListTestCaseResultsRequest + * @param {google.cloud.dialogflow.cx.v3.CreateIntentRequest} message CreateIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTestCaseResultsRequest.toObject = function toObject(message, options) { + CreateIntentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; + object.intent = null; + object.languageCode = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; + if (message.intent != null && message.hasOwnProperty("intent")) + object.intent = $root.google.cloud.dialogflow.cx.v3.Intent.toObject(message.intent, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this ListTestCaseResultsRequest to JSON. + * Converts this CreateIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @instance * @returns {Object.} JSON object */ - ListTestCaseResultsRequest.prototype.toJSON = function toJSON() { + CreateIntentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListTestCaseResultsRequest; + return CreateIntentRequest; })(); - v3.ListTestCaseResultsResponse = (function() { + v3.UpdateIntentRequest = (function() { /** - * Properties of a ListTestCaseResultsResponse. + * Properties of an UpdateIntentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListTestCaseResultsResponse - * @property {Array.|null} [testCaseResults] ListTestCaseResultsResponse testCaseResults - * @property {string|null} [nextPageToken] ListTestCaseResultsResponse nextPageToken + * @interface IUpdateIntentRequest + * @property {google.cloud.dialogflow.cx.v3.IIntent|null} [intent] UpdateIntentRequest intent + * @property {string|null} [languageCode] UpdateIntentRequest languageCode + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateIntentRequest updateMask */ /** - * Constructs a new ListTestCaseResultsResponse. + * Constructs a new UpdateIntentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListTestCaseResultsResponse. - * @implements IListTestCaseResultsResponse + * @classdesc Represents an UpdateIntentRequest. + * @implements IUpdateIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IUpdateIntentRequest=} [properties] Properties to set */ - function ListTestCaseResultsResponse(properties) { - this.testCaseResults = []; + function UpdateIntentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39313,91 +39904,101 @@ } /** - * ListTestCaseResultsResponse testCaseResults. - * @member {Array.} testCaseResults - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse + * UpdateIntentRequest intent. + * @member {google.cloud.dialogflow.cx.v3.IIntent|null|undefined} intent + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest * @instance */ - ListTestCaseResultsResponse.prototype.testCaseResults = $util.emptyArray; + UpdateIntentRequest.prototype.intent = null; /** - * ListTestCaseResultsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse + * UpdateIntentRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest * @instance */ - ListTestCaseResultsResponse.prototype.nextPageToken = ""; + UpdateIntentRequest.prototype.languageCode = ""; /** - * Creates a new ListTestCaseResultsResponse instance using the specified properties. + * UpdateIntentRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * @instance + */ + UpdateIntentRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse} ListTestCaseResultsResponse instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdateIntentRequest} UpdateIntentRequest instance */ - ListTestCaseResultsResponse.create = function create(properties) { - return new ListTestCaseResultsResponse(properties); + UpdateIntentRequest.create = function create(properties) { + return new UpdateIntentRequest(properties); }; /** - * Encodes the specified ListTestCaseResultsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse.verify|verify} messages. + * Encodes the specified UpdateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateIntentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsResponse} message ListTestCaseResultsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateIntentRequest} message UpdateIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTestCaseResultsResponse.encode = function encode(message, writer) { + UpdateIntentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.testCaseResults != null && message.testCaseResults.length) - for (var i = 0; i < message.testCaseResults.length; ++i) - $root.google.cloud.dialogflow.cx.v3.TestCaseResult.encode(message.testCaseResults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) + $root.google.cloud.dialogflow.cx.v3.Intent.encode(message.intent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListTestCaseResultsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse.verify|verify} messages. + * Encodes the specified UpdateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateIntentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListTestCaseResultsResponse} message ListTestCaseResultsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateIntentRequest} message UpdateIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTestCaseResultsResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTestCaseResultsResponse message from the specified reader or buffer. + * Decodes an UpdateIntentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse} ListTestCaseResultsResponse + * @returns {google.cloud.dialogflow.cx.v3.UpdateIntentRequest} UpdateIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTestCaseResultsResponse.decode = function decode(reader, length) { + UpdateIntentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateIntentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.testCaseResults && message.testCaseResults.length)) - message.testCaseResults = []; - message.testCaseResults.push($root.google.cloud.dialogflow.cx.v3.TestCaseResult.decode(reader, reader.uint32())); + message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.decode(reader, reader.uint32()); break; case 2: - message.nextPageToken = reader.string(); + message.languageCode = reader.string(); + break; + case 3: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -39408,133 +40009,134 @@ }; /** - * Decodes a ListTestCaseResultsResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateIntentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse} ListTestCaseResultsResponse + * @returns {google.cloud.dialogflow.cx.v3.UpdateIntentRequest} UpdateIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTestCaseResultsResponse.decodeDelimited = function decodeDelimited(reader) { + UpdateIntentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTestCaseResultsResponse message. + * Verifies an UpdateIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTestCaseResultsResponse.verify = function verify(message) { + UpdateIntentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.testCaseResults != null && message.hasOwnProperty("testCaseResults")) { - if (!Array.isArray(message.testCaseResults)) - return "testCaseResults: array expected"; - for (var i = 0; i < message.testCaseResults.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.verify(message.testCaseResults[i]); - if (error) - return "testCaseResults." + error; - } + if (message.intent != null && message.hasOwnProperty("intent")) { + var error = $root.google.cloud.dialogflow.cx.v3.Intent.verify(message.intent); + if (error) + return "intent." + error; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListTestCaseResultsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateIntentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse} ListTestCaseResultsResponse + * @returns {google.cloud.dialogflow.cx.v3.UpdateIntentRequest} UpdateIntentRequest */ - ListTestCaseResultsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse) + UpdateIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateIntentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse(); - if (object.testCaseResults) { - if (!Array.isArray(object.testCaseResults)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse.testCaseResults: array expected"); - message.testCaseResults = []; - for (var i = 0; i < object.testCaseResults.length; ++i) { - if (typeof object.testCaseResults[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse.testCaseResults: object expected"); - message.testCaseResults[i] = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.fromObject(object.testCaseResults[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3.UpdateIntentRequest(); + if (object.intent != null) { + if (typeof object.intent !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateIntentRequest.intent: object expected"); + message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.fromObject(object.intent); + } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateIntentRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListTestCaseResultsResponse message. Also converts values to other types if specified. + * Creates a plain object from an UpdateIntentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse} message ListTestCaseResultsResponse + * @param {google.cloud.dialogflow.cx.v3.UpdateIntentRequest} message UpdateIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTestCaseResultsResponse.toObject = function toObject(message, options) { + UpdateIntentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.testCaseResults = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.testCaseResults && message.testCaseResults.length) { - object.testCaseResults = []; - for (var j = 0; j < message.testCaseResults.length; ++j) - object.testCaseResults[j] = $root.google.cloud.dialogflow.cx.v3.TestCaseResult.toObject(message.testCaseResults[j], options); + if (options.defaults) { + object.intent = null; + object.languageCode = ""; + object.updateMask = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.intent != null && message.hasOwnProperty("intent")) + object.intent = $root.google.cloud.dialogflow.cx.v3.Intent.toObject(message.intent, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this ListTestCaseResultsResponse to JSON. + * Converts this UpdateIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest * @instance * @returns {Object.} JSON object */ - ListTestCaseResultsResponse.prototype.toJSON = function toJSON() { + UpdateIntentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListTestCaseResultsResponse; + return UpdateIntentRequest; })(); - v3.GetTestCaseResultRequest = (function() { + v3.DeleteIntentRequest = (function() { /** - * Properties of a GetTestCaseResultRequest. + * Properties of a DeleteIntentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IGetTestCaseResultRequest - * @property {string|null} [name] GetTestCaseResultRequest name + * @interface IDeleteIntentRequest + * @property {string|null} [name] DeleteIntentRequest name */ /** - * Constructs a new GetTestCaseResultRequest. + * Constructs a new DeleteIntentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a GetTestCaseResultRequest. - * @implements IGetTestCaseResultRequest + * @classdesc Represents a DeleteIntentRequest. + * @implements IDeleteIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseResultRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDeleteIntentRequest=} [properties] Properties to set */ - function GetTestCaseResultRequest(properties) { + function DeleteIntentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39542,35 +40144,35 @@ } /** - * GetTestCaseResultRequest name. + * DeleteIntentRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest * @instance */ - GetTestCaseResultRequest.prototype.name = ""; + DeleteIntentRequest.prototype.name = ""; /** - * Creates a new GetTestCaseResultRequest instance using the specified properties. + * Creates a new DeleteIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseResultRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest} GetTestCaseResultRequest instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeleteIntentRequest} DeleteIntentRequest instance */ - GetTestCaseResultRequest.create = function create(properties) { - return new GetTestCaseResultRequest(properties); + DeleteIntentRequest.create = function create(properties) { + return new DeleteIntentRequest(properties); }; /** - * Encodes the specified GetTestCaseResultRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest.verify|verify} messages. + * Encodes the specified DeleteIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteIntentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseResultRequest} message GetTestCaseResultRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteIntentRequest} message DeleteIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTestCaseResultRequest.encode = function encode(message, writer) { + DeleteIntentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -39579,33 +40181,33 @@ }; /** - * Encodes the specified GetTestCaseResultRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest.verify|verify} messages. + * Encodes the specified DeleteIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteIntentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetTestCaseResultRequest} message GetTestCaseResultRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteIntentRequest} message DeleteIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTestCaseResultRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTestCaseResultRequest message from the specified reader or buffer. + * Decodes a DeleteIntentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest} GetTestCaseResultRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteIntentRequest} DeleteIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTestCaseResultRequest.decode = function decode(reader, length) { + DeleteIntentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteIntentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -39621,30 +40223,30 @@ }; /** - * Decodes a GetTestCaseResultRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteIntentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest} GetTestCaseResultRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteIntentRequest} DeleteIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTestCaseResultRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteIntentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetTestCaseResultRequest message. + * Verifies a DeleteIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetTestCaseResultRequest.verify = function verify(message) { + DeleteIntentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -39654,32 +40256,32 @@ }; /** - * Creates a GetTestCaseResultRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteIntentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest} GetTestCaseResultRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteIntentRequest} DeleteIntentRequest */ - GetTestCaseResultRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest) + DeleteIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteIntentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.DeleteIntentRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetTestCaseResultRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteIntentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest} message GetTestCaseResultRequest + * @param {google.cloud.dialogflow.cx.v3.DeleteIntentRequest} message DeleteIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTestCaseResultRequest.toObject = function toObject(message, options) { + DeleteIntentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -39691,263 +40293,223 @@ }; /** - * Converts this GetTestCaseResultRequest to JSON. + * Converts this DeleteIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest * @instance * @returns {Object.} JSON object */ - GetTestCaseResultRequest.prototype.toJSON = function toJSON() { + DeleteIntentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetTestCaseResultRequest; + return DeleteIntentRequest; })(); /** - * TestResult enum. - * @name google.cloud.dialogflow.cx.v3.TestResult + * IntentView enum. + * @name google.cloud.dialogflow.cx.v3.IntentView * @enum {number} - * @property {number} TEST_RESULT_UNSPECIFIED=0 TEST_RESULT_UNSPECIFIED value - * @property {number} PASSED=1 PASSED value - * @property {number} FAILED=2 FAILED value + * @property {number} INTENT_VIEW_UNSPECIFIED=0 INTENT_VIEW_UNSPECIFIED value + * @property {number} INTENT_VIEW_PARTIAL=1 INTENT_VIEW_PARTIAL value + * @property {number} INTENT_VIEW_FULL=2 INTENT_VIEW_FULL value */ - v3.TestResult = (function() { + v3.IntentView = (function() { var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TEST_RESULT_UNSPECIFIED"] = 0; - values[valuesById[1] = "PASSED"] = 1; - values[valuesById[2] = "FAILED"] = 2; + values[valuesById[0] = "INTENT_VIEW_UNSPECIFIED"] = 0; + values[valuesById[1] = "INTENT_VIEW_PARTIAL"] = 1; + values[valuesById[2] = "INTENT_VIEW_FULL"] = 2; return values; })(); - v3.Intents = (function() { + v3.Sessions = (function() { /** - * Constructs a new Intents service. + * Constructs a new Sessions service. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an Intents + * @classdesc Represents a Sessions * @extends $protobuf.rpc.Service * @constructor * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - function Intents(rpcImpl, requestDelimited, responseDelimited) { + function Sessions(rpcImpl, requestDelimited, responseDelimited) { $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - (Intents.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Intents; + (Sessions.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Sessions; /** - * Creates new Intents service using the specified rpc implementation. + * Creates new Sessions service using the specified rpc implementation. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Intents + * @memberof google.cloud.dialogflow.cx.v3.Sessions * @static * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {Intents} RPC service. Useful where requests and/or responses are streamed. + * @returns {Sessions} RPC service. Useful where requests and/or responses are streamed. */ - Intents.create = function create(rpcImpl, requestDelimited, responseDelimited) { + Sessions.create = function create(rpcImpl, requestDelimited, responseDelimited) { return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#listIntents}. - * @memberof google.cloud.dialogflow.cx.v3.Intents - * @typedef ListIntentsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.ListIntentsResponse} [response] ListIntentsResponse - */ - - /** - * Calls ListIntents. - * @function listIntents - * @memberof google.cloud.dialogflow.cx.v3.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3.IListIntentsRequest} request ListIntentsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Intents.ListIntentsCallback} callback Node-style callback called with the error, if any, and ListIntentsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Intents.prototype.listIntents = function listIntents(request, callback) { - return this.rpcCall(listIntents, $root.google.cloud.dialogflow.cx.v3.ListIntentsRequest, $root.google.cloud.dialogflow.cx.v3.ListIntentsResponse, request, callback); - }, "name", { value: "ListIntents" }); - - /** - * Calls ListIntents. - * @function listIntents - * @memberof google.cloud.dialogflow.cx.v3.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3.IListIntentsRequest} request ListIntentsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#getIntent}. - * @memberof google.cloud.dialogflow.cx.v3.Intents - * @typedef GetIntentCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#detectIntent}. + * @memberof google.cloud.dialogflow.cx.v3.Sessions + * @typedef DetectIntentCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.Intent} [response] Intent + * @param {google.cloud.dialogflow.cx.v3.DetectIntentResponse} [response] DetectIntentResponse */ /** - * Calls GetIntent. - * @function getIntent - * @memberof google.cloud.dialogflow.cx.v3.Intents + * Calls DetectIntent. + * @function detectIntent + * @memberof google.cloud.dialogflow.cx.v3.Sessions * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetIntentRequest} request GetIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Intents.GetIntentCallback} callback Node-style callback called with the error, if any, and Intent + * @param {google.cloud.dialogflow.cx.v3.IDetectIntentRequest} request DetectIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Sessions.DetectIntentCallback} callback Node-style callback called with the error, if any, and DetectIntentResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(Intents.prototype.getIntent = function getIntent(request, callback) { - return this.rpcCall(getIntent, $root.google.cloud.dialogflow.cx.v3.GetIntentRequest, $root.google.cloud.dialogflow.cx.v3.Intent, request, callback); - }, "name", { value: "GetIntent" }); + Object.defineProperty(Sessions.prototype.detectIntent = function detectIntent(request, callback) { + return this.rpcCall(detectIntent, $root.google.cloud.dialogflow.cx.v3.DetectIntentRequest, $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse, request, callback); + }, "name", { value: "DetectIntent" }); /** - * Calls GetIntent. - * @function getIntent - * @memberof google.cloud.dialogflow.cx.v3.Intents + * Calls DetectIntent. + * @function detectIntent + * @memberof google.cloud.dialogflow.cx.v3.Sessions * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetIntentRequest} request GetIntentRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IDetectIntentRequest} request DetectIntentRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#createIntent}. - * @memberof google.cloud.dialogflow.cx.v3.Intents - * @typedef CreateIntentCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#streamingDetectIntent}. + * @memberof google.cloud.dialogflow.cx.v3.Sessions + * @typedef StreamingDetectIntentCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.Intent} [response] Intent + * @param {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} [response] StreamingDetectIntentResponse */ /** - * Calls CreateIntent. - * @function createIntent - * @memberof google.cloud.dialogflow.cx.v3.Intents + * Calls StreamingDetectIntent. + * @function streamingDetectIntent + * @memberof google.cloud.dialogflow.cx.v3.Sessions * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateIntentRequest} request CreateIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Intents.CreateIntentCallback} callback Node-style callback called with the error, if any, and Intent + * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest} request StreamingDetectIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntentCallback} callback Node-style callback called with the error, if any, and StreamingDetectIntentResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(Intents.prototype.createIntent = function createIntent(request, callback) { - return this.rpcCall(createIntent, $root.google.cloud.dialogflow.cx.v3.CreateIntentRequest, $root.google.cloud.dialogflow.cx.v3.Intent, request, callback); - }, "name", { value: "CreateIntent" }); + Object.defineProperty(Sessions.prototype.streamingDetectIntent = function streamingDetectIntent(request, callback) { + return this.rpcCall(streamingDetectIntent, $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest, $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse, request, callback); + }, "name", { value: "StreamingDetectIntent" }); /** - * Calls CreateIntent. - * @function createIntent - * @memberof google.cloud.dialogflow.cx.v3.Intents + * Calls StreamingDetectIntent. + * @function streamingDetectIntent + * @memberof google.cloud.dialogflow.cx.v3.Sessions * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateIntentRequest} request CreateIntentRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest} request StreamingDetectIntentRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#updateIntent}. - * @memberof google.cloud.dialogflow.cx.v3.Intents - * @typedef UpdateIntentCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#matchIntent}. + * @memberof google.cloud.dialogflow.cx.v3.Sessions + * @typedef MatchIntentCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.Intent} [response] Intent + * @param {google.cloud.dialogflow.cx.v3.MatchIntentResponse} [response] MatchIntentResponse */ /** - * Calls UpdateIntent. - * @function updateIntent - * @memberof google.cloud.dialogflow.cx.v3.Intents + * Calls MatchIntent. + * @function matchIntent + * @memberof google.cloud.dialogflow.cx.v3.Sessions * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateIntentRequest} request UpdateIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Intents.UpdateIntentCallback} callback Node-style callback called with the error, if any, and Intent + * @param {google.cloud.dialogflow.cx.v3.IMatchIntentRequest} request MatchIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Sessions.MatchIntentCallback} callback Node-style callback called with the error, if any, and MatchIntentResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(Intents.prototype.updateIntent = function updateIntent(request, callback) { - return this.rpcCall(updateIntent, $root.google.cloud.dialogflow.cx.v3.UpdateIntentRequest, $root.google.cloud.dialogflow.cx.v3.Intent, request, callback); - }, "name", { value: "UpdateIntent" }); + Object.defineProperty(Sessions.prototype.matchIntent = function matchIntent(request, callback) { + return this.rpcCall(matchIntent, $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest, $root.google.cloud.dialogflow.cx.v3.MatchIntentResponse, request, callback); + }, "name", { value: "MatchIntent" }); /** - * Calls UpdateIntent. - * @function updateIntent - * @memberof google.cloud.dialogflow.cx.v3.Intents + * Calls MatchIntent. + * @function matchIntent + * @memberof google.cloud.dialogflow.cx.v3.Sessions * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateIntentRequest} request UpdateIntentRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IMatchIntentRequest} request MatchIntentRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#deleteIntent}. - * @memberof google.cloud.dialogflow.cx.v3.Intents - * @typedef DeleteIntentCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#fulfillIntent}. + * @memberof google.cloud.dialogflow.cx.v3.Sessions + * @typedef FulfillIntentCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * @param {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} [response] FulfillIntentResponse */ /** - * Calls DeleteIntent. - * @function deleteIntent - * @memberof google.cloud.dialogflow.cx.v3.Intents + * Calls FulfillIntent. + * @function fulfillIntent + * @memberof google.cloud.dialogflow.cx.v3.Sessions * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteIntentRequest} request DeleteIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Intents.DeleteIntentCallback} callback Node-style callback called with the error, if any, and Empty + * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentRequest} request FulfillIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Sessions.FulfillIntentCallback} callback Node-style callback called with the error, if any, and FulfillIntentResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(Intents.prototype.deleteIntent = function deleteIntent(request, callback) { - return this.rpcCall(deleteIntent, $root.google.cloud.dialogflow.cx.v3.DeleteIntentRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteIntent" }); + Object.defineProperty(Sessions.prototype.fulfillIntent = function fulfillIntent(request, callback) { + return this.rpcCall(fulfillIntent, $root.google.cloud.dialogflow.cx.v3.FulfillIntentRequest, $root.google.cloud.dialogflow.cx.v3.FulfillIntentResponse, request, callback); + }, "name", { value: "FulfillIntent" }); /** - * Calls DeleteIntent. - * @function deleteIntent - * @memberof google.cloud.dialogflow.cx.v3.Intents + * Calls FulfillIntent. + * @function fulfillIntent + * @memberof google.cloud.dialogflow.cx.v3.Sessions * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteIntentRequest} request DeleteIntentRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentRequest} request FulfillIntentRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ - return Intents; + return Sessions; })(); - v3.Intent = (function() { + v3.DetectIntentRequest = (function() { /** - * Properties of an Intent. + * Properties of a DetectIntentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IIntent - * @property {string|null} [name] Intent name - * @property {string|null} [displayName] Intent displayName - * @property {Array.|null} [trainingPhrases] Intent trainingPhrases - * @property {Array.|null} [parameters] Intent parameters - * @property {number|null} [priority] Intent priority - * @property {boolean|null} [isFallback] Intent isFallback - * @property {Object.|null} [labels] Intent labels - * @property {string|null} [description] Intent description + * @interface IDetectIntentRequest + * @property {string|null} [session] DetectIntentRequest session + * @property {google.cloud.dialogflow.cx.v3.IQueryParameters|null} [queryParams] DetectIntentRequest queryParams + * @property {google.cloud.dialogflow.cx.v3.IQueryInput|null} [queryInput] DetectIntentRequest queryInput + * @property {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null} [outputAudioConfig] DetectIntentRequest outputAudioConfig */ /** - * Constructs a new Intent. + * Constructs a new DetectIntentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an Intent. - * @implements IIntent + * @classdesc Represents a DetectIntentRequest. + * @implements IDetectIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IIntent=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDetectIntentRequest=} [properties] Properties to set */ - function Intent(properties) { - this.trainingPhrases = []; - this.parameters = []; - this.labels = {}; + function DetectIntentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39955,192 +40517,114 @@ } /** - * Intent name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.Intent - * @instance - */ - Intent.prototype.name = ""; - - /** - * Intent displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.Intent - * @instance - */ - Intent.prototype.displayName = ""; - - /** - * Intent trainingPhrases. - * @member {Array.} trainingPhrases - * @memberof google.cloud.dialogflow.cx.v3.Intent - * @instance - */ - Intent.prototype.trainingPhrases = $util.emptyArray; - - /** - * Intent parameters. - * @member {Array.} parameters - * @memberof google.cloud.dialogflow.cx.v3.Intent - * @instance - */ - Intent.prototype.parameters = $util.emptyArray; - - /** - * Intent priority. - * @member {number} priority - * @memberof google.cloud.dialogflow.cx.v3.Intent + * DetectIntentRequest session. + * @member {string} session + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @instance */ - Intent.prototype.priority = 0; + DetectIntentRequest.prototype.session = ""; /** - * Intent isFallback. - * @member {boolean} isFallback - * @memberof google.cloud.dialogflow.cx.v3.Intent + * DetectIntentRequest queryParams. + * @member {google.cloud.dialogflow.cx.v3.IQueryParameters|null|undefined} queryParams + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @instance */ - Intent.prototype.isFallback = false; + DetectIntentRequest.prototype.queryParams = null; /** - * Intent labels. - * @member {Object.} labels - * @memberof google.cloud.dialogflow.cx.v3.Intent + * DetectIntentRequest queryInput. + * @member {google.cloud.dialogflow.cx.v3.IQueryInput|null|undefined} queryInput + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @instance */ - Intent.prototype.labels = $util.emptyObject; + DetectIntentRequest.prototype.queryInput = null; /** - * Intent description. - * @member {string} description - * @memberof google.cloud.dialogflow.cx.v3.Intent + * DetectIntentRequest outputAudioConfig. + * @member {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null|undefined} outputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @instance */ - Intent.prototype.description = ""; + DetectIntentRequest.prototype.outputAudioConfig = null; /** - * Creates a new Intent instance using the specified properties. + * Creates a new DetectIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Intent + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IIntent=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Intent} Intent instance + * @param {google.cloud.dialogflow.cx.v3.IDetectIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DetectIntentRequest} DetectIntentRequest instance */ - Intent.create = function create(properties) { - return new Intent(properties); + DetectIntentRequest.create = function create(properties) { + return new DetectIntentRequest(properties); }; /** - * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.verify|verify} messages. + * Encodes the specified DetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Intent + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IIntent} message Intent message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDetectIntentRequest} message DetectIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Intent.encode = function encode(message, writer) { + DetectIntentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.trainingPhrases != null && message.trainingPhrases.length) - for (var i = 0; i < message.trainingPhrases.length; ++i) - $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.encode(message.trainingPhrases[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.parameters != null && message.parameters.length) - for (var i = 0; i < message.parameters.length; ++i) - $root.google.cloud.dialogflow.cx.v3.Intent.Parameter.encode(message.parameters[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.priority != null && Object.hasOwnProperty.call(message, "priority")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.priority); - if (message.isFallback != null && Object.hasOwnProperty.call(message, "isFallback")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isFallback); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.description); + if (message.session != null && Object.hasOwnProperty.call(message, "session")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.session); + if (message.queryParams != null && Object.hasOwnProperty.call(message, "queryParams")) + $root.google.cloud.dialogflow.cx.v3.QueryParameters.encode(message.queryParams, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.queryInput != null && Object.hasOwnProperty.call(message, "queryInput")) + $root.google.cloud.dialogflow.cx.v3.QueryInput.encode(message.queryInput, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) + $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.verify|verify} messages. + * Encodes the specified DetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Intent + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IIntent} message Intent message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDetectIntentRequest} message DetectIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Intent.encodeDelimited = function encodeDelimited(message, writer) { + DetectIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Intent message from the specified reader or buffer. + * Decodes a DetectIntentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Intent + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.Intent} Intent + * @returns {google.cloud.dialogflow.cx.v3.DetectIntentRequest} DetectIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Intent.decode = function decode(reader, length) { + DetectIntentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Intent(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DetectIntentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.session = reader.string(); break; case 2: - message.displayName = reader.string(); + message.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.decode(reader, reader.uint32()); break; case 3: - if (!(message.trainingPhrases && message.trainingPhrases.length)) - message.trainingPhrases = []; - message.trainingPhrases.push($root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.decode(reader, reader.uint32())); + message.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.decode(reader, reader.uint32()); break; case 4: - if (!(message.parameters && message.parameters.length)) - message.parameters = []; - message.parameters.push($root.google.cloud.dialogflow.cx.v3.Intent.Parameter.decode(reader, reader.uint32())); - break; - case 5: - message.priority = reader.int32(); - break; - case 6: - message.isFallback = reader.bool(); - break; - case 7: - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - case 8: - message.description = reader.string(); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -40151,1065 +40635,630 @@ }; /** - * Decodes an Intent message from the specified reader or buffer, length delimited. + * Decodes a DetectIntentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Intent + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Intent} Intent + * @returns {google.cloud.dialogflow.cx.v3.DetectIntentRequest} DetectIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Intent.decodeDelimited = function decodeDelimited(reader) { + DetectIntentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Intent message. + * Verifies a DetectIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Intent + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Intent.verify = function verify(message) { + DetectIntentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.trainingPhrases != null && message.hasOwnProperty("trainingPhrases")) { - if (!Array.isArray(message.trainingPhrases)) - return "trainingPhrases: array expected"; - for (var i = 0; i < message.trainingPhrases.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.verify(message.trainingPhrases[i]); - if (error) - return "trainingPhrases." + error; - } + if (message.session != null && message.hasOwnProperty("session")) + if (!$util.isString(message.session)) + return "session: string expected"; + if (message.queryParams != null && message.hasOwnProperty("queryParams")) { + var error = $root.google.cloud.dialogflow.cx.v3.QueryParameters.verify(message.queryParams); + if (error) + return "queryParams." + error; } - if (message.parameters != null && message.hasOwnProperty("parameters")) { - if (!Array.isArray(message.parameters)) - return "parameters: array expected"; - for (var i = 0; i < message.parameters.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.Intent.Parameter.verify(message.parameters[i]); - if (error) - return "parameters." + error; - } + if (message.queryInput != null && message.hasOwnProperty("queryInput")) { + var error = $root.google.cloud.dialogflow.cx.v3.QueryInput.verify(message.queryInput); + if (error) + return "queryInput." + error; } - if (message.priority != null && message.hasOwnProperty("priority")) - if (!$util.isInteger(message.priority)) - return "priority: integer expected"; - if (message.isFallback != null && message.hasOwnProperty("isFallback")) - if (typeof message.isFallback !== "boolean") - return "isFallback: boolean expected"; - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify(message.outputAudioConfig); + if (error) + return "outputAudioConfig." + error; } - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; return null; }; /** - * Creates an Intent message from a plain object. Also converts values to their respective internal types. + * Creates a DetectIntentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Intent + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Intent} Intent + * @returns {google.cloud.dialogflow.cx.v3.DetectIntentRequest} DetectIntentRequest */ - Intent.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Intent) + DetectIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DetectIntentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Intent(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.trainingPhrases) { - if (!Array.isArray(object.trainingPhrases)) - throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.trainingPhrases: array expected"); - message.trainingPhrases = []; - for (var i = 0; i < object.trainingPhrases.length; ++i) { - if (typeof object.trainingPhrases[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.trainingPhrases: object expected"); - message.trainingPhrases[i] = $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.fromObject(object.trainingPhrases[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3.DetectIntentRequest(); + if (object.session != null) + message.session = String(object.session); + if (object.queryParams != null) { + if (typeof object.queryParams !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.DetectIntentRequest.queryParams: object expected"); + message.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.fromObject(object.queryParams); } - if (object.parameters) { - if (!Array.isArray(object.parameters)) - throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.parameters: array expected"); - message.parameters = []; - for (var i = 0; i < object.parameters.length; ++i) { - if (typeof object.parameters[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.parameters: object expected"); - message.parameters[i] = $root.google.cloud.dialogflow.cx.v3.Intent.Parameter.fromObject(object.parameters[i]); - } + if (object.queryInput != null) { + if (typeof object.queryInput !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.DetectIntentRequest.queryInput: object expected"); + message.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.fromObject(object.queryInput); } - if (object.priority != null) - message.priority = object.priority | 0; - if (object.isFallback != null) - message.isFallback = Boolean(object.isFallback); - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); + if (object.outputAudioConfig != null) { + if (typeof object.outputAudioConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.DetectIntentRequest.outputAudioConfig: object expected"); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.fromObject(object.outputAudioConfig); } - if (object.description != null) - message.description = String(object.description); return message; }; /** - * Creates a plain object from an Intent message. Also converts values to other types if specified. + * Creates a plain object from a DetectIntentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Intent + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.Intent} message Intent + * @param {google.cloud.dialogflow.cx.v3.DetectIntentRequest} message DetectIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Intent.toObject = function toObject(message, options) { + DetectIntentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.trainingPhrases = []; - object.parameters = []; - } - if (options.objects || options.defaults) - object.labels = {}; if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.priority = 0; - object.isFallback = false; - object.description = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.trainingPhrases && message.trainingPhrases.length) { - object.trainingPhrases = []; - for (var j = 0; j < message.trainingPhrases.length; ++j) - object.trainingPhrases[j] = $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.toObject(message.trainingPhrases[j], options); - } - if (message.parameters && message.parameters.length) { - object.parameters = []; - for (var j = 0; j < message.parameters.length; ++j) - object.parameters[j] = $root.google.cloud.dialogflow.cx.v3.Intent.Parameter.toObject(message.parameters[j], options); - } - if (message.priority != null && message.hasOwnProperty("priority")) - object.priority = message.priority; - if (message.isFallback != null && message.hasOwnProperty("isFallback")) - object.isFallback = message.isFallback; - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; + object.session = ""; + object.queryParams = null; + object.queryInput = null; + object.outputAudioConfig = null; } - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; + if (message.session != null && message.hasOwnProperty("session")) + object.session = message.session; + if (message.queryParams != null && message.hasOwnProperty("queryParams")) + object.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.toObject(message.queryParams, options); + if (message.queryInput != null && message.hasOwnProperty("queryInput")) + object.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.toObject(message.queryInput, options); + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) + object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.toObject(message.outputAudioConfig, options); return object; }; /** - * Converts this Intent to JSON. + * Converts this DetectIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Intent + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @instance * @returns {Object.} JSON object */ - Intent.prototype.toJSON = function toJSON() { + DetectIntentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - Intent.TrainingPhrase = (function() { + return DetectIntentRequest; + })(); - /** - * Properties of a TrainingPhrase. - * @memberof google.cloud.dialogflow.cx.v3.Intent - * @interface ITrainingPhrase - * @property {string|null} [id] TrainingPhrase id - * @property {Array.|null} [parts] TrainingPhrase parts - * @property {number|null} [repeatCount] TrainingPhrase repeatCount - */ + v3.DetectIntentResponse = (function() { - /** - * Constructs a new TrainingPhrase. - * @memberof google.cloud.dialogflow.cx.v3.Intent - * @classdesc Represents a TrainingPhrase. - * @implements ITrainingPhrase - * @constructor - * @param {google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase=} [properties] Properties to set - */ - function TrainingPhrase(properties) { - this.parts = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a DetectIntentResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IDetectIntentResponse + * @property {string|null} [responseId] DetectIntentResponse responseId + * @property {google.cloud.dialogflow.cx.v3.IQueryResult|null} [queryResult] DetectIntentResponse queryResult + * @property {Uint8Array|null} [outputAudio] DetectIntentResponse outputAudio + * @property {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null} [outputAudioConfig] DetectIntentResponse outputAudioConfig + * @property {google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType|null} [responseType] DetectIntentResponse responseType + * @property {boolean|null} [allowCancellation] DetectIntentResponse allowCancellation + */ - /** - * TrainingPhrase id. - * @member {string} id - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase - * @instance - */ - TrainingPhrase.prototype.id = ""; + /** + * Constructs a new DetectIntentResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a DetectIntentResponse. + * @implements IDetectIntentResponse + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IDetectIntentResponse=} [properties] Properties to set + */ + function DetectIntentResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * TrainingPhrase parts. - * @member {Array.} parts - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase - * @instance - */ - TrainingPhrase.prototype.parts = $util.emptyArray; + /** + * DetectIntentResponse responseId. + * @member {string} responseId + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @instance + */ + DetectIntentResponse.prototype.responseId = ""; - /** - * TrainingPhrase repeatCount. - * @member {number} repeatCount - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase - * @instance - */ - TrainingPhrase.prototype.repeatCount = 0; + /** + * DetectIntentResponse queryResult. + * @member {google.cloud.dialogflow.cx.v3.IQueryResult|null|undefined} queryResult + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @instance + */ + DetectIntentResponse.prototype.queryResult = null; - /** - * Creates a new TrainingPhrase instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase - * @static - * @param {google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase} TrainingPhrase instance - */ - TrainingPhrase.create = function create(properties) { - return new TrainingPhrase(properties); - }; + /** + * DetectIntentResponse outputAudio. + * @member {Uint8Array} outputAudio + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @instance + */ + DetectIntentResponse.prototype.outputAudio = $util.newBuffer([]); - /** - * Encodes the specified TrainingPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase - * @static - * @param {google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase} message TrainingPhrase message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TrainingPhrase.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.parts != null && message.parts.length) - for (var i = 0; i < message.parts.length; ++i) - $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.encode(message.parts[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.repeatCount != null && Object.hasOwnProperty.call(message, "repeatCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.repeatCount); - return writer; - }; + /** + * DetectIntentResponse outputAudioConfig. + * @member {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null|undefined} outputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @instance + */ + DetectIntentResponse.prototype.outputAudioConfig = null; - /** - * Encodes the specified TrainingPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase - * @static - * @param {google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase} message TrainingPhrase message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TrainingPhrase.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * DetectIntentResponse responseType. + * @member {google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType} responseType + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @instance + */ + DetectIntentResponse.prototype.responseType = 0; - /** - * Decodes a TrainingPhrase message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase} TrainingPhrase - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TrainingPhrase.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - if (!(message.parts && message.parts.length)) - message.parts = []; - message.parts.push($root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.decode(reader, reader.uint32())); - break; - case 3: - message.repeatCount = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * DetectIntentResponse allowCancellation. + * @member {boolean} allowCancellation + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @instance + */ + DetectIntentResponse.prototype.allowCancellation = false; - /** - * Decodes a TrainingPhrase message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase} TrainingPhrase - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TrainingPhrase.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a new DetectIntentResponse instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.IDetectIntentResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DetectIntentResponse} DetectIntentResponse instance + */ + DetectIntentResponse.create = function create(properties) { + return new DetectIntentResponse(properties); + }; - /** - * Verifies a TrainingPhrase message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TrainingPhrase.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.parts != null && message.hasOwnProperty("parts")) { - if (!Array.isArray(message.parts)) - return "parts: array expected"; - for (var i = 0; i < message.parts.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.verify(message.parts[i]); - if (error) - return "parts." + error; - } - } - if (message.repeatCount != null && message.hasOwnProperty("repeatCount")) - if (!$util.isInteger(message.repeatCount)) - return "repeatCount: integer expected"; - return null; - }; + /** + * Encodes the specified DetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.IDetectIntentResponse} message DetectIntentResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DetectIntentResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.responseId != null && Object.hasOwnProperty.call(message, "responseId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.responseId); + if (message.queryResult != null && Object.hasOwnProperty.call(message, "queryResult")) + $root.google.cloud.dialogflow.cx.v3.QueryResult.encode(message.queryResult, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.outputAudio != null && Object.hasOwnProperty.call(message, "outputAudio")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.outputAudio); + if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) + $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.responseType != null && Object.hasOwnProperty.call(message, "responseType")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.responseType); + if (message.allowCancellation != null && Object.hasOwnProperty.call(message, "allowCancellation")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.allowCancellation); + return writer; + }; - /** - * Creates a TrainingPhrase message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase} TrainingPhrase - */ - TrainingPhrase.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase(); - if (object.id != null) - message.id = String(object.id); - if (object.parts) { - if (!Array.isArray(object.parts)) - throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.parts: array expected"); - message.parts = []; - for (var i = 0; i < object.parts.length; ++i) { - if (typeof object.parts[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.parts: object expected"); - message.parts[i] = $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.fromObject(object.parts[i]); - } + /** + * Encodes the specified DetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.IDetectIntentResponse} message DetectIntentResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DetectIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DetectIntentResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.DetectIntentResponse} DetectIntentResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DetectIntentResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.responseId = reader.string(); + break; + case 2: + message.queryResult = $root.google.cloud.dialogflow.cx.v3.QueryResult.decode(reader, reader.uint32()); + break; + case 4: + message.outputAudio = reader.bytes(); + break; + case 5: + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.decode(reader, reader.uint32()); + break; + case 6: + message.responseType = reader.int32(); + break; + case 7: + message.allowCancellation = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; } - if (object.repeatCount != null) - message.repeatCount = object.repeatCount | 0; - return message; - }; + } + return message; + }; - /** - * Creates a plain object from a TrainingPhrase message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase - * @static - * @param {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase} message TrainingPhrase - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TrainingPhrase.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.parts = []; - if (options.defaults) { - object.id = ""; - object.repeatCount = 0; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.parts && message.parts.length) { - object.parts = []; - for (var j = 0; j < message.parts.length; ++j) - object.parts[j] = $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.toObject(message.parts[j], options); - } - if (message.repeatCount != null && message.hasOwnProperty("repeatCount")) - object.repeatCount = message.repeatCount; - return object; - }; - - /** - * Converts this TrainingPhrase to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase - * @instance - * @returns {Object.} JSON object - */ - TrainingPhrase.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a DetectIntentResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.DetectIntentResponse} DetectIntentResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DetectIntentResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - TrainingPhrase.Part = (function() { + /** + * Verifies a DetectIntentResponse message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DetectIntentResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.responseId != null && message.hasOwnProperty("responseId")) + if (!$util.isString(message.responseId)) + return "responseId: string expected"; + if (message.queryResult != null && message.hasOwnProperty("queryResult")) { + var error = $root.google.cloud.dialogflow.cx.v3.QueryResult.verify(message.queryResult); + if (error) + return "queryResult." + error; + } + if (message.outputAudio != null && message.hasOwnProperty("outputAudio")) + if (!(message.outputAudio && typeof message.outputAudio.length === "number" || $util.isString(message.outputAudio))) + return "outputAudio: buffer expected"; + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify(message.outputAudioConfig); + if (error) + return "outputAudioConfig." + error; + } + if (message.responseType != null && message.hasOwnProperty("responseType")) + switch (message.responseType) { + default: + return "responseType: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.allowCancellation != null && message.hasOwnProperty("allowCancellation")) + if (typeof message.allowCancellation !== "boolean") + return "allowCancellation: boolean expected"; + return null; + }; - /** - * Properties of a Part. - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase - * @interface IPart - * @property {string|null} [text] Part text - * @property {string|null} [parameterId] Part parameterId - */ + /** + * Creates a DetectIntentResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.DetectIntentResponse} DetectIntentResponse + */ + DetectIntentResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse(); + if (object.responseId != null) + message.responseId = String(object.responseId); + if (object.queryResult != null) { + if (typeof object.queryResult !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.DetectIntentResponse.queryResult: object expected"); + message.queryResult = $root.google.cloud.dialogflow.cx.v3.QueryResult.fromObject(object.queryResult); + } + if (object.outputAudio != null) + if (typeof object.outputAudio === "string") + $util.base64.decode(object.outputAudio, message.outputAudio = $util.newBuffer($util.base64.length(object.outputAudio)), 0); + else if (object.outputAudio.length) + message.outputAudio = object.outputAudio; + if (object.outputAudioConfig != null) { + if (typeof object.outputAudioConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.DetectIntentResponse.outputAudioConfig: object expected"); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.fromObject(object.outputAudioConfig); + } + switch (object.responseType) { + case "RESPONSE_TYPE_UNSPECIFIED": + case 0: + message.responseType = 0; + break; + case "PARTIAL": + case 1: + message.responseType = 1; + break; + case "FINAL": + case 2: + message.responseType = 2; + break; + } + if (object.allowCancellation != null) + message.allowCancellation = Boolean(object.allowCancellation); + return message; + }; - /** - * Constructs a new Part. - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase - * @classdesc Represents a Part. - * @implements IPart - * @constructor - * @param {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart=} [properties] Properties to set - */ - function Part(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Creates a plain object from a DetectIntentResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.DetectIntentResponse} message DetectIntentResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DetectIntentResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.responseId = ""; + object.queryResult = null; + if (options.bytes === String) + object.outputAudio = ""; + else { + object.outputAudio = []; + if (options.bytes !== Array) + object.outputAudio = $util.newBuffer(object.outputAudio); } + object.outputAudioConfig = null; + object.responseType = options.enums === String ? "RESPONSE_TYPE_UNSPECIFIED" : 0; + object.allowCancellation = false; + } + if (message.responseId != null && message.hasOwnProperty("responseId")) + object.responseId = message.responseId; + if (message.queryResult != null && message.hasOwnProperty("queryResult")) + object.queryResult = $root.google.cloud.dialogflow.cx.v3.QueryResult.toObject(message.queryResult, options); + if (message.outputAudio != null && message.hasOwnProperty("outputAudio")) + object.outputAudio = options.bytes === String ? $util.base64.encode(message.outputAudio, 0, message.outputAudio.length) : options.bytes === Array ? Array.prototype.slice.call(message.outputAudio) : message.outputAudio; + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) + object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.toObject(message.outputAudioConfig, options); + if (message.responseType != null && message.hasOwnProperty("responseType")) + object.responseType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType[message.responseType] : message.responseType; + if (message.allowCancellation != null && message.hasOwnProperty("allowCancellation")) + object.allowCancellation = message.allowCancellation; + return object; + }; - /** - * Part text. - * @member {string} text - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part - * @instance - */ - Part.prototype.text = ""; - - /** - * Part parameterId. - * @member {string} parameterId - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part - * @instance - */ - Part.prototype.parameterId = ""; + /** + * Converts this DetectIntentResponse to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @instance + * @returns {Object.} JSON object + */ + DetectIntentResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a new Part instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part - * @static - * @param {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part} Part instance - */ - Part.create = function create(properties) { - return new Part(properties); - }; + /** + * ResponseType enum. + * @name google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType + * @enum {number} + * @property {number} RESPONSE_TYPE_UNSPECIFIED=0 RESPONSE_TYPE_UNSPECIFIED value + * @property {number} PARTIAL=1 PARTIAL value + * @property {number} FINAL=2 FINAL value + */ + DetectIntentResponse.ResponseType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RESPONSE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PARTIAL"] = 1; + values[valuesById[2] = "FINAL"] = 2; + return values; + })(); - /** - * Encodes the specified Part message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part - * @static - * @param {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart} message Part message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Part.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.text != null && Object.hasOwnProperty.call(message, "text")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); - if (message.parameterId != null && Object.hasOwnProperty.call(message, "parameterId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.parameterId); - return writer; - }; + return DetectIntentResponse; + })(); - /** - * Encodes the specified Part message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part - * @static - * @param {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart} message Part message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Part.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + v3.StreamingDetectIntentRequest = (function() { - /** - * Decodes a Part message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part} Part - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Part.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.text = reader.string(); - break; - case 2: - message.parameterId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Properties of a StreamingDetectIntentRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IStreamingDetectIntentRequest + * @property {string|null} [session] StreamingDetectIntentRequest session + * @property {google.cloud.dialogflow.cx.v3.IQueryParameters|null} [queryParams] StreamingDetectIntentRequest queryParams + * @property {google.cloud.dialogflow.cx.v3.IQueryInput|null} [queryInput] StreamingDetectIntentRequest queryInput + * @property {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null} [outputAudioConfig] StreamingDetectIntentRequest outputAudioConfig + * @property {boolean|null} [enablePartialResponse] StreamingDetectIntentRequest enablePartialResponse + */ - /** - * Decodes a Part message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part} Part - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Part.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Constructs a new StreamingDetectIntentRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a StreamingDetectIntentRequest. + * @implements IStreamingDetectIntentRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest=} [properties] Properties to set + */ + function StreamingDetectIntentRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Verifies a Part message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Part.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.text != null && message.hasOwnProperty("text")) - if (!$util.isString(message.text)) - return "text: string expected"; - if (message.parameterId != null && message.hasOwnProperty("parameterId")) - if (!$util.isString(message.parameterId)) - return "parameterId: string expected"; - return null; - }; + /** + * StreamingDetectIntentRequest session. + * @member {string} session + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @instance + */ + StreamingDetectIntentRequest.prototype.session = ""; - /** - * Creates a Part message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part} Part - */ - Part.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part(); - if (object.text != null) - message.text = String(object.text); - if (object.parameterId != null) - message.parameterId = String(object.parameterId); - return message; - }; + /** + * StreamingDetectIntentRequest queryParams. + * @member {google.cloud.dialogflow.cx.v3.IQueryParameters|null|undefined} queryParams + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @instance + */ + StreamingDetectIntentRequest.prototype.queryParams = null; - /** - * Creates a plain object from a Part message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part - * @static - * @param {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part} message Part - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Part.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.text = ""; - object.parameterId = ""; - } - if (message.text != null && message.hasOwnProperty("text")) - object.text = message.text; - if (message.parameterId != null && message.hasOwnProperty("parameterId")) - object.parameterId = message.parameterId; - return object; - }; + /** + * StreamingDetectIntentRequest queryInput. + * @member {google.cloud.dialogflow.cx.v3.IQueryInput|null|undefined} queryInput + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @instance + */ + StreamingDetectIntentRequest.prototype.queryInput = null; - /** - * Converts this Part to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part - * @instance - * @returns {Object.} JSON object - */ - Part.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * StreamingDetectIntentRequest outputAudioConfig. + * @member {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null|undefined} outputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @instance + */ + StreamingDetectIntentRequest.prototype.outputAudioConfig = null; - return Part; - })(); + /** + * StreamingDetectIntentRequest enablePartialResponse. + * @member {boolean} enablePartialResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @instance + */ + StreamingDetectIntentRequest.prototype.enablePartialResponse = false; - return TrainingPhrase; - })(); + /** + * Creates a new StreamingDetectIntentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest} StreamingDetectIntentRequest instance + */ + StreamingDetectIntentRequest.create = function create(properties) { + return new StreamingDetectIntentRequest(properties); + }; - Intent.Parameter = (function() { + /** + * Encodes the specified StreamingDetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest} message StreamingDetectIntentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StreamingDetectIntentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.session != null && Object.hasOwnProperty.call(message, "session")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.session); + if (message.queryParams != null && Object.hasOwnProperty.call(message, "queryParams")) + $root.google.cloud.dialogflow.cx.v3.QueryParameters.encode(message.queryParams, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.queryInput != null && Object.hasOwnProperty.call(message, "queryInput")) + $root.google.cloud.dialogflow.cx.v3.QueryInput.encode(message.queryInput, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) + $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.enablePartialResponse != null && Object.hasOwnProperty.call(message, "enablePartialResponse")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.enablePartialResponse); + return writer; + }; - /** - * Properties of a Parameter. - * @memberof google.cloud.dialogflow.cx.v3.Intent - * @interface IParameter - * @property {string|null} [id] Parameter id - * @property {string|null} [entityType] Parameter entityType - * @property {boolean|null} [isList] Parameter isList - * @property {boolean|null} [redact] Parameter redact - */ - - /** - * Constructs a new Parameter. - * @memberof google.cloud.dialogflow.cx.v3.Intent - * @classdesc Represents a Parameter. - * @implements IParameter - * @constructor - * @param {google.cloud.dialogflow.cx.v3.Intent.IParameter=} [properties] Properties to set - */ - function Parameter(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Parameter id. - * @member {string} id - * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter - * @instance - */ - Parameter.prototype.id = ""; - - /** - * Parameter entityType. - * @member {string} entityType - * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter - * @instance - */ - Parameter.prototype.entityType = ""; - - /** - * Parameter isList. - * @member {boolean} isList - * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter - * @instance - */ - Parameter.prototype.isList = false; - - /** - * Parameter redact. - * @member {boolean} redact - * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter - * @instance - */ - Parameter.prototype.redact = false; - - /** - * Creates a new Parameter instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter - * @static - * @param {google.cloud.dialogflow.cx.v3.Intent.IParameter=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Intent.Parameter} Parameter instance - */ - Parameter.create = function create(properties) { - return new Parameter(properties); - }; - - /** - * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.Parameter.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter - * @static - * @param {google.cloud.dialogflow.cx.v3.Intent.IParameter} message Parameter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Parameter.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityType); - if (message.isList != null && Object.hasOwnProperty.call(message, "isList")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isList); - if (message.redact != null && Object.hasOwnProperty.call(message, "redact")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.redact); - return writer; - }; - - /** - * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.Parameter.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter - * @static - * @param {google.cloud.dialogflow.cx.v3.Intent.IParameter} message Parameter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Parameter.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Parameter message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.Intent.Parameter} Parameter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Parameter.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Intent.Parameter(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.entityType = reader.string(); - break; - case 3: - message.isList = reader.bool(); - break; - case 4: - message.redact = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Parameter message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Intent.Parameter} Parameter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Parameter.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Parameter message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Parameter.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.entityType != null && message.hasOwnProperty("entityType")) - if (!$util.isString(message.entityType)) - return "entityType: string expected"; - if (message.isList != null && message.hasOwnProperty("isList")) - if (typeof message.isList !== "boolean") - return "isList: boolean expected"; - if (message.redact != null && message.hasOwnProperty("redact")) - if (typeof message.redact !== "boolean") - return "redact: boolean expected"; - return null; - }; - - /** - * Creates a Parameter message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Intent.Parameter} Parameter - */ - Parameter.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Intent.Parameter) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Intent.Parameter(); - if (object.id != null) - message.id = String(object.id); - if (object.entityType != null) - message.entityType = String(object.entityType); - if (object.isList != null) - message.isList = Boolean(object.isList); - if (object.redact != null) - message.redact = Boolean(object.redact); - return message; - }; - - /** - * Creates a plain object from a Parameter message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter - * @static - * @param {google.cloud.dialogflow.cx.v3.Intent.Parameter} message Parameter - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Parameter.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.id = ""; - object.entityType = ""; - object.isList = false; - object.redact = false; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.entityType != null && message.hasOwnProperty("entityType")) - object.entityType = message.entityType; - if (message.isList != null && message.hasOwnProperty("isList")) - object.isList = message.isList; - if (message.redact != null && message.hasOwnProperty("redact")) - object.redact = message.redact; - return object; - }; - - /** - * Converts this Parameter to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter - * @instance - * @returns {Object.} JSON object - */ - Parameter.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Parameter; - })(); - - return Intent; - })(); - - v3.ListIntentsRequest = (function() { - - /** - * Properties of a ListIntentsRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListIntentsRequest - * @property {string|null} [parent] ListIntentsRequest parent - * @property {string|null} [languageCode] ListIntentsRequest languageCode - * @property {google.cloud.dialogflow.cx.v3.IntentView|null} [intentView] ListIntentsRequest intentView - * @property {number|null} [pageSize] ListIntentsRequest pageSize - * @property {string|null} [pageToken] ListIntentsRequest pageToken - */ - - /** - * Constructs a new ListIntentsRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListIntentsRequest. - * @implements IListIntentsRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListIntentsRequest=} [properties] Properties to set - */ - function ListIntentsRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ListIntentsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest - * @instance - */ - ListIntentsRequest.prototype.parent = ""; - - /** - * ListIntentsRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest - * @instance - */ - ListIntentsRequest.prototype.languageCode = ""; - - /** - * ListIntentsRequest intentView. - * @member {google.cloud.dialogflow.cx.v3.IntentView} intentView - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest - * @instance - */ - ListIntentsRequest.prototype.intentView = 0; - - /** - * ListIntentsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest - * @instance - */ - ListIntentsRequest.prototype.pageSize = 0; - - /** - * ListIntentsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest - * @instance - */ - ListIntentsRequest.prototype.pageToken = ""; - - /** - * Creates a new ListIntentsRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IListIntentsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListIntentsRequest} ListIntentsRequest instance - */ - ListIntentsRequest.create = function create(properties) { - return new ListIntentsRequest(properties); - }; - - /** - * Encodes the specified ListIntentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IListIntentsRequest} message ListIntentsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListIntentsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.intentView != null && Object.hasOwnProperty.call(message, "intentView")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.intentView); - return writer; - }; - - /** - * Encodes the specified ListIntentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IListIntentsRequest} message ListIntentsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListIntentsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified StreamingDetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest} message StreamingDetectIntentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StreamingDetectIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Decodes a ListIntentsRequest message from the specified reader or buffer. + * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListIntentsRequest} ListIntentsRequest + * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest} StreamingDetectIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIntentsRequest.decode = function decode(reader, length) { + StreamingDetectIntentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListIntentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.session = reader.string(); break; case 2: - message.languageCode = reader.string(); - break; - case 5: - message.intentView = reader.int32(); + message.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.decode(reader, reader.uint32()); break; case 3: - message.pageSize = reader.int32(); + message.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.decode(reader, reader.uint32()); break; case 4: - message.pageToken = reader.string(); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.decode(reader, reader.uint32()); + break; + case 5: + message.enablePartialResponse = reader.bool(); break; default: reader.skipType(tag & 7); @@ -41220,160 +41269,156 @@ }; /** - * Decodes a ListIntentsRequest message from the specified reader or buffer, length delimited. + * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListIntentsRequest} ListIntentsRequest + * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest} StreamingDetectIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIntentsRequest.decodeDelimited = function decodeDelimited(reader) { + StreamingDetectIntentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListIntentsRequest message. + * Verifies a StreamingDetectIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListIntentsRequest.verify = function verify(message) { + StreamingDetectIntentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; - if (message.intentView != null && message.hasOwnProperty("intentView")) - switch (message.intentView) { - default: - return "intentView: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.session != null && message.hasOwnProperty("session")) + if (!$util.isString(message.session)) + return "session: string expected"; + if (message.queryParams != null && message.hasOwnProperty("queryParams")) { + var error = $root.google.cloud.dialogflow.cx.v3.QueryParameters.verify(message.queryParams); + if (error) + return "queryParams." + error; + } + if (message.queryInput != null && message.hasOwnProperty("queryInput")) { + var error = $root.google.cloud.dialogflow.cx.v3.QueryInput.verify(message.queryInput); + if (error) + return "queryInput." + error; + } + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify(message.outputAudioConfig); + if (error) + return "outputAudioConfig." + error; + } + if (message.enablePartialResponse != null && message.hasOwnProperty("enablePartialResponse")) + if (typeof message.enablePartialResponse !== "boolean") + return "enablePartialResponse: boolean expected"; return null; }; /** - * Creates a ListIntentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingDetectIntentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListIntentsRequest} ListIntentsRequest + * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest} StreamingDetectIntentRequest */ - ListIntentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListIntentsRequest) + StreamingDetectIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListIntentsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); - switch (object.intentView) { - case "INTENT_VIEW_UNSPECIFIED": - case 0: - message.intentView = 0; - break; - case "INTENT_VIEW_PARTIAL": - case 1: - message.intentView = 1; - break; - case "INTENT_VIEW_FULL": - case 2: - message.intentView = 2; - break; + var message = new $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest(); + if (object.session != null) + message.session = String(object.session); + if (object.queryParams != null) { + if (typeof object.queryParams !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.queryParams: object expected"); + message.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.fromObject(object.queryParams); } - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + if (object.queryInput != null) { + if (typeof object.queryInput !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.queryInput: object expected"); + message.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.fromObject(object.queryInput); + } + if (object.outputAudioConfig != null) { + if (typeof object.outputAudioConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.outputAudioConfig: object expected"); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.fromObject(object.outputAudioConfig); + } + if (object.enablePartialResponse != null) + message.enablePartialResponse = Boolean(object.enablePartialResponse); return message; }; /** - * Creates a plain object from a ListIntentsRequest message. Also converts values to other types if specified. + * Creates a plain object from a StreamingDetectIntentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ListIntentsRequest} message ListIntentsRequest + * @param {google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest} message StreamingDetectIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListIntentsRequest.toObject = function toObject(message, options) { + StreamingDetectIntentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.languageCode = ""; - object.pageSize = 0; - object.pageToken = ""; - object.intentView = options.enums === String ? "INTENT_VIEW_UNSPECIFIED" : 0; + object.session = ""; + object.queryParams = null; + object.queryInput = null; + object.outputAudioConfig = null; + object.enablePartialResponse = false; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.intentView != null && message.hasOwnProperty("intentView")) - object.intentView = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.IntentView[message.intentView] : message.intentView; + if (message.session != null && message.hasOwnProperty("session")) + object.session = message.session; + if (message.queryParams != null && message.hasOwnProperty("queryParams")) + object.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.toObject(message.queryParams, options); + if (message.queryInput != null && message.hasOwnProperty("queryInput")) + object.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.toObject(message.queryInput, options); + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) + object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.toObject(message.outputAudioConfig, options); + if (message.enablePartialResponse != null && message.hasOwnProperty("enablePartialResponse")) + object.enablePartialResponse = message.enablePartialResponse; return object; }; /** - * Converts this ListIntentsRequest to JSON. + * Converts this StreamingDetectIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @instance * @returns {Object.} JSON object */ - ListIntentsRequest.prototype.toJSON = function toJSON() { + StreamingDetectIntentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListIntentsRequest; + return StreamingDetectIntentRequest; })(); - v3.ListIntentsResponse = (function() { + v3.StreamingDetectIntentResponse = (function() { /** - * Properties of a ListIntentsResponse. + * Properties of a StreamingDetectIntentResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListIntentsResponse - * @property {Array.|null} [intents] ListIntentsResponse intents - * @property {string|null} [nextPageToken] ListIntentsResponse nextPageToken + * @interface IStreamingDetectIntentResponse + * @property {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult|null} [recognitionResult] StreamingDetectIntentResponse recognitionResult + * @property {google.cloud.dialogflow.cx.v3.IDetectIntentResponse|null} [detectIntentResponse] StreamingDetectIntentResponse detectIntentResponse */ /** - * Constructs a new ListIntentsResponse. + * Constructs a new StreamingDetectIntentResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListIntentsResponse. - * @implements IListIntentsResponse + * @classdesc Represents a StreamingDetectIntentResponse. + * @implements IStreamingDetectIntentResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListIntentsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse=} [properties] Properties to set */ - function ListIntentsResponse(properties) { - this.intents = []; + function StreamingDetectIntentResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -41381,91 +41426,102 @@ } /** - * ListIntentsResponse intents. - * @member {Array.} intents - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse + * StreamingDetectIntentResponse recognitionResult. + * @member {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult|null|undefined} recognitionResult + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @instance */ - ListIntentsResponse.prototype.intents = $util.emptyArray; + StreamingDetectIntentResponse.prototype.recognitionResult = null; /** - * ListIntentsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse + * StreamingDetectIntentResponse detectIntentResponse. + * @member {google.cloud.dialogflow.cx.v3.IDetectIntentResponse|null|undefined} detectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @instance */ - ListIntentsResponse.prototype.nextPageToken = ""; + StreamingDetectIntentResponse.prototype.detectIntentResponse = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Creates a new ListIntentsResponse instance using the specified properties. + * StreamingDetectIntentResponse response. + * @member {"recognitionResult"|"detectIntentResponse"|undefined} response + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * @instance + */ + Object.defineProperty(StreamingDetectIntentResponse.prototype, "response", { + get: $util.oneOfGetter($oneOfFields = ["recognitionResult", "detectIntentResponse"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new StreamingDetectIntentResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IListIntentsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListIntentsResponse} ListIntentsResponse instance + * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} StreamingDetectIntentResponse instance */ - ListIntentsResponse.create = function create(properties) { - return new ListIntentsResponse(properties); + StreamingDetectIntentResponse.create = function create(properties) { + return new StreamingDetectIntentResponse(properties); }; /** - * Encodes the specified ListIntentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsResponse.verify|verify} messages. + * Encodes the specified StreamingDetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IListIntentsResponse} message ListIntentsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse} message StreamingDetectIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIntentsResponse.encode = function encode(message, writer) { + StreamingDetectIntentResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.intents != null && message.intents.length) - for (var i = 0; i < message.intents.length; ++i) - $root.google.cloud.dialogflow.cx.v3.Intent.encode(message.intents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.recognitionResult != null && Object.hasOwnProperty.call(message, "recognitionResult")) + $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.encode(message.recognitionResult, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.detectIntentResponse != null && Object.hasOwnProperty.call(message, "detectIntentResponse")) + $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.encode(message.detectIntentResponse, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListIntentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsResponse.verify|verify} messages. + * Encodes the specified StreamingDetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IListIntentsResponse} message ListIntentsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse} message StreamingDetectIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIntentsResponse.encodeDelimited = function encodeDelimited(message, writer) { + StreamingDetectIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListIntentsResponse message from the specified reader or buffer. + * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListIntentsResponse} ListIntentsResponse + * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} StreamingDetectIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIntentsResponse.decode = function decode(reader, length) { + StreamingDetectIntentResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListIntentsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.intents && message.intents.length)) - message.intents = []; - message.intents.push($root.google.cloud.dialogflow.cx.v3.Intent.decode(reader, reader.uint32())); + message.recognitionResult = $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.decode(reader, reader.uint32()); break; case 2: - message.nextPageToken = reader.string(); + message.detectIntentResponse = $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -41476,134 +41532,145 @@ }; /** - * Decodes a ListIntentsResponse message from the specified reader or buffer, length delimited. + * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListIntentsResponse} ListIntentsResponse + * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} StreamingDetectIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIntentsResponse.decodeDelimited = function decodeDelimited(reader) { + StreamingDetectIntentResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListIntentsResponse message. + * Verifies a StreamingDetectIntentResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListIntentsResponse.verify = function verify(message) { + StreamingDetectIntentResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.intents != null && message.hasOwnProperty("intents")) { - if (!Array.isArray(message.intents)) - return "intents: array expected"; - for (var i = 0; i < message.intents.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.Intent.verify(message.intents[i]); + var properties = {}; + if (message.recognitionResult != null && message.hasOwnProperty("recognitionResult")) { + properties.response = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.verify(message.recognitionResult); if (error) - return "intents." + error; + return "recognitionResult." + error; + } + } + if (message.detectIntentResponse != null && message.hasOwnProperty("detectIntentResponse")) { + if (properties.response === 1) + return "response: multiple values"; + properties.response = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.verify(message.detectIntentResponse); + if (error) + return "detectIntentResponse." + error; } } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListIntentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingDetectIntentResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListIntentsResponse} ListIntentsResponse + * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} StreamingDetectIntentResponse */ - ListIntentsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListIntentsResponse) + StreamingDetectIntentResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListIntentsResponse(); - if (object.intents) { - if (!Array.isArray(object.intents)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ListIntentsResponse.intents: array expected"); - message.intents = []; - for (var i = 0; i < object.intents.length; ++i) { - if (typeof object.intents[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ListIntentsResponse.intents: object expected"); - message.intents[i] = $root.google.cloud.dialogflow.cx.v3.Intent.fromObject(object.intents[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse(); + if (object.recognitionResult != null) { + if (typeof object.recognitionResult !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse.recognitionResult: object expected"); + message.recognitionResult = $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.fromObject(object.recognitionResult); + } + if (object.detectIntentResponse != null) { + if (typeof object.detectIntentResponse !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse.detectIntentResponse: object expected"); + message.detectIntentResponse = $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.fromObject(object.detectIntentResponse); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListIntentsResponse message. Also converts values to other types if specified. + * Creates a plain object from a StreamingDetectIntentResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ListIntentsResponse} message ListIntentsResponse + * @param {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} message StreamingDetectIntentResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListIntentsResponse.toObject = function toObject(message, options) { + StreamingDetectIntentResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.intents = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.intents && message.intents.length) { - object.intents = []; - for (var j = 0; j < message.intents.length; ++j) - object.intents[j] = $root.google.cloud.dialogflow.cx.v3.Intent.toObject(message.intents[j], options); + if (message.recognitionResult != null && message.hasOwnProperty("recognitionResult")) { + object.recognitionResult = $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.toObject(message.recognitionResult, options); + if (options.oneofs) + object.response = "recognitionResult"; + } + if (message.detectIntentResponse != null && message.hasOwnProperty("detectIntentResponse")) { + object.detectIntentResponse = $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.toObject(message.detectIntentResponse, options); + if (options.oneofs) + object.response = "detectIntentResponse"; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListIntentsResponse to JSON. + * Converts this StreamingDetectIntentResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @instance * @returns {Object.} JSON object */ - ListIntentsResponse.prototype.toJSON = function toJSON() { + StreamingDetectIntentResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListIntentsResponse; + return StreamingDetectIntentResponse; })(); - v3.GetIntentRequest = (function() { + v3.StreamingRecognitionResult = (function() { /** - * Properties of a GetIntentRequest. + * Properties of a StreamingRecognitionResult. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IGetIntentRequest - * @property {string|null} [name] GetIntentRequest name - * @property {string|null} [languageCode] GetIntentRequest languageCode + * @interface IStreamingRecognitionResult + * @property {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType|null} [messageType] StreamingRecognitionResult messageType + * @property {string|null} [transcript] StreamingRecognitionResult transcript + * @property {boolean|null} [isFinal] StreamingRecognitionResult isFinal + * @property {number|null} [confidence] StreamingRecognitionResult confidence + * @property {number|null} [stability] StreamingRecognitionResult stability + * @property {Array.|null} [speechWordInfo] StreamingRecognitionResult speechWordInfo + * @property {google.protobuf.IDuration|null} [speechEndOffset] StreamingRecognitionResult speechEndOffset + * @property {string|null} [languageCode] StreamingRecognitionResult languageCode */ /** - * Constructs a new GetIntentRequest. + * Constructs a new StreamingRecognitionResult. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a GetIntentRequest. - * @implements IGetIntentRequest + * @classdesc Represents a StreamingRecognitionResult. + * @implements IStreamingRecognitionResult * @constructor - * @param {google.cloud.dialogflow.cx.v3.IGetIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult=} [properties] Properties to set */ - function GetIntentRequest(properties) { + function StreamingRecognitionResult(properties) { + this.speechWordInfo = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -41611,87 +41678,168 @@ } /** - * GetIntentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest + * StreamingRecognitionResult messageType. + * @member {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType} messageType + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @instance */ - GetIntentRequest.prototype.name = ""; + StreamingRecognitionResult.prototype.messageType = 0; /** - * GetIntentRequest languageCode. + * StreamingRecognitionResult transcript. + * @member {string} transcript + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @instance + */ + StreamingRecognitionResult.prototype.transcript = ""; + + /** + * StreamingRecognitionResult isFinal. + * @member {boolean} isFinal + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @instance + */ + StreamingRecognitionResult.prototype.isFinal = false; + + /** + * StreamingRecognitionResult confidence. + * @member {number} confidence + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @instance + */ + StreamingRecognitionResult.prototype.confidence = 0; + + /** + * StreamingRecognitionResult stability. + * @member {number} stability + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @instance + */ + StreamingRecognitionResult.prototype.stability = 0; + + /** + * StreamingRecognitionResult speechWordInfo. + * @member {Array.} speechWordInfo + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @instance + */ + StreamingRecognitionResult.prototype.speechWordInfo = $util.emptyArray; + + /** + * StreamingRecognitionResult speechEndOffset. + * @member {google.protobuf.IDuration|null|undefined} speechEndOffset + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @instance + */ + StreamingRecognitionResult.prototype.speechEndOffset = null; + + /** + * StreamingRecognitionResult languageCode. * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @instance */ - GetIntentRequest.prototype.languageCode = ""; + StreamingRecognitionResult.prototype.languageCode = ""; /** - * Creates a new GetIntentRequest instance using the specified properties. + * Creates a new StreamingRecognitionResult instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @static - * @param {google.cloud.dialogflow.cx.v3.IGetIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.GetIntentRequest} GetIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult} StreamingRecognitionResult instance */ - GetIntentRequest.create = function create(properties) { - return new GetIntentRequest(properties); + StreamingRecognitionResult.create = function create(properties) { + return new StreamingRecognitionResult(properties); }; /** - * Encodes the specified GetIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetIntentRequest.verify|verify} messages. + * Encodes the specified StreamingRecognitionResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @static - * @param {google.cloud.dialogflow.cx.v3.IGetIntentRequest} message GetIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult} message StreamingRecognitionResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIntentRequest.encode = function encode(message, writer) { + StreamingRecognitionResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.messageType != null && Object.hasOwnProperty.call(message, "messageType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.messageType); + if (message.transcript != null && Object.hasOwnProperty.call(message, "transcript")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.transcript); + if (message.isFinal != null && Object.hasOwnProperty.call(message, "isFinal")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isFinal); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + writer.uint32(/* id 4, wireType 5 =*/37).float(message.confidence); + if (message.stability != null && Object.hasOwnProperty.call(message, "stability")) + writer.uint32(/* id 6, wireType 5 =*/53).float(message.stability); + if (message.speechWordInfo != null && message.speechWordInfo.length) + for (var i = 0; i < message.speechWordInfo.length; ++i) + $root.google.cloud.dialogflow.cx.v3.SpeechWordInfo.encode(message.speechWordInfo[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.speechEndOffset != null && Object.hasOwnProperty.call(message, "speechEndOffset")) + $root.google.protobuf.Duration.encode(message.speechEndOffset, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + writer.uint32(/* id 10, wireType 2 =*/82).string(message.languageCode); return writer; }; /** - * Encodes the specified GetIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetIntentRequest.verify|verify} messages. + * Encodes the specified StreamingRecognitionResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @static - * @param {google.cloud.dialogflow.cx.v3.IGetIntentRequest} message GetIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult} message StreamingRecognitionResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + StreamingRecognitionResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetIntentRequest message from the specified reader or buffer. + * Decodes a StreamingRecognitionResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.GetIntentRequest} GetIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult} StreamingRecognitionResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIntentRequest.decode = function decode(reader, length) { + StreamingRecognitionResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.messageType = reader.int32(); break; case 2: + message.transcript = reader.string(); + break; + case 3: + message.isFinal = reader.bool(); + break; + case 4: + message.confidence = reader.float(); + break; + case 6: + message.stability = reader.float(); + break; + case 7: + if (!(message.speechWordInfo && message.speechWordInfo.length)) + message.speechWordInfo = []; + message.speechWordInfo.push($root.google.cloud.dialogflow.cx.v3.SpeechWordInfo.decode(reader, reader.uint32())); + break; + case 8: + message.speechEndOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 10: message.languageCode = reader.string(); break; default: @@ -41703,35 +41851,67 @@ }; /** - * Decodes a GetIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a StreamingRecognitionResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.GetIntentRequest} GetIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult} StreamingRecognitionResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIntentRequest.decodeDelimited = function decodeDelimited(reader) { + StreamingRecognitionResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetIntentRequest message. + * Verifies a StreamingRecognitionResult message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetIntentRequest.verify = function verify(message) { + StreamingRecognitionResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.messageType != null && message.hasOwnProperty("messageType")) + switch (message.messageType) { + default: + return "messageType: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.transcript != null && message.hasOwnProperty("transcript")) + if (!$util.isString(message.transcript)) + return "transcript: string expected"; + if (message.isFinal != null && message.hasOwnProperty("isFinal")) + if (typeof message.isFinal !== "boolean") + return "isFinal: boolean expected"; + if (message.confidence != null && message.hasOwnProperty("confidence")) + if (typeof message.confidence !== "number") + return "confidence: number expected"; + if (message.stability != null && message.hasOwnProperty("stability")) + if (typeof message.stability !== "number") + return "stability: number expected"; + if (message.speechWordInfo != null && message.hasOwnProperty("speechWordInfo")) { + if (!Array.isArray(message.speechWordInfo)) + return "speechWordInfo: array expected"; + for (var i = 0; i < message.speechWordInfo.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.SpeechWordInfo.verify(message.speechWordInfo[i]); + if (error) + return "speechWordInfo." + error; + } + } + if (message.speechEndOffset != null && message.hasOwnProperty("speechEndOffset")) { + var error = $root.google.protobuf.Duration.verify(message.speechEndOffset); + if (error) + return "speechEndOffset." + error; + } if (message.languageCode != null && message.hasOwnProperty("languageCode")) if (!$util.isString(message.languageCode)) return "languageCode: string expected"; @@ -41739,82 +41919,165 @@ }; /** - * Creates a GetIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingRecognitionResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.GetIntentRequest} GetIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult} StreamingRecognitionResult */ - GetIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetIntentRequest) + StreamingRecognitionResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.GetIntentRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult(); + switch (object.messageType) { + case "MESSAGE_TYPE_UNSPECIFIED": + case 0: + message.messageType = 0; + break; + case "TRANSCRIPT": + case 1: + message.messageType = 1; + break; + case "END_OF_SINGLE_UTTERANCE": + case 2: + message.messageType = 2; + break; + } + if (object.transcript != null) + message.transcript = String(object.transcript); + if (object.isFinal != null) + message.isFinal = Boolean(object.isFinal); + if (object.confidence != null) + message.confidence = Number(object.confidence); + if (object.stability != null) + message.stability = Number(object.stability); + if (object.speechWordInfo) { + if (!Array.isArray(object.speechWordInfo)) + throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.speechWordInfo: array expected"); + message.speechWordInfo = []; + for (var i = 0; i < object.speechWordInfo.length; ++i) { + if (typeof object.speechWordInfo[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.speechWordInfo: object expected"); + message.speechWordInfo[i] = $root.google.cloud.dialogflow.cx.v3.SpeechWordInfo.fromObject(object.speechWordInfo[i]); + } + } + if (object.speechEndOffset != null) { + if (typeof object.speechEndOffset !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.speechEndOffset: object expected"); + message.speechEndOffset = $root.google.protobuf.Duration.fromObject(object.speechEndOffset); + } if (object.languageCode != null) message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a GetIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from a StreamingRecognitionResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @static - * @param {google.cloud.dialogflow.cx.v3.GetIntentRequest} message GetIntentRequest + * @param {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult} message StreamingRecognitionResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetIntentRequest.toObject = function toObject(message, options) { + StreamingRecognitionResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.speechWordInfo = []; if (options.defaults) { - object.name = ""; + object.messageType = options.enums === String ? "MESSAGE_TYPE_UNSPECIFIED" : 0; + object.transcript = ""; + object.isFinal = false; + object.confidence = 0; + object.stability = 0; + object.speechEndOffset = null; object.languageCode = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (message.messageType != null && message.hasOwnProperty("messageType")) + object.messageType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType[message.messageType] : message.messageType; + if (message.transcript != null && message.hasOwnProperty("transcript")) + object.transcript = message.transcript; + if (message.isFinal != null && message.hasOwnProperty("isFinal")) + object.isFinal = message.isFinal; + if (message.confidence != null && message.hasOwnProperty("confidence")) + object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; + if (message.stability != null && message.hasOwnProperty("stability")) + object.stability = options.json && !isFinite(message.stability) ? String(message.stability) : message.stability; + if (message.speechWordInfo && message.speechWordInfo.length) { + object.speechWordInfo = []; + for (var j = 0; j < message.speechWordInfo.length; ++j) + object.speechWordInfo[j] = $root.google.cloud.dialogflow.cx.v3.SpeechWordInfo.toObject(message.speechWordInfo[j], options); + } + if (message.speechEndOffset != null && message.hasOwnProperty("speechEndOffset")) + object.speechEndOffset = $root.google.protobuf.Duration.toObject(message.speechEndOffset, options); if (message.languageCode != null && message.hasOwnProperty("languageCode")) object.languageCode = message.languageCode; return object; }; /** - * Converts this GetIntentRequest to JSON. + * Converts this StreamingRecognitionResult to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @instance * @returns {Object.} JSON object */ - GetIntentRequest.prototype.toJSON = function toJSON() { + StreamingRecognitionResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetIntentRequest; + /** + * MessageType enum. + * @name google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType + * @enum {number} + * @property {number} MESSAGE_TYPE_UNSPECIFIED=0 MESSAGE_TYPE_UNSPECIFIED value + * @property {number} TRANSCRIPT=1 TRANSCRIPT value + * @property {number} END_OF_SINGLE_UTTERANCE=2 END_OF_SINGLE_UTTERANCE value + */ + StreamingRecognitionResult.MessageType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MESSAGE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "TRANSCRIPT"] = 1; + values[valuesById[2] = "END_OF_SINGLE_UTTERANCE"] = 2; + return values; + })(); + + return StreamingRecognitionResult; })(); - v3.CreateIntentRequest = (function() { + v3.QueryParameters = (function() { /** - * Properties of a CreateIntentRequest. + * Properties of a QueryParameters. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ICreateIntentRequest - * @property {string|null} [parent] CreateIntentRequest parent - * @property {google.cloud.dialogflow.cx.v3.IIntent|null} [intent] CreateIntentRequest intent - * @property {string|null} [languageCode] CreateIntentRequest languageCode + * @interface IQueryParameters + * @property {string|null} [timeZone] QueryParameters timeZone + * @property {google.type.ILatLng|null} [geoLocation] QueryParameters geoLocation + * @property {Array.|null} [sessionEntityTypes] QueryParameters sessionEntityTypes + * @property {google.protobuf.IStruct|null} [payload] QueryParameters payload + * @property {google.protobuf.IStruct|null} [parameters] QueryParameters parameters + * @property {string|null} [currentPage] QueryParameters currentPage + * @property {boolean|null} [disableWebhook] QueryParameters disableWebhook + * @property {boolean|null} [analyzeQueryTextSentiment] QueryParameters analyzeQueryTextSentiment + * @property {Object.|null} [webhookHeaders] QueryParameters webhookHeaders + * @property {Array.|null} [flowVersions] QueryParameters flowVersions */ /** - * Constructs a new CreateIntentRequest. + * Constructs a new QueryParameters. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CreateIntentRequest. - * @implements ICreateIntentRequest + * @classdesc Represents a QueryParameters. + * @implements IQueryParameters * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICreateIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IQueryParameters=} [properties] Properties to set */ - function CreateIntentRequest(properties) { + function QueryParameters(properties) { + this.sessionEntityTypes = []; + this.webhookHeaders = {}; + this.flowVersions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -41822,101 +42085,218 @@ } /** - * CreateIntentRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest + * QueryParameters timeZone. + * @member {string} timeZone + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @instance */ - CreateIntentRequest.prototype.parent = ""; + QueryParameters.prototype.timeZone = ""; /** - * CreateIntentRequest intent. - * @member {google.cloud.dialogflow.cx.v3.IIntent|null|undefined} intent - * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest + * QueryParameters geoLocation. + * @member {google.type.ILatLng|null|undefined} geoLocation + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @instance */ - CreateIntentRequest.prototype.intent = null; + QueryParameters.prototype.geoLocation = null; /** - * CreateIntentRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest + * QueryParameters sessionEntityTypes. + * @member {Array.} sessionEntityTypes + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @instance */ - CreateIntentRequest.prototype.languageCode = ""; + QueryParameters.prototype.sessionEntityTypes = $util.emptyArray; /** - * Creates a new CreateIntentRequest instance using the specified properties. + * QueryParameters payload. + * @member {google.protobuf.IStruct|null|undefined} payload + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @instance + */ + QueryParameters.prototype.payload = null; + + /** + * QueryParameters parameters. + * @member {google.protobuf.IStruct|null|undefined} parameters + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @instance + */ + QueryParameters.prototype.parameters = null; + + /** + * QueryParameters currentPage. + * @member {string} currentPage + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @instance + */ + QueryParameters.prototype.currentPage = ""; + + /** + * QueryParameters disableWebhook. + * @member {boolean} disableWebhook + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @instance + */ + QueryParameters.prototype.disableWebhook = false; + + /** + * QueryParameters analyzeQueryTextSentiment. + * @member {boolean} analyzeQueryTextSentiment + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @instance + */ + QueryParameters.prototype.analyzeQueryTextSentiment = false; + + /** + * QueryParameters webhookHeaders. + * @member {Object.} webhookHeaders + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @instance + */ + QueryParameters.prototype.webhookHeaders = $util.emptyObject; + + /** + * QueryParameters flowVersions. + * @member {Array.} flowVersions + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @instance + */ + QueryParameters.prototype.flowVersions = $util.emptyArray; + + /** + * Creates a new QueryParameters instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.CreateIntentRequest} CreateIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IQueryParameters=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.QueryParameters} QueryParameters instance */ - CreateIntentRequest.create = function create(properties) { - return new CreateIntentRequest(properties); + QueryParameters.create = function create(properties) { + return new QueryParameters(properties); }; /** - * Encodes the specified CreateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateIntentRequest.verify|verify} messages. + * Encodes the specified QueryParameters message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryParameters.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateIntentRequest} message CreateIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IQueryParameters} message QueryParameters message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateIntentRequest.encode = function encode(message, writer) { + QueryParameters.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) - $root.google.cloud.dialogflow.cx.v3.Intent.encode(message.intent, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); + if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.timeZone); + if (message.geoLocation != null && Object.hasOwnProperty.call(message, "geoLocation")) + $root.google.type.LatLng.encode(message.geoLocation, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.sessionEntityTypes != null && message.sessionEntityTypes.length) + for (var i = 0; i < message.sessionEntityTypes.length; ++i) + $root.google.cloud.dialogflow.cx.v3.SessionEntityType.encode(message.sessionEntityTypes[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) + $root.google.protobuf.Struct.encode(message.payload, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + $root.google.protobuf.Struct.encode(message.parameters, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.currentPage); + if (message.disableWebhook != null && Object.hasOwnProperty.call(message, "disableWebhook")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.disableWebhook); + if (message.analyzeQueryTextSentiment != null && Object.hasOwnProperty.call(message, "analyzeQueryTextSentiment")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.analyzeQueryTextSentiment); + if (message.webhookHeaders != null && Object.hasOwnProperty.call(message, "webhookHeaders")) + for (var keys = Object.keys(message.webhookHeaders), i = 0; i < keys.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.webhookHeaders[keys[i]]).ldelim(); + if (message.flowVersions != null && message.flowVersions.length) + for (var i = 0; i < message.flowVersions.length; ++i) + writer.uint32(/* id 14, wireType 2 =*/114).string(message.flowVersions[i]); return writer; }; /** - * Encodes the specified CreateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateIntentRequest.verify|verify} messages. + * Encodes the specified QueryParameters message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryParameters.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateIntentRequest} message CreateIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IQueryParameters} message QueryParameters message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryParameters.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateIntentRequest message from the specified reader or buffer. + * Decodes a QueryParameters message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.CreateIntentRequest} CreateIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.QueryParameters} QueryParameters * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateIntentRequest.decode = function decode(reader, length) { + QueryParameters.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.QueryParameters(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.timeZone = reader.string(); break; case 2: - message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.decode(reader, reader.uint32()); + message.geoLocation = $root.google.type.LatLng.decode(reader, reader.uint32()); break; case 3: - message.languageCode = reader.string(); + if (!(message.sessionEntityTypes && message.sessionEntityTypes.length)) + message.sessionEntityTypes = []; + message.sessionEntityTypes.push($root.google.cloud.dialogflow.cx.v3.SessionEntityType.decode(reader, reader.uint32())); + break; + case 4: + message.payload = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 5: + message.parameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 6: + message.currentPage = reader.string(); + break; + case 7: + message.disableWebhook = reader.bool(); + break; + case 8: + message.analyzeQueryTextSentiment = reader.bool(); + break; + case 10: + if (message.webhookHeaders === $util.emptyObject) + message.webhookHeaders = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.webhookHeaders[key] = value; + break; + case 14: + if (!(message.flowVersions && message.flowVersions.length)) + message.flowVersions = []; + message.flowVersions.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -41927,131 +42307,246 @@ }; /** - * Decodes a CreateIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryParameters message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.CreateIntentRequest} CreateIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.QueryParameters} QueryParameters * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateIntentRequest.decodeDelimited = function decodeDelimited(reader) { + QueryParameters.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateIntentRequest message. + * Verifies a QueryParameters message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateIntentRequest.verify = function verify(message) { + QueryParameters.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.intent != null && message.hasOwnProperty("intent")) { - var error = $root.google.cloud.dialogflow.cx.v3.Intent.verify(message.intent); + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + if (!$util.isString(message.timeZone)) + return "timeZone: string expected"; + if (message.geoLocation != null && message.hasOwnProperty("geoLocation")) { + var error = $root.google.type.LatLng.verify(message.geoLocation); if (error) - return "intent." + error; + return "geoLocation." + error; + } + if (message.sessionEntityTypes != null && message.hasOwnProperty("sessionEntityTypes")) { + if (!Array.isArray(message.sessionEntityTypes)) + return "sessionEntityTypes: array expected"; + for (var i = 0; i < message.sessionEntityTypes.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.verify(message.sessionEntityTypes[i]); + if (error) + return "sessionEntityTypes." + error; + } + } + if (message.payload != null && message.hasOwnProperty("payload")) { + var error = $root.google.protobuf.Struct.verify(message.payload); + if (error) + return "payload." + error; + } + if (message.parameters != null && message.hasOwnProperty("parameters")) { + var error = $root.google.protobuf.Struct.verify(message.parameters); + if (error) + return "parameters." + error; + } + if (message.currentPage != null && message.hasOwnProperty("currentPage")) + if (!$util.isString(message.currentPage)) + return "currentPage: string expected"; + if (message.disableWebhook != null && message.hasOwnProperty("disableWebhook")) + if (typeof message.disableWebhook !== "boolean") + return "disableWebhook: boolean expected"; + if (message.analyzeQueryTextSentiment != null && message.hasOwnProperty("analyzeQueryTextSentiment")) + if (typeof message.analyzeQueryTextSentiment !== "boolean") + return "analyzeQueryTextSentiment: boolean expected"; + if (message.webhookHeaders != null && message.hasOwnProperty("webhookHeaders")) { + if (!$util.isObject(message.webhookHeaders)) + return "webhookHeaders: object expected"; + var key = Object.keys(message.webhookHeaders); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.webhookHeaders[key[i]])) + return "webhookHeaders: string{k:string} expected"; + } + if (message.flowVersions != null && message.hasOwnProperty("flowVersions")) { + if (!Array.isArray(message.flowVersions)) + return "flowVersions: array expected"; + for (var i = 0; i < message.flowVersions.length; ++i) + if (!$util.isString(message.flowVersions[i])) + return "flowVersions: string[] expected"; } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; return null; }; /** - * Creates a CreateIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryParameters message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CreateIntentRequest} CreateIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.QueryParameters} QueryParameters */ - CreateIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateIntentRequest) + QueryParameters.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.QueryParameters) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.CreateIntentRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.intent != null) { - if (typeof object.intent !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CreateIntentRequest.intent: object expected"); - message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.fromObject(object.intent); + var message = new $root.google.cloud.dialogflow.cx.v3.QueryParameters(); + if (object.timeZone != null) + message.timeZone = String(object.timeZone); + if (object.geoLocation != null) { + if (typeof object.geoLocation !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.geoLocation: object expected"); + message.geoLocation = $root.google.type.LatLng.fromObject(object.geoLocation); + } + if (object.sessionEntityTypes) { + if (!Array.isArray(object.sessionEntityTypes)) + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.sessionEntityTypes: array expected"); + message.sessionEntityTypes = []; + for (var i = 0; i < object.sessionEntityTypes.length; ++i) { + if (typeof object.sessionEntityTypes[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.sessionEntityTypes: object expected"); + message.sessionEntityTypes[i] = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.fromObject(object.sessionEntityTypes[i]); + } + } + if (object.payload != null) { + if (typeof object.payload !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.payload: object expected"); + message.payload = $root.google.protobuf.Struct.fromObject(object.payload); + } + if (object.parameters != null) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.parameters: object expected"); + message.parameters = $root.google.protobuf.Struct.fromObject(object.parameters); + } + if (object.currentPage != null) + message.currentPage = String(object.currentPage); + if (object.disableWebhook != null) + message.disableWebhook = Boolean(object.disableWebhook); + if (object.analyzeQueryTextSentiment != null) + message.analyzeQueryTextSentiment = Boolean(object.analyzeQueryTextSentiment); + if (object.webhookHeaders) { + if (typeof object.webhookHeaders !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.webhookHeaders: object expected"); + message.webhookHeaders = {}; + for (var keys = Object.keys(object.webhookHeaders), i = 0; i < keys.length; ++i) + message.webhookHeaders[keys[i]] = String(object.webhookHeaders[keys[i]]); + } + if (object.flowVersions) { + if (!Array.isArray(object.flowVersions)) + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.flowVersions: array expected"); + message.flowVersions = []; + for (var i = 0; i < object.flowVersions.length; ++i) + message.flowVersions[i] = String(object.flowVersions[i]); } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a CreateIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryParameters message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @static - * @param {google.cloud.dialogflow.cx.v3.CreateIntentRequest} message CreateIntentRequest + * @param {google.cloud.dialogflow.cx.v3.QueryParameters} message QueryParameters * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateIntentRequest.toObject = function toObject(message, options) { + QueryParameters.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.sessionEntityTypes = []; + object.flowVersions = []; + } + if (options.objects || options.defaults) + object.webhookHeaders = {}; if (options.defaults) { - object.parent = ""; - object.intent = null; - object.languageCode = ""; + object.timeZone = ""; + object.geoLocation = null; + object.payload = null; + object.parameters = null; + object.currentPage = ""; + object.disableWebhook = false; + object.analyzeQueryTextSentiment = false; + } + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + object.timeZone = message.timeZone; + if (message.geoLocation != null && message.hasOwnProperty("geoLocation")) + object.geoLocation = $root.google.type.LatLng.toObject(message.geoLocation, options); + if (message.sessionEntityTypes && message.sessionEntityTypes.length) { + object.sessionEntityTypes = []; + for (var j = 0; j < message.sessionEntityTypes.length; ++j) + object.sessionEntityTypes[j] = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.toObject(message.sessionEntityTypes[j], options); + } + if (message.payload != null && message.hasOwnProperty("payload")) + object.payload = $root.google.protobuf.Struct.toObject(message.payload, options); + if (message.parameters != null && message.hasOwnProperty("parameters")) + object.parameters = $root.google.protobuf.Struct.toObject(message.parameters, options); + if (message.currentPage != null && message.hasOwnProperty("currentPage")) + object.currentPage = message.currentPage; + if (message.disableWebhook != null && message.hasOwnProperty("disableWebhook")) + object.disableWebhook = message.disableWebhook; + if (message.analyzeQueryTextSentiment != null && message.hasOwnProperty("analyzeQueryTextSentiment")) + object.analyzeQueryTextSentiment = message.analyzeQueryTextSentiment; + var keys2; + if (message.webhookHeaders && (keys2 = Object.keys(message.webhookHeaders)).length) { + object.webhookHeaders = {}; + for (var j = 0; j < keys2.length; ++j) + object.webhookHeaders[keys2[j]] = message.webhookHeaders[keys2[j]]; + } + if (message.flowVersions && message.flowVersions.length) { + object.flowVersions = []; + for (var j = 0; j < message.flowVersions.length; ++j) + object.flowVersions[j] = message.flowVersions[j]; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.intent != null && message.hasOwnProperty("intent")) - object.intent = $root.google.cloud.dialogflow.cx.v3.Intent.toObject(message.intent, options); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; return object; }; /** - * Converts this CreateIntentRequest to JSON. + * Converts this QueryParameters to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @instance * @returns {Object.} JSON object */ - CreateIntentRequest.prototype.toJSON = function toJSON() { + QueryParameters.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateIntentRequest; + return QueryParameters; })(); - v3.UpdateIntentRequest = (function() { + v3.QueryInput = (function() { /** - * Properties of an UpdateIntentRequest. + * Properties of a QueryInput. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IUpdateIntentRequest - * @property {google.cloud.dialogflow.cx.v3.IIntent|null} [intent] UpdateIntentRequest intent - * @property {string|null} [languageCode] UpdateIntentRequest languageCode - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateIntentRequest updateMask + * @interface IQueryInput + * @property {google.cloud.dialogflow.cx.v3.ITextInput|null} [text] QueryInput text + * @property {google.cloud.dialogflow.cx.v3.IIntentInput|null} [intent] QueryInput intent + * @property {google.cloud.dialogflow.cx.v3.IAudioInput|null} [audio] QueryInput audio + * @property {google.cloud.dialogflow.cx.v3.IEventInput|null} [event] QueryInput event + * @property {google.cloud.dialogflow.cx.v3.IDtmfInput|null} [dtmf] QueryInput dtmf + * @property {string|null} [languageCode] QueryInput languageCode */ /** - * Constructs a new UpdateIntentRequest. + * Constructs a new QueryInput. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an UpdateIntentRequest. - * @implements IUpdateIntentRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IUpdateIntentRequest=} [properties] Properties to set + * @classdesc Represents a QueryInput. + * @implements IQueryInput + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IQueryInput=} [properties] Properties to set */ - function UpdateIntentRequest(properties) { + function QueryInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -42059,101 +42554,154 @@ } /** - * UpdateIntentRequest intent. - * @member {google.cloud.dialogflow.cx.v3.IIntent|null|undefined} intent - * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * QueryInput text. + * @member {google.cloud.dialogflow.cx.v3.ITextInput|null|undefined} text + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @instance */ - UpdateIntentRequest.prototype.intent = null; + QueryInput.prototype.text = null; /** - * UpdateIntentRequest languageCode. + * QueryInput intent. + * @member {google.cloud.dialogflow.cx.v3.IIntentInput|null|undefined} intent + * @memberof google.cloud.dialogflow.cx.v3.QueryInput + * @instance + */ + QueryInput.prototype.intent = null; + + /** + * QueryInput audio. + * @member {google.cloud.dialogflow.cx.v3.IAudioInput|null|undefined} audio + * @memberof google.cloud.dialogflow.cx.v3.QueryInput + * @instance + */ + QueryInput.prototype.audio = null; + + /** + * QueryInput event. + * @member {google.cloud.dialogflow.cx.v3.IEventInput|null|undefined} event + * @memberof google.cloud.dialogflow.cx.v3.QueryInput + * @instance + */ + QueryInput.prototype.event = null; + + /** + * QueryInput dtmf. + * @member {google.cloud.dialogflow.cx.v3.IDtmfInput|null|undefined} dtmf + * @memberof google.cloud.dialogflow.cx.v3.QueryInput + * @instance + */ + QueryInput.prototype.dtmf = null; + + /** + * QueryInput languageCode. * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @instance */ - UpdateIntentRequest.prototype.languageCode = ""; + QueryInput.prototype.languageCode = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * UpdateIntentRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * QueryInput input. + * @member {"text"|"intent"|"audio"|"event"|"dtmf"|undefined} input + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @instance */ - UpdateIntentRequest.prototype.updateMask = null; + Object.defineProperty(QueryInput.prototype, "input", { + get: $util.oneOfGetter($oneOfFields = ["text", "intent", "audio", "event", "dtmf"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new UpdateIntentRequest instance using the specified properties. + * Creates a new QueryInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.UpdateIntentRequest} UpdateIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IQueryInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.QueryInput} QueryInput instance */ - UpdateIntentRequest.create = function create(properties) { - return new UpdateIntentRequest(properties); + QueryInput.create = function create(properties) { + return new QueryInput(properties); }; /** - * Encodes the specified UpdateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateIntentRequest.verify|verify} messages. + * Encodes the specified QueryInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryInput.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateIntentRequest} message UpdateIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IQueryInput} message QueryInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIntentRequest.encode = function encode(message, writer) { + QueryInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + $root.google.cloud.dialogflow.cx.v3.TextInput.encode(message.text, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) - $root.google.cloud.dialogflow.cx.v3.Intent.encode(message.intent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.IntentInput.encode(message.intent, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + writer.uint32(/* id 4, wireType 2 =*/34).string(message.languageCode); + if (message.audio != null && Object.hasOwnProperty.call(message, "audio")) + $root.google.cloud.dialogflow.cx.v3.AudioInput.encode(message.audio, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.event != null && Object.hasOwnProperty.call(message, "event")) + $root.google.cloud.dialogflow.cx.v3.EventInput.encode(message.event, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.dtmf != null && Object.hasOwnProperty.call(message, "dtmf")) + $root.google.cloud.dialogflow.cx.v3.DtmfInput.encode(message.dtmf, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateIntentRequest.verify|verify} messages. + * Encodes the specified QueryInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateIntentRequest} message UpdateIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IQueryInput} message QueryInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateIntentRequest message from the specified reader or buffer. + * Decodes a QueryInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.UpdateIntentRequest} UpdateIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.QueryInput} QueryInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIntentRequest.decode = function decode(reader, length) { + QueryInput.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.QueryInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.decode(reader, reader.uint32()); - break; case 2: - message.languageCode = reader.string(); + message.text = $root.google.cloud.dialogflow.cx.v3.TextInput.decode(reader, reader.uint32()); break; case 3: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.intent = $root.google.cloud.dialogflow.cx.v3.IntentInput.decode(reader, reader.uint32()); + break; + case 5: + message.audio = $root.google.cloud.dialogflow.cx.v3.AudioInput.decode(reader, reader.uint32()); + break; + case 6: + message.event = $root.google.cloud.dialogflow.cx.v3.EventInput.decode(reader, reader.uint32()); + break; + case 7: + message.dtmf = $root.google.cloud.dialogflow.cx.v3.DtmfInput.decode(reader, reader.uint32()); + break; + case 4: + message.languageCode = reader.string(); break; default: reader.skipType(tag & 7); @@ -42164,134 +42712,224 @@ }; /** - * Decodes an UpdateIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.UpdateIntentRequest} UpdateIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.QueryInput} QueryInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIntentRequest.decodeDelimited = function decodeDelimited(reader) { + QueryInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateIntentRequest message. + * Verifies a QueryInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateIntentRequest.verify = function verify(message) { + QueryInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; + if (message.text != null && message.hasOwnProperty("text")) { + properties.input = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.TextInput.verify(message.text); + if (error) + return "text." + error; + } + } if (message.intent != null && message.hasOwnProperty("intent")) { - var error = $root.google.cloud.dialogflow.cx.v3.Intent.verify(message.intent); - if (error) - return "intent." + error; + if (properties.input === 1) + return "input: multiple values"; + properties.input = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.IntentInput.verify(message.intent); + if (error) + return "intent." + error; + } + } + if (message.audio != null && message.hasOwnProperty("audio")) { + if (properties.input === 1) + return "input: multiple values"; + properties.input = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.AudioInput.verify(message.audio); + if (error) + return "audio." + error; + } + } + if (message.event != null && message.hasOwnProperty("event")) { + if (properties.input === 1) + return "input: multiple values"; + properties.input = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.EventInput.verify(message.event); + if (error) + return "event." + error; + } + } + if (message.dtmf != null && message.hasOwnProperty("dtmf")) { + if (properties.input === 1) + return "input: multiple values"; + properties.input = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.DtmfInput.verify(message.dtmf); + if (error) + return "dtmf." + error; + } } if (message.languageCode != null && message.hasOwnProperty("languageCode")) if (!$util.isString(message.languageCode)) return "languageCode: string expected"; - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } return null; }; /** - * Creates an UpdateIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.UpdateIntentRequest} UpdateIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.QueryInput} QueryInput */ - UpdateIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateIntentRequest) + QueryInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.QueryInput) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.UpdateIntentRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.QueryInput(); + if (object.text != null) { + if (typeof object.text !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryInput.text: object expected"); + message.text = $root.google.cloud.dialogflow.cx.v3.TextInput.fromObject(object.text); + } if (object.intent != null) { if (typeof object.intent !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateIntentRequest.intent: object expected"); - message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.fromObject(object.intent); + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryInput.intent: object expected"); + message.intent = $root.google.cloud.dialogflow.cx.v3.IntentInput.fromObject(object.intent); + } + if (object.audio != null) { + if (typeof object.audio !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryInput.audio: object expected"); + message.audio = $root.google.cloud.dialogflow.cx.v3.AudioInput.fromObject(object.audio); + } + if (object.event != null) { + if (typeof object.event !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryInput.event: object expected"); + message.event = $root.google.cloud.dialogflow.cx.v3.EventInput.fromObject(object.event); + } + if (object.dtmf != null) { + if (typeof object.dtmf !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryInput.dtmf: object expected"); + message.dtmf = $root.google.cloud.dialogflow.cx.v3.DtmfInput.fromObject(object.dtmf); } if (object.languageCode != null) message.languageCode = String(object.languageCode); - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateIntentRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } return message; }; /** - * Creates a plain object from an UpdateIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @static - * @param {google.cloud.dialogflow.cx.v3.UpdateIntentRequest} message UpdateIntentRequest + * @param {google.cloud.dialogflow.cx.v3.QueryInput} message QueryInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateIntentRequest.toObject = function toObject(message, options) { + QueryInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.intent = null; + if (options.defaults) object.languageCode = ""; - object.updateMask = null; + if (message.text != null && message.hasOwnProperty("text")) { + object.text = $root.google.cloud.dialogflow.cx.v3.TextInput.toObject(message.text, options); + if (options.oneofs) + object.input = "text"; + } + if (message.intent != null && message.hasOwnProperty("intent")) { + object.intent = $root.google.cloud.dialogflow.cx.v3.IntentInput.toObject(message.intent, options); + if (options.oneofs) + object.input = "intent"; } - if (message.intent != null && message.hasOwnProperty("intent")) - object.intent = $root.google.cloud.dialogflow.cx.v3.Intent.toObject(message.intent, options); if (message.languageCode != null && message.hasOwnProperty("languageCode")) object.languageCode = message.languageCode; - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.audio != null && message.hasOwnProperty("audio")) { + object.audio = $root.google.cloud.dialogflow.cx.v3.AudioInput.toObject(message.audio, options); + if (options.oneofs) + object.input = "audio"; + } + if (message.event != null && message.hasOwnProperty("event")) { + object.event = $root.google.cloud.dialogflow.cx.v3.EventInput.toObject(message.event, options); + if (options.oneofs) + object.input = "event"; + } + if (message.dtmf != null && message.hasOwnProperty("dtmf")) { + object.dtmf = $root.google.cloud.dialogflow.cx.v3.DtmfInput.toObject(message.dtmf, options); + if (options.oneofs) + object.input = "dtmf"; + } return object; }; /** - * Converts this UpdateIntentRequest to JSON. + * Converts this QueryInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @instance * @returns {Object.} JSON object */ - UpdateIntentRequest.prototype.toJSON = function toJSON() { + QueryInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateIntentRequest; + return QueryInput; })(); - v3.DeleteIntentRequest = (function() { + v3.QueryResult = (function() { /** - * Properties of a DeleteIntentRequest. + * Properties of a QueryResult. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDeleteIntentRequest - * @property {string|null} [name] DeleteIntentRequest name + * @interface IQueryResult + * @property {string|null} [text] QueryResult text + * @property {string|null} [triggerIntent] QueryResult triggerIntent + * @property {string|null} [transcript] QueryResult transcript + * @property {string|null} [triggerEvent] QueryResult triggerEvent + * @property {google.cloud.dialogflow.cx.v3.IDtmfInput|null} [dtmf] QueryResult dtmf + * @property {string|null} [languageCode] QueryResult languageCode + * @property {google.protobuf.IStruct|null} [parameters] QueryResult parameters + * @property {Array.|null} [responseMessages] QueryResult responseMessages + * @property {Array.|null} [webhookStatuses] QueryResult webhookStatuses + * @property {Array.|null} [webhookPayloads] QueryResult webhookPayloads + * @property {google.cloud.dialogflow.cx.v3.IPage|null} [currentPage] QueryResult currentPage + * @property {google.cloud.dialogflow.cx.v3.IIntent|null} [intent] QueryResult intent + * @property {number|null} [intentDetectionConfidence] QueryResult intentDetectionConfidence + * @property {google.cloud.dialogflow.cx.v3.IMatch|null} [match] QueryResult match + * @property {google.protobuf.IStruct|null} [diagnosticInfo] QueryResult diagnosticInfo + * @property {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult|null} [sentimentAnalysisResult] QueryResult sentimentAnalysisResult */ /** - * Constructs a new DeleteIntentRequest. + * Constructs a new QueryResult. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DeleteIntentRequest. - * @implements IDeleteIntentRequest + * @classdesc Represents a QueryResult. + * @implements IQueryResult * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDeleteIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IQueryResult=} [properties] Properties to set */ - function DeleteIntentRequest(properties) { + function QueryResult(properties) { + this.responseMessages = []; + this.webhookStatuses = []; + this.webhookPayloads = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -42299,487 +42937,293 @@ } /** - * DeleteIntentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest + * QueryResult text. + * @member {string|null|undefined} text + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance */ - DeleteIntentRequest.prototype.name = ""; + QueryResult.prototype.text = null; /** - * Creates a new DeleteIntentRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.DeleteIntentRequest} DeleteIntentRequest instance + * QueryResult triggerIntent. + * @member {string|null|undefined} triggerIntent + * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @instance */ - DeleteIntentRequest.create = function create(properties) { - return new DeleteIntentRequest(properties); - }; + QueryResult.prototype.triggerIntent = null; /** - * Encodes the specified DeleteIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteIntentRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteIntentRequest} message DeleteIntentRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * QueryResult transcript. + * @member {string|null|undefined} transcript + * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @instance */ - DeleteIntentRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; + QueryResult.prototype.transcript = null; /** - * Encodes the specified DeleteIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteIntentRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteIntentRequest} message DeleteIntentRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * QueryResult triggerEvent. + * @member {string|null|undefined} triggerEvent + * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @instance */ - DeleteIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + QueryResult.prototype.triggerEvent = null; /** - * Decodes a DeleteIntentRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.DeleteIntentRequest} DeleteIntentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * QueryResult dtmf. + * @member {google.cloud.dialogflow.cx.v3.IDtmfInput|null|undefined} dtmf + * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @instance */ - DeleteIntentRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteIntentRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + QueryResult.prototype.dtmf = null; /** - * Decodes a DeleteIntentRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.DeleteIntentRequest} DeleteIntentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * QueryResult languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @instance */ - DeleteIntentRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + QueryResult.prototype.languageCode = ""; /** - * Verifies a DeleteIntentRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * QueryResult parameters. + * @member {google.protobuf.IStruct|null|undefined} parameters + * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @instance */ - DeleteIntentRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; + QueryResult.prototype.parameters = null; /** - * Creates a DeleteIntentRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DeleteIntentRequest} DeleteIntentRequest + * QueryResult responseMessages. + * @member {Array.} responseMessages + * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @instance */ - DeleteIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteIntentRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.DeleteIntentRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + QueryResult.prototype.responseMessages = $util.emptyArray; /** - * Creates a plain object from a DeleteIntentRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.DeleteIntentRequest} message DeleteIntentRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * QueryResult webhookStatuses. + * @member {Array.} webhookStatuses + * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @instance */ - DeleteIntentRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + QueryResult.prototype.webhookStatuses = $util.emptyArray; /** - * Converts this DeleteIntentRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest + * QueryResult webhookPayloads. + * @member {Array.} webhookPayloads + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance - * @returns {Object.} JSON object - */ - DeleteIntentRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return DeleteIntentRequest; - })(); - - /** - * IntentView enum. - * @name google.cloud.dialogflow.cx.v3.IntentView - * @enum {number} - * @property {number} INTENT_VIEW_UNSPECIFIED=0 INTENT_VIEW_UNSPECIFIED value - * @property {number} INTENT_VIEW_PARTIAL=1 INTENT_VIEW_PARTIAL value - * @property {number} INTENT_VIEW_FULL=2 INTENT_VIEW_FULL value - */ - v3.IntentView = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "INTENT_VIEW_UNSPECIFIED"] = 0; - values[valuesById[1] = "INTENT_VIEW_PARTIAL"] = 1; - values[valuesById[2] = "INTENT_VIEW_FULL"] = 2; - return values; - })(); - - v3.Sessions = (function() { - - /** - * Constructs a new Sessions service. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a Sessions - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Sessions(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Sessions.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Sessions; - - /** - * Creates new Sessions service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Sessions - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {Sessions} RPC service. Useful where requests and/or responses are streamed. - */ - Sessions.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#detectIntent}. - * @memberof google.cloud.dialogflow.cx.v3.Sessions - * @typedef DetectIntentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.DetectIntentResponse} [response] DetectIntentResponse - */ - - /** - * Calls DetectIntent. - * @function detectIntent - * @memberof google.cloud.dialogflow.cx.v3.Sessions - * @instance - * @param {google.cloud.dialogflow.cx.v3.IDetectIntentRequest} request DetectIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Sessions.DetectIntentCallback} callback Node-style callback called with the error, if any, and DetectIntentResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Sessions.prototype.detectIntent = function detectIntent(request, callback) { - return this.rpcCall(detectIntent, $root.google.cloud.dialogflow.cx.v3.DetectIntentRequest, $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse, request, callback); - }, "name", { value: "DetectIntent" }); - - /** - * Calls DetectIntent. - * @function detectIntent - * @memberof google.cloud.dialogflow.cx.v3.Sessions - * @instance - * @param {google.cloud.dialogflow.cx.v3.IDetectIntentRequest} request DetectIntentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#streamingDetectIntent}. - * @memberof google.cloud.dialogflow.cx.v3.Sessions - * @typedef StreamingDetectIntentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} [response] StreamingDetectIntentResponse - */ - - /** - * Calls StreamingDetectIntent. - * @function streamingDetectIntent - * @memberof google.cloud.dialogflow.cx.v3.Sessions - * @instance - * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest} request StreamingDetectIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntentCallback} callback Node-style callback called with the error, if any, and StreamingDetectIntentResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Sessions.prototype.streamingDetectIntent = function streamingDetectIntent(request, callback) { - return this.rpcCall(streamingDetectIntent, $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest, $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse, request, callback); - }, "name", { value: "StreamingDetectIntent" }); - - /** - * Calls StreamingDetectIntent. - * @function streamingDetectIntent - * @memberof google.cloud.dialogflow.cx.v3.Sessions - * @instance - * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest} request StreamingDetectIntentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#matchIntent}. - * @memberof google.cloud.dialogflow.cx.v3.Sessions - * @typedef MatchIntentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.MatchIntentResponse} [response] MatchIntentResponse */ + QueryResult.prototype.webhookPayloads = $util.emptyArray; /** - * Calls MatchIntent. - * @function matchIntent - * @memberof google.cloud.dialogflow.cx.v3.Sessions + * QueryResult currentPage. + * @member {google.cloud.dialogflow.cx.v3.IPage|null|undefined} currentPage + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance - * @param {google.cloud.dialogflow.cx.v3.IMatchIntentRequest} request MatchIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Sessions.MatchIntentCallback} callback Node-style callback called with the error, if any, and MatchIntentResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(Sessions.prototype.matchIntent = function matchIntent(request, callback) { - return this.rpcCall(matchIntent, $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest, $root.google.cloud.dialogflow.cx.v3.MatchIntentResponse, request, callback); - }, "name", { value: "MatchIntent" }); + QueryResult.prototype.currentPage = null; /** - * Calls MatchIntent. - * @function matchIntent - * @memberof google.cloud.dialogflow.cx.v3.Sessions + * QueryResult intent. + * @member {google.cloud.dialogflow.cx.v3.IIntent|null|undefined} intent + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance - * @param {google.cloud.dialogflow.cx.v3.IMatchIntentRequest} request MatchIntentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#fulfillIntent}. - * @memberof google.cloud.dialogflow.cx.v3.Sessions - * @typedef FulfillIntentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} [response] FulfillIntentResponse */ + QueryResult.prototype.intent = null; /** - * Calls FulfillIntent. - * @function fulfillIntent - * @memberof google.cloud.dialogflow.cx.v3.Sessions + * QueryResult intentDetectionConfidence. + * @member {number} intentDetectionConfidence + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance - * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentRequest} request FulfillIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Sessions.FulfillIntentCallback} callback Node-style callback called with the error, if any, and FulfillIntentResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(Sessions.prototype.fulfillIntent = function fulfillIntent(request, callback) { - return this.rpcCall(fulfillIntent, $root.google.cloud.dialogflow.cx.v3.FulfillIntentRequest, $root.google.cloud.dialogflow.cx.v3.FulfillIntentResponse, request, callback); - }, "name", { value: "FulfillIntent" }); + QueryResult.prototype.intentDetectionConfidence = 0; /** - * Calls FulfillIntent. - * @function fulfillIntent - * @memberof google.cloud.dialogflow.cx.v3.Sessions + * QueryResult match. + * @member {google.cloud.dialogflow.cx.v3.IMatch|null|undefined} match + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance - * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentRequest} request FulfillIntentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return Sessions; - })(); - - v3.DetectIntentRequest = (function() { - - /** - * Properties of a DetectIntentRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDetectIntentRequest - * @property {string|null} [session] DetectIntentRequest session - * @property {google.cloud.dialogflow.cx.v3.IQueryParameters|null} [queryParams] DetectIntentRequest queryParams - * @property {google.cloud.dialogflow.cx.v3.IQueryInput|null} [queryInput] DetectIntentRequest queryInput - * @property {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null} [outputAudioConfig] DetectIntentRequest outputAudioConfig - */ - - /** - * Constructs a new DetectIntentRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DetectIntentRequest. - * @implements IDetectIntentRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDetectIntentRequest=} [properties] Properties to set */ - function DetectIntentRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + QueryResult.prototype.match = null; /** - * DetectIntentRequest session. - * @member {string} session - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * QueryResult diagnosticInfo. + * @member {google.protobuf.IStruct|null|undefined} diagnosticInfo + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance */ - DetectIntentRequest.prototype.session = ""; + QueryResult.prototype.diagnosticInfo = null; /** - * DetectIntentRequest queryParams. - * @member {google.cloud.dialogflow.cx.v3.IQueryParameters|null|undefined} queryParams - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * QueryResult sentimentAnalysisResult. + * @member {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult|null|undefined} sentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance */ - DetectIntentRequest.prototype.queryParams = null; + QueryResult.prototype.sentimentAnalysisResult = null; - /** - * DetectIntentRequest queryInput. - * @member {google.cloud.dialogflow.cx.v3.IQueryInput|null|undefined} queryInput - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest - * @instance - */ - DetectIntentRequest.prototype.queryInput = null; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * DetectIntentRequest outputAudioConfig. - * @member {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null|undefined} outputAudioConfig - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * QueryResult query. + * @member {"text"|"triggerIntent"|"transcript"|"triggerEvent"|"dtmf"|undefined} query + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance */ - DetectIntentRequest.prototype.outputAudioConfig = null; + Object.defineProperty(QueryResult.prototype, "query", { + get: $util.oneOfGetter($oneOfFields = ["text", "triggerIntent", "transcript", "triggerEvent", "dtmf"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new DetectIntentRequest instance using the specified properties. + * Creates a new QueryResult instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @static - * @param {google.cloud.dialogflow.cx.v3.IDetectIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.DetectIntentRequest} DetectIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IQueryResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.QueryResult} QueryResult instance */ - DetectIntentRequest.create = function create(properties) { - return new DetectIntentRequest(properties); + QueryResult.create = function create(properties) { + return new QueryResult(properties); }; /** - * Encodes the specified DetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentRequest.verify|verify} messages. + * Encodes the specified QueryResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryResult.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @static - * @param {google.cloud.dialogflow.cx.v3.IDetectIntentRequest} message DetectIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IQueryResult} message QueryResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DetectIntentRequest.encode = function encode(message, writer) { + QueryResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.session != null && Object.hasOwnProperty.call(message, "session")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.session); - if (message.queryParams != null && Object.hasOwnProperty.call(message, "queryParams")) - $root.google.cloud.dialogflow.cx.v3.QueryParameters.encode(message.queryParams, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.queryInput != null && Object.hasOwnProperty.call(message, "queryInput")) - $root.google.cloud.dialogflow.cx.v3.QueryInput.encode(message.queryInput, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) - $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + $root.google.protobuf.Struct.encode(message.parameters, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.responseMessages != null && message.responseMessages.length) + for (var i = 0; i < message.responseMessages.length; ++i) + $root.google.cloud.dialogflow.cx.v3.ResponseMessage.encode(message.responseMessages[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.webhookPayloads != null && message.webhookPayloads.length) + for (var i = 0; i < message.webhookPayloads.length; ++i) + $root.google.protobuf.Struct.encode(message.webhookPayloads[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) + $root.google.cloud.dialogflow.cx.v3.Page.encode(message.currentPage, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) + $root.google.cloud.dialogflow.cx.v3.Intent.encode(message.intent, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.intentDetectionConfidence != null && Object.hasOwnProperty.call(message, "intentDetectionConfidence")) + writer.uint32(/* id 9, wireType 5 =*/77).float(message.intentDetectionConfidence); + if (message.diagnosticInfo != null && Object.hasOwnProperty.call(message, "diagnosticInfo")) + $root.google.protobuf.Struct.encode(message.diagnosticInfo, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.triggerIntent != null && Object.hasOwnProperty.call(message, "triggerIntent")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.triggerIntent); + if (message.transcript != null && Object.hasOwnProperty.call(message, "transcript")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.transcript); + if (message.webhookStatuses != null && message.webhookStatuses.length) + for (var i = 0; i < message.webhookStatuses.length; ++i) + $root.google.rpc.Status.encode(message.webhookStatuses[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.triggerEvent != null && Object.hasOwnProperty.call(message, "triggerEvent")) + writer.uint32(/* id 14, wireType 2 =*/114).string(message.triggerEvent); + if (message.match != null && Object.hasOwnProperty.call(message, "match")) + $root.google.cloud.dialogflow.cx.v3.Match.encode(message.match, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.sentimentAnalysisResult != null && Object.hasOwnProperty.call(message, "sentimentAnalysisResult")) + $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.encode(message.sentimentAnalysisResult, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.dtmf != null && Object.hasOwnProperty.call(message, "dtmf")) + $root.google.cloud.dialogflow.cx.v3.DtmfInput.encode(message.dtmf, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); return writer; }; /** - * Encodes the specified DetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentRequest.verify|verify} messages. + * Encodes the specified QueryResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @static - * @param {google.cloud.dialogflow.cx.v3.IDetectIntentRequest} message DetectIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IQueryResult} message QueryResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DetectIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DetectIntentRequest message from the specified reader or buffer. + * Decodes a QueryResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.DetectIntentRequest} DetectIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.QueryResult} QueryResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DetectIntentRequest.decode = function decode(reader, length) { + QueryResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DetectIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.QueryResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.session = reader.string(); + message.text = reader.string(); + break; + case 11: + message.triggerIntent = reader.string(); + break; + case 12: + message.transcript = reader.string(); + break; + case 14: + message.triggerEvent = reader.string(); + break; + case 23: + message.dtmf = $root.google.cloud.dialogflow.cx.v3.DtmfInput.decode(reader, reader.uint32()); break; case 2: - message.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.decode(reader, reader.uint32()); + message.languageCode = reader.string(); break; case 3: - message.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.decode(reader, reader.uint32()); + message.parameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); break; case 4: - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.decode(reader, reader.uint32()); + if (!(message.responseMessages && message.responseMessages.length)) + message.responseMessages = []; + message.responseMessages.push($root.google.cloud.dialogflow.cx.v3.ResponseMessage.decode(reader, reader.uint32())); + break; + case 13: + if (!(message.webhookStatuses && message.webhookStatuses.length)) + message.webhookStatuses = []; + message.webhookStatuses.push($root.google.rpc.Status.decode(reader, reader.uint32())); + break; + case 6: + if (!(message.webhookPayloads && message.webhookPayloads.length)) + message.webhookPayloads = []; + message.webhookPayloads.push($root.google.protobuf.Struct.decode(reader, reader.uint32())); + break; + case 7: + message.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.decode(reader, reader.uint32()); + break; + case 8: + message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.decode(reader, reader.uint32()); + break; + case 9: + message.intentDetectionConfidence = reader.float(); + break; + case 15: + message.match = $root.google.cloud.dialogflow.cx.v3.Match.decode(reader, reader.uint32()); + break; + case 10: + message.diagnosticInfo = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 17: + message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -42790,152 +43234,346 @@ }; /** - * Decodes a DetectIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.DetectIntentRequest} DetectIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.QueryResult} QueryResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DetectIntentRequest.decodeDelimited = function decodeDelimited(reader) { + QueryResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DetectIntentRequest message. + * Verifies a QueryResult message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DetectIntentRequest.verify = function verify(message) { + QueryResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.session != null && message.hasOwnProperty("session")) - if (!$util.isString(message.session)) - return "session: string expected"; - if (message.queryParams != null && message.hasOwnProperty("queryParams")) { - var error = $root.google.cloud.dialogflow.cx.v3.QueryParameters.verify(message.queryParams); + var properties = {}; + if (message.text != null && message.hasOwnProperty("text")) { + properties.query = 1; + if (!$util.isString(message.text)) + return "text: string expected"; + } + if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { + if (properties.query === 1) + return "query: multiple values"; + properties.query = 1; + if (!$util.isString(message.triggerIntent)) + return "triggerIntent: string expected"; + } + if (message.transcript != null && message.hasOwnProperty("transcript")) { + if (properties.query === 1) + return "query: multiple values"; + properties.query = 1; + if (!$util.isString(message.transcript)) + return "transcript: string expected"; + } + if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { + if (properties.query === 1) + return "query: multiple values"; + properties.query = 1; + if (!$util.isString(message.triggerEvent)) + return "triggerEvent: string expected"; + } + if (message.dtmf != null && message.hasOwnProperty("dtmf")) { + if (properties.query === 1) + return "query: multiple values"; + properties.query = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.DtmfInput.verify(message.dtmf); + if (error) + return "dtmf." + error; + } + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + if (message.parameters != null && message.hasOwnProperty("parameters")) { + var error = $root.google.protobuf.Struct.verify(message.parameters); if (error) - return "queryParams." + error; + return "parameters." + error; } - if (message.queryInput != null && message.hasOwnProperty("queryInput")) { - var error = $root.google.cloud.dialogflow.cx.v3.QueryInput.verify(message.queryInput); + if (message.responseMessages != null && message.hasOwnProperty("responseMessages")) { + if (!Array.isArray(message.responseMessages)) + return "responseMessages: array expected"; + for (var i = 0; i < message.responseMessages.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.verify(message.responseMessages[i]); + if (error) + return "responseMessages." + error; + } + } + if (message.webhookStatuses != null && message.hasOwnProperty("webhookStatuses")) { + if (!Array.isArray(message.webhookStatuses)) + return "webhookStatuses: array expected"; + for (var i = 0; i < message.webhookStatuses.length; ++i) { + var error = $root.google.rpc.Status.verify(message.webhookStatuses[i]); + if (error) + return "webhookStatuses." + error; + } + } + if (message.webhookPayloads != null && message.hasOwnProperty("webhookPayloads")) { + if (!Array.isArray(message.webhookPayloads)) + return "webhookPayloads: array expected"; + for (var i = 0; i < message.webhookPayloads.length; ++i) { + var error = $root.google.protobuf.Struct.verify(message.webhookPayloads[i]); + if (error) + return "webhookPayloads." + error; + } + } + if (message.currentPage != null && message.hasOwnProperty("currentPage")) { + var error = $root.google.cloud.dialogflow.cx.v3.Page.verify(message.currentPage); if (error) - return "queryInput." + error; + return "currentPage." + error; } - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify(message.outputAudioConfig); + if (message.intent != null && message.hasOwnProperty("intent")) { + var error = $root.google.cloud.dialogflow.cx.v3.Intent.verify(message.intent); if (error) - return "outputAudioConfig." + error; + return "intent." + error; + } + if (message.intentDetectionConfidence != null && message.hasOwnProperty("intentDetectionConfidence")) + if (typeof message.intentDetectionConfidence !== "number") + return "intentDetectionConfidence: number expected"; + if (message.match != null && message.hasOwnProperty("match")) { + var error = $root.google.cloud.dialogflow.cx.v3.Match.verify(message.match); + if (error) + return "match." + error; + } + if (message.diagnosticInfo != null && message.hasOwnProperty("diagnosticInfo")) { + var error = $root.google.protobuf.Struct.verify(message.diagnosticInfo); + if (error) + return "diagnosticInfo." + error; + } + if (message.sentimentAnalysisResult != null && message.hasOwnProperty("sentimentAnalysisResult")) { + var error = $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.verify(message.sentimentAnalysisResult); + if (error) + return "sentimentAnalysisResult." + error; } return null; }; /** - * Creates a DetectIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DetectIntentRequest} DetectIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.QueryResult} QueryResult */ - DetectIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DetectIntentRequest) + QueryResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.QueryResult) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.DetectIntentRequest(); - if (object.session != null) - message.session = String(object.session); - if (object.queryParams != null) { - if (typeof object.queryParams !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.DetectIntentRequest.queryParams: object expected"); - message.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.fromObject(object.queryParams); + var message = new $root.google.cloud.dialogflow.cx.v3.QueryResult(); + if (object.text != null) + message.text = String(object.text); + if (object.triggerIntent != null) + message.triggerIntent = String(object.triggerIntent); + if (object.transcript != null) + message.transcript = String(object.transcript); + if (object.triggerEvent != null) + message.triggerEvent = String(object.triggerEvent); + if (object.dtmf != null) { + if (typeof object.dtmf !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.dtmf: object expected"); + message.dtmf = $root.google.cloud.dialogflow.cx.v3.DtmfInput.fromObject(object.dtmf); } - if (object.queryInput != null) { - if (typeof object.queryInput !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.DetectIntentRequest.queryInput: object expected"); - message.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.fromObject(object.queryInput); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + if (object.parameters != null) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.parameters: object expected"); + message.parameters = $root.google.protobuf.Struct.fromObject(object.parameters); } - if (object.outputAudioConfig != null) { - if (typeof object.outputAudioConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.DetectIntentRequest.outputAudioConfig: object expected"); - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.fromObject(object.outputAudioConfig); + if (object.responseMessages) { + if (!Array.isArray(object.responseMessages)) + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.responseMessages: array expected"); + message.responseMessages = []; + for (var i = 0; i < object.responseMessages.length; ++i) { + if (typeof object.responseMessages[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.responseMessages: object expected"); + message.responseMessages[i] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.fromObject(object.responseMessages[i]); + } + } + if (object.webhookStatuses) { + if (!Array.isArray(object.webhookStatuses)) + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.webhookStatuses: array expected"); + message.webhookStatuses = []; + for (var i = 0; i < object.webhookStatuses.length; ++i) { + if (typeof object.webhookStatuses[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.webhookStatuses: object expected"); + message.webhookStatuses[i] = $root.google.rpc.Status.fromObject(object.webhookStatuses[i]); + } + } + if (object.webhookPayloads) { + if (!Array.isArray(object.webhookPayloads)) + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.webhookPayloads: array expected"); + message.webhookPayloads = []; + for (var i = 0; i < object.webhookPayloads.length; ++i) { + if (typeof object.webhookPayloads[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.webhookPayloads: object expected"); + message.webhookPayloads[i] = $root.google.protobuf.Struct.fromObject(object.webhookPayloads[i]); + } + } + if (object.currentPage != null) { + if (typeof object.currentPage !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.currentPage: object expected"); + message.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.fromObject(object.currentPage); + } + if (object.intent != null) { + if (typeof object.intent !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.intent: object expected"); + message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.fromObject(object.intent); + } + if (object.intentDetectionConfidence != null) + message.intentDetectionConfidence = Number(object.intentDetectionConfidence); + if (object.match != null) { + if (typeof object.match !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.match: object expected"); + message.match = $root.google.cloud.dialogflow.cx.v3.Match.fromObject(object.match); + } + if (object.diagnosticInfo != null) { + if (typeof object.diagnosticInfo !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.diagnosticInfo: object expected"); + message.diagnosticInfo = $root.google.protobuf.Struct.fromObject(object.diagnosticInfo); + } + if (object.sentimentAnalysisResult != null) { + if (typeof object.sentimentAnalysisResult !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.sentimentAnalysisResult: object expected"); + message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.fromObject(object.sentimentAnalysisResult); } return message; }; /** - * Creates a plain object from a DetectIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @static - * @param {google.cloud.dialogflow.cx.v3.DetectIntentRequest} message DetectIntentRequest + * @param {google.cloud.dialogflow.cx.v3.QueryResult} message QueryResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DetectIntentRequest.toObject = function toObject(message, options) { + QueryResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.responseMessages = []; + object.webhookPayloads = []; + object.webhookStatuses = []; + } if (options.defaults) { - object.session = ""; - object.queryParams = null; - object.queryInput = null; - object.outputAudioConfig = null; + object.languageCode = ""; + object.parameters = null; + object.currentPage = null; + object.intent = null; + object.intentDetectionConfidence = 0; + object.diagnosticInfo = null; + object.match = null; + object.sentimentAnalysisResult = null; + } + if (message.text != null && message.hasOwnProperty("text")) { + object.text = message.text; + if (options.oneofs) + object.query = "text"; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + if (message.parameters != null && message.hasOwnProperty("parameters")) + object.parameters = $root.google.protobuf.Struct.toObject(message.parameters, options); + if (message.responseMessages && message.responseMessages.length) { + object.responseMessages = []; + for (var j = 0; j < message.responseMessages.length; ++j) + object.responseMessages[j] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.toObject(message.responseMessages[j], options); + } + if (message.webhookPayloads && message.webhookPayloads.length) { + object.webhookPayloads = []; + for (var j = 0; j < message.webhookPayloads.length; ++j) + object.webhookPayloads[j] = $root.google.protobuf.Struct.toObject(message.webhookPayloads[j], options); + } + if (message.currentPage != null && message.hasOwnProperty("currentPage")) + object.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.toObject(message.currentPage, options); + if (message.intent != null && message.hasOwnProperty("intent")) + object.intent = $root.google.cloud.dialogflow.cx.v3.Intent.toObject(message.intent, options); + if (message.intentDetectionConfidence != null && message.hasOwnProperty("intentDetectionConfidence")) + object.intentDetectionConfidence = options.json && !isFinite(message.intentDetectionConfidence) ? String(message.intentDetectionConfidence) : message.intentDetectionConfidence; + if (message.diagnosticInfo != null && message.hasOwnProperty("diagnosticInfo")) + object.diagnosticInfo = $root.google.protobuf.Struct.toObject(message.diagnosticInfo, options); + if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { + object.triggerIntent = message.triggerIntent; + if (options.oneofs) + object.query = "triggerIntent"; + } + if (message.transcript != null && message.hasOwnProperty("transcript")) { + object.transcript = message.transcript; + if (options.oneofs) + object.query = "transcript"; + } + if (message.webhookStatuses && message.webhookStatuses.length) { + object.webhookStatuses = []; + for (var j = 0; j < message.webhookStatuses.length; ++j) + object.webhookStatuses[j] = $root.google.rpc.Status.toObject(message.webhookStatuses[j], options); + } + if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { + object.triggerEvent = message.triggerEvent; + if (options.oneofs) + object.query = "triggerEvent"; + } + if (message.match != null && message.hasOwnProperty("match")) + object.match = $root.google.cloud.dialogflow.cx.v3.Match.toObject(message.match, options); + if (message.sentimentAnalysisResult != null && message.hasOwnProperty("sentimentAnalysisResult")) + object.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.toObject(message.sentimentAnalysisResult, options); + if (message.dtmf != null && message.hasOwnProperty("dtmf")) { + object.dtmf = $root.google.cloud.dialogflow.cx.v3.DtmfInput.toObject(message.dtmf, options); + if (options.oneofs) + object.query = "dtmf"; } - if (message.session != null && message.hasOwnProperty("session")) - object.session = message.session; - if (message.queryParams != null && message.hasOwnProperty("queryParams")) - object.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.toObject(message.queryParams, options); - if (message.queryInput != null && message.hasOwnProperty("queryInput")) - object.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.toObject(message.queryInput, options); - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) - object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.toObject(message.outputAudioConfig, options); return object; }; /** - * Converts this DetectIntentRequest to JSON. + * Converts this QueryResult to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance * @returns {Object.} JSON object */ - DetectIntentRequest.prototype.toJSON = function toJSON() { + QueryResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DetectIntentRequest; + return QueryResult; })(); - v3.DetectIntentResponse = (function() { + v3.TextInput = (function() { /** - * Properties of a DetectIntentResponse. + * Properties of a TextInput. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDetectIntentResponse - * @property {string|null} [responseId] DetectIntentResponse responseId - * @property {google.cloud.dialogflow.cx.v3.IQueryResult|null} [queryResult] DetectIntentResponse queryResult - * @property {Uint8Array|null} [outputAudio] DetectIntentResponse outputAudio - * @property {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null} [outputAudioConfig] DetectIntentResponse outputAudioConfig - * @property {google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType|null} [responseType] DetectIntentResponse responseType - * @property {boolean|null} [allowCancellation] DetectIntentResponse allowCancellation + * @interface ITextInput + * @property {string|null} [text] TextInput text */ /** - * Constructs a new DetectIntentResponse. + * Constructs a new TextInput. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DetectIntentResponse. - * @implements IDetectIntentResponse + * @classdesc Represents a TextInput. + * @implements ITextInput * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDetectIntentResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ITextInput=} [properties] Properties to set */ - function DetectIntentResponse(properties) { + function TextInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -42943,140 +43581,75 @@ } /** - * DetectIntentResponse responseId. - * @member {string} responseId - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse - * @instance - */ - DetectIntentResponse.prototype.responseId = ""; - - /** - * DetectIntentResponse queryResult. - * @member {google.cloud.dialogflow.cx.v3.IQueryResult|null|undefined} queryResult - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse - * @instance - */ - DetectIntentResponse.prototype.queryResult = null; - - /** - * DetectIntentResponse outputAudio. - * @member {Uint8Array} outputAudio - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse - * @instance - */ - DetectIntentResponse.prototype.outputAudio = $util.newBuffer([]); - - /** - * DetectIntentResponse outputAudioConfig. - * @member {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null|undefined} outputAudioConfig - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse - * @instance - */ - DetectIntentResponse.prototype.outputAudioConfig = null; - - /** - * DetectIntentResponse responseType. - * @member {google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType} responseType - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse - * @instance - */ - DetectIntentResponse.prototype.responseType = 0; - - /** - * DetectIntentResponse allowCancellation. - * @member {boolean} allowCancellation - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * TextInput text. + * @member {string} text + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @instance */ - DetectIntentResponse.prototype.allowCancellation = false; + TextInput.prototype.text = ""; /** - * Creates a new DetectIntentResponse instance using the specified properties. + * Creates a new TextInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @static - * @param {google.cloud.dialogflow.cx.v3.IDetectIntentResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.DetectIntentResponse} DetectIntentResponse instance + * @param {google.cloud.dialogflow.cx.v3.ITextInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TextInput} TextInput instance */ - DetectIntentResponse.create = function create(properties) { - return new DetectIntentResponse(properties); + TextInput.create = function create(properties) { + return new TextInput(properties); }; /** - * Encodes the specified DetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentResponse.verify|verify} messages. + * Encodes the specified TextInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TextInput.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @static - * @param {google.cloud.dialogflow.cx.v3.IDetectIntentResponse} message DetectIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITextInput} message TextInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DetectIntentResponse.encode = function encode(message, writer) { + TextInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.responseId != null && Object.hasOwnProperty.call(message, "responseId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.responseId); - if (message.queryResult != null && Object.hasOwnProperty.call(message, "queryResult")) - $root.google.cloud.dialogflow.cx.v3.QueryResult.encode(message.queryResult, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.outputAudio != null && Object.hasOwnProperty.call(message, "outputAudio")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.outputAudio); - if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) - $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.responseType != null && Object.hasOwnProperty.call(message, "responseType")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.responseType); - if (message.allowCancellation != null && Object.hasOwnProperty.call(message, "allowCancellation")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.allowCancellation); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); return writer; }; /** - * Encodes the specified DetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentResponse.verify|verify} messages. + * Encodes the specified TextInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TextInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @static - * @param {google.cloud.dialogflow.cx.v3.IDetectIntentResponse} message DetectIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITextInput} message TextInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DetectIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { + TextInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DetectIntentResponse message from the specified reader or buffer. + * Decodes a TextInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.DetectIntentResponse} DetectIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.TextInput} TextInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DetectIntentResponse.decode = function decode(reader, length) { + TextInput.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TextInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.responseId = reader.string(); - break; - case 2: - message.queryResult = $root.google.cloud.dialogflow.cx.v3.QueryResult.decode(reader, reader.uint32()); - break; - case 4: - message.outputAudio = reader.bytes(); - break; - case 5: - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.decode(reader, reader.uint32()); - break; - case 6: - message.responseType = reader.int32(); - break; - case 7: - message.allowCancellation = reader.bool(); + message.text = reader.string(); break; default: reader.skipType(tag & 7); @@ -43087,205 +43660,107 @@ }; /** - * Decodes a DetectIntentResponse message from the specified reader or buffer, length delimited. + * Decodes a TextInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.DetectIntentResponse} DetectIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.TextInput} TextInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DetectIntentResponse.decodeDelimited = function decodeDelimited(reader) { + TextInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DetectIntentResponse message. + * Verifies a TextInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DetectIntentResponse.verify = function verify(message) { + TextInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.responseId != null && message.hasOwnProperty("responseId")) - if (!$util.isString(message.responseId)) - return "responseId: string expected"; - if (message.queryResult != null && message.hasOwnProperty("queryResult")) { - var error = $root.google.cloud.dialogflow.cx.v3.QueryResult.verify(message.queryResult); - if (error) - return "queryResult." + error; - } - if (message.outputAudio != null && message.hasOwnProperty("outputAudio")) - if (!(message.outputAudio && typeof message.outputAudio.length === "number" || $util.isString(message.outputAudio))) - return "outputAudio: buffer expected"; - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify(message.outputAudioConfig); - if (error) - return "outputAudioConfig." + error; - } - if (message.responseType != null && message.hasOwnProperty("responseType")) - switch (message.responseType) { - default: - return "responseType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.allowCancellation != null && message.hasOwnProperty("allowCancellation")) - if (typeof message.allowCancellation !== "boolean") - return "allowCancellation: boolean expected"; + if (message.text != null && message.hasOwnProperty("text")) + if (!$util.isString(message.text)) + return "text: string expected"; return null; }; /** - * Creates a DetectIntentResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TextInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DetectIntentResponse} DetectIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.TextInput} TextInput */ - DetectIntentResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse) + TextInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TextInput) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse(); - if (object.responseId != null) - message.responseId = String(object.responseId); - if (object.queryResult != null) { - if (typeof object.queryResult !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.DetectIntentResponse.queryResult: object expected"); - message.queryResult = $root.google.cloud.dialogflow.cx.v3.QueryResult.fromObject(object.queryResult); - } - if (object.outputAudio != null) - if (typeof object.outputAudio === "string") - $util.base64.decode(object.outputAudio, message.outputAudio = $util.newBuffer($util.base64.length(object.outputAudio)), 0); - else if (object.outputAudio.length) - message.outputAudio = object.outputAudio; - if (object.outputAudioConfig != null) { - if (typeof object.outputAudioConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.DetectIntentResponse.outputAudioConfig: object expected"); - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.fromObject(object.outputAudioConfig); - } - switch (object.responseType) { - case "RESPONSE_TYPE_UNSPECIFIED": - case 0: - message.responseType = 0; - break; - case "PARTIAL": - case 1: - message.responseType = 1; - break; - case "FINAL": - case 2: - message.responseType = 2; - break; - } - if (object.allowCancellation != null) - message.allowCancellation = Boolean(object.allowCancellation); + var message = new $root.google.cloud.dialogflow.cx.v3.TextInput(); + if (object.text != null) + message.text = String(object.text); return message; }; /** - * Creates a plain object from a DetectIntentResponse message. Also converts values to other types if specified. + * Creates a plain object from a TextInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @static - * @param {google.cloud.dialogflow.cx.v3.DetectIntentResponse} message DetectIntentResponse + * @param {google.cloud.dialogflow.cx.v3.TextInput} message TextInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DetectIntentResponse.toObject = function toObject(message, options) { + TextInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.responseId = ""; - object.queryResult = null; - if (options.bytes === String) - object.outputAudio = ""; - else { - object.outputAudio = []; - if (options.bytes !== Array) - object.outputAudio = $util.newBuffer(object.outputAudio); - } - object.outputAudioConfig = null; - object.responseType = options.enums === String ? "RESPONSE_TYPE_UNSPECIFIED" : 0; - object.allowCancellation = false; - } - if (message.responseId != null && message.hasOwnProperty("responseId")) - object.responseId = message.responseId; - if (message.queryResult != null && message.hasOwnProperty("queryResult")) - object.queryResult = $root.google.cloud.dialogflow.cx.v3.QueryResult.toObject(message.queryResult, options); - if (message.outputAudio != null && message.hasOwnProperty("outputAudio")) - object.outputAudio = options.bytes === String ? $util.base64.encode(message.outputAudio, 0, message.outputAudio.length) : options.bytes === Array ? Array.prototype.slice.call(message.outputAudio) : message.outputAudio; - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) - object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.toObject(message.outputAudioConfig, options); - if (message.responseType != null && message.hasOwnProperty("responseType")) - object.responseType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType[message.responseType] : message.responseType; - if (message.allowCancellation != null && message.hasOwnProperty("allowCancellation")) - object.allowCancellation = message.allowCancellation; + if (options.defaults) + object.text = ""; + if (message.text != null && message.hasOwnProperty("text")) + object.text = message.text; return object; }; /** - * Converts this DetectIntentResponse to JSON. + * Converts this TextInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @instance * @returns {Object.} JSON object */ - DetectIntentResponse.prototype.toJSON = function toJSON() { + TextInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * ResponseType enum. - * @name google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType - * @enum {number} - * @property {number} RESPONSE_TYPE_UNSPECIFIED=0 RESPONSE_TYPE_UNSPECIFIED value - * @property {number} PARTIAL=1 PARTIAL value - * @property {number} FINAL=2 FINAL value - */ - DetectIntentResponse.ResponseType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RESPONSE_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "PARTIAL"] = 1; - values[valuesById[2] = "FINAL"] = 2; - return values; - })(); - - return DetectIntentResponse; + return TextInput; })(); - v3.StreamingDetectIntentRequest = (function() { + v3.IntentInput = (function() { /** - * Properties of a StreamingDetectIntentRequest. + * Properties of an IntentInput. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IStreamingDetectIntentRequest - * @property {string|null} [session] StreamingDetectIntentRequest session - * @property {google.cloud.dialogflow.cx.v3.IQueryParameters|null} [queryParams] StreamingDetectIntentRequest queryParams - * @property {google.cloud.dialogflow.cx.v3.IQueryInput|null} [queryInput] StreamingDetectIntentRequest queryInput - * @property {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null} [outputAudioConfig] StreamingDetectIntentRequest outputAudioConfig - * @property {boolean|null} [enablePartialResponse] StreamingDetectIntentRequest enablePartialResponse + * @interface IIntentInput + * @property {string|null} [intent] IntentInput intent */ /** - * Constructs a new StreamingDetectIntentRequest. + * Constructs a new IntentInput. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a StreamingDetectIntentRequest. - * @implements IStreamingDetectIntentRequest + * @classdesc Represents an IntentInput. + * @implements IIntentInput * @constructor - * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IIntentInput=} [properties] Properties to set */ - function StreamingDetectIntentRequest(properties) { + function IntentInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -43293,127 +43768,75 @@ } /** - * StreamingDetectIntentRequest session. - * @member {string} session - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * IntentInput intent. + * @member {string} intent + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @instance */ - StreamingDetectIntentRequest.prototype.session = ""; + IntentInput.prototype.intent = ""; /** - * StreamingDetectIntentRequest queryParams. - * @member {google.cloud.dialogflow.cx.v3.IQueryParameters|null|undefined} queryParams - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest - * @instance - */ - StreamingDetectIntentRequest.prototype.queryParams = null; - - /** - * StreamingDetectIntentRequest queryInput. - * @member {google.cloud.dialogflow.cx.v3.IQueryInput|null|undefined} queryInput - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest - * @instance - */ - StreamingDetectIntentRequest.prototype.queryInput = null; - - /** - * StreamingDetectIntentRequest outputAudioConfig. - * @member {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null|undefined} outputAudioConfig - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest - * @instance - */ - StreamingDetectIntentRequest.prototype.outputAudioConfig = null; - - /** - * StreamingDetectIntentRequest enablePartialResponse. - * @member {boolean} enablePartialResponse - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest - * @instance - */ - StreamingDetectIntentRequest.prototype.enablePartialResponse = false; - - /** - * Creates a new StreamingDetectIntentRequest instance using the specified properties. + * Creates a new IntentInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @static - * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest} StreamingDetectIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IIntentInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.IntentInput} IntentInput instance */ - StreamingDetectIntentRequest.create = function create(properties) { - return new StreamingDetectIntentRequest(properties); + IntentInput.create = function create(properties) { + return new IntentInput(properties); }; /** - * Encodes the specified StreamingDetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.verify|verify} messages. + * Encodes the specified IntentInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentInput.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @static - * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest} message StreamingDetectIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IIntentInput} message IntentInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingDetectIntentRequest.encode = function encode(message, writer) { + IntentInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.session != null && Object.hasOwnProperty.call(message, "session")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.session); - if (message.queryParams != null && Object.hasOwnProperty.call(message, "queryParams")) - $root.google.cloud.dialogflow.cx.v3.QueryParameters.encode(message.queryParams, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.queryInput != null && Object.hasOwnProperty.call(message, "queryInput")) - $root.google.cloud.dialogflow.cx.v3.QueryInput.encode(message.queryInput, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) - $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.enablePartialResponse != null && Object.hasOwnProperty.call(message, "enablePartialResponse")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.enablePartialResponse); + if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.intent); return writer; }; /** - * Encodes the specified StreamingDetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.verify|verify} messages. + * Encodes the specified IntentInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @static - * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest} message StreamingDetectIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IIntentInput} message IntentInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingDetectIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + IntentInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer. + * Decodes an IntentInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest} StreamingDetectIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.IntentInput} IntentInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingDetectIntentRequest.decode = function decode(reader, length) { + IntentInput.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.IntentInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.session = reader.string(); - break; - case 2: - message.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.decode(reader, reader.uint32()); - break; - case 3: - message.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.decode(reader, reader.uint32()); - break; - case 4: - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.decode(reader, reader.uint32()); - break; - case 5: - message.enablePartialResponse = reader.bool(); + message.intent = reader.string(); break; default: reader.skipType(tag & 7); @@ -43424,156 +43847,108 @@ }; /** - * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer, length delimited. + * Decodes an IntentInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest} StreamingDetectIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.IntentInput} IntentInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingDetectIntentRequest.decodeDelimited = function decodeDelimited(reader) { + IntentInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamingDetectIntentRequest message. + * Verifies an IntentInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StreamingDetectIntentRequest.verify = function verify(message) { + IntentInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.session != null && message.hasOwnProperty("session")) - if (!$util.isString(message.session)) - return "session: string expected"; - if (message.queryParams != null && message.hasOwnProperty("queryParams")) { - var error = $root.google.cloud.dialogflow.cx.v3.QueryParameters.verify(message.queryParams); - if (error) - return "queryParams." + error; - } - if (message.queryInput != null && message.hasOwnProperty("queryInput")) { - var error = $root.google.cloud.dialogflow.cx.v3.QueryInput.verify(message.queryInput); - if (error) - return "queryInput." + error; - } - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify(message.outputAudioConfig); - if (error) - return "outputAudioConfig." + error; - } - if (message.enablePartialResponse != null && message.hasOwnProperty("enablePartialResponse")) - if (typeof message.enablePartialResponse !== "boolean") - return "enablePartialResponse: boolean expected"; + if (message.intent != null && message.hasOwnProperty("intent")) + if (!$util.isString(message.intent)) + return "intent: string expected"; return null; }; /** - * Creates a StreamingDetectIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates an IntentInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest} StreamingDetectIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.IntentInput} IntentInput */ - StreamingDetectIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest) + IntentInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.IntentInput) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest(); - if (object.session != null) - message.session = String(object.session); - if (object.queryParams != null) { - if (typeof object.queryParams !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.queryParams: object expected"); - message.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.fromObject(object.queryParams); - } - if (object.queryInput != null) { - if (typeof object.queryInput !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.queryInput: object expected"); - message.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.fromObject(object.queryInput); - } - if (object.outputAudioConfig != null) { - if (typeof object.outputAudioConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.outputAudioConfig: object expected"); - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.fromObject(object.outputAudioConfig); - } - if (object.enablePartialResponse != null) - message.enablePartialResponse = Boolean(object.enablePartialResponse); + var message = new $root.google.cloud.dialogflow.cx.v3.IntentInput(); + if (object.intent != null) + message.intent = String(object.intent); return message; }; /** - * Creates a plain object from a StreamingDetectIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from an IntentInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @static - * @param {google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest} message StreamingDetectIntentRequest + * @param {google.cloud.dialogflow.cx.v3.IntentInput} message IntentInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamingDetectIntentRequest.toObject = function toObject(message, options) { + IntentInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.session = ""; - object.queryParams = null; - object.queryInput = null; - object.outputAudioConfig = null; - object.enablePartialResponse = false; - } - if (message.session != null && message.hasOwnProperty("session")) - object.session = message.session; - if (message.queryParams != null && message.hasOwnProperty("queryParams")) - object.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.toObject(message.queryParams, options); - if (message.queryInput != null && message.hasOwnProperty("queryInput")) - object.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.toObject(message.queryInput, options); - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) - object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.toObject(message.outputAudioConfig, options); - if (message.enablePartialResponse != null && message.hasOwnProperty("enablePartialResponse")) - object.enablePartialResponse = message.enablePartialResponse; + if (options.defaults) + object.intent = ""; + if (message.intent != null && message.hasOwnProperty("intent")) + object.intent = message.intent; return object; }; /** - * Converts this StreamingDetectIntentRequest to JSON. + * Converts this IntentInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @instance * @returns {Object.} JSON object */ - StreamingDetectIntentRequest.prototype.toJSON = function toJSON() { + IntentInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StreamingDetectIntentRequest; + return IntentInput; })(); - v3.StreamingDetectIntentResponse = (function() { + v3.AudioInput = (function() { /** - * Properties of a StreamingDetectIntentResponse. + * Properties of an AudioInput. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IStreamingDetectIntentResponse - * @property {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult|null} [recognitionResult] StreamingDetectIntentResponse recognitionResult - * @property {google.cloud.dialogflow.cx.v3.IDetectIntentResponse|null} [detectIntentResponse] StreamingDetectIntentResponse detectIntentResponse + * @interface IAudioInput + * @property {google.cloud.dialogflow.cx.v3.IInputAudioConfig|null} [config] AudioInput config + * @property {Uint8Array|null} [audio] AudioInput audio */ /** - * Constructs a new StreamingDetectIntentResponse. + * Constructs a new AudioInput. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a StreamingDetectIntentResponse. - * @implements IStreamingDetectIntentResponse + * @classdesc Represents an AudioInput. + * @implements IAudioInput * @constructor - * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IAudioInput=} [properties] Properties to set */ - function StreamingDetectIntentResponse(properties) { + function AudioInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -43581,102 +43956,88 @@ } /** - * StreamingDetectIntentResponse recognitionResult. - * @member {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult|null|undefined} recognitionResult - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse - * @instance - */ - StreamingDetectIntentResponse.prototype.recognitionResult = null; - - /** - * StreamingDetectIntentResponse detectIntentResponse. - * @member {google.cloud.dialogflow.cx.v3.IDetectIntentResponse|null|undefined} detectIntentResponse - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * AudioInput config. + * @member {google.cloud.dialogflow.cx.v3.IInputAudioConfig|null|undefined} config + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @instance */ - StreamingDetectIntentResponse.prototype.detectIntentResponse = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + AudioInput.prototype.config = null; /** - * StreamingDetectIntentResponse response. - * @member {"recognitionResult"|"detectIntentResponse"|undefined} response - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * AudioInput audio. + * @member {Uint8Array} audio + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @instance */ - Object.defineProperty(StreamingDetectIntentResponse.prototype, "response", { - get: $util.oneOfGetter($oneOfFields = ["recognitionResult", "detectIntentResponse"]), - set: $util.oneOfSetter($oneOfFields) - }); + AudioInput.prototype.audio = $util.newBuffer([]); /** - * Creates a new StreamingDetectIntentResponse instance using the specified properties. + * Creates a new AudioInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @static - * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} StreamingDetectIntentResponse instance + * @param {google.cloud.dialogflow.cx.v3.IAudioInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.AudioInput} AudioInput instance */ - StreamingDetectIntentResponse.create = function create(properties) { - return new StreamingDetectIntentResponse(properties); + AudioInput.create = function create(properties) { + return new AudioInput(properties); }; /** - * Encodes the specified StreamingDetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse.verify|verify} messages. + * Encodes the specified AudioInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.AudioInput.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @static - * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse} message StreamingDetectIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IAudioInput} message AudioInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingDetectIntentResponse.encode = function encode(message, writer) { + AudioInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recognitionResult != null && Object.hasOwnProperty.call(message, "recognitionResult")) - $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.encode(message.recognitionResult, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.detectIntentResponse != null && Object.hasOwnProperty.call(message, "detectIntentResponse")) - $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.encode(message.detectIntentResponse, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.config != null && Object.hasOwnProperty.call(message, "config")) + $root.google.cloud.dialogflow.cx.v3.InputAudioConfig.encode(message.config, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.audio != null && Object.hasOwnProperty.call(message, "audio")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.audio); return writer; }; /** - * Encodes the specified StreamingDetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse.verify|verify} messages. + * Encodes the specified AudioInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.AudioInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @static - * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse} message StreamingDetectIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IAudioInput} message AudioInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingDetectIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { + AudioInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer. + * Decodes an AudioInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} StreamingDetectIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.AudioInput} AudioInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingDetectIntentResponse.decode = function decode(reader, length) { + AudioInput.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.AudioInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.recognitionResult = $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.decode(reader, reader.uint32()); + message.config = $root.google.cloud.dialogflow.cx.v3.InputAudioConfig.decode(reader, reader.uint32()); break; case 2: - message.detectIntentResponse = $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.decode(reader, reader.uint32()); + message.audio = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -43687,145 +44048,130 @@ }; /** - * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer, length delimited. + * Decodes an AudioInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} StreamingDetectIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.AudioInput} AudioInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingDetectIntentResponse.decodeDelimited = function decodeDelimited(reader) { + AudioInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamingDetectIntentResponse message. + * Verifies an AudioInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StreamingDetectIntentResponse.verify = function verify(message) { + AudioInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.recognitionResult != null && message.hasOwnProperty("recognitionResult")) { - properties.response = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.verify(message.recognitionResult); - if (error) - return "recognitionResult." + error; - } - } - if (message.detectIntentResponse != null && message.hasOwnProperty("detectIntentResponse")) { - if (properties.response === 1) - return "response: multiple values"; - properties.response = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.verify(message.detectIntentResponse); - if (error) - return "detectIntentResponse." + error; - } + if (message.config != null && message.hasOwnProperty("config")) { + var error = $root.google.cloud.dialogflow.cx.v3.InputAudioConfig.verify(message.config); + if (error) + return "config." + error; } + if (message.audio != null && message.hasOwnProperty("audio")) + if (!(message.audio && typeof message.audio.length === "number" || $util.isString(message.audio))) + return "audio: buffer expected"; return null; }; /** - * Creates a StreamingDetectIntentResponse message from a plain object. Also converts values to their respective internal types. + * Creates an AudioInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} StreamingDetectIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.AudioInput} AudioInput */ - StreamingDetectIntentResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse) + AudioInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.AudioInput) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse(); - if (object.recognitionResult != null) { - if (typeof object.recognitionResult !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse.recognitionResult: object expected"); - message.recognitionResult = $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.fromObject(object.recognitionResult); - } - if (object.detectIntentResponse != null) { - if (typeof object.detectIntentResponse !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse.detectIntentResponse: object expected"); - message.detectIntentResponse = $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.fromObject(object.detectIntentResponse); + var message = new $root.google.cloud.dialogflow.cx.v3.AudioInput(); + if (object.config != null) { + if (typeof object.config !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.AudioInput.config: object expected"); + message.config = $root.google.cloud.dialogflow.cx.v3.InputAudioConfig.fromObject(object.config); } + if (object.audio != null) + if (typeof object.audio === "string") + $util.base64.decode(object.audio, message.audio = $util.newBuffer($util.base64.length(object.audio)), 0); + else if (object.audio.length) + message.audio = object.audio; return message; }; /** - * Creates a plain object from a StreamingDetectIntentResponse message. Also converts values to other types if specified. + * Creates a plain object from an AudioInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @static - * @param {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} message StreamingDetectIntentResponse + * @param {google.cloud.dialogflow.cx.v3.AudioInput} message AudioInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamingDetectIntentResponse.toObject = function toObject(message, options) { + AudioInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.recognitionResult != null && message.hasOwnProperty("recognitionResult")) { - object.recognitionResult = $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.toObject(message.recognitionResult, options); - if (options.oneofs) - object.response = "recognitionResult"; - } - if (message.detectIntentResponse != null && message.hasOwnProperty("detectIntentResponse")) { - object.detectIntentResponse = $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.toObject(message.detectIntentResponse, options); - if (options.oneofs) - object.response = "detectIntentResponse"; + if (options.defaults) { + object.config = null; + if (options.bytes === String) + object.audio = ""; + else { + object.audio = []; + if (options.bytes !== Array) + object.audio = $util.newBuffer(object.audio); + } } + if (message.config != null && message.hasOwnProperty("config")) + object.config = $root.google.cloud.dialogflow.cx.v3.InputAudioConfig.toObject(message.config, options); + if (message.audio != null && message.hasOwnProperty("audio")) + object.audio = options.bytes === String ? $util.base64.encode(message.audio, 0, message.audio.length) : options.bytes === Array ? Array.prototype.slice.call(message.audio) : message.audio; return object; }; /** - * Converts this StreamingDetectIntentResponse to JSON. + * Converts this AudioInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @instance * @returns {Object.} JSON object */ - StreamingDetectIntentResponse.prototype.toJSON = function toJSON() { + AudioInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StreamingDetectIntentResponse; + return AudioInput; })(); - v3.StreamingRecognitionResult = (function() { + v3.EventInput = (function() { /** - * Properties of a StreamingRecognitionResult. + * Properties of an EventInput. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IStreamingRecognitionResult - * @property {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType|null} [messageType] StreamingRecognitionResult messageType - * @property {string|null} [transcript] StreamingRecognitionResult transcript - * @property {boolean|null} [isFinal] StreamingRecognitionResult isFinal - * @property {number|null} [confidence] StreamingRecognitionResult confidence - * @property {number|null} [stability] StreamingRecognitionResult stability - * @property {Array.|null} [speechWordInfo] StreamingRecognitionResult speechWordInfo - * @property {google.protobuf.IDuration|null} [speechEndOffset] StreamingRecognitionResult speechEndOffset - * @property {string|null} [languageCode] StreamingRecognitionResult languageCode + * @interface IEventInput + * @property {string|null} [event] EventInput event */ /** - * Constructs a new StreamingRecognitionResult. + * Constructs a new EventInput. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a StreamingRecognitionResult. - * @implements IStreamingRecognitionResult + * @classdesc Represents an EventInput. + * @implements IEventInput * @constructor - * @param {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IEventInput=} [properties] Properties to set */ - function StreamingRecognitionResult(properties) { - this.speechWordInfo = []; + function EventInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -43833,169 +44179,75 @@ } /** - * StreamingRecognitionResult messageType. - * @member {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType} messageType - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult - * @instance - */ - StreamingRecognitionResult.prototype.messageType = 0; - - /** - * StreamingRecognitionResult transcript. - * @member {string} transcript - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult - * @instance - */ - StreamingRecognitionResult.prototype.transcript = ""; - - /** - * StreamingRecognitionResult isFinal. - * @member {boolean} isFinal - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult - * @instance - */ - StreamingRecognitionResult.prototype.isFinal = false; - - /** - * StreamingRecognitionResult confidence. - * @member {number} confidence - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult - * @instance - */ - StreamingRecognitionResult.prototype.confidence = 0; - - /** - * StreamingRecognitionResult stability. - * @member {number} stability - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult - * @instance - */ - StreamingRecognitionResult.prototype.stability = 0; - - /** - * StreamingRecognitionResult speechWordInfo. - * @member {Array.} speechWordInfo - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult - * @instance - */ - StreamingRecognitionResult.prototype.speechWordInfo = $util.emptyArray; - - /** - * StreamingRecognitionResult speechEndOffset. - * @member {google.protobuf.IDuration|null|undefined} speechEndOffset - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult - * @instance - */ - StreamingRecognitionResult.prototype.speechEndOffset = null; - - /** - * StreamingRecognitionResult languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * EventInput event. + * @member {string} event + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @instance */ - StreamingRecognitionResult.prototype.languageCode = ""; + EventInput.prototype.event = ""; /** - * Creates a new StreamingRecognitionResult instance using the specified properties. + * Creates a new EventInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @static - * @param {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult} StreamingRecognitionResult instance + * @param {google.cloud.dialogflow.cx.v3.IEventInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.EventInput} EventInput instance */ - StreamingRecognitionResult.create = function create(properties) { - return new StreamingRecognitionResult(properties); + EventInput.create = function create(properties) { + return new EventInput(properties); }; /** - * Encodes the specified StreamingRecognitionResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.verify|verify} messages. + * Encodes the specified EventInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EventInput.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @static - * @param {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult} message StreamingRecognitionResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IEventInput} message EventInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingRecognitionResult.encode = function encode(message, writer) { + EventInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.messageType != null && Object.hasOwnProperty.call(message, "messageType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.messageType); - if (message.transcript != null && Object.hasOwnProperty.call(message, "transcript")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.transcript); - if (message.isFinal != null && Object.hasOwnProperty.call(message, "isFinal")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isFinal); - if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) - writer.uint32(/* id 4, wireType 5 =*/37).float(message.confidence); - if (message.stability != null && Object.hasOwnProperty.call(message, "stability")) - writer.uint32(/* id 6, wireType 5 =*/53).float(message.stability); - if (message.speechWordInfo != null && message.speechWordInfo.length) - for (var i = 0; i < message.speechWordInfo.length; ++i) - $root.google.cloud.dialogflow.cx.v3.SpeechWordInfo.encode(message.speechWordInfo[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.speechEndOffset != null && Object.hasOwnProperty.call(message, "speechEndOffset")) - $root.google.protobuf.Duration.encode(message.speechEndOffset, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.languageCode); + if (message.event != null && Object.hasOwnProperty.call(message, "event")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.event); return writer; }; /** - * Encodes the specified StreamingRecognitionResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.verify|verify} messages. + * Encodes the specified EventInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EventInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @static - * @param {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult} message StreamingRecognitionResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IEventInput} message EventInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingRecognitionResult.encodeDelimited = function encodeDelimited(message, writer) { + EventInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamingRecognitionResult message from the specified reader or buffer. + * Decodes an EventInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult} StreamingRecognitionResult + * @returns {google.cloud.dialogflow.cx.v3.EventInput} EventInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingRecognitionResult.decode = function decode(reader, length) { + EventInput.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.EventInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.messageType = reader.int32(); - break; - case 2: - message.transcript = reader.string(); - break; - case 3: - message.isFinal = reader.bool(); - break; - case 4: - message.confidence = reader.float(); - break; - case 6: - message.stability = reader.float(); - break; - case 7: - if (!(message.speechWordInfo && message.speechWordInfo.length)) - message.speechWordInfo = []; - message.speechWordInfo.push($root.google.cloud.dialogflow.cx.v3.SpeechWordInfo.decode(reader, reader.uint32())); - break; - case 8: - message.speechEndOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 10: - message.languageCode = reader.string(); + message.event = reader.string(); break; default: reader.skipType(tag & 7); @@ -44006,233 +44258,108 @@ }; /** - * Decodes a StreamingRecognitionResult message from the specified reader or buffer, length delimited. + * Decodes an EventInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult} StreamingRecognitionResult + * @returns {google.cloud.dialogflow.cx.v3.EventInput} EventInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingRecognitionResult.decodeDelimited = function decodeDelimited(reader) { + EventInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamingRecognitionResult message. + * Verifies an EventInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StreamingRecognitionResult.verify = function verify(message) { + EventInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.messageType != null && message.hasOwnProperty("messageType")) - switch (message.messageType) { - default: - return "messageType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.transcript != null && message.hasOwnProperty("transcript")) - if (!$util.isString(message.transcript)) - return "transcript: string expected"; - if (message.isFinal != null && message.hasOwnProperty("isFinal")) - if (typeof message.isFinal !== "boolean") - return "isFinal: boolean expected"; - if (message.confidence != null && message.hasOwnProperty("confidence")) - if (typeof message.confidence !== "number") - return "confidence: number expected"; - if (message.stability != null && message.hasOwnProperty("stability")) - if (typeof message.stability !== "number") - return "stability: number expected"; - if (message.speechWordInfo != null && message.hasOwnProperty("speechWordInfo")) { - if (!Array.isArray(message.speechWordInfo)) - return "speechWordInfo: array expected"; - for (var i = 0; i < message.speechWordInfo.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.SpeechWordInfo.verify(message.speechWordInfo[i]); - if (error) - return "speechWordInfo." + error; - } - } - if (message.speechEndOffset != null && message.hasOwnProperty("speechEndOffset")) { - var error = $root.google.protobuf.Duration.verify(message.speechEndOffset); - if (error) - return "speechEndOffset." + error; - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; + if (message.event != null && message.hasOwnProperty("event")) + if (!$util.isString(message.event)) + return "event: string expected"; return null; }; /** - * Creates a StreamingRecognitionResult message from a plain object. Also converts values to their respective internal types. + * Creates an EventInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult} StreamingRecognitionResult + * @returns {google.cloud.dialogflow.cx.v3.EventInput} EventInput */ - StreamingRecognitionResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult) + EventInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.EventInput) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult(); - switch (object.messageType) { - case "MESSAGE_TYPE_UNSPECIFIED": - case 0: - message.messageType = 0; - break; - case "TRANSCRIPT": - case 1: - message.messageType = 1; - break; - case "END_OF_SINGLE_UTTERANCE": - case 2: - message.messageType = 2; - break; - } - if (object.transcript != null) - message.transcript = String(object.transcript); - if (object.isFinal != null) - message.isFinal = Boolean(object.isFinal); - if (object.confidence != null) - message.confidence = Number(object.confidence); - if (object.stability != null) - message.stability = Number(object.stability); - if (object.speechWordInfo) { - if (!Array.isArray(object.speechWordInfo)) - throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.speechWordInfo: array expected"); - message.speechWordInfo = []; - for (var i = 0; i < object.speechWordInfo.length; ++i) { - if (typeof object.speechWordInfo[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.speechWordInfo: object expected"); - message.speechWordInfo[i] = $root.google.cloud.dialogflow.cx.v3.SpeechWordInfo.fromObject(object.speechWordInfo[i]); - } - } - if (object.speechEndOffset != null) { - if (typeof object.speechEndOffset !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.speechEndOffset: object expected"); - message.speechEndOffset = $root.google.protobuf.Duration.fromObject(object.speechEndOffset); - } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); + var message = new $root.google.cloud.dialogflow.cx.v3.EventInput(); + if (object.event != null) + message.event = String(object.event); return message; }; /** - * Creates a plain object from a StreamingRecognitionResult message. Also converts values to other types if specified. + * Creates a plain object from an EventInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @static - * @param {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult} message StreamingRecognitionResult + * @param {google.cloud.dialogflow.cx.v3.EventInput} message EventInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamingRecognitionResult.toObject = function toObject(message, options) { + EventInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.speechWordInfo = []; - if (options.defaults) { - object.messageType = options.enums === String ? "MESSAGE_TYPE_UNSPECIFIED" : 0; - object.transcript = ""; - object.isFinal = false; - object.confidence = 0; - object.stability = 0; - object.speechEndOffset = null; - object.languageCode = ""; - } - if (message.messageType != null && message.hasOwnProperty("messageType")) - object.messageType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType[message.messageType] : message.messageType; - if (message.transcript != null && message.hasOwnProperty("transcript")) - object.transcript = message.transcript; - if (message.isFinal != null && message.hasOwnProperty("isFinal")) - object.isFinal = message.isFinal; - if (message.confidence != null && message.hasOwnProperty("confidence")) - object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; - if (message.stability != null && message.hasOwnProperty("stability")) - object.stability = options.json && !isFinite(message.stability) ? String(message.stability) : message.stability; - if (message.speechWordInfo && message.speechWordInfo.length) { - object.speechWordInfo = []; - for (var j = 0; j < message.speechWordInfo.length; ++j) - object.speechWordInfo[j] = $root.google.cloud.dialogflow.cx.v3.SpeechWordInfo.toObject(message.speechWordInfo[j], options); - } - if (message.speechEndOffset != null && message.hasOwnProperty("speechEndOffset")) - object.speechEndOffset = $root.google.protobuf.Duration.toObject(message.speechEndOffset, options); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; + if (options.defaults) + object.event = ""; + if (message.event != null && message.hasOwnProperty("event")) + object.event = message.event; return object; }; /** - * Converts this StreamingRecognitionResult to JSON. + * Converts this EventInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @instance * @returns {Object.} JSON object */ - StreamingRecognitionResult.prototype.toJSON = function toJSON() { + EventInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * MessageType enum. - * @name google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType - * @enum {number} - * @property {number} MESSAGE_TYPE_UNSPECIFIED=0 MESSAGE_TYPE_UNSPECIFIED value - * @property {number} TRANSCRIPT=1 TRANSCRIPT value - * @property {number} END_OF_SINGLE_UTTERANCE=2 END_OF_SINGLE_UTTERANCE value - */ - StreamingRecognitionResult.MessageType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MESSAGE_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "TRANSCRIPT"] = 1; - values[valuesById[2] = "END_OF_SINGLE_UTTERANCE"] = 2; - return values; - })(); - - return StreamingRecognitionResult; + return EventInput; })(); - v3.QueryParameters = (function() { + v3.DtmfInput = (function() { /** - * Properties of a QueryParameters. + * Properties of a DtmfInput. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IQueryParameters - * @property {string|null} [timeZone] QueryParameters timeZone - * @property {google.type.ILatLng|null} [geoLocation] QueryParameters geoLocation - * @property {Array.|null} [sessionEntityTypes] QueryParameters sessionEntityTypes - * @property {google.protobuf.IStruct|null} [payload] QueryParameters payload - * @property {google.protobuf.IStruct|null} [parameters] QueryParameters parameters - * @property {string|null} [currentPage] QueryParameters currentPage - * @property {boolean|null} [disableWebhook] QueryParameters disableWebhook - * @property {boolean|null} [analyzeQueryTextSentiment] QueryParameters analyzeQueryTextSentiment - * @property {Object.|null} [webhookHeaders] QueryParameters webhookHeaders - * @property {Array.|null} [flowVersions] QueryParameters flowVersions + * @interface IDtmfInput + * @property {string|null} [digits] DtmfInput digits + * @property {string|null} [finishDigit] DtmfInput finishDigit */ /** - * Constructs a new QueryParameters. + * Constructs a new DtmfInput. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a QueryParameters. - * @implements IQueryParameters + * @classdesc Represents a DtmfInput. + * @implements IDtmfInput * @constructor - * @param {google.cloud.dialogflow.cx.v3.IQueryParameters=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDtmfInput=} [properties] Properties to set */ - function QueryParameters(properties) { - this.sessionEntityTypes = []; - this.webhookHeaders = {}; - this.flowVersions = []; + function DtmfInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -44240,218 +44367,88 @@ } /** - * QueryParameters timeZone. - * @member {string} timeZone - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters - * @instance - */ - QueryParameters.prototype.timeZone = ""; - - /** - * QueryParameters geoLocation. - * @member {google.type.ILatLng|null|undefined} geoLocation - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters - * @instance - */ - QueryParameters.prototype.geoLocation = null; - - /** - * QueryParameters sessionEntityTypes. - * @member {Array.} sessionEntityTypes - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters - * @instance - */ - QueryParameters.prototype.sessionEntityTypes = $util.emptyArray; - - /** - * QueryParameters payload. - * @member {google.protobuf.IStruct|null|undefined} payload - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters - * @instance - */ - QueryParameters.prototype.payload = null; - - /** - * QueryParameters parameters. - * @member {google.protobuf.IStruct|null|undefined} parameters - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters - * @instance - */ - QueryParameters.prototype.parameters = null; - - /** - * QueryParameters currentPage. - * @member {string} currentPage - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters - * @instance - */ - QueryParameters.prototype.currentPage = ""; - - /** - * QueryParameters disableWebhook. - * @member {boolean} disableWebhook - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters - * @instance - */ - QueryParameters.prototype.disableWebhook = false; - - /** - * QueryParameters analyzeQueryTextSentiment. - * @member {boolean} analyzeQueryTextSentiment - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters - * @instance - */ - QueryParameters.prototype.analyzeQueryTextSentiment = false; - - /** - * QueryParameters webhookHeaders. - * @member {Object.} webhookHeaders - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * DtmfInput digits. + * @member {string} digits + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @instance */ - QueryParameters.prototype.webhookHeaders = $util.emptyObject; + DtmfInput.prototype.digits = ""; /** - * QueryParameters flowVersions. - * @member {Array.} flowVersions - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * DtmfInput finishDigit. + * @member {string} finishDigit + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @instance */ - QueryParameters.prototype.flowVersions = $util.emptyArray; + DtmfInput.prototype.finishDigit = ""; /** - * Creates a new QueryParameters instance using the specified properties. + * Creates a new DtmfInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @static - * @param {google.cloud.dialogflow.cx.v3.IQueryParameters=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.QueryParameters} QueryParameters instance + * @param {google.cloud.dialogflow.cx.v3.IDtmfInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DtmfInput} DtmfInput instance */ - QueryParameters.create = function create(properties) { - return new QueryParameters(properties); + DtmfInput.create = function create(properties) { + return new DtmfInput(properties); }; /** - * Encodes the specified QueryParameters message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryParameters.verify|verify} messages. + * Encodes the specified DtmfInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DtmfInput.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @static - * @param {google.cloud.dialogflow.cx.v3.IQueryParameters} message QueryParameters message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDtmfInput} message DtmfInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryParameters.encode = function encode(message, writer) { + DtmfInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.timeZone); - if (message.geoLocation != null && Object.hasOwnProperty.call(message, "geoLocation")) - $root.google.type.LatLng.encode(message.geoLocation, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.sessionEntityTypes != null && message.sessionEntityTypes.length) - for (var i = 0; i < message.sessionEntityTypes.length; ++i) - $root.google.cloud.dialogflow.cx.v3.SessionEntityType.encode(message.sessionEntityTypes[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) - $root.google.protobuf.Struct.encode(message.payload, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - $root.google.protobuf.Struct.encode(message.parameters, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.currentPage); - if (message.disableWebhook != null && Object.hasOwnProperty.call(message, "disableWebhook")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.disableWebhook); - if (message.analyzeQueryTextSentiment != null && Object.hasOwnProperty.call(message, "analyzeQueryTextSentiment")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.analyzeQueryTextSentiment); - if (message.webhookHeaders != null && Object.hasOwnProperty.call(message, "webhookHeaders")) - for (var keys = Object.keys(message.webhookHeaders), i = 0; i < keys.length; ++i) - writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.webhookHeaders[keys[i]]).ldelim(); - if (message.flowVersions != null && message.flowVersions.length) - for (var i = 0; i < message.flowVersions.length; ++i) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.flowVersions[i]); + if (message.digits != null && Object.hasOwnProperty.call(message, "digits")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.digits); + if (message.finishDigit != null && Object.hasOwnProperty.call(message, "finishDigit")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.finishDigit); return writer; }; /** - * Encodes the specified QueryParameters message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryParameters.verify|verify} messages. + * Encodes the specified DtmfInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DtmfInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @static - * @param {google.cloud.dialogflow.cx.v3.IQueryParameters} message QueryParameters message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDtmfInput} message DtmfInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryParameters.encodeDelimited = function encodeDelimited(message, writer) { + DtmfInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryParameters message from the specified reader or buffer. + * Decodes a DtmfInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.QueryParameters} QueryParameters + * @returns {google.cloud.dialogflow.cx.v3.DtmfInput} DtmfInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryParameters.decode = function decode(reader, length) { + DtmfInput.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.QueryParameters(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DtmfInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.timeZone = reader.string(); + message.digits = reader.string(); break; case 2: - message.geoLocation = $root.google.type.LatLng.decode(reader, reader.uint32()); - break; - case 3: - if (!(message.sessionEntityTypes && message.sessionEntityTypes.length)) - message.sessionEntityTypes = []; - message.sessionEntityTypes.push($root.google.cloud.dialogflow.cx.v3.SessionEntityType.decode(reader, reader.uint32())); - break; - case 4: - message.payload = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 5: - message.parameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 6: - message.currentPage = reader.string(); - break; - case 7: - message.disableWebhook = reader.bool(); - break; - case 8: - message.analyzeQueryTextSentiment = reader.bool(); - break; - case 10: - if (message.webhookHeaders === $util.emptyObject) - message.webhookHeaders = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.webhookHeaders[key] = value; - break; - case 14: - if (!(message.flowVersions && message.flowVersions.length)) - message.flowVersions = []; - message.flowVersions.push(reader.string()); + message.finishDigit = reader.string(); break; default: reader.skipType(tag & 7); @@ -44462,246 +44459,121 @@ }; /** - * Decodes a QueryParameters message from the specified reader or buffer, length delimited. + * Decodes a DtmfInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.QueryParameters} QueryParameters + * @returns {google.cloud.dialogflow.cx.v3.DtmfInput} DtmfInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryParameters.decodeDelimited = function decodeDelimited(reader) { + DtmfInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryParameters message. + * Verifies a DtmfInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryParameters.verify = function verify(message) { + DtmfInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.timeZone != null && message.hasOwnProperty("timeZone")) - if (!$util.isString(message.timeZone)) - return "timeZone: string expected"; - if (message.geoLocation != null && message.hasOwnProperty("geoLocation")) { - var error = $root.google.type.LatLng.verify(message.geoLocation); - if (error) - return "geoLocation." + error; - } - if (message.sessionEntityTypes != null && message.hasOwnProperty("sessionEntityTypes")) { - if (!Array.isArray(message.sessionEntityTypes)) - return "sessionEntityTypes: array expected"; - for (var i = 0; i < message.sessionEntityTypes.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.verify(message.sessionEntityTypes[i]); - if (error) - return "sessionEntityTypes." + error; - } - } - if (message.payload != null && message.hasOwnProperty("payload")) { - var error = $root.google.protobuf.Struct.verify(message.payload); - if (error) - return "payload." + error; - } - if (message.parameters != null && message.hasOwnProperty("parameters")) { - var error = $root.google.protobuf.Struct.verify(message.parameters); - if (error) - return "parameters." + error; - } - if (message.currentPage != null && message.hasOwnProperty("currentPage")) - if (!$util.isString(message.currentPage)) - return "currentPage: string expected"; - if (message.disableWebhook != null && message.hasOwnProperty("disableWebhook")) - if (typeof message.disableWebhook !== "boolean") - return "disableWebhook: boolean expected"; - if (message.analyzeQueryTextSentiment != null && message.hasOwnProperty("analyzeQueryTextSentiment")) - if (typeof message.analyzeQueryTextSentiment !== "boolean") - return "analyzeQueryTextSentiment: boolean expected"; - if (message.webhookHeaders != null && message.hasOwnProperty("webhookHeaders")) { - if (!$util.isObject(message.webhookHeaders)) - return "webhookHeaders: object expected"; - var key = Object.keys(message.webhookHeaders); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.webhookHeaders[key[i]])) - return "webhookHeaders: string{k:string} expected"; - } - if (message.flowVersions != null && message.hasOwnProperty("flowVersions")) { - if (!Array.isArray(message.flowVersions)) - return "flowVersions: array expected"; - for (var i = 0; i < message.flowVersions.length; ++i) - if (!$util.isString(message.flowVersions[i])) - return "flowVersions: string[] expected"; - } + if (message.digits != null && message.hasOwnProperty("digits")) + if (!$util.isString(message.digits)) + return "digits: string expected"; + if (message.finishDigit != null && message.hasOwnProperty("finishDigit")) + if (!$util.isString(message.finishDigit)) + return "finishDigit: string expected"; return null; }; /** - * Creates a QueryParameters message from a plain object. Also converts values to their respective internal types. + * Creates a DtmfInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.QueryParameters} QueryParameters + * @returns {google.cloud.dialogflow.cx.v3.DtmfInput} DtmfInput */ - QueryParameters.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.QueryParameters) + DtmfInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DtmfInput) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.QueryParameters(); - if (object.timeZone != null) - message.timeZone = String(object.timeZone); - if (object.geoLocation != null) { - if (typeof object.geoLocation !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.geoLocation: object expected"); - message.geoLocation = $root.google.type.LatLng.fromObject(object.geoLocation); - } - if (object.sessionEntityTypes) { - if (!Array.isArray(object.sessionEntityTypes)) - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.sessionEntityTypes: array expected"); - message.sessionEntityTypes = []; - for (var i = 0; i < object.sessionEntityTypes.length; ++i) { - if (typeof object.sessionEntityTypes[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.sessionEntityTypes: object expected"); - message.sessionEntityTypes[i] = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.fromObject(object.sessionEntityTypes[i]); - } - } - if (object.payload != null) { - if (typeof object.payload !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.payload: object expected"); - message.payload = $root.google.protobuf.Struct.fromObject(object.payload); - } - if (object.parameters != null) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.parameters: object expected"); - message.parameters = $root.google.protobuf.Struct.fromObject(object.parameters); - } - if (object.currentPage != null) - message.currentPage = String(object.currentPage); - if (object.disableWebhook != null) - message.disableWebhook = Boolean(object.disableWebhook); - if (object.analyzeQueryTextSentiment != null) - message.analyzeQueryTextSentiment = Boolean(object.analyzeQueryTextSentiment); - if (object.webhookHeaders) { - if (typeof object.webhookHeaders !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.webhookHeaders: object expected"); - message.webhookHeaders = {}; - for (var keys = Object.keys(object.webhookHeaders), i = 0; i < keys.length; ++i) - message.webhookHeaders[keys[i]] = String(object.webhookHeaders[keys[i]]); - } - if (object.flowVersions) { - if (!Array.isArray(object.flowVersions)) - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.flowVersions: array expected"); - message.flowVersions = []; - for (var i = 0; i < object.flowVersions.length; ++i) - message.flowVersions[i] = String(object.flowVersions[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3.DtmfInput(); + if (object.digits != null) + message.digits = String(object.digits); + if (object.finishDigit != null) + message.finishDigit = String(object.finishDigit); return message; }; /** - * Creates a plain object from a QueryParameters message. Also converts values to other types if specified. + * Creates a plain object from a DtmfInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @static - * @param {google.cloud.dialogflow.cx.v3.QueryParameters} message QueryParameters + * @param {google.cloud.dialogflow.cx.v3.DtmfInput} message DtmfInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryParameters.toObject = function toObject(message, options) { + DtmfInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.sessionEntityTypes = []; - object.flowVersions = []; - } - if (options.objects || options.defaults) - object.webhookHeaders = {}; if (options.defaults) { - object.timeZone = ""; - object.geoLocation = null; - object.payload = null; - object.parameters = null; - object.currentPage = ""; - object.disableWebhook = false; - object.analyzeQueryTextSentiment = false; - } - if (message.timeZone != null && message.hasOwnProperty("timeZone")) - object.timeZone = message.timeZone; - if (message.geoLocation != null && message.hasOwnProperty("geoLocation")) - object.geoLocation = $root.google.type.LatLng.toObject(message.geoLocation, options); - if (message.sessionEntityTypes && message.sessionEntityTypes.length) { - object.sessionEntityTypes = []; - for (var j = 0; j < message.sessionEntityTypes.length; ++j) - object.sessionEntityTypes[j] = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.toObject(message.sessionEntityTypes[j], options); - } - if (message.payload != null && message.hasOwnProperty("payload")) - object.payload = $root.google.protobuf.Struct.toObject(message.payload, options); - if (message.parameters != null && message.hasOwnProperty("parameters")) - object.parameters = $root.google.protobuf.Struct.toObject(message.parameters, options); - if (message.currentPage != null && message.hasOwnProperty("currentPage")) - object.currentPage = message.currentPage; - if (message.disableWebhook != null && message.hasOwnProperty("disableWebhook")) - object.disableWebhook = message.disableWebhook; - if (message.analyzeQueryTextSentiment != null && message.hasOwnProperty("analyzeQueryTextSentiment")) - object.analyzeQueryTextSentiment = message.analyzeQueryTextSentiment; - var keys2; - if (message.webhookHeaders && (keys2 = Object.keys(message.webhookHeaders)).length) { - object.webhookHeaders = {}; - for (var j = 0; j < keys2.length; ++j) - object.webhookHeaders[keys2[j]] = message.webhookHeaders[keys2[j]]; - } - if (message.flowVersions && message.flowVersions.length) { - object.flowVersions = []; - for (var j = 0; j < message.flowVersions.length; ++j) - object.flowVersions[j] = message.flowVersions[j]; + object.digits = ""; + object.finishDigit = ""; } + if (message.digits != null && message.hasOwnProperty("digits")) + object.digits = message.digits; + if (message.finishDigit != null && message.hasOwnProperty("finishDigit")) + object.finishDigit = message.finishDigit; return object; }; /** - * Converts this QueryParameters to JSON. + * Converts this DtmfInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @instance * @returns {Object.} JSON object */ - QueryParameters.prototype.toJSON = function toJSON() { + DtmfInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryParameters; + return DtmfInput; })(); - v3.QueryInput = (function() { + v3.Match = (function() { /** - * Properties of a QueryInput. + * Properties of a Match. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IQueryInput - * @property {google.cloud.dialogflow.cx.v3.ITextInput|null} [text] QueryInput text - * @property {google.cloud.dialogflow.cx.v3.IIntentInput|null} [intent] QueryInput intent - * @property {google.cloud.dialogflow.cx.v3.IAudioInput|null} [audio] QueryInput audio - * @property {google.cloud.dialogflow.cx.v3.IEventInput|null} [event] QueryInput event - * @property {google.cloud.dialogflow.cx.v3.IDtmfInput|null} [dtmf] QueryInput dtmf - * @property {string|null} [languageCode] QueryInput languageCode + * @interface IMatch + * @property {google.cloud.dialogflow.cx.v3.IIntent|null} [intent] Match intent + * @property {string|null} [event] Match event + * @property {google.protobuf.IStruct|null} [parameters] Match parameters + * @property {string|null} [resolvedInput] Match resolvedInput + * @property {google.cloud.dialogflow.cx.v3.Match.MatchType|null} [matchType] Match matchType + * @property {number|null} [confidence] Match confidence */ /** - * Constructs a new QueryInput. + * Constructs a new Match. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a QueryInput. - * @implements IQueryInput + * @classdesc Represents a Match. + * @implements IMatch * @constructor - * @param {google.cloud.dialogflow.cx.v3.IQueryInput=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IMatch=} [properties] Properties to set */ - function QueryInput(properties) { + function Match(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -44709,154 +44581,140 @@ } /** - * QueryInput text. - * @member {google.cloud.dialogflow.cx.v3.ITextInput|null|undefined} text - * @memberof google.cloud.dialogflow.cx.v3.QueryInput - * @instance - */ - QueryInput.prototype.text = null; - - /** - * QueryInput intent. - * @member {google.cloud.dialogflow.cx.v3.IIntentInput|null|undefined} intent - * @memberof google.cloud.dialogflow.cx.v3.QueryInput + * Match intent. + * @member {google.cloud.dialogflow.cx.v3.IIntent|null|undefined} intent + * @memberof google.cloud.dialogflow.cx.v3.Match * @instance */ - QueryInput.prototype.intent = null; + Match.prototype.intent = null; /** - * QueryInput audio. - * @member {google.cloud.dialogflow.cx.v3.IAudioInput|null|undefined} audio - * @memberof google.cloud.dialogflow.cx.v3.QueryInput + * Match event. + * @member {string} event + * @memberof google.cloud.dialogflow.cx.v3.Match * @instance */ - QueryInput.prototype.audio = null; + Match.prototype.event = ""; /** - * QueryInput event. - * @member {google.cloud.dialogflow.cx.v3.IEventInput|null|undefined} event - * @memberof google.cloud.dialogflow.cx.v3.QueryInput + * Match parameters. + * @member {google.protobuf.IStruct|null|undefined} parameters + * @memberof google.cloud.dialogflow.cx.v3.Match * @instance */ - QueryInput.prototype.event = null; + Match.prototype.parameters = null; /** - * QueryInput dtmf. - * @member {google.cloud.dialogflow.cx.v3.IDtmfInput|null|undefined} dtmf - * @memberof google.cloud.dialogflow.cx.v3.QueryInput + * Match resolvedInput. + * @member {string} resolvedInput + * @memberof google.cloud.dialogflow.cx.v3.Match * @instance */ - QueryInput.prototype.dtmf = null; + Match.prototype.resolvedInput = ""; /** - * QueryInput languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.QueryInput + * Match matchType. + * @member {google.cloud.dialogflow.cx.v3.Match.MatchType} matchType + * @memberof google.cloud.dialogflow.cx.v3.Match * @instance */ - QueryInput.prototype.languageCode = ""; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + Match.prototype.matchType = 0; /** - * QueryInput input. - * @member {"text"|"intent"|"audio"|"event"|"dtmf"|undefined} input - * @memberof google.cloud.dialogflow.cx.v3.QueryInput + * Match confidence. + * @member {number} confidence + * @memberof google.cloud.dialogflow.cx.v3.Match * @instance */ - Object.defineProperty(QueryInput.prototype, "input", { - get: $util.oneOfGetter($oneOfFields = ["text", "intent", "audio", "event", "dtmf"]), - set: $util.oneOfSetter($oneOfFields) - }); + Match.prototype.confidence = 0; /** - * Creates a new QueryInput instance using the specified properties. + * Creates a new Match instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.QueryInput + * @memberof google.cloud.dialogflow.cx.v3.Match * @static - * @param {google.cloud.dialogflow.cx.v3.IQueryInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.QueryInput} QueryInput instance + * @param {google.cloud.dialogflow.cx.v3.IMatch=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Match} Match instance */ - QueryInput.create = function create(properties) { - return new QueryInput(properties); + Match.create = function create(properties) { + return new Match(properties); }; /** - * Encodes the specified QueryInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryInput.verify|verify} messages. + * Encodes the specified Match message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Match.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.QueryInput + * @memberof google.cloud.dialogflow.cx.v3.Match * @static - * @param {google.cloud.dialogflow.cx.v3.IQueryInput} message QueryInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IMatch} message Match message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryInput.encode = function encode(message, writer) { + Match.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.text != null && Object.hasOwnProperty.call(message, "text")) - $root.google.cloud.dialogflow.cx.v3.TextInput.encode(message.text, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) - $root.google.cloud.dialogflow.cx.v3.IntentInput.encode(message.intent, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.languageCode); - if (message.audio != null && Object.hasOwnProperty.call(message, "audio")) - $root.google.cloud.dialogflow.cx.v3.AudioInput.encode(message.audio, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Intent.encode(message.intent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + $root.google.protobuf.Struct.encode(message.parameters, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.resolvedInput != null && Object.hasOwnProperty.call(message, "resolvedInput")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.resolvedInput); + if (message.matchType != null && Object.hasOwnProperty.call(message, "matchType")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.matchType); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + writer.uint32(/* id 5, wireType 5 =*/45).float(message.confidence); if (message.event != null && Object.hasOwnProperty.call(message, "event")) - $root.google.cloud.dialogflow.cx.v3.EventInput.encode(message.event, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.dtmf != null && Object.hasOwnProperty.call(message, "dtmf")) - $root.google.cloud.dialogflow.cx.v3.DtmfInput.encode(message.dtmf, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + writer.uint32(/* id 6, wireType 2 =*/50).string(message.event); return writer; }; /** - * Encodes the specified QueryInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryInput.verify|verify} messages. + * Encodes the specified Match message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Match.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.QueryInput + * @memberof google.cloud.dialogflow.cx.v3.Match * @static - * @param {google.cloud.dialogflow.cx.v3.IQueryInput} message QueryInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IMatch} message Match message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryInput.encodeDelimited = function encodeDelimited(message, writer) { + Match.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryInput message from the specified reader or buffer. + * Decodes a Match message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.QueryInput + * @memberof google.cloud.dialogflow.cx.v3.Match * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.QueryInput} QueryInput + * @returns {google.cloud.dialogflow.cx.v3.Match} Match * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryInput.decode = function decode(reader, length) { + Match.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.QueryInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Match(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: - message.text = $root.google.cloud.dialogflow.cx.v3.TextInput.decode(reader, reader.uint32()); - break; - case 3: - message.intent = $root.google.cloud.dialogflow.cx.v3.IntentInput.decode(reader, reader.uint32()); - break; - case 5: - message.audio = $root.google.cloud.dialogflow.cx.v3.AudioInput.decode(reader, reader.uint32()); + case 1: + message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.decode(reader, reader.uint32()); break; case 6: - message.event = $root.google.cloud.dialogflow.cx.v3.EventInput.decode(reader, reader.uint32()); + message.event = reader.string(); break; - case 7: - message.dtmf = $root.google.cloud.dialogflow.cx.v3.DtmfInput.decode(reader, reader.uint32()); + case 2: + message.parameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 3: + message.resolvedInput = reader.string(); break; case 4: - message.languageCode = reader.string(); + message.matchType = reader.int32(); + break; + case 5: + message.confidence = reader.float(); break; default: reader.skipType(tag & 7); @@ -44867,224 +44725,222 @@ }; /** - * Decodes a QueryInput message from the specified reader or buffer, length delimited. + * Decodes a Match message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.QueryInput + * @memberof google.cloud.dialogflow.cx.v3.Match * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.QueryInput} QueryInput + * @returns {google.cloud.dialogflow.cx.v3.Match} Match * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryInput.decodeDelimited = function decodeDelimited(reader) { + Match.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryInput message. + * Verifies a Match message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.QueryInput + * @memberof google.cloud.dialogflow.cx.v3.Match * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryInput.verify = function verify(message) { + Match.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.text != null && message.hasOwnProperty("text")) { - properties.input = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.TextInput.verify(message.text); - if (error) - return "text." + error; - } - } if (message.intent != null && message.hasOwnProperty("intent")) { - if (properties.input === 1) - return "input: multiple values"; - properties.input = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.IntentInput.verify(message.intent); - if (error) - return "intent." + error; - } - } - if (message.audio != null && message.hasOwnProperty("audio")) { - if (properties.input === 1) - return "input: multiple values"; - properties.input = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.AudioInput.verify(message.audio); - if (error) - return "audio." + error; - } + var error = $root.google.cloud.dialogflow.cx.v3.Intent.verify(message.intent); + if (error) + return "intent." + error; } - if (message.event != null && message.hasOwnProperty("event")) { - if (properties.input === 1) - return "input: multiple values"; - properties.input = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.EventInput.verify(message.event); - if (error) - return "event." + error; - } + if (message.event != null && message.hasOwnProperty("event")) + if (!$util.isString(message.event)) + return "event: string expected"; + if (message.parameters != null && message.hasOwnProperty("parameters")) { + var error = $root.google.protobuf.Struct.verify(message.parameters); + if (error) + return "parameters." + error; } - if (message.dtmf != null && message.hasOwnProperty("dtmf")) { - if (properties.input === 1) - return "input: multiple values"; - properties.input = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.DtmfInput.verify(message.dtmf); - if (error) - return "dtmf." + error; + if (message.resolvedInput != null && message.hasOwnProperty("resolvedInput")) + if (!$util.isString(message.resolvedInput)) + return "resolvedInput: string expected"; + if (message.matchType != null && message.hasOwnProperty("matchType")) + switch (message.matchType) { + default: + return "matchType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; } - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; + if (message.confidence != null && message.hasOwnProperty("confidence")) + if (typeof message.confidence !== "number") + return "confidence: number expected"; return null; }; /** - * Creates a QueryInput message from a plain object. Also converts values to their respective internal types. + * Creates a Match message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.QueryInput + * @memberof google.cloud.dialogflow.cx.v3.Match * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.QueryInput} QueryInput + * @returns {google.cloud.dialogflow.cx.v3.Match} Match */ - QueryInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.QueryInput) + Match.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Match) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.QueryInput(); - if (object.text != null) { - if (typeof object.text !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryInput.text: object expected"); - message.text = $root.google.cloud.dialogflow.cx.v3.TextInput.fromObject(object.text); - } + var message = new $root.google.cloud.dialogflow.cx.v3.Match(); if (object.intent != null) { if (typeof object.intent !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryInput.intent: object expected"); - message.intent = $root.google.cloud.dialogflow.cx.v3.IntentInput.fromObject(object.intent); - } - if (object.audio != null) { - if (typeof object.audio !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryInput.audio: object expected"); - message.audio = $root.google.cloud.dialogflow.cx.v3.AudioInput.fromObject(object.audio); + throw TypeError(".google.cloud.dialogflow.cx.v3.Match.intent: object expected"); + message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.fromObject(object.intent); } - if (object.event != null) { - if (typeof object.event !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryInput.event: object expected"); - message.event = $root.google.cloud.dialogflow.cx.v3.EventInput.fromObject(object.event); + if (object.event != null) + message.event = String(object.event); + if (object.parameters != null) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Match.parameters: object expected"); + message.parameters = $root.google.protobuf.Struct.fromObject(object.parameters); } - if (object.dtmf != null) { - if (typeof object.dtmf !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryInput.dtmf: object expected"); - message.dtmf = $root.google.cloud.dialogflow.cx.v3.DtmfInput.fromObject(object.dtmf); + if (object.resolvedInput != null) + message.resolvedInput = String(object.resolvedInput); + switch (object.matchType) { + case "MATCH_TYPE_UNSPECIFIED": + case 0: + message.matchType = 0; + break; + case "INTENT": + case 1: + message.matchType = 1; + break; + case "DIRECT_INTENT": + case 2: + message.matchType = 2; + break; + case "PARAMETER_FILLING": + case 3: + message.matchType = 3; + break; + case "NO_MATCH": + case 4: + message.matchType = 4; + break; + case "NO_INPUT": + case 5: + message.matchType = 5; + break; + case "EVENT": + case 6: + message.matchType = 6; + break; } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); + if (object.confidence != null) + message.confidence = Number(object.confidence); return message; }; /** - * Creates a plain object from a QueryInput message. Also converts values to other types if specified. + * Creates a plain object from a Match message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.QueryInput + * @memberof google.cloud.dialogflow.cx.v3.Match * @static - * @param {google.cloud.dialogflow.cx.v3.QueryInput} message QueryInput + * @param {google.cloud.dialogflow.cx.v3.Match} message Match * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryInput.toObject = function toObject(message, options) { + Match.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.languageCode = ""; - if (message.text != null && message.hasOwnProperty("text")) { - object.text = $root.google.cloud.dialogflow.cx.v3.TextInput.toObject(message.text, options); - if (options.oneofs) - object.input = "text"; - } - if (message.intent != null && message.hasOwnProperty("intent")) { - object.intent = $root.google.cloud.dialogflow.cx.v3.IntentInput.toObject(message.intent, options); - if (options.oneofs) - object.input = "intent"; - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; - if (message.audio != null && message.hasOwnProperty("audio")) { - object.audio = $root.google.cloud.dialogflow.cx.v3.AudioInput.toObject(message.audio, options); - if (options.oneofs) - object.input = "audio"; - } - if (message.event != null && message.hasOwnProperty("event")) { - object.event = $root.google.cloud.dialogflow.cx.v3.EventInput.toObject(message.event, options); - if (options.oneofs) - object.input = "event"; - } - if (message.dtmf != null && message.hasOwnProperty("dtmf")) { - object.dtmf = $root.google.cloud.dialogflow.cx.v3.DtmfInput.toObject(message.dtmf, options); - if (options.oneofs) - object.input = "dtmf"; + if (options.defaults) { + object.intent = null; + object.parameters = null; + object.resolvedInput = ""; + object.matchType = options.enums === String ? "MATCH_TYPE_UNSPECIFIED" : 0; + object.confidence = 0; + object.event = ""; } + if (message.intent != null && message.hasOwnProperty("intent")) + object.intent = $root.google.cloud.dialogflow.cx.v3.Intent.toObject(message.intent, options); + if (message.parameters != null && message.hasOwnProperty("parameters")) + object.parameters = $root.google.protobuf.Struct.toObject(message.parameters, options); + if (message.resolvedInput != null && message.hasOwnProperty("resolvedInput")) + object.resolvedInput = message.resolvedInput; + if (message.matchType != null && message.hasOwnProperty("matchType")) + object.matchType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Match.MatchType[message.matchType] : message.matchType; + if (message.confidence != null && message.hasOwnProperty("confidence")) + object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; + if (message.event != null && message.hasOwnProperty("event")) + object.event = message.event; return object; }; /** - * Converts this QueryInput to JSON. + * Converts this Match to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.QueryInput + * @memberof google.cloud.dialogflow.cx.v3.Match * @instance * @returns {Object.} JSON object */ - QueryInput.prototype.toJSON = function toJSON() { + Match.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryInput; + /** + * MatchType enum. + * @name google.cloud.dialogflow.cx.v3.Match.MatchType + * @enum {number} + * @property {number} MATCH_TYPE_UNSPECIFIED=0 MATCH_TYPE_UNSPECIFIED value + * @property {number} INTENT=1 INTENT value + * @property {number} DIRECT_INTENT=2 DIRECT_INTENT value + * @property {number} PARAMETER_FILLING=3 PARAMETER_FILLING value + * @property {number} NO_MATCH=4 NO_MATCH value + * @property {number} NO_INPUT=5 NO_INPUT value + * @property {number} EVENT=6 EVENT value + */ + Match.MatchType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MATCH_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "INTENT"] = 1; + values[valuesById[2] = "DIRECT_INTENT"] = 2; + values[valuesById[3] = "PARAMETER_FILLING"] = 3; + values[valuesById[4] = "NO_MATCH"] = 4; + values[valuesById[5] = "NO_INPUT"] = 5; + values[valuesById[6] = "EVENT"] = 6; + return values; + })(); + + return Match; })(); - v3.QueryResult = (function() { + v3.MatchIntentRequest = (function() { /** - * Properties of a QueryResult. + * Properties of a MatchIntentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IQueryResult - * @property {string|null} [text] QueryResult text - * @property {string|null} [triggerIntent] QueryResult triggerIntent - * @property {string|null} [transcript] QueryResult transcript - * @property {string|null} [triggerEvent] QueryResult triggerEvent - * @property {google.cloud.dialogflow.cx.v3.IDtmfInput|null} [dtmf] QueryResult dtmf - * @property {string|null} [languageCode] QueryResult languageCode - * @property {google.protobuf.IStruct|null} [parameters] QueryResult parameters - * @property {Array.|null} [responseMessages] QueryResult responseMessages - * @property {Array.|null} [webhookStatuses] QueryResult webhookStatuses - * @property {Array.|null} [webhookPayloads] QueryResult webhookPayloads - * @property {google.cloud.dialogflow.cx.v3.IPage|null} [currentPage] QueryResult currentPage - * @property {google.cloud.dialogflow.cx.v3.IIntent|null} [intent] QueryResult intent - * @property {number|null} [intentDetectionConfidence] QueryResult intentDetectionConfidence - * @property {google.cloud.dialogflow.cx.v3.IMatch|null} [match] QueryResult match - * @property {google.protobuf.IStruct|null} [diagnosticInfo] QueryResult diagnosticInfo - * @property {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult|null} [sentimentAnalysisResult] QueryResult sentimentAnalysisResult + * @interface IMatchIntentRequest + * @property {string|null} [session] MatchIntentRequest session + * @property {google.cloud.dialogflow.cx.v3.IQueryParameters|null} [queryParams] MatchIntentRequest queryParams + * @property {google.cloud.dialogflow.cx.v3.IQueryInput|null} [queryInput] MatchIntentRequest queryInput */ /** - * Constructs a new QueryResult. + * Constructs a new MatchIntentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a QueryResult. - * @implements IQueryResult + * @classdesc Represents a MatchIntentRequest. + * @implements IMatchIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IQueryResult=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IMatchIntentRequest=} [properties] Properties to set */ - function QueryResult(properties) { - this.responseMessages = []; - this.webhookStatuses = []; - this.webhookPayloads = []; + function MatchIntentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -45092,293 +44948,403 @@ } /** - * QueryResult text. - * @member {string|null|undefined} text - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * MatchIntentRequest session. + * @member {string} session + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @instance */ - QueryResult.prototype.text = null; + MatchIntentRequest.prototype.session = ""; /** - * QueryResult triggerIntent. - * @member {string|null|undefined} triggerIntent - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * MatchIntentRequest queryParams. + * @member {google.cloud.dialogflow.cx.v3.IQueryParameters|null|undefined} queryParams + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @instance */ - QueryResult.prototype.triggerIntent = null; + MatchIntentRequest.prototype.queryParams = null; /** - * QueryResult transcript. - * @member {string|null|undefined} transcript - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * MatchIntentRequest queryInput. + * @member {google.cloud.dialogflow.cx.v3.IQueryInput|null|undefined} queryInput + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @instance */ - QueryResult.prototype.transcript = null; + MatchIntentRequest.prototype.queryInput = null; /** - * QueryResult triggerEvent. - * @member {string|null|undefined} triggerEvent - * @memberof google.cloud.dialogflow.cx.v3.QueryResult - * @instance + * Creates a new MatchIntentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IMatchIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.MatchIntentRequest} MatchIntentRequest instance */ - QueryResult.prototype.triggerEvent = null; + MatchIntentRequest.create = function create(properties) { + return new MatchIntentRequest(properties); + }; /** - * QueryResult dtmf. - * @member {google.cloud.dialogflow.cx.v3.IDtmfInput|null|undefined} dtmf - * @memberof google.cloud.dialogflow.cx.v3.QueryResult - * @instance + * Encodes the specified MatchIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IMatchIntentRequest} message MatchIntentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - QueryResult.prototype.dtmf = null; + MatchIntentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.session != null && Object.hasOwnProperty.call(message, "session")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.session); + if (message.queryParams != null && Object.hasOwnProperty.call(message, "queryParams")) + $root.google.cloud.dialogflow.cx.v3.QueryParameters.encode(message.queryParams, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.queryInput != null && Object.hasOwnProperty.call(message, "queryInput")) + $root.google.cloud.dialogflow.cx.v3.QueryInput.encode(message.queryInput, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; /** - * QueryResult languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.QueryResult - * @instance + * Encodes the specified MatchIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IMatchIntentRequest} message MatchIntentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - QueryResult.prototype.languageCode = ""; + MatchIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * QueryResult parameters. - * @member {google.protobuf.IStruct|null|undefined} parameters - * @memberof google.cloud.dialogflow.cx.v3.QueryResult - * @instance + * Decodes a MatchIntentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.MatchIntentRequest} MatchIntentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryResult.prototype.parameters = null; + MatchIntentRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.session = reader.string(); + break; + case 2: + message.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.decode(reader, reader.uint32()); + break; + case 3: + message.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * QueryResult responseMessages. - * @member {Array.} responseMessages - * @memberof google.cloud.dialogflow.cx.v3.QueryResult - * @instance + * Decodes a MatchIntentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.MatchIntentRequest} MatchIntentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryResult.prototype.responseMessages = $util.emptyArray; + MatchIntentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * QueryResult webhookStatuses. - * @member {Array.} webhookStatuses - * @memberof google.cloud.dialogflow.cx.v3.QueryResult - * @instance + * Verifies a MatchIntentRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryResult.prototype.webhookStatuses = $util.emptyArray; + MatchIntentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.session != null && message.hasOwnProperty("session")) + if (!$util.isString(message.session)) + return "session: string expected"; + if (message.queryParams != null && message.hasOwnProperty("queryParams")) { + var error = $root.google.cloud.dialogflow.cx.v3.QueryParameters.verify(message.queryParams); + if (error) + return "queryParams." + error; + } + if (message.queryInput != null && message.hasOwnProperty("queryInput")) { + var error = $root.google.cloud.dialogflow.cx.v3.QueryInput.verify(message.queryInput); + if (error) + return "queryInput." + error; + } + return null; + }; /** - * QueryResult webhookPayloads. - * @member {Array.} webhookPayloads - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * Creates a MatchIntentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.MatchIntentRequest} MatchIntentRequest + */ + MatchIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest(); + if (object.session != null) + message.session = String(object.session); + if (object.queryParams != null) { + if (typeof object.queryParams !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.MatchIntentRequest.queryParams: object expected"); + message.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.fromObject(object.queryParams); + } + if (object.queryInput != null) { + if (typeof object.queryInput !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.MatchIntentRequest.queryInput: object expected"); + message.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.fromObject(object.queryInput); + } + return message; + }; + + /** + * Creates a plain object from a MatchIntentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.MatchIntentRequest} message MatchIntentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MatchIntentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.session = ""; + object.queryParams = null; + object.queryInput = null; + } + if (message.session != null && message.hasOwnProperty("session")) + object.session = message.session; + if (message.queryParams != null && message.hasOwnProperty("queryParams")) + object.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.toObject(message.queryParams, options); + if (message.queryInput != null && message.hasOwnProperty("queryInput")) + object.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.toObject(message.queryInput, options); + return object; + }; + + /** + * Converts this MatchIntentRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @instance + * @returns {Object.} JSON object */ - QueryResult.prototype.webhookPayloads = $util.emptyArray; + MatchIntentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MatchIntentRequest; + })(); + + v3.MatchIntentResponse = (function() { /** - * QueryResult currentPage. - * @member {google.cloud.dialogflow.cx.v3.IPage|null|undefined} currentPage - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * Properties of a MatchIntentResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IMatchIntentResponse + * @property {string|null} [text] MatchIntentResponse text + * @property {string|null} [triggerIntent] MatchIntentResponse triggerIntent + * @property {string|null} [transcript] MatchIntentResponse transcript + * @property {string|null} [triggerEvent] MatchIntentResponse triggerEvent + * @property {Array.|null} [matches] MatchIntentResponse matches + * @property {google.cloud.dialogflow.cx.v3.IPage|null} [currentPage] MatchIntentResponse currentPage + */ + + /** + * Constructs a new MatchIntentResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a MatchIntentResponse. + * @implements IMatchIntentResponse + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IMatchIntentResponse=} [properties] Properties to set + */ + function MatchIntentResponse(properties) { + this.matches = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MatchIntentResponse text. + * @member {string|null|undefined} text + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @instance */ - QueryResult.prototype.currentPage = null; + MatchIntentResponse.prototype.text = null; /** - * QueryResult intent. - * @member {google.cloud.dialogflow.cx.v3.IIntent|null|undefined} intent - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * MatchIntentResponse triggerIntent. + * @member {string|null|undefined} triggerIntent + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @instance */ - QueryResult.prototype.intent = null; + MatchIntentResponse.prototype.triggerIntent = null; /** - * QueryResult intentDetectionConfidence. - * @member {number} intentDetectionConfidence - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * MatchIntentResponse transcript. + * @member {string|null|undefined} transcript + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @instance */ - QueryResult.prototype.intentDetectionConfidence = 0; + MatchIntentResponse.prototype.transcript = null; /** - * QueryResult match. - * @member {google.cloud.dialogflow.cx.v3.IMatch|null|undefined} match - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * MatchIntentResponse triggerEvent. + * @member {string|null|undefined} triggerEvent + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @instance */ - QueryResult.prototype.match = null; + MatchIntentResponse.prototype.triggerEvent = null; /** - * QueryResult diagnosticInfo. - * @member {google.protobuf.IStruct|null|undefined} diagnosticInfo - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * MatchIntentResponse matches. + * @member {Array.} matches + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @instance */ - QueryResult.prototype.diagnosticInfo = null; + MatchIntentResponse.prototype.matches = $util.emptyArray; /** - * QueryResult sentimentAnalysisResult. - * @member {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult|null|undefined} sentimentAnalysisResult - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * MatchIntentResponse currentPage. + * @member {google.cloud.dialogflow.cx.v3.IPage|null|undefined} currentPage + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @instance */ - QueryResult.prototype.sentimentAnalysisResult = null; + MatchIntentResponse.prototype.currentPage = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * QueryResult query. - * @member {"text"|"triggerIntent"|"transcript"|"triggerEvent"|"dtmf"|undefined} query - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * MatchIntentResponse query. + * @member {"text"|"triggerIntent"|"transcript"|"triggerEvent"|undefined} query + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @instance */ - Object.defineProperty(QueryResult.prototype, "query", { - get: $util.oneOfGetter($oneOfFields = ["text", "triggerIntent", "transcript", "triggerEvent", "dtmf"]), + Object.defineProperty(MatchIntentResponse.prototype, "query", { + get: $util.oneOfGetter($oneOfFields = ["text", "triggerIntent", "transcript", "triggerEvent"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new QueryResult instance using the specified properties. + * Creates a new MatchIntentResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IQueryResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.QueryResult} QueryResult instance + * @param {google.cloud.dialogflow.cx.v3.IMatchIntentResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.MatchIntentResponse} MatchIntentResponse instance */ - QueryResult.create = function create(properties) { - return new QueryResult(properties); + MatchIntentResponse.create = function create(properties) { + return new MatchIntentResponse(properties); }; /** - * Encodes the specified QueryResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryResult.verify|verify} messages. + * Encodes the specified MatchIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IQueryResult} message QueryResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IMatchIntentResponse} message MatchIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryResult.encode = function encode(message, writer) { + MatchIntentResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.text != null && Object.hasOwnProperty.call(message, "text")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - $root.google.protobuf.Struct.encode(message.parameters, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.responseMessages != null && message.responseMessages.length) - for (var i = 0; i < message.responseMessages.length; ++i) - $root.google.cloud.dialogflow.cx.v3.ResponseMessage.encode(message.responseMessages[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.webhookPayloads != null && message.webhookPayloads.length) - for (var i = 0; i < message.webhookPayloads.length; ++i) - $root.google.protobuf.Struct.encode(message.webhookPayloads[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) - $root.google.cloud.dialogflow.cx.v3.Page.encode(message.currentPage, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) - $root.google.cloud.dialogflow.cx.v3.Intent.encode(message.intent, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.intentDetectionConfidence != null && Object.hasOwnProperty.call(message, "intentDetectionConfidence")) - writer.uint32(/* id 9, wireType 5 =*/77).float(message.intentDetectionConfidence); - if (message.diagnosticInfo != null && Object.hasOwnProperty.call(message, "diagnosticInfo")) - $root.google.protobuf.Struct.encode(message.diagnosticInfo, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); if (message.triggerIntent != null && Object.hasOwnProperty.call(message, "triggerIntent")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.triggerIntent); + writer.uint32(/* id 2, wireType 2 =*/18).string(message.triggerIntent); if (message.transcript != null && Object.hasOwnProperty.call(message, "transcript")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.transcript); - if (message.webhookStatuses != null && message.webhookStatuses.length) - for (var i = 0; i < message.webhookStatuses.length; ++i) - $root.google.rpc.Status.encode(message.webhookStatuses[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + writer.uint32(/* id 3, wireType 2 =*/26).string(message.transcript); + if (message.matches != null && message.matches.length) + for (var i = 0; i < message.matches.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Match.encode(message.matches[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) + $root.google.cloud.dialogflow.cx.v3.Page.encode(message.currentPage, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.triggerEvent != null && Object.hasOwnProperty.call(message, "triggerEvent")) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.triggerEvent); - if (message.match != null && Object.hasOwnProperty.call(message, "match")) - $root.google.cloud.dialogflow.cx.v3.Match.encode(message.match, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.sentimentAnalysisResult != null && Object.hasOwnProperty.call(message, "sentimentAnalysisResult")) - $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.encode(message.sentimentAnalysisResult, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); - if (message.dtmf != null && Object.hasOwnProperty.call(message, "dtmf")) - $root.google.cloud.dialogflow.cx.v3.DtmfInput.encode(message.dtmf, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); + writer.uint32(/* id 6, wireType 2 =*/50).string(message.triggerEvent); return writer; }; /** - * Encodes the specified QueryResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryResult.verify|verify} messages. + * Encodes the specified MatchIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IQueryResult} message QueryResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IMatchIntentResponse} message MatchIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryResult.encodeDelimited = function encodeDelimited(message, writer) { + MatchIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryResult message from the specified reader or buffer. + * Decodes a MatchIntentResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.QueryResult} QueryResult + * @returns {google.cloud.dialogflow.cx.v3.MatchIntentResponse} MatchIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryResult.decode = function decode(reader, length) { + MatchIntentResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.QueryResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.MatchIntentResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.text = reader.string(); break; - case 11: + case 2: message.triggerIntent = reader.string(); break; - case 12: + case 3: message.transcript = reader.string(); break; - case 14: + case 6: message.triggerEvent = reader.string(); break; - case 23: - message.dtmf = $root.google.cloud.dialogflow.cx.v3.DtmfInput.decode(reader, reader.uint32()); + case 4: + if (!(message.matches && message.matches.length)) + message.matches = []; + message.matches.push($root.google.cloud.dialogflow.cx.v3.Match.decode(reader, reader.uint32())); break; - case 2: - message.languageCode = reader.string(); - break; - case 3: - message.parameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 4: - if (!(message.responseMessages && message.responseMessages.length)) - message.responseMessages = []; - message.responseMessages.push($root.google.cloud.dialogflow.cx.v3.ResponseMessage.decode(reader, reader.uint32())); - break; - case 13: - if (!(message.webhookStatuses && message.webhookStatuses.length)) - message.webhookStatuses = []; - message.webhookStatuses.push($root.google.rpc.Status.decode(reader, reader.uint32())); - break; - case 6: - if (!(message.webhookPayloads && message.webhookPayloads.length)) - message.webhookPayloads = []; - message.webhookPayloads.push($root.google.protobuf.Struct.decode(reader, reader.uint32())); - break; - case 7: - message.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.decode(reader, reader.uint32()); - break; - case 8: - message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.decode(reader, reader.uint32()); - break; - case 9: - message.intentDetectionConfidence = reader.float(); - break; - case 15: - message.match = $root.google.cloud.dialogflow.cx.v3.Match.decode(reader, reader.uint32()); - break; - case 10: - message.diagnosticInfo = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 17: - message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.decode(reader, reader.uint32()); + case 5: + message.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -45389,30 +45355,30 @@ }; /** - * Decodes a QueryResult message from the specified reader or buffer, length delimited. + * Decodes a MatchIntentResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.QueryResult} QueryResult + * @returns {google.cloud.dialogflow.cx.v3.MatchIntentResponse} MatchIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryResult.decodeDelimited = function decodeDelimited(reader) { + MatchIntentResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryResult message. + * Verifies a MatchIntentResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryResult.verify = function verify(message) { + MatchIntentResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -45442,49 +45408,13 @@ if (!$util.isString(message.triggerEvent)) return "triggerEvent: string expected"; } - if (message.dtmf != null && message.hasOwnProperty("dtmf")) { - if (properties.query === 1) - return "query: multiple values"; - properties.query = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.DtmfInput.verify(message.dtmf); - if (error) - return "dtmf." + error; - } - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; - if (message.parameters != null && message.hasOwnProperty("parameters")) { - var error = $root.google.protobuf.Struct.verify(message.parameters); - if (error) - return "parameters." + error; - } - if (message.responseMessages != null && message.hasOwnProperty("responseMessages")) { - if (!Array.isArray(message.responseMessages)) - return "responseMessages: array expected"; - for (var i = 0; i < message.responseMessages.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.verify(message.responseMessages[i]); - if (error) - return "responseMessages." + error; - } - } - if (message.webhookStatuses != null && message.hasOwnProperty("webhookStatuses")) { - if (!Array.isArray(message.webhookStatuses)) - return "webhookStatuses: array expected"; - for (var i = 0; i < message.webhookStatuses.length; ++i) { - var error = $root.google.rpc.Status.verify(message.webhookStatuses[i]); - if (error) - return "webhookStatuses." + error; - } - } - if (message.webhookPayloads != null && message.hasOwnProperty("webhookPayloads")) { - if (!Array.isArray(message.webhookPayloads)) - return "webhookPayloads: array expected"; - for (var i = 0; i < message.webhookPayloads.length; ++i) { - var error = $root.google.protobuf.Struct.verify(message.webhookPayloads[i]); + if (message.matches != null && message.hasOwnProperty("matches")) { + if (!Array.isArray(message.matches)) + return "matches: array expected"; + for (var i = 0; i < message.matches.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Match.verify(message.matches[i]); if (error) - return "webhookPayloads." + error; + return "matches." + error; } } if (message.currentPage != null && message.hasOwnProperty("currentPage")) { @@ -45492,44 +45422,21 @@ if (error) return "currentPage." + error; } - if (message.intent != null && message.hasOwnProperty("intent")) { - var error = $root.google.cloud.dialogflow.cx.v3.Intent.verify(message.intent); - if (error) - return "intent." + error; - } - if (message.intentDetectionConfidence != null && message.hasOwnProperty("intentDetectionConfidence")) - if (typeof message.intentDetectionConfidence !== "number") - return "intentDetectionConfidence: number expected"; - if (message.match != null && message.hasOwnProperty("match")) { - var error = $root.google.cloud.dialogflow.cx.v3.Match.verify(message.match); - if (error) - return "match." + error; - } - if (message.diagnosticInfo != null && message.hasOwnProperty("diagnosticInfo")) { - var error = $root.google.protobuf.Struct.verify(message.diagnosticInfo); - if (error) - return "diagnosticInfo." + error; - } - if (message.sentimentAnalysisResult != null && message.hasOwnProperty("sentimentAnalysisResult")) { - var error = $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.verify(message.sentimentAnalysisResult); - if (error) - return "sentimentAnalysisResult." + error; - } return null; }; /** - * Creates a QueryResult message from a plain object. Also converts values to their respective internal types. + * Creates a MatchIntentResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.QueryResult} QueryResult + * @returns {google.cloud.dialogflow.cx.v3.MatchIntentResponse} MatchIntentResponse */ - QueryResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.QueryResult) + MatchIntentResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.MatchIntentResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.QueryResult(); + var message = new $root.google.cloud.dialogflow.cx.v3.MatchIntentResponse(); if (object.text != null) message.text = String(object.text); if (object.triggerIntent != null) @@ -45538,133 +45445,46 @@ message.transcript = String(object.transcript); if (object.triggerEvent != null) message.triggerEvent = String(object.triggerEvent); - if (object.dtmf != null) { - if (typeof object.dtmf !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.dtmf: object expected"); - message.dtmf = $root.google.cloud.dialogflow.cx.v3.DtmfInput.fromObject(object.dtmf); - } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); - if (object.parameters != null) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.parameters: object expected"); - message.parameters = $root.google.protobuf.Struct.fromObject(object.parameters); - } - if (object.responseMessages) { - if (!Array.isArray(object.responseMessages)) - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.responseMessages: array expected"); - message.responseMessages = []; - for (var i = 0; i < object.responseMessages.length; ++i) { - if (typeof object.responseMessages[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.responseMessages: object expected"); - message.responseMessages[i] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.fromObject(object.responseMessages[i]); - } - } - if (object.webhookStatuses) { - if (!Array.isArray(object.webhookStatuses)) - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.webhookStatuses: array expected"); - message.webhookStatuses = []; - for (var i = 0; i < object.webhookStatuses.length; ++i) { - if (typeof object.webhookStatuses[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.webhookStatuses: object expected"); - message.webhookStatuses[i] = $root.google.rpc.Status.fromObject(object.webhookStatuses[i]); - } - } - if (object.webhookPayloads) { - if (!Array.isArray(object.webhookPayloads)) - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.webhookPayloads: array expected"); - message.webhookPayloads = []; - for (var i = 0; i < object.webhookPayloads.length; ++i) { - if (typeof object.webhookPayloads[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.webhookPayloads: object expected"); - message.webhookPayloads[i] = $root.google.protobuf.Struct.fromObject(object.webhookPayloads[i]); + if (object.matches) { + if (!Array.isArray(object.matches)) + throw TypeError(".google.cloud.dialogflow.cx.v3.MatchIntentResponse.matches: array expected"); + message.matches = []; + for (var i = 0; i < object.matches.length; ++i) { + if (typeof object.matches[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.MatchIntentResponse.matches: object expected"); + message.matches[i] = $root.google.cloud.dialogflow.cx.v3.Match.fromObject(object.matches[i]); } } if (object.currentPage != null) { if (typeof object.currentPage !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.currentPage: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.MatchIntentResponse.currentPage: object expected"); message.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.fromObject(object.currentPage); } - if (object.intent != null) { - if (typeof object.intent !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.intent: object expected"); - message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.fromObject(object.intent); - } - if (object.intentDetectionConfidence != null) - message.intentDetectionConfidence = Number(object.intentDetectionConfidence); - if (object.match != null) { - if (typeof object.match !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.match: object expected"); - message.match = $root.google.cloud.dialogflow.cx.v3.Match.fromObject(object.match); - } - if (object.diagnosticInfo != null) { - if (typeof object.diagnosticInfo !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.diagnosticInfo: object expected"); - message.diagnosticInfo = $root.google.protobuf.Struct.fromObject(object.diagnosticInfo); - } - if (object.sentimentAnalysisResult != null) { - if (typeof object.sentimentAnalysisResult !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.sentimentAnalysisResult: object expected"); - message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.fromObject(object.sentimentAnalysisResult); - } return message; }; /** - * Creates a plain object from a QueryResult message. Also converts values to other types if specified. + * Creates a plain object from a MatchIntentResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.QueryResult} message QueryResult + * @param {google.cloud.dialogflow.cx.v3.MatchIntentResponse} message MatchIntentResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryResult.toObject = function toObject(message, options) { + MatchIntentResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.responseMessages = []; - object.webhookPayloads = []; - object.webhookStatuses = []; - } - if (options.defaults) { - object.languageCode = ""; - object.parameters = null; + if (options.arrays || options.defaults) + object.matches = []; + if (options.defaults) object.currentPage = null; - object.intent = null; - object.intentDetectionConfidence = 0; - object.diagnosticInfo = null; - object.match = null; - object.sentimentAnalysisResult = null; - } if (message.text != null && message.hasOwnProperty("text")) { object.text = message.text; if (options.oneofs) object.query = "text"; } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; - if (message.parameters != null && message.hasOwnProperty("parameters")) - object.parameters = $root.google.protobuf.Struct.toObject(message.parameters, options); - if (message.responseMessages && message.responseMessages.length) { - object.responseMessages = []; - for (var j = 0; j < message.responseMessages.length; ++j) - object.responseMessages[j] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.toObject(message.responseMessages[j], options); - } - if (message.webhookPayloads && message.webhookPayloads.length) { - object.webhookPayloads = []; - for (var j = 0; j < message.webhookPayloads.length; ++j) - object.webhookPayloads[j] = $root.google.protobuf.Struct.toObject(message.webhookPayloads[j], options); - } - if (message.currentPage != null && message.hasOwnProperty("currentPage")) - object.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.toObject(message.currentPage, options); - if (message.intent != null && message.hasOwnProperty("intent")) - object.intent = $root.google.cloud.dialogflow.cx.v3.Intent.toObject(message.intent, options); - if (message.intentDetectionConfidence != null && message.hasOwnProperty("intentDetectionConfidence")) - object.intentDetectionConfidence = options.json && !isFinite(message.intentDetectionConfidence) ? String(message.intentDetectionConfidence) : message.intentDetectionConfidence; - if (message.diagnosticInfo != null && message.hasOwnProperty("diagnosticInfo")) - object.diagnosticInfo = $root.google.protobuf.Struct.toObject(message.diagnosticInfo, options); if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { object.triggerIntent = message.triggerIntent; if (options.oneofs) @@ -45675,60 +45495,55 @@ if (options.oneofs) object.query = "transcript"; } - if (message.webhookStatuses && message.webhookStatuses.length) { - object.webhookStatuses = []; - for (var j = 0; j < message.webhookStatuses.length; ++j) - object.webhookStatuses[j] = $root.google.rpc.Status.toObject(message.webhookStatuses[j], options); + if (message.matches && message.matches.length) { + object.matches = []; + for (var j = 0; j < message.matches.length; ++j) + object.matches[j] = $root.google.cloud.dialogflow.cx.v3.Match.toObject(message.matches[j], options); } + if (message.currentPage != null && message.hasOwnProperty("currentPage")) + object.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.toObject(message.currentPage, options); if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { object.triggerEvent = message.triggerEvent; if (options.oneofs) object.query = "triggerEvent"; } - if (message.match != null && message.hasOwnProperty("match")) - object.match = $root.google.cloud.dialogflow.cx.v3.Match.toObject(message.match, options); - if (message.sentimentAnalysisResult != null && message.hasOwnProperty("sentimentAnalysisResult")) - object.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.toObject(message.sentimentAnalysisResult, options); - if (message.dtmf != null && message.hasOwnProperty("dtmf")) { - object.dtmf = $root.google.cloud.dialogflow.cx.v3.DtmfInput.toObject(message.dtmf, options); - if (options.oneofs) - object.query = "dtmf"; - } return object; }; /** - * Converts this QueryResult to JSON. + * Converts this MatchIntentResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @instance * @returns {Object.} JSON object */ - QueryResult.prototype.toJSON = function toJSON() { + MatchIntentResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryResult; + return MatchIntentResponse; })(); - v3.TextInput = (function() { + v3.FulfillIntentRequest = (function() { /** - * Properties of a TextInput. + * Properties of a FulfillIntentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ITextInput - * @property {string|null} [text] TextInput text + * @interface IFulfillIntentRequest + * @property {google.cloud.dialogflow.cx.v3.IMatchIntentRequest|null} [matchIntentRequest] FulfillIntentRequest matchIntentRequest + * @property {google.cloud.dialogflow.cx.v3.IMatch|null} [match] FulfillIntentRequest match + * @property {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null} [outputAudioConfig] FulfillIntentRequest outputAudioConfig */ /** - * Constructs a new TextInput. + * Constructs a new FulfillIntentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a TextInput. - * @implements ITextInput + * @classdesc Represents a FulfillIntentRequest. + * @implements IFulfillIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.ITextInput=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentRequest=} [properties] Properties to set */ - function TextInput(properties) { + function FulfillIntentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -45736,75 +45551,101 @@ } /** - * TextInput text. - * @member {string} text - * @memberof google.cloud.dialogflow.cx.v3.TextInput + * FulfillIntentRequest matchIntentRequest. + * @member {google.cloud.dialogflow.cx.v3.IMatchIntentRequest|null|undefined} matchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @instance */ - TextInput.prototype.text = ""; + FulfillIntentRequest.prototype.matchIntentRequest = null; /** - * Creates a new TextInput instance using the specified properties. + * FulfillIntentRequest match. + * @member {google.cloud.dialogflow.cx.v3.IMatch|null|undefined} match + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest + * @instance + */ + FulfillIntentRequest.prototype.match = null; + + /** + * FulfillIntentRequest outputAudioConfig. + * @member {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null|undefined} outputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest + * @instance + */ + FulfillIntentRequest.prototype.outputAudioConfig = null; + + /** + * Creates a new FulfillIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.TextInput + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ITextInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.TextInput} TextInput instance + * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentRequest} FulfillIntentRequest instance */ - TextInput.create = function create(properties) { - return new TextInput(properties); + FulfillIntentRequest.create = function create(properties) { + return new FulfillIntentRequest(properties); }; /** - * Encodes the specified TextInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TextInput.verify|verify} messages. + * Encodes the specified FulfillIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.TextInput + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ITextInput} message TextInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentRequest} message FulfillIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TextInput.encode = function encode(message, writer) { + FulfillIntentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.text != null && Object.hasOwnProperty.call(message, "text")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); + if (message.matchIntentRequest != null && Object.hasOwnProperty.call(message, "matchIntentRequest")) + $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest.encode(message.matchIntentRequest, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.match != null && Object.hasOwnProperty.call(message, "match")) + $root.google.cloud.dialogflow.cx.v3.Match.encode(message.match, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) + $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified TextInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TextInput.verify|verify} messages. + * Encodes the specified FulfillIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TextInput + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ITextInput} message TextInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentRequest} message FulfillIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TextInput.encodeDelimited = function encodeDelimited(message, writer) { + FulfillIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TextInput message from the specified reader or buffer. + * Decodes a FulfillIntentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.TextInput + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.TextInput} TextInput + * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentRequest} FulfillIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TextInput.decode = function decode(reader, length) { + FulfillIntentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TextInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.FulfillIntentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.text = reader.string(); + message.matchIntentRequest = $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest.decode(reader, reader.uint32()); + break; + case 2: + message.match = $root.google.cloud.dialogflow.cx.v3.Match.decode(reader, reader.uint32()); + break; + case 3: + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -45815,107 +45656,142 @@ }; /** - * Decodes a TextInput message from the specified reader or buffer, length delimited. + * Decodes a FulfillIntentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TextInput + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.TextInput} TextInput + * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentRequest} FulfillIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TextInput.decodeDelimited = function decodeDelimited(reader) { + FulfillIntentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TextInput message. + * Verifies a FulfillIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.TextInput + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TextInput.verify = function verify(message) { + FulfillIntentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.text != null && message.hasOwnProperty("text")) - if (!$util.isString(message.text)) - return "text: string expected"; + if (message.matchIntentRequest != null && message.hasOwnProperty("matchIntentRequest")) { + var error = $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest.verify(message.matchIntentRequest); + if (error) + return "matchIntentRequest." + error; + } + if (message.match != null && message.hasOwnProperty("match")) { + var error = $root.google.cloud.dialogflow.cx.v3.Match.verify(message.match); + if (error) + return "match." + error; + } + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify(message.outputAudioConfig); + if (error) + return "outputAudioConfig." + error; + } return null; }; /** - * Creates a TextInput message from a plain object. Also converts values to their respective internal types. + * Creates a FulfillIntentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.TextInput + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.TextInput} TextInput + * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentRequest} FulfillIntentRequest */ - TextInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.TextInput) + FulfillIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.FulfillIntentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.TextInput(); - if (object.text != null) - message.text = String(object.text); + var message = new $root.google.cloud.dialogflow.cx.v3.FulfillIntentRequest(); + if (object.matchIntentRequest != null) { + if (typeof object.matchIntentRequest !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.FulfillIntentRequest.matchIntentRequest: object expected"); + message.matchIntentRequest = $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest.fromObject(object.matchIntentRequest); + } + if (object.match != null) { + if (typeof object.match !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.FulfillIntentRequest.match: object expected"); + message.match = $root.google.cloud.dialogflow.cx.v3.Match.fromObject(object.match); + } + if (object.outputAudioConfig != null) { + if (typeof object.outputAudioConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.FulfillIntentRequest.outputAudioConfig: object expected"); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.fromObject(object.outputAudioConfig); + } return message; }; /** - * Creates a plain object from a TextInput message. Also converts values to other types if specified. + * Creates a plain object from a FulfillIntentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.TextInput + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.TextInput} message TextInput + * @param {google.cloud.dialogflow.cx.v3.FulfillIntentRequest} message FulfillIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TextInput.toObject = function toObject(message, options) { + FulfillIntentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.text = ""; - if (message.text != null && message.hasOwnProperty("text")) - object.text = message.text; + if (options.defaults) { + object.matchIntentRequest = null; + object.match = null; + object.outputAudioConfig = null; + } + if (message.matchIntentRequest != null && message.hasOwnProperty("matchIntentRequest")) + object.matchIntentRequest = $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest.toObject(message.matchIntentRequest, options); + if (message.match != null && message.hasOwnProperty("match")) + object.match = $root.google.cloud.dialogflow.cx.v3.Match.toObject(message.match, options); + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) + object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.toObject(message.outputAudioConfig, options); return object; }; /** - * Converts this TextInput to JSON. + * Converts this FulfillIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.TextInput + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @instance * @returns {Object.} JSON object */ - TextInput.prototype.toJSON = function toJSON() { + FulfillIntentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TextInput; + return FulfillIntentRequest; })(); - v3.IntentInput = (function() { + v3.FulfillIntentResponse = (function() { /** - * Properties of an IntentInput. + * Properties of a FulfillIntentResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IIntentInput - * @property {string|null} [intent] IntentInput intent + * @interface IFulfillIntentResponse + * @property {string|null} [responseId] FulfillIntentResponse responseId + * @property {google.cloud.dialogflow.cx.v3.IQueryResult|null} [queryResult] FulfillIntentResponse queryResult + * @property {Uint8Array|null} [outputAudio] FulfillIntentResponse outputAudio + * @property {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null} [outputAudioConfig] FulfillIntentResponse outputAudioConfig */ /** - * Constructs a new IntentInput. + * Constructs a new FulfillIntentResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an IntentInput. - * @implements IIntentInput + * @classdesc Represents a FulfillIntentResponse. + * @implements IFulfillIntentResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IIntentInput=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentResponse=} [properties] Properties to set */ - function IntentInput(properties) { + function FulfillIntentResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -45923,75 +45799,114 @@ } /** - * IntentInput intent. - * @member {string} intent - * @memberof google.cloud.dialogflow.cx.v3.IntentInput + * FulfillIntentResponse responseId. + * @member {string} responseId + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse * @instance */ - IntentInput.prototype.intent = ""; + FulfillIntentResponse.prototype.responseId = ""; /** - * Creates a new IntentInput instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.IntentInput - * @static - * @param {google.cloud.dialogflow.cx.v3.IIntentInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.IntentInput} IntentInput instance + * FulfillIntentResponse queryResult. + * @member {google.cloud.dialogflow.cx.v3.IQueryResult|null|undefined} queryResult + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @instance */ - IntentInput.create = function create(properties) { - return new IntentInput(properties); - }; + FulfillIntentResponse.prototype.queryResult = null; /** - * Encodes the specified IntentInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentInput.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.IntentInput + * FulfillIntentResponse outputAudio. + * @member {Uint8Array} outputAudio + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @instance + */ + FulfillIntentResponse.prototype.outputAudio = $util.newBuffer([]); + + /** + * FulfillIntentResponse outputAudioConfig. + * @member {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null|undefined} outputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @instance + */ + FulfillIntentResponse.prototype.outputAudioConfig = null; + + /** + * Creates a new FulfillIntentResponse instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IIntentInput} message IntentInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} FulfillIntentResponse instance + */ + FulfillIntentResponse.create = function create(properties) { + return new FulfillIntentResponse(properties); + }; + + /** + * Encodes the specified FulfillIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentResponse} message FulfillIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IntentInput.encode = function encode(message, writer) { + FulfillIntentResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.intent); + if (message.responseId != null && Object.hasOwnProperty.call(message, "responseId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.responseId); + if (message.queryResult != null && Object.hasOwnProperty.call(message, "queryResult")) + $root.google.cloud.dialogflow.cx.v3.QueryResult.encode(message.queryResult, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.outputAudio != null && Object.hasOwnProperty.call(message, "outputAudio")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.outputAudio); + if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) + $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified IntentInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentInput.verify|verify} messages. + * Encodes the specified FulfillIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.IntentInput + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IIntentInput} message IntentInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentResponse} message FulfillIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IntentInput.encodeDelimited = function encodeDelimited(message, writer) { + FulfillIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IntentInput message from the specified reader or buffer. + * Decodes a FulfillIntentResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.IntentInput + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.IntentInput} IntentInput + * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} FulfillIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IntentInput.decode = function decode(reader, length) { + FulfillIntentResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.IntentInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.FulfillIntentResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.intent = reader.string(); + message.responseId = reader.string(); + break; + case 2: + message.queryResult = $root.google.cloud.dialogflow.cx.v3.QueryResult.decode(reader, reader.uint32()); + break; + case 3: + message.outputAudio = reader.bytes(); + break; + case 4: + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -46002,108 +45917,152 @@ }; /** - * Decodes an IntentInput message from the specified reader or buffer, length delimited. + * Decodes a FulfillIntentResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.IntentInput + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.IntentInput} IntentInput + * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} FulfillIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IntentInput.decodeDelimited = function decodeDelimited(reader) { + FulfillIntentResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IntentInput message. + * Verifies a FulfillIntentResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.IntentInput + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IntentInput.verify = function verify(message) { + FulfillIntentResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.intent != null && message.hasOwnProperty("intent")) - if (!$util.isString(message.intent)) - return "intent: string expected"; + if (message.responseId != null && message.hasOwnProperty("responseId")) + if (!$util.isString(message.responseId)) + return "responseId: string expected"; + if (message.queryResult != null && message.hasOwnProperty("queryResult")) { + var error = $root.google.cloud.dialogflow.cx.v3.QueryResult.verify(message.queryResult); + if (error) + return "queryResult." + error; + } + if (message.outputAudio != null && message.hasOwnProperty("outputAudio")) + if (!(message.outputAudio && typeof message.outputAudio.length === "number" || $util.isString(message.outputAudio))) + return "outputAudio: buffer expected"; + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify(message.outputAudioConfig); + if (error) + return "outputAudioConfig." + error; + } return null; }; /** - * Creates an IntentInput message from a plain object. Also converts values to their respective internal types. + * Creates a FulfillIntentResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.IntentInput + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.IntentInput} IntentInput + * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} FulfillIntentResponse */ - IntentInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.IntentInput) + FulfillIntentResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.FulfillIntentResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.IntentInput(); - if (object.intent != null) - message.intent = String(object.intent); + var message = new $root.google.cloud.dialogflow.cx.v3.FulfillIntentResponse(); + if (object.responseId != null) + message.responseId = String(object.responseId); + if (object.queryResult != null) { + if (typeof object.queryResult !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.FulfillIntentResponse.queryResult: object expected"); + message.queryResult = $root.google.cloud.dialogflow.cx.v3.QueryResult.fromObject(object.queryResult); + } + if (object.outputAudio != null) + if (typeof object.outputAudio === "string") + $util.base64.decode(object.outputAudio, message.outputAudio = $util.newBuffer($util.base64.length(object.outputAudio)), 0); + else if (object.outputAudio.length) + message.outputAudio = object.outputAudio; + if (object.outputAudioConfig != null) { + if (typeof object.outputAudioConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.FulfillIntentResponse.outputAudioConfig: object expected"); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.fromObject(object.outputAudioConfig); + } return message; }; /** - * Creates a plain object from an IntentInput message. Also converts values to other types if specified. + * Creates a plain object from a FulfillIntentResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.IntentInput + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IntentInput} message IntentInput + * @param {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} message FulfillIntentResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IntentInput.toObject = function toObject(message, options) { + FulfillIntentResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.intent = ""; - if (message.intent != null && message.hasOwnProperty("intent")) - object.intent = message.intent; + if (options.defaults) { + object.responseId = ""; + object.queryResult = null; + if (options.bytes === String) + object.outputAudio = ""; + else { + object.outputAudio = []; + if (options.bytes !== Array) + object.outputAudio = $util.newBuffer(object.outputAudio); + } + object.outputAudioConfig = null; + } + if (message.responseId != null && message.hasOwnProperty("responseId")) + object.responseId = message.responseId; + if (message.queryResult != null && message.hasOwnProperty("queryResult")) + object.queryResult = $root.google.cloud.dialogflow.cx.v3.QueryResult.toObject(message.queryResult, options); + if (message.outputAudio != null && message.hasOwnProperty("outputAudio")) + object.outputAudio = options.bytes === String ? $util.base64.encode(message.outputAudio, 0, message.outputAudio.length) : options.bytes === Array ? Array.prototype.slice.call(message.outputAudio) : message.outputAudio; + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) + object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.toObject(message.outputAudioConfig, options); return object; }; /** - * Converts this IntentInput to JSON. + * Converts this FulfillIntentResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.IntentInput + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse * @instance * @returns {Object.} JSON object */ - IntentInput.prototype.toJSON = function toJSON() { + FulfillIntentResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return IntentInput; + return FulfillIntentResponse; })(); - v3.AudioInput = (function() { + v3.SentimentAnalysisResult = (function() { /** - * Properties of an AudioInput. + * Properties of a SentimentAnalysisResult. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IAudioInput - * @property {google.cloud.dialogflow.cx.v3.IInputAudioConfig|null} [config] AudioInput config - * @property {Uint8Array|null} [audio] AudioInput audio + * @interface ISentimentAnalysisResult + * @property {number|null} [score] SentimentAnalysisResult score + * @property {number|null} [magnitude] SentimentAnalysisResult magnitude */ /** - * Constructs a new AudioInput. + * Constructs a new SentimentAnalysisResult. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an AudioInput. - * @implements IAudioInput + * @classdesc Represents a SentimentAnalysisResult. + * @implements ISentimentAnalysisResult * @constructor - * @param {google.cloud.dialogflow.cx.v3.IAudioInput=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult=} [properties] Properties to set */ - function AudioInput(properties) { + function SentimentAnalysisResult(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -46111,88 +46070,88 @@ } /** - * AudioInput config. - * @member {google.cloud.dialogflow.cx.v3.IInputAudioConfig|null|undefined} config - * @memberof google.cloud.dialogflow.cx.v3.AudioInput + * SentimentAnalysisResult score. + * @member {number} score + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult * @instance */ - AudioInput.prototype.config = null; + SentimentAnalysisResult.prototype.score = 0; /** - * AudioInput audio. - * @member {Uint8Array} audio - * @memberof google.cloud.dialogflow.cx.v3.AudioInput + * SentimentAnalysisResult magnitude. + * @member {number} magnitude + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult * @instance */ - AudioInput.prototype.audio = $util.newBuffer([]); + SentimentAnalysisResult.prototype.magnitude = 0; /** - * Creates a new AudioInput instance using the specified properties. + * Creates a new SentimentAnalysisResult instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult * @static - * @param {google.cloud.dialogflow.cx.v3.IAudioInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.AudioInput} AudioInput instance + * @param {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.SentimentAnalysisResult} SentimentAnalysisResult instance */ - AudioInput.create = function create(properties) { - return new AudioInput(properties); + SentimentAnalysisResult.create = function create(properties) { + return new SentimentAnalysisResult(properties); }; /** - * Encodes the specified AudioInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.AudioInput.verify|verify} messages. + * Encodes the specified SentimentAnalysisResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult * @static - * @param {google.cloud.dialogflow.cx.v3.IAudioInput} message AudioInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult} message SentimentAnalysisResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudioInput.encode = function encode(message, writer) { + SentimentAnalysisResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.config != null && Object.hasOwnProperty.call(message, "config")) - $root.google.cloud.dialogflow.cx.v3.InputAudioConfig.encode(message.config, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.audio != null && Object.hasOwnProperty.call(message, "audio")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.audio); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); + if (message.magnitude != null && Object.hasOwnProperty.call(message, "magnitude")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.magnitude); return writer; }; /** - * Encodes the specified AudioInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.AudioInput.verify|verify} messages. + * Encodes the specified SentimentAnalysisResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult * @static - * @param {google.cloud.dialogflow.cx.v3.IAudioInput} message AudioInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult} message SentimentAnalysisResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudioInput.encodeDelimited = function encodeDelimited(message, writer) { + SentimentAnalysisResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AudioInput message from the specified reader or buffer. + * Decodes a SentimentAnalysisResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.AudioInput} AudioInput + * @returns {google.cloud.dialogflow.cx.v3.SentimentAnalysisResult} SentimentAnalysisResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudioInput.decode = function decode(reader, length) { + SentimentAnalysisResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.AudioInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.config = $root.google.cloud.dialogflow.cx.v3.InputAudioConfig.decode(reader, reader.uint32()); + message.score = reader.float(); break; case 2: - message.audio = reader.bytes(); + message.magnitude = reader.float(); break; default: reader.skipType(tag & 7); @@ -46203,318 +46162,319 @@ }; /** - * Decodes an AudioInput message from the specified reader or buffer, length delimited. + * Decodes a SentimentAnalysisResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.AudioInput} AudioInput + * @returns {google.cloud.dialogflow.cx.v3.SentimentAnalysisResult} SentimentAnalysisResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudioInput.decodeDelimited = function decodeDelimited(reader) { + SentimentAnalysisResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AudioInput message. + * Verifies a SentimentAnalysisResult message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AudioInput.verify = function verify(message) { + SentimentAnalysisResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.config != null && message.hasOwnProperty("config")) { - var error = $root.google.cloud.dialogflow.cx.v3.InputAudioConfig.verify(message.config); - if (error) - return "config." + error; - } - if (message.audio != null && message.hasOwnProperty("audio")) - if (!(message.audio && typeof message.audio.length === "number" || $util.isString(message.audio))) - return "audio: buffer expected"; + if (message.score != null && message.hasOwnProperty("score")) + if (typeof message.score !== "number") + return "score: number expected"; + if (message.magnitude != null && message.hasOwnProperty("magnitude")) + if (typeof message.magnitude !== "number") + return "magnitude: number expected"; return null; }; /** - * Creates an AudioInput message from a plain object. Also converts values to their respective internal types. + * Creates a SentimentAnalysisResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.AudioInput} AudioInput + * @returns {google.cloud.dialogflow.cx.v3.SentimentAnalysisResult} SentimentAnalysisResult */ - AudioInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.AudioInput) + SentimentAnalysisResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.AudioInput(); - if (object.config != null) { - if (typeof object.config !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.AudioInput.config: object expected"); - message.config = $root.google.cloud.dialogflow.cx.v3.InputAudioConfig.fromObject(object.config); - } - if (object.audio != null) - if (typeof object.audio === "string") - $util.base64.decode(object.audio, message.audio = $util.newBuffer($util.base64.length(object.audio)), 0); - else if (object.audio.length) - message.audio = object.audio; + var message = new $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult(); + if (object.score != null) + message.score = Number(object.score); + if (object.magnitude != null) + message.magnitude = Number(object.magnitude); return message; }; /** - * Creates a plain object from an AudioInput message. Also converts values to other types if specified. + * Creates a plain object from a SentimentAnalysisResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult * @static - * @param {google.cloud.dialogflow.cx.v3.AudioInput} message AudioInput + * @param {google.cloud.dialogflow.cx.v3.SentimentAnalysisResult} message SentimentAnalysisResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AudioInput.toObject = function toObject(message, options) { + SentimentAnalysisResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.config = null; - if (options.bytes === String) - object.audio = ""; - else { - object.audio = []; - if (options.bytes !== Array) - object.audio = $util.newBuffer(object.audio); - } + object.score = 0; + object.magnitude = 0; } - if (message.config != null && message.hasOwnProperty("config")) - object.config = $root.google.cloud.dialogflow.cx.v3.InputAudioConfig.toObject(message.config, options); - if (message.audio != null && message.hasOwnProperty("audio")) - object.audio = options.bytes === String ? $util.base64.encode(message.audio, 0, message.audio.length) : options.bytes === Array ? Array.prototype.slice.call(message.audio) : message.audio; + if (message.score != null && message.hasOwnProperty("score")) + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (message.magnitude != null && message.hasOwnProperty("magnitude")) + object.magnitude = options.json && !isFinite(message.magnitude) ? String(message.magnitude) : message.magnitude; return object; }; /** - * Converts this AudioInput to JSON. + * Converts this SentimentAnalysisResult to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult * @instance * @returns {Object.} JSON object */ - AudioInput.prototype.toJSON = function toJSON() { + SentimentAnalysisResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AudioInput; + return SentimentAnalysisResult; })(); - v3.EventInput = (function() { - - /** - * Properties of an EventInput. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IEventInput - * @property {string|null} [event] EventInput event - */ + v3.SessionEntityTypes = (function() { /** - * Constructs a new EventInput. + * Constructs a new SessionEntityTypes service. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an EventInput. - * @implements IEventInput + * @classdesc Represents a SessionEntityTypes + * @extends $protobuf.rpc.Service * @constructor - * @param {google.cloud.dialogflow.cx.v3.IEventInput=} [properties] Properties to set + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - function EventInput(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + function SessionEntityTypes(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - /** - * EventInput event. - * @member {string} event - * @memberof google.cloud.dialogflow.cx.v3.EventInput - * @instance - */ - EventInput.prototype.event = ""; + (SessionEntityTypes.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = SessionEntityTypes; /** - * Creates a new EventInput instance using the specified properties. + * Creates new SessionEntityTypes service using the specified rpc implementation. * @function create - * @memberof google.cloud.dialogflow.cx.v3.EventInput + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes * @static - * @param {google.cloud.dialogflow.cx.v3.IEventInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.EventInput} EventInput instance + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {SessionEntityTypes} RPC service. Useful where requests and/or responses are streamed. */ - EventInput.create = function create(properties) { - return new EventInput(properties); + SessionEntityTypes.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Encodes the specified EventInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EventInput.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.EventInput - * @static - * @param {google.cloud.dialogflow.cx.v3.IEventInput} message EventInput message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#listSessionEntityTypes}. + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * @typedef ListSessionEntityTypesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} [response] ListSessionEntityTypesResponse */ - EventInput.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.event != null && Object.hasOwnProperty.call(message, "event")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.event); - return writer; - }; /** - * Encodes the specified EventInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EventInput.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.EventInput - * @static - * @param {google.cloud.dialogflow.cx.v3.IEventInput} message EventInput message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ListSessionEntityTypes. + * @function listSessionEntityTypes + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest} request ListSessionEntityTypesRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypesCallback} callback Node-style callback called with the error, if any, and ListSessionEntityTypesResponse + * @returns {undefined} + * @variation 1 */ - EventInput.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(SessionEntityTypes.prototype.listSessionEntityTypes = function listSessionEntityTypes(request, callback) { + return this.rpcCall(listSessionEntityTypes, $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest, $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse, request, callback); + }, "name", { value: "ListSessionEntityTypes" }); /** - * Decodes an EventInput message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.EventInput - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.EventInput} EventInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListSessionEntityTypes. + * @function listSessionEntityTypes + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest} request ListSessionEntityTypesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - EventInput.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.EventInput(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.event = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes an EventInput message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.EventInput - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.EventInput} EventInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#getSessionEntityType}. + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * @typedef GetSessionEntityTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.SessionEntityType} [response] SessionEntityType */ - EventInput.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies an EventInput message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.EventInput - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls GetSessionEntityType. + * @function getSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest} request GetSessionEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.SessionEntityTypes.GetSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and SessionEntityType + * @returns {undefined} + * @variation 1 */ - EventInput.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.event != null && message.hasOwnProperty("event")) - if (!$util.isString(message.event)) - return "event: string expected"; - return null; - }; + Object.defineProperty(SessionEntityTypes.prototype.getSessionEntityType = function getSessionEntityType(request, callback) { + return this.rpcCall(getSessionEntityType, $root.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3.SessionEntityType, request, callback); + }, "name", { value: "GetSessionEntityType" }); /** - * Creates an EventInput message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.EventInput - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.EventInput} EventInput + * Calls GetSessionEntityType. + * @function getSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest} request GetSessionEntityTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - EventInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.EventInput) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.EventInput(); - if (object.event != null) - message.event = String(object.event); - return message; - }; /** - * Creates a plain object from an EventInput message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.EventInput - * @static - * @param {google.cloud.dialogflow.cx.v3.EventInput} message EventInput - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#createSessionEntityType}. + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * @typedef CreateSessionEntityTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.SessionEntityType} [response] SessionEntityType */ - EventInput.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.event = ""; - if (message.event != null && message.hasOwnProperty("event")) - object.event = message.event; - return object; - }; /** - * Converts this EventInput to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.EventInput + * Calls CreateSessionEntityType. + * @function createSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes * @instance - * @returns {Object.} JSON object + * @param {google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest} request CreateSessionEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.SessionEntityTypes.CreateSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and SessionEntityType + * @returns {undefined} + * @variation 1 */ - EventInput.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(SessionEntityTypes.prototype.createSessionEntityType = function createSessionEntityType(request, callback) { + return this.rpcCall(createSessionEntityType, $root.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3.SessionEntityType, request, callback); + }, "name", { value: "CreateSessionEntityType" }); - return EventInput; + /** + * Calls CreateSessionEntityType. + * @function createSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest} request CreateSessionEntityTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#updateSessionEntityType}. + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * @typedef UpdateSessionEntityTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.SessionEntityType} [response] SessionEntityType + */ + + /** + * Calls UpdateSessionEntityType. + * @function updateSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest} request UpdateSessionEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.SessionEntityTypes.UpdateSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and SessionEntityType + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SessionEntityTypes.prototype.updateSessionEntityType = function updateSessionEntityType(request, callback) { + return this.rpcCall(updateSessionEntityType, $root.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3.SessionEntityType, request, callback); + }, "name", { value: "UpdateSessionEntityType" }); + + /** + * Calls UpdateSessionEntityType. + * @function updateSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest} request UpdateSessionEntityTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#deleteSessionEntityType}. + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * @typedef DeleteSessionEntityTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteSessionEntityType. + * @function deleteSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest} request DeleteSessionEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.SessionEntityTypes.DeleteSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SessionEntityTypes.prototype.deleteSessionEntityType = function deleteSessionEntityType(request, callback) { + return this.rpcCall(deleteSessionEntityType, $root.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteSessionEntityType" }); + + /** + * Calls DeleteSessionEntityType. + * @function deleteSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest} request DeleteSessionEntityTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return SessionEntityTypes; })(); - v3.DtmfInput = (function() { + v3.SessionEntityType = (function() { /** - * Properties of a DtmfInput. + * Properties of a SessionEntityType. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDtmfInput - * @property {string|null} [digits] DtmfInput digits - * @property {string|null} [finishDigit] DtmfInput finishDigit + * @interface ISessionEntityType + * @property {string|null} [name] SessionEntityType name + * @property {google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode|null} [entityOverrideMode] SessionEntityType entityOverrideMode + * @property {Array.|null} [entities] SessionEntityType entities */ /** - * Constructs a new DtmfInput. + * Constructs a new SessionEntityType. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DtmfInput. - * @implements IDtmfInput + * @classdesc Represents a SessionEntityType. + * @implements ISessionEntityType * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDtmfInput=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ISessionEntityType=} [properties] Properties to set */ - function DtmfInput(properties) { + function SessionEntityType(properties) { + this.entities = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -46522,88 +46482,104 @@ } /** - * DtmfInput digits. - * @member {string} digits - * @memberof google.cloud.dialogflow.cx.v3.DtmfInput + * SessionEntityType name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @instance */ - DtmfInput.prototype.digits = ""; + SessionEntityType.prototype.name = ""; /** - * DtmfInput finishDigit. - * @member {string} finishDigit - * @memberof google.cloud.dialogflow.cx.v3.DtmfInput + * SessionEntityType entityOverrideMode. + * @member {google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode} entityOverrideMode + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @instance */ - DtmfInput.prototype.finishDigit = ""; + SessionEntityType.prototype.entityOverrideMode = 0; /** - * Creates a new DtmfInput instance using the specified properties. + * SessionEntityType entities. + * @member {Array.} entities + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType + * @instance + */ + SessionEntityType.prototype.entities = $util.emptyArray; + + /** + * Creates a new SessionEntityType instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @static - * @param {google.cloud.dialogflow.cx.v3.IDtmfInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.DtmfInput} DtmfInput instance + * @param {google.cloud.dialogflow.cx.v3.ISessionEntityType=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.SessionEntityType} SessionEntityType instance */ - DtmfInput.create = function create(properties) { - return new DtmfInput(properties); + SessionEntityType.create = function create(properties) { + return new SessionEntityType(properties); }; /** - * Encodes the specified DtmfInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DtmfInput.verify|verify} messages. + * Encodes the specified SessionEntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionEntityType.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @static - * @param {google.cloud.dialogflow.cx.v3.IDtmfInput} message DtmfInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ISessionEntityType} message SessionEntityType message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DtmfInput.encode = function encode(message, writer) { + SessionEntityType.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.digits != null && Object.hasOwnProperty.call(message, "digits")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.digits); - if (message.finishDigit != null && Object.hasOwnProperty.call(message, "finishDigit")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.finishDigit); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.entityOverrideMode != null && Object.hasOwnProperty.call(message, "entityOverrideMode")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.entityOverrideMode); + if (message.entities != null && message.entities.length) + for (var i = 0; i < message.entities.length; ++i) + $root.google.cloud.dialogflow.cx.v3.EntityType.Entity.encode(message.entities[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified DtmfInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DtmfInput.verify|verify} messages. + * Encodes the specified SessionEntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionEntityType.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @static - * @param {google.cloud.dialogflow.cx.v3.IDtmfInput} message DtmfInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ISessionEntityType} message SessionEntityType message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DtmfInput.encodeDelimited = function encodeDelimited(message, writer) { + SessionEntityType.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DtmfInput message from the specified reader or buffer. + * Decodes a SessionEntityType message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.DtmfInput} DtmfInput + * @returns {google.cloud.dialogflow.cx.v3.SessionEntityType} SessionEntityType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DtmfInput.decode = function decode(reader, length) { + SessionEntityType.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DtmfInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.SessionEntityType(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.digits = reader.string(); + message.name = reader.string(); break; - case 2: - message.finishDigit = reader.string(); + case 3: + message.entityOverrideMode = reader.int32(); + break; + case 4: + if (!(message.entities && message.entities.length)) + message.entities = []; + message.entities.push($root.google.cloud.dialogflow.cx.v3.EntityType.Entity.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -46614,121 +46590,178 @@ }; /** - * Decodes a DtmfInput message from the specified reader or buffer, length delimited. + * Decodes a SessionEntityType message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.DtmfInput} DtmfInput + * @returns {google.cloud.dialogflow.cx.v3.SessionEntityType} SessionEntityType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DtmfInput.decodeDelimited = function decodeDelimited(reader) { + SessionEntityType.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DtmfInput message. + * Verifies a SessionEntityType message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DtmfInput.verify = function verify(message) { + SessionEntityType.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.digits != null && message.hasOwnProperty("digits")) - if (!$util.isString(message.digits)) - return "digits: string expected"; - if (message.finishDigit != null && message.hasOwnProperty("finishDigit")) - if (!$util.isString(message.finishDigit)) - return "finishDigit: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.entityOverrideMode != null && message.hasOwnProperty("entityOverrideMode")) + switch (message.entityOverrideMode) { + default: + return "entityOverrideMode: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.entities != null && message.hasOwnProperty("entities")) { + if (!Array.isArray(message.entities)) + return "entities: array expected"; + for (var i = 0; i < message.entities.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.EntityType.Entity.verify(message.entities[i]); + if (error) + return "entities." + error; + } + } return null; }; /** - * Creates a DtmfInput message from a plain object. Also converts values to their respective internal types. + * Creates a SessionEntityType message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DtmfInput} DtmfInput + * @returns {google.cloud.dialogflow.cx.v3.SessionEntityType} SessionEntityType */ - DtmfInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DtmfInput) + SessionEntityType.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.SessionEntityType) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.DtmfInput(); - if (object.digits != null) - message.digits = String(object.digits); - if (object.finishDigit != null) - message.finishDigit = String(object.finishDigit); + var message = new $root.google.cloud.dialogflow.cx.v3.SessionEntityType(); + if (object.name != null) + message.name = String(object.name); + switch (object.entityOverrideMode) { + case "ENTITY_OVERRIDE_MODE_UNSPECIFIED": + case 0: + message.entityOverrideMode = 0; + break; + case "ENTITY_OVERRIDE_MODE_OVERRIDE": + case 1: + message.entityOverrideMode = 1; + break; + case "ENTITY_OVERRIDE_MODE_SUPPLEMENT": + case 2: + message.entityOverrideMode = 2; + break; + } + if (object.entities) { + if (!Array.isArray(object.entities)) + throw TypeError(".google.cloud.dialogflow.cx.v3.SessionEntityType.entities: array expected"); + message.entities = []; + for (var i = 0; i < object.entities.length; ++i) { + if (typeof object.entities[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.SessionEntityType.entities: object expected"); + message.entities[i] = $root.google.cloud.dialogflow.cx.v3.EntityType.Entity.fromObject(object.entities[i]); + } + } return message; }; /** - * Creates a plain object from a DtmfInput message. Also converts values to other types if specified. + * Creates a plain object from a SessionEntityType message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @static - * @param {google.cloud.dialogflow.cx.v3.DtmfInput} message DtmfInput + * @param {google.cloud.dialogflow.cx.v3.SessionEntityType} message SessionEntityType * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DtmfInput.toObject = function toObject(message, options) { + SessionEntityType.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.entities = []; if (options.defaults) { - object.digits = ""; - object.finishDigit = ""; + object.name = ""; + object.entityOverrideMode = options.enums === String ? "ENTITY_OVERRIDE_MODE_UNSPECIFIED" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.entityOverrideMode != null && message.hasOwnProperty("entityOverrideMode")) + object.entityOverrideMode = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode[message.entityOverrideMode] : message.entityOverrideMode; + if (message.entities && message.entities.length) { + object.entities = []; + for (var j = 0; j < message.entities.length; ++j) + object.entities[j] = $root.google.cloud.dialogflow.cx.v3.EntityType.Entity.toObject(message.entities[j], options); } - if (message.digits != null && message.hasOwnProperty("digits")) - object.digits = message.digits; - if (message.finishDigit != null && message.hasOwnProperty("finishDigit")) - object.finishDigit = message.finishDigit; return object; }; /** - * Converts this DtmfInput to JSON. + * Converts this SessionEntityType to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @instance * @returns {Object.} JSON object */ - DtmfInput.prototype.toJSON = function toJSON() { + SessionEntityType.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DtmfInput; + /** + * EntityOverrideMode enum. + * @name google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode + * @enum {number} + * @property {number} ENTITY_OVERRIDE_MODE_UNSPECIFIED=0 ENTITY_OVERRIDE_MODE_UNSPECIFIED value + * @property {number} ENTITY_OVERRIDE_MODE_OVERRIDE=1 ENTITY_OVERRIDE_MODE_OVERRIDE value + * @property {number} ENTITY_OVERRIDE_MODE_SUPPLEMENT=2 ENTITY_OVERRIDE_MODE_SUPPLEMENT value + */ + SessionEntityType.EntityOverrideMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ENTITY_OVERRIDE_MODE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ENTITY_OVERRIDE_MODE_OVERRIDE"] = 1; + values[valuesById[2] = "ENTITY_OVERRIDE_MODE_SUPPLEMENT"] = 2; + return values; + })(); + + return SessionEntityType; })(); - v3.Match = (function() { + v3.ListSessionEntityTypesRequest = (function() { /** - * Properties of a Match. + * Properties of a ListSessionEntityTypesRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IMatch - * @property {google.cloud.dialogflow.cx.v3.IIntent|null} [intent] Match intent - * @property {string|null} [event] Match event - * @property {google.protobuf.IStruct|null} [parameters] Match parameters - * @property {string|null} [resolvedInput] Match resolvedInput - * @property {google.cloud.dialogflow.cx.v3.Match.MatchType|null} [matchType] Match matchType - * @property {number|null} [confidence] Match confidence + * @interface IListSessionEntityTypesRequest + * @property {string|null} [parent] ListSessionEntityTypesRequest parent + * @property {number|null} [pageSize] ListSessionEntityTypesRequest pageSize + * @property {string|null} [pageToken] ListSessionEntityTypesRequest pageToken */ /** - * Constructs a new Match. + * Constructs a new ListSessionEntityTypesRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a Match. - * @implements IMatch + * @classdesc Represents a ListSessionEntityTypesRequest. + * @implements IListSessionEntityTypesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IMatch=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest=} [properties] Properties to set */ - function Match(properties) { + function ListSessionEntityTypesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -46736,140 +46769,101 @@ } /** - * Match intent. - * @member {google.cloud.dialogflow.cx.v3.IIntent|null|undefined} intent - * @memberof google.cloud.dialogflow.cx.v3.Match - * @instance - */ - Match.prototype.intent = null; - - /** - * Match event. - * @member {string} event - * @memberof google.cloud.dialogflow.cx.v3.Match - * @instance - */ - Match.prototype.event = ""; - - /** - * Match parameters. - * @member {google.protobuf.IStruct|null|undefined} parameters - * @memberof google.cloud.dialogflow.cx.v3.Match - * @instance - */ - Match.prototype.parameters = null; - - /** - * Match resolvedInput. - * @member {string} resolvedInput - * @memberof google.cloud.dialogflow.cx.v3.Match + * ListSessionEntityTypesRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest * @instance */ - Match.prototype.resolvedInput = ""; + ListSessionEntityTypesRequest.prototype.parent = ""; /** - * Match matchType. - * @member {google.cloud.dialogflow.cx.v3.Match.MatchType} matchType - * @memberof google.cloud.dialogflow.cx.v3.Match + * ListSessionEntityTypesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest * @instance */ - Match.prototype.matchType = 0; + ListSessionEntityTypesRequest.prototype.pageSize = 0; /** - * Match confidence. - * @member {number} confidence - * @memberof google.cloud.dialogflow.cx.v3.Match + * ListSessionEntityTypesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest * @instance */ - Match.prototype.confidence = 0; + ListSessionEntityTypesRequest.prototype.pageToken = ""; /** - * Creates a new Match instance using the specified properties. + * Creates a new ListSessionEntityTypesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Match + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IMatch=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Match} Match instance + * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest instance */ - Match.create = function create(properties) { - return new Match(properties); + ListSessionEntityTypesRequest.create = function create(properties) { + return new ListSessionEntityTypesRequest(properties); }; /** - * Encodes the specified Match message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Match.verify|verify} messages. + * Encodes the specified ListSessionEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Match + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IMatch} message Match message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest} message ListSessionEntityTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Match.encode = function encode(message, writer) { + ListSessionEntityTypesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) - $root.google.cloud.dialogflow.cx.v3.Intent.encode(message.intent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - $root.google.protobuf.Struct.encode(message.parameters, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.resolvedInput != null && Object.hasOwnProperty.call(message, "resolvedInput")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.resolvedInput); - if (message.matchType != null && Object.hasOwnProperty.call(message, "matchType")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.matchType); - if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) - writer.uint32(/* id 5, wireType 5 =*/45).float(message.confidence); - if (message.event != null && Object.hasOwnProperty.call(message, "event")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.event); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified Match message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Match.verify|verify} messages. + * Encodes the specified ListSessionEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Match + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IMatch} message Match message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest} message ListSessionEntityTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Match.encodeDelimited = function encodeDelimited(message, writer) { + ListSessionEntityTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Match message from the specified reader or buffer. + * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Match + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.Match} Match + * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Match.decode = function decode(reader, length) { + ListSessionEntityTypesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Match(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.decode(reader, reader.uint32()); - break; - case 6: - message.event = reader.string(); + message.parent = reader.string(); break; case 2: - message.parameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); break; case 3: - message.resolvedInput = reader.string(); - break; - case 4: - message.matchType = reader.int32(); - break; - case 5: - message.confidence = reader.float(); + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -46880,222 +46874,126 @@ }; /** - * Decodes a Match message from the specified reader or buffer, length delimited. + * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Match + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Match} Match + * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Match.decodeDelimited = function decodeDelimited(reader) { + ListSessionEntityTypesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Match message. + * Verifies a ListSessionEntityTypesRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Match + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Match.verify = function verify(message) { + ListSessionEntityTypesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.intent != null && message.hasOwnProperty("intent")) { - var error = $root.google.cloud.dialogflow.cx.v3.Intent.verify(message.intent); - if (error) - return "intent." + error; - } - if (message.event != null && message.hasOwnProperty("event")) - if (!$util.isString(message.event)) - return "event: string expected"; - if (message.parameters != null && message.hasOwnProperty("parameters")) { - var error = $root.google.protobuf.Struct.verify(message.parameters); - if (error) - return "parameters." + error; - } - if (message.resolvedInput != null && message.hasOwnProperty("resolvedInput")) - if (!$util.isString(message.resolvedInput)) - return "resolvedInput: string expected"; - if (message.matchType != null && message.hasOwnProperty("matchType")) - switch (message.matchType) { - default: - return "matchType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.confidence != null && message.hasOwnProperty("confidence")) - if (typeof message.confidence !== "number") - return "confidence: number expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a Match message from a plain object. Also converts values to their respective internal types. + * Creates a ListSessionEntityTypesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Match + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Match} Match + * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest */ - Match.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Match) + ListSessionEntityTypesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Match(); - if (object.intent != null) { - if (typeof object.intent !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Match.intent: object expected"); - message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.fromObject(object.intent); - } - if (object.event != null) - message.event = String(object.event); - if (object.parameters != null) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Match.parameters: object expected"); - message.parameters = $root.google.protobuf.Struct.fromObject(object.parameters); - } - if (object.resolvedInput != null) - message.resolvedInput = String(object.resolvedInput); - switch (object.matchType) { - case "MATCH_TYPE_UNSPECIFIED": - case 0: - message.matchType = 0; - break; - case "INTENT": - case 1: - message.matchType = 1; - break; - case "DIRECT_INTENT": - case 2: - message.matchType = 2; - break; - case "PARAMETER_FILLING": - case 3: - message.matchType = 3; - break; - case "NO_MATCH": - case 4: - message.matchType = 4; - break; - case "NO_INPUT": - case 5: - message.matchType = 5; - break; - case "EVENT": - case 6: - message.matchType = 6; - break; - } - if (object.confidence != null) - message.confidence = Number(object.confidence); + var message = new $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a Match message. Also converts values to other types if specified. + * Creates a plain object from a ListSessionEntityTypesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Match + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.Match} message Match + * @param {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest} message ListSessionEntityTypesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Match.toObject = function toObject(message, options) { + ListSessionEntityTypesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.intent = null; - object.parameters = null; - object.resolvedInput = ""; - object.matchType = options.enums === String ? "MATCH_TYPE_UNSPECIFIED" : 0; - object.confidence = 0; - object.event = ""; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.intent != null && message.hasOwnProperty("intent")) - object.intent = $root.google.cloud.dialogflow.cx.v3.Intent.toObject(message.intent, options); - if (message.parameters != null && message.hasOwnProperty("parameters")) - object.parameters = $root.google.protobuf.Struct.toObject(message.parameters, options); - if (message.resolvedInput != null && message.hasOwnProperty("resolvedInput")) - object.resolvedInput = message.resolvedInput; - if (message.matchType != null && message.hasOwnProperty("matchType")) - object.matchType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Match.MatchType[message.matchType] : message.matchType; - if (message.confidence != null && message.hasOwnProperty("confidence")) - object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; - if (message.event != null && message.hasOwnProperty("event")) - object.event = message.event; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this Match to JSON. + * Converts this ListSessionEntityTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Match + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest * @instance * @returns {Object.} JSON object */ - Match.prototype.toJSON = function toJSON() { + ListSessionEntityTypesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * MatchType enum. - * @name google.cloud.dialogflow.cx.v3.Match.MatchType - * @enum {number} - * @property {number} MATCH_TYPE_UNSPECIFIED=0 MATCH_TYPE_UNSPECIFIED value - * @property {number} INTENT=1 INTENT value - * @property {number} DIRECT_INTENT=2 DIRECT_INTENT value - * @property {number} PARAMETER_FILLING=3 PARAMETER_FILLING value - * @property {number} NO_MATCH=4 NO_MATCH value - * @property {number} NO_INPUT=5 NO_INPUT value - * @property {number} EVENT=6 EVENT value - */ - Match.MatchType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MATCH_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "INTENT"] = 1; - values[valuesById[2] = "DIRECT_INTENT"] = 2; - values[valuesById[3] = "PARAMETER_FILLING"] = 3; - values[valuesById[4] = "NO_MATCH"] = 4; - values[valuesById[5] = "NO_INPUT"] = 5; - values[valuesById[6] = "EVENT"] = 6; - return values; - })(); - - return Match; + return ListSessionEntityTypesRequest; })(); - v3.MatchIntentRequest = (function() { + v3.ListSessionEntityTypesResponse = (function() { /** - * Properties of a MatchIntentRequest. + * Properties of a ListSessionEntityTypesResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IMatchIntentRequest - * @property {string|null} [session] MatchIntentRequest session - * @property {google.cloud.dialogflow.cx.v3.IQueryParameters|null} [queryParams] MatchIntentRequest queryParams - * @property {google.cloud.dialogflow.cx.v3.IQueryInput|null} [queryInput] MatchIntentRequest queryInput + * @interface IListSessionEntityTypesResponse + * @property {Array.|null} [sessionEntityTypes] ListSessionEntityTypesResponse sessionEntityTypes + * @property {string|null} [nextPageToken] ListSessionEntityTypesResponse nextPageToken */ /** - * Constructs a new MatchIntentRequest. + * Constructs a new ListSessionEntityTypesResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a MatchIntentRequest. - * @implements IMatchIntentRequest + * @classdesc Represents a ListSessionEntityTypesResponse. + * @implements IListSessionEntityTypesResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IMatchIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse=} [properties] Properties to set */ - function MatchIntentRequest(properties) { + function ListSessionEntityTypesResponse(properties) { + this.sessionEntityTypes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -47103,101 +47001,91 @@ } /** - * MatchIntentRequest session. - * @member {string} session - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest - * @instance - */ - MatchIntentRequest.prototype.session = ""; - - /** - * MatchIntentRequest queryParams. - * @member {google.cloud.dialogflow.cx.v3.IQueryParameters|null|undefined} queryParams - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * ListSessionEntityTypesResponse sessionEntityTypes. + * @member {Array.} sessionEntityTypes + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @instance */ - MatchIntentRequest.prototype.queryParams = null; + ListSessionEntityTypesResponse.prototype.sessionEntityTypes = $util.emptyArray; /** - * MatchIntentRequest queryInput. - * @member {google.cloud.dialogflow.cx.v3.IQueryInput|null|undefined} queryInput - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * ListSessionEntityTypesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @instance */ - MatchIntentRequest.prototype.queryInput = null; + ListSessionEntityTypesResponse.prototype.nextPageToken = ""; /** - * Creates a new MatchIntentRequest instance using the specified properties. + * Creates a new ListSessionEntityTypesResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IMatchIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.MatchIntentRequest} MatchIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse instance */ - MatchIntentRequest.create = function create(properties) { - return new MatchIntentRequest(properties); + ListSessionEntityTypesResponse.create = function create(properties) { + return new ListSessionEntityTypesResponse(properties); }; /** - * Encodes the specified MatchIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentRequest.verify|verify} messages. + * Encodes the specified ListSessionEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IMatchIntentRequest} message MatchIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse} message ListSessionEntityTypesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MatchIntentRequest.encode = function encode(message, writer) { + ListSessionEntityTypesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.session != null && Object.hasOwnProperty.call(message, "session")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.session); - if (message.queryParams != null && Object.hasOwnProperty.call(message, "queryParams")) - $root.google.cloud.dialogflow.cx.v3.QueryParameters.encode(message.queryParams, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.queryInput != null && Object.hasOwnProperty.call(message, "queryInput")) - $root.google.cloud.dialogflow.cx.v3.QueryInput.encode(message.queryInput, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.sessionEntityTypes != null && message.sessionEntityTypes.length) + for (var i = 0; i < message.sessionEntityTypes.length; ++i) + $root.google.cloud.dialogflow.cx.v3.SessionEntityType.encode(message.sessionEntityTypes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified MatchIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentRequest.verify|verify} messages. + * Encodes the specified ListSessionEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IMatchIntentRequest} message MatchIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse} message ListSessionEntityTypesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MatchIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListSessionEntityTypesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MatchIntentRequest message from the specified reader or buffer. + * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.MatchIntentRequest} MatchIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MatchIntentRequest.decode = function decode(reader, length) { + ListSessionEntityTypesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.session = reader.string(); + if (!(message.sessionEntityTypes && message.sessionEntityTypes.length)) + message.sessionEntityTypes = []; + message.sessionEntityTypes.push($root.google.cloud.dialogflow.cx.v3.SessionEntityType.decode(reader, reader.uint32())); break; case 2: - message.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.decode(reader, reader.uint32()); - break; - case 3: - message.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -47208,140 +47096,133 @@ }; /** - * Decodes a MatchIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.MatchIntentRequest} MatchIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MatchIntentRequest.decodeDelimited = function decodeDelimited(reader) { + ListSessionEntityTypesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MatchIntentRequest message. + * Verifies a ListSessionEntityTypesResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MatchIntentRequest.verify = function verify(message) { + ListSessionEntityTypesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.session != null && message.hasOwnProperty("session")) - if (!$util.isString(message.session)) - return "session: string expected"; - if (message.queryParams != null && message.hasOwnProperty("queryParams")) { - var error = $root.google.cloud.dialogflow.cx.v3.QueryParameters.verify(message.queryParams); - if (error) - return "queryParams." + error; - } - if (message.queryInput != null && message.hasOwnProperty("queryInput")) { - var error = $root.google.cloud.dialogflow.cx.v3.QueryInput.verify(message.queryInput); - if (error) - return "queryInput." + error; + if (message.sessionEntityTypes != null && message.hasOwnProperty("sessionEntityTypes")) { + if (!Array.isArray(message.sessionEntityTypes)) + return "sessionEntityTypes: array expected"; + for (var i = 0; i < message.sessionEntityTypes.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.verify(message.sessionEntityTypes[i]); + if (error) + return "sessionEntityTypes." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a MatchIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListSessionEntityTypesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.MatchIntentRequest} MatchIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse */ - MatchIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest) + ListSessionEntityTypesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest(); - if (object.session != null) - message.session = String(object.session); - if (object.queryParams != null) { - if (typeof object.queryParams !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.MatchIntentRequest.queryParams: object expected"); - message.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.fromObject(object.queryParams); - } - if (object.queryInput != null) { - if (typeof object.queryInput !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.MatchIntentRequest.queryInput: object expected"); - message.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.fromObject(object.queryInput); + var message = new $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse(); + if (object.sessionEntityTypes) { + if (!Array.isArray(object.sessionEntityTypes)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse.sessionEntityTypes: array expected"); + message.sessionEntityTypes = []; + for (var i = 0; i < object.sessionEntityTypes.length; ++i) { + if (typeof object.sessionEntityTypes[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse.sessionEntityTypes: object expected"); + message.sessionEntityTypes[i] = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.fromObject(object.sessionEntityTypes[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a MatchIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListSessionEntityTypesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.MatchIntentRequest} message MatchIntentRequest + * @param {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} message ListSessionEntityTypesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MatchIntentRequest.toObject = function toObject(message, options) { + ListSessionEntityTypesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.session = ""; - object.queryParams = null; - object.queryInput = null; + if (options.arrays || options.defaults) + object.sessionEntityTypes = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.sessionEntityTypes && message.sessionEntityTypes.length) { + object.sessionEntityTypes = []; + for (var j = 0; j < message.sessionEntityTypes.length; ++j) + object.sessionEntityTypes[j] = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.toObject(message.sessionEntityTypes[j], options); } - if (message.session != null && message.hasOwnProperty("session")) - object.session = message.session; - if (message.queryParams != null && message.hasOwnProperty("queryParams")) - object.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.toObject(message.queryParams, options); - if (message.queryInput != null && message.hasOwnProperty("queryInput")) - object.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.toObject(message.queryInput, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this MatchIntentRequest to JSON. + * Converts this ListSessionEntityTypesResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @instance * @returns {Object.} JSON object */ - MatchIntentRequest.prototype.toJSON = function toJSON() { + ListSessionEntityTypesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MatchIntentRequest; + return ListSessionEntityTypesResponse; })(); - v3.MatchIntentResponse = (function() { + v3.GetSessionEntityTypeRequest = (function() { /** - * Properties of a MatchIntentResponse. + * Properties of a GetSessionEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IMatchIntentResponse - * @property {string|null} [text] MatchIntentResponse text - * @property {string|null} [triggerIntent] MatchIntentResponse triggerIntent - * @property {string|null} [transcript] MatchIntentResponse transcript - * @property {string|null} [triggerEvent] MatchIntentResponse triggerEvent - * @property {Array.|null} [matches] MatchIntentResponse matches - * @property {google.cloud.dialogflow.cx.v3.IPage|null} [currentPage] MatchIntentResponse currentPage + * @interface IGetSessionEntityTypeRequest + * @property {string|null} [name] GetSessionEntityTypeRequest name */ /** - * Constructs a new MatchIntentResponse. + * Constructs a new GetSessionEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a MatchIntentResponse. - * @implements IMatchIntentResponse + * @classdesc Represents a GetSessionEntityTypeRequest. + * @implements IGetSessionEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IMatchIntentResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest=} [properties] Properties to set */ - function MatchIntentResponse(properties) { - this.matches = []; + function GetSessionEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -47349,157 +47230,75 @@ } /** - * MatchIntentResponse text. - * @member {string|null|undefined} text - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * GetSessionEntityTypeRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest * @instance */ - MatchIntentResponse.prototype.text = null; + GetSessionEntityTypeRequest.prototype.name = ""; /** - * MatchIntentResponse triggerIntent. - * @member {string|null|undefined} triggerIntent - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse - * @instance + * Creates a new GetSessionEntityTypeRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest instance */ - MatchIntentResponse.prototype.triggerIntent = null; + GetSessionEntityTypeRequest.create = function create(properties) { + return new GetSessionEntityTypeRequest(properties); + }; /** - * MatchIntentResponse transcript. - * @member {string|null|undefined} transcript - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse - * @instance + * Encodes the specified GetSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest} message GetSessionEntityTypeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - MatchIntentResponse.prototype.transcript = null; + GetSessionEntityTypeRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; /** - * MatchIntentResponse triggerEvent. - * @member {string|null|undefined} triggerEvent - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse - * @instance + * Encodes the specified GetSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest} message GetSessionEntityTypeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - MatchIntentResponse.prototype.triggerEvent = null; + GetSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * MatchIntentResponse matches. - * @member {Array.} matches - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse - * @instance + * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MatchIntentResponse.prototype.matches = $util.emptyArray; - - /** - * MatchIntentResponse currentPage. - * @member {google.cloud.dialogflow.cx.v3.IPage|null|undefined} currentPage - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse - * @instance - */ - MatchIntentResponse.prototype.currentPage = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * MatchIntentResponse query. - * @member {"text"|"triggerIntent"|"transcript"|"triggerEvent"|undefined} query - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse - * @instance - */ - Object.defineProperty(MatchIntentResponse.prototype, "query", { - get: $util.oneOfGetter($oneOfFields = ["text", "triggerIntent", "transcript", "triggerEvent"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new MatchIntentResponse instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.IMatchIntentResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.MatchIntentResponse} MatchIntentResponse instance - */ - MatchIntentResponse.create = function create(properties) { - return new MatchIntentResponse(properties); - }; - - /** - * Encodes the specified MatchIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.IMatchIntentResponse} message MatchIntentResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MatchIntentResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.text != null && Object.hasOwnProperty.call(message, "text")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); - if (message.triggerIntent != null && Object.hasOwnProperty.call(message, "triggerIntent")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.triggerIntent); - if (message.transcript != null && Object.hasOwnProperty.call(message, "transcript")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.transcript); - if (message.matches != null && message.matches.length) - for (var i = 0; i < message.matches.length; ++i) - $root.google.cloud.dialogflow.cx.v3.Match.encode(message.matches[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) - $root.google.cloud.dialogflow.cx.v3.Page.encode(message.currentPage, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.triggerEvent != null && Object.hasOwnProperty.call(message, "triggerEvent")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.triggerEvent); - return writer; - }; - - /** - * Encodes the specified MatchIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.IMatchIntentResponse} message MatchIntentResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MatchIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a MatchIntentResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.MatchIntentResponse} MatchIntentResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MatchIntentResponse.decode = function decode(reader, length) { + GetSessionEntityTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.MatchIntentResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.text = reader.string(); - break; - case 2: - message.triggerIntent = reader.string(); - break; - case 3: - message.transcript = reader.string(); - break; - case 6: - message.triggerEvent = reader.string(); - break; - case 4: - if (!(message.matches && message.matches.length)) - message.matches = []; - message.matches.push($root.google.cloud.dialogflow.cx.v3.Match.decode(reader, reader.uint32())); - break; - case 5: - message.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -47510,195 +47309,108 @@ }; /** - * Decodes a MatchIntentResponse message from the specified reader or buffer, length delimited. + * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.MatchIntentResponse} MatchIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MatchIntentResponse.decodeDelimited = function decodeDelimited(reader) { + GetSessionEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MatchIntentResponse message. + * Verifies a GetSessionEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MatchIntentResponse.verify = function verify(message) { + GetSessionEntityTypeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.text != null && message.hasOwnProperty("text")) { - properties.query = 1; - if (!$util.isString(message.text)) - return "text: string expected"; - } - if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { - if (properties.query === 1) - return "query: multiple values"; - properties.query = 1; - if (!$util.isString(message.triggerIntent)) - return "triggerIntent: string expected"; - } - if (message.transcript != null && message.hasOwnProperty("transcript")) { - if (properties.query === 1) - return "query: multiple values"; - properties.query = 1; - if (!$util.isString(message.transcript)) - return "transcript: string expected"; - } - if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { - if (properties.query === 1) - return "query: multiple values"; - properties.query = 1; - if (!$util.isString(message.triggerEvent)) - return "triggerEvent: string expected"; - } - if (message.matches != null && message.hasOwnProperty("matches")) { - if (!Array.isArray(message.matches)) - return "matches: array expected"; - for (var i = 0; i < message.matches.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.Match.verify(message.matches[i]); - if (error) - return "matches." + error; - } - } - if (message.currentPage != null && message.hasOwnProperty("currentPage")) { - var error = $root.google.cloud.dialogflow.cx.v3.Page.verify(message.currentPage); - if (error) - return "currentPage." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a MatchIntentResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.MatchIntentResponse} MatchIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest */ - MatchIntentResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.MatchIntentResponse) + GetSessionEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.MatchIntentResponse(); - if (object.text != null) - message.text = String(object.text); - if (object.triggerIntent != null) - message.triggerIntent = String(object.triggerIntent); - if (object.transcript != null) - message.transcript = String(object.transcript); - if (object.triggerEvent != null) - message.triggerEvent = String(object.triggerEvent); - if (object.matches) { - if (!Array.isArray(object.matches)) - throw TypeError(".google.cloud.dialogflow.cx.v3.MatchIntentResponse.matches: array expected"); - message.matches = []; - for (var i = 0; i < object.matches.length; ++i) { - if (typeof object.matches[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.MatchIntentResponse.matches: object expected"); - message.matches[i] = $root.google.cloud.dialogflow.cx.v3.Match.fromObject(object.matches[i]); - } - } - if (object.currentPage != null) { - if (typeof object.currentPage !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.MatchIntentResponse.currentPage: object expected"); - message.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.fromObject(object.currentPage); - } + var message = new $root.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a MatchIntentResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetSessionEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.MatchIntentResponse} message MatchIntentResponse + * @param {google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest} message GetSessionEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MatchIntentResponse.toObject = function toObject(message, options) { + GetSessionEntityTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.matches = []; if (options.defaults) - object.currentPage = null; - if (message.text != null && message.hasOwnProperty("text")) { - object.text = message.text; - if (options.oneofs) - object.query = "text"; - } - if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { - object.triggerIntent = message.triggerIntent; - if (options.oneofs) - object.query = "triggerIntent"; - } - if (message.transcript != null && message.hasOwnProperty("transcript")) { - object.transcript = message.transcript; - if (options.oneofs) - object.query = "transcript"; - } - if (message.matches && message.matches.length) { - object.matches = []; - for (var j = 0; j < message.matches.length; ++j) - object.matches[j] = $root.google.cloud.dialogflow.cx.v3.Match.toObject(message.matches[j], options); - } - if (message.currentPage != null && message.hasOwnProperty("currentPage")) - object.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.toObject(message.currentPage, options); - if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { - object.triggerEvent = message.triggerEvent; - if (options.oneofs) - object.query = "triggerEvent"; - } + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this MatchIntentResponse to JSON. + * Converts this GetSessionEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest * @instance * @returns {Object.} JSON object */ - MatchIntentResponse.prototype.toJSON = function toJSON() { + GetSessionEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MatchIntentResponse; + return GetSessionEntityTypeRequest; })(); - v3.FulfillIntentRequest = (function() { + v3.CreateSessionEntityTypeRequest = (function() { /** - * Properties of a FulfillIntentRequest. + * Properties of a CreateSessionEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IFulfillIntentRequest - * @property {google.cloud.dialogflow.cx.v3.IMatchIntentRequest|null} [matchIntentRequest] FulfillIntentRequest matchIntentRequest - * @property {google.cloud.dialogflow.cx.v3.IMatch|null} [match] FulfillIntentRequest match - * @property {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null} [outputAudioConfig] FulfillIntentRequest outputAudioConfig + * @interface ICreateSessionEntityTypeRequest + * @property {string|null} [parent] CreateSessionEntityTypeRequest parent + * @property {google.cloud.dialogflow.cx.v3.ISessionEntityType|null} [sessionEntityType] CreateSessionEntityTypeRequest sessionEntityType */ /** - * Constructs a new FulfillIntentRequest. + * Constructs a new CreateSessionEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a FulfillIntentRequest. - * @implements IFulfillIntentRequest + * @classdesc Represents a CreateSessionEntityTypeRequest. + * @implements ICreateSessionEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest=} [properties] Properties to set */ - function FulfillIntentRequest(properties) { + function CreateSessionEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -47706,101 +47418,88 @@ } /** - * FulfillIntentRequest matchIntentRequest. - * @member {google.cloud.dialogflow.cx.v3.IMatchIntentRequest|null|undefined} matchIntentRequest - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest - * @instance - */ - FulfillIntentRequest.prototype.matchIntentRequest = null; - - /** - * FulfillIntentRequest match. - * @member {google.cloud.dialogflow.cx.v3.IMatch|null|undefined} match - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest + * CreateSessionEntityTypeRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest * @instance */ - FulfillIntentRequest.prototype.match = null; + CreateSessionEntityTypeRequest.prototype.parent = ""; /** - * FulfillIntentRequest outputAudioConfig. - * @member {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null|undefined} outputAudioConfig - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest + * CreateSessionEntityTypeRequest sessionEntityType. + * @member {google.cloud.dialogflow.cx.v3.ISessionEntityType|null|undefined} sessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest * @instance */ - FulfillIntentRequest.prototype.outputAudioConfig = null; + CreateSessionEntityTypeRequest.prototype.sessionEntityType = null; /** - * Creates a new FulfillIntentRequest instance using the specified properties. + * Creates a new CreateSessionEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentRequest} FulfillIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest instance */ - FulfillIntentRequest.create = function create(properties) { - return new FulfillIntentRequest(properties); + CreateSessionEntityTypeRequest.create = function create(properties) { + return new CreateSessionEntityTypeRequest(properties); }; /** - * Encodes the specified FulfillIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentRequest.verify|verify} messages. + * Encodes the specified CreateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentRequest} message FulfillIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest} message CreateSessionEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FulfillIntentRequest.encode = function encode(message, writer) { + CreateSessionEntityTypeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.matchIntentRequest != null && Object.hasOwnProperty.call(message, "matchIntentRequest")) - $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest.encode(message.matchIntentRequest, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.match != null && Object.hasOwnProperty.call(message, "match")) - $root.google.cloud.dialogflow.cx.v3.Match.encode(message.match, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) - $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.sessionEntityType != null && Object.hasOwnProperty.call(message, "sessionEntityType")) + $root.google.cloud.dialogflow.cx.v3.SessionEntityType.encode(message.sessionEntityType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified FulfillIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentRequest.verify|verify} messages. + * Encodes the specified CreateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentRequest} message FulfillIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest} message CreateSessionEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FulfillIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FulfillIntentRequest message from the specified reader or buffer. + * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentRequest} FulfillIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FulfillIntentRequest.decode = function decode(reader, length) { + CreateSessionEntityTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.FulfillIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.matchIntentRequest = $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest.decode(reader, reader.uint32()); + message.parent = reader.string(); break; case 2: - message.match = $root.google.cloud.dialogflow.cx.v3.Match.decode(reader, reader.uint32()); - break; - case 3: - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.decode(reader, reader.uint32()); + message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -47811,142 +47510,122 @@ }; /** - * Decodes a FulfillIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentRequest} FulfillIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FulfillIntentRequest.decodeDelimited = function decodeDelimited(reader) { + CreateSessionEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FulfillIntentRequest message. + * Verifies a CreateSessionEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FulfillIntentRequest.verify = function verify(message) { + CreateSessionEntityTypeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.matchIntentRequest != null && message.hasOwnProperty("matchIntentRequest")) { - var error = $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest.verify(message.matchIntentRequest); - if (error) - return "matchIntentRequest." + error; - } - if (message.match != null && message.hasOwnProperty("match")) { - var error = $root.google.cloud.dialogflow.cx.v3.Match.verify(message.match); - if (error) - return "match." + error; - } - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify(message.outputAudioConfig); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) { + var error = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.verify(message.sessionEntityType); if (error) - return "outputAudioConfig." + error; + return "sessionEntityType." + error; } return null; }; /** - * Creates a FulfillIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentRequest} FulfillIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest */ - FulfillIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.FulfillIntentRequest) + CreateSessionEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.FulfillIntentRequest(); - if (object.matchIntentRequest != null) { - if (typeof object.matchIntentRequest !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.FulfillIntentRequest.matchIntentRequest: object expected"); - message.matchIntentRequest = $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest.fromObject(object.matchIntentRequest); - } - if (object.match != null) { - if (typeof object.match !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.FulfillIntentRequest.match: object expected"); - message.match = $root.google.cloud.dialogflow.cx.v3.Match.fromObject(object.match); - } - if (object.outputAudioConfig != null) { - if (typeof object.outputAudioConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.FulfillIntentRequest.outputAudioConfig: object expected"); - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.fromObject(object.outputAudioConfig); + var message = new $root.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.sessionEntityType != null) { + if (typeof object.sessionEntityType !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest.sessionEntityType: object expected"); + message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.fromObject(object.sessionEntityType); } return message; }; /** - * Creates a plain object from a FulfillIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateSessionEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.FulfillIntentRequest} message FulfillIntentRequest + * @param {google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest} message CreateSessionEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FulfillIntentRequest.toObject = function toObject(message, options) { + CreateSessionEntityTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.matchIntentRequest = null; - object.match = null; - object.outputAudioConfig = null; + object.parent = ""; + object.sessionEntityType = null; } - if (message.matchIntentRequest != null && message.hasOwnProperty("matchIntentRequest")) - object.matchIntentRequest = $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest.toObject(message.matchIntentRequest, options); - if (message.match != null && message.hasOwnProperty("match")) - object.match = $root.google.cloud.dialogflow.cx.v3.Match.toObject(message.match, options); - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) - object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.toObject(message.outputAudioConfig, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) + object.sessionEntityType = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.toObject(message.sessionEntityType, options); return object; }; /** - * Converts this FulfillIntentRequest to JSON. + * Converts this CreateSessionEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest * @instance * @returns {Object.} JSON object */ - FulfillIntentRequest.prototype.toJSON = function toJSON() { + CreateSessionEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FulfillIntentRequest; + return CreateSessionEntityTypeRequest; })(); - v3.FulfillIntentResponse = (function() { + v3.UpdateSessionEntityTypeRequest = (function() { /** - * Properties of a FulfillIntentResponse. + * Properties of an UpdateSessionEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IFulfillIntentResponse - * @property {string|null} [responseId] FulfillIntentResponse responseId - * @property {google.cloud.dialogflow.cx.v3.IQueryResult|null} [queryResult] FulfillIntentResponse queryResult - * @property {Uint8Array|null} [outputAudio] FulfillIntentResponse outputAudio - * @property {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null} [outputAudioConfig] FulfillIntentResponse outputAudioConfig + * @interface IUpdateSessionEntityTypeRequest + * @property {google.cloud.dialogflow.cx.v3.ISessionEntityType|null} [sessionEntityType] UpdateSessionEntityTypeRequest sessionEntityType + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSessionEntityTypeRequest updateMask */ /** - * Constructs a new FulfillIntentResponse. + * Constructs a new UpdateSessionEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a FulfillIntentResponse. - * @implements IFulfillIntentResponse + * @classdesc Represents an UpdateSessionEntityTypeRequest. + * @implements IUpdateSessionEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest=} [properties] Properties to set */ - function FulfillIntentResponse(properties) { + function UpdateSessionEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -47954,114 +47633,88 @@ } /** - * FulfillIntentResponse responseId. - * @member {string} responseId - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * UpdateSessionEntityTypeRequest sessionEntityType. + * @member {google.cloud.dialogflow.cx.v3.ISessionEntityType|null|undefined} sessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @instance */ - FulfillIntentResponse.prototype.responseId = ""; + UpdateSessionEntityTypeRequest.prototype.sessionEntityType = null; /** - * FulfillIntentResponse queryResult. - * @member {google.cloud.dialogflow.cx.v3.IQueryResult|null|undefined} queryResult - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * UpdateSessionEntityTypeRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @instance */ - FulfillIntentResponse.prototype.queryResult = null; + UpdateSessionEntityTypeRequest.prototype.updateMask = null; /** - * FulfillIntentResponse outputAudio. - * @member {Uint8Array} outputAudio - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse - * @instance + * Creates a new UpdateSessionEntityTypeRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest instance */ - FulfillIntentResponse.prototype.outputAudio = $util.newBuffer([]); + UpdateSessionEntityTypeRequest.create = function create(properties) { + return new UpdateSessionEntityTypeRequest(properties); + }; /** - * FulfillIntentResponse outputAudioConfig. - * @member {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null|undefined} outputAudioConfig - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse - * @instance + * Encodes the specified UpdateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest} message UpdateSessionEntityTypeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - FulfillIntentResponse.prototype.outputAudioConfig = null; - - /** - * Creates a new FulfillIntentResponse instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} FulfillIntentResponse instance - */ - FulfillIntentResponse.create = function create(properties) { - return new FulfillIntentResponse(properties); - }; - - /** - * Encodes the specified FulfillIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentResponse} message FulfillIntentResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FulfillIntentResponse.encode = function encode(message, writer) { + UpdateSessionEntityTypeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.responseId != null && Object.hasOwnProperty.call(message, "responseId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.responseId); - if (message.queryResult != null && Object.hasOwnProperty.call(message, "queryResult")) - $root.google.cloud.dialogflow.cx.v3.QueryResult.encode(message.queryResult, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.outputAudio != null && Object.hasOwnProperty.call(message, "outputAudio")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.outputAudio); - if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) - $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.sessionEntityType != null && Object.hasOwnProperty.call(message, "sessionEntityType")) + $root.google.cloud.dialogflow.cx.v3.SessionEntityType.encode(message.sessionEntityType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified FulfillIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentResponse.verify|verify} messages. + * Encodes the specified UpdateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentResponse} message FulfillIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest} message UpdateSessionEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FulfillIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FulfillIntentResponse message from the specified reader or buffer. + * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} FulfillIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FulfillIntentResponse.decode = function decode(reader, length) { + UpdateSessionEntityTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.FulfillIntentResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.responseId = reader.string(); + message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.decode(reader, reader.uint32()); break; case 2: - message.queryResult = $root.google.cloud.dialogflow.cx.v3.QueryResult.decode(reader, reader.uint32()); - break; - case 3: - message.outputAudio = reader.bytes(); - break; - case 4: - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.decode(reader, reader.uint32()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -48072,152 +47725,126 @@ }; /** - * Decodes a FulfillIntentResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} FulfillIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FulfillIntentResponse.decodeDelimited = function decodeDelimited(reader) { + UpdateSessionEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FulfillIntentResponse message. + * Verifies an UpdateSessionEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FulfillIntentResponse.verify = function verify(message) { + UpdateSessionEntityTypeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.responseId != null && message.hasOwnProperty("responseId")) - if (!$util.isString(message.responseId)) - return "responseId: string expected"; - if (message.queryResult != null && message.hasOwnProperty("queryResult")) { - var error = $root.google.cloud.dialogflow.cx.v3.QueryResult.verify(message.queryResult); + if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) { + var error = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.verify(message.sessionEntityType); if (error) - return "queryResult." + error; + return "sessionEntityType." + error; } - if (message.outputAudio != null && message.hasOwnProperty("outputAudio")) - if (!(message.outputAudio && typeof message.outputAudio.length === "number" || $util.isString(message.outputAudio))) - return "outputAudio: buffer expected"; - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify(message.outputAudioConfig); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); if (error) - return "outputAudioConfig." + error; + return "updateMask." + error; } return null; }; /** - * Creates a FulfillIntentResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} FulfillIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest */ - FulfillIntentResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.FulfillIntentResponse) + UpdateSessionEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.FulfillIntentResponse(); - if (object.responseId != null) - message.responseId = String(object.responseId); - if (object.queryResult != null) { - if (typeof object.queryResult !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.FulfillIntentResponse.queryResult: object expected"); - message.queryResult = $root.google.cloud.dialogflow.cx.v3.QueryResult.fromObject(object.queryResult); + var message = new $root.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest(); + if (object.sessionEntityType != null) { + if (typeof object.sessionEntityType !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest.sessionEntityType: object expected"); + message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.fromObject(object.sessionEntityType); } - if (object.outputAudio != null) - if (typeof object.outputAudio === "string") - $util.base64.decode(object.outputAudio, message.outputAudio = $util.newBuffer($util.base64.length(object.outputAudio)), 0); - else if (object.outputAudio.length) - message.outputAudio = object.outputAudio; - if (object.outputAudioConfig != null) { - if (typeof object.outputAudioConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.FulfillIntentResponse.outputAudioConfig: object expected"); - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.fromObject(object.outputAudioConfig); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from a FulfillIntentResponse message. Also converts values to other types if specified. + * Creates a plain object from an UpdateSessionEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} message FulfillIntentResponse + * @param {google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest} message UpdateSessionEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FulfillIntentResponse.toObject = function toObject(message, options) { + UpdateSessionEntityTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.responseId = ""; - object.queryResult = null; - if (options.bytes === String) - object.outputAudio = ""; - else { - object.outputAudio = []; - if (options.bytes !== Array) - object.outputAudio = $util.newBuffer(object.outputAudio); - } - object.outputAudioConfig = null; + object.sessionEntityType = null; + object.updateMask = null; } - if (message.responseId != null && message.hasOwnProperty("responseId")) - object.responseId = message.responseId; - if (message.queryResult != null && message.hasOwnProperty("queryResult")) - object.queryResult = $root.google.cloud.dialogflow.cx.v3.QueryResult.toObject(message.queryResult, options); - if (message.outputAudio != null && message.hasOwnProperty("outputAudio")) - object.outputAudio = options.bytes === String ? $util.base64.encode(message.outputAudio, 0, message.outputAudio.length) : options.bytes === Array ? Array.prototype.slice.call(message.outputAudio) : message.outputAudio; - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) - object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.toObject(message.outputAudioConfig, options); + if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) + object.sessionEntityType = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.toObject(message.sessionEntityType, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this FulfillIntentResponse to JSON. + * Converts this UpdateSessionEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @instance * @returns {Object.} JSON object */ - FulfillIntentResponse.prototype.toJSON = function toJSON() { + UpdateSessionEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FulfillIntentResponse; + return UpdateSessionEntityTypeRequest; })(); - v3.SentimentAnalysisResult = (function() { + v3.DeleteSessionEntityTypeRequest = (function() { /** - * Properties of a SentimentAnalysisResult. + * Properties of a DeleteSessionEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ISentimentAnalysisResult - * @property {number|null} [score] SentimentAnalysisResult score - * @property {number|null} [magnitude] SentimentAnalysisResult magnitude + * @interface IDeleteSessionEntityTypeRequest + * @property {string|null} [name] DeleteSessionEntityTypeRequest name */ /** - * Constructs a new SentimentAnalysisResult. + * Constructs a new DeleteSessionEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a SentimentAnalysisResult. - * @implements ISentimentAnalysisResult + * @classdesc Represents a DeleteSessionEntityTypeRequest. + * @implements IDeleteSessionEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest=} [properties] Properties to set */ - function SentimentAnalysisResult(properties) { + function DeleteSessionEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -48225,88 +47852,75 @@ } /** - * SentimentAnalysisResult score. - * @member {number} score - * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult - * @instance - */ - SentimentAnalysisResult.prototype.score = 0; - - /** - * SentimentAnalysisResult magnitude. - * @member {number} magnitude - * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult + * DeleteSessionEntityTypeRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest * @instance */ - SentimentAnalysisResult.prototype.magnitude = 0; + DeleteSessionEntityTypeRequest.prototype.name = ""; /** - * Creates a new SentimentAnalysisResult instance using the specified properties. + * Creates a new DeleteSessionEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.SentimentAnalysisResult} SentimentAnalysisResult instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest instance */ - SentimentAnalysisResult.create = function create(properties) { - return new SentimentAnalysisResult(properties); + DeleteSessionEntityTypeRequest.create = function create(properties) { + return new DeleteSessionEntityTypeRequest(properties); }; /** - * Encodes the specified SentimentAnalysisResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.verify|verify} messages. + * Encodes the specified DeleteSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult} message SentimentAnalysisResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest} message DeleteSessionEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SentimentAnalysisResult.encode = function encode(message, writer) { + DeleteSessionEntityTypeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.score != null && Object.hasOwnProperty.call(message, "score")) - writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); - if (message.magnitude != null && Object.hasOwnProperty.call(message, "magnitude")) - writer.uint32(/* id 2, wireType 5 =*/21).float(message.magnitude); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified SentimentAnalysisResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.verify|verify} messages. + * Encodes the specified DeleteSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult} message SentimentAnalysisResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest} message DeleteSessionEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SentimentAnalysisResult.encodeDelimited = function encodeDelimited(message, writer) { + DeleteSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SentimentAnalysisResult message from the specified reader or buffer. + * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.SentimentAnalysisResult} SentimentAnalysisResult + * @returns {google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SentimentAnalysisResult.decode = function decode(reader, length) { + DeleteSessionEntityTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.score = reader.float(); - break; - case 2: - message.magnitude = reader.float(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -48317,319 +47931,310 @@ }; /** - * Decodes a SentimentAnalysisResult message from the specified reader or buffer, length delimited. + * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.SentimentAnalysisResult} SentimentAnalysisResult + * @returns {google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SentimentAnalysisResult.decodeDelimited = function decodeDelimited(reader) { + DeleteSessionEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SentimentAnalysisResult message. + * Verifies a DeleteSessionEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SentimentAnalysisResult.verify = function verify(message) { + DeleteSessionEntityTypeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.score != null && message.hasOwnProperty("score")) - if (typeof message.score !== "number") - return "score: number expected"; - if (message.magnitude != null && message.hasOwnProperty("magnitude")) - if (typeof message.magnitude !== "number") - return "magnitude: number expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a SentimentAnalysisResult message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.SentimentAnalysisResult} SentimentAnalysisResult + * @returns {google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest */ - SentimentAnalysisResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult) + DeleteSessionEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult(); - if (object.score != null) - message.score = Number(object.score); - if (object.magnitude != null) - message.magnitude = Number(object.magnitude); + var message = new $root.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a SentimentAnalysisResult message. Also converts values to other types if specified. + * Creates a plain object from a DeleteSessionEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.SentimentAnalysisResult} message SentimentAnalysisResult + * @param {google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest} message DeleteSessionEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SentimentAnalysisResult.toObject = function toObject(message, options) { + DeleteSessionEntityTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.score = 0; - object.magnitude = 0; - } - if (message.score != null && message.hasOwnProperty("score")) - object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; - if (message.magnitude != null && message.hasOwnProperty("magnitude")) - object.magnitude = options.json && !isFinite(message.magnitude) ? String(message.magnitude) : message.magnitude; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this SentimentAnalysisResult to JSON. + * Converts this DeleteSessionEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest * @instance * @returns {Object.} JSON object */ - SentimentAnalysisResult.prototype.toJSON = function toJSON() { + DeleteSessionEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SentimentAnalysisResult; + return DeleteSessionEntityTypeRequest; })(); - v3.SessionEntityTypes = (function() { + v3.TransitionRouteGroups = (function() { /** - * Constructs a new SessionEntityTypes service. + * Constructs a new TransitionRouteGroups service. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a SessionEntityTypes + * @classdesc Represents a TransitionRouteGroups * @extends $protobuf.rpc.Service * @constructor * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - function SessionEntityTypes(rpcImpl, requestDelimited, responseDelimited) { + function TransitionRouteGroups(rpcImpl, requestDelimited, responseDelimited) { $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - (SessionEntityTypes.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = SessionEntityTypes; + (TransitionRouteGroups.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = TransitionRouteGroups; /** - * Creates new SessionEntityTypes service using the specified rpc implementation. + * Creates new TransitionRouteGroups service using the specified rpc implementation. * @function create - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @static * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {SessionEntityTypes} RPC service. Useful where requests and/or responses are streamed. + * @returns {TransitionRouteGroups} RPC service. Useful where requests and/or responses are streamed. */ - SessionEntityTypes.create = function create(rpcImpl, requestDelimited, responseDelimited) { + TransitionRouteGroups.create = function create(rpcImpl, requestDelimited, responseDelimited) { return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#listSessionEntityTypes}. - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes - * @typedef ListSessionEntityTypesCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#listTransitionRouteGroups}. + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * @typedef ListTransitionRouteGroupsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} [response] ListSessionEntityTypesResponse + * @param {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} [response] ListTransitionRouteGroupsResponse */ /** - * Calls ListSessionEntityTypes. - * @function listSessionEntityTypes - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * Calls ListTransitionRouteGroups. + * @function listTransitionRouteGroups + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @instance - * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest} request ListSessionEntityTypesRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypesCallback} callback Node-style callback called with the error, if any, and ListSessionEntityTypesResponse + * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest} request ListTransitionRouteGroupsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroupsCallback} callback Node-style callback called with the error, if any, and ListTransitionRouteGroupsResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(SessionEntityTypes.prototype.listSessionEntityTypes = function listSessionEntityTypes(request, callback) { - return this.rpcCall(listSessionEntityTypes, $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest, $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse, request, callback); - }, "name", { value: "ListSessionEntityTypes" }); + Object.defineProperty(TransitionRouteGroups.prototype.listTransitionRouteGroups = function listTransitionRouteGroups(request, callback) { + return this.rpcCall(listTransitionRouteGroups, $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest, $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse, request, callback); + }, "name", { value: "ListTransitionRouteGroups" }); /** - * Calls ListSessionEntityTypes. - * @function listSessionEntityTypes - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * Calls ListTransitionRouteGroups. + * @function listTransitionRouteGroups + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @instance - * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest} request ListSessionEntityTypesRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest} request ListTransitionRouteGroupsRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#getSessionEntityType}. - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes - * @typedef GetSessionEntityTypeCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#getTransitionRouteGroup}. + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * @typedef GetTransitionRouteGroupCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.SessionEntityType} [response] SessionEntityType + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} [response] TransitionRouteGroup */ /** - * Calls GetSessionEntityType. - * @function getSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * Calls GetTransitionRouteGroup. + * @function getTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest} request GetSessionEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.SessionEntityTypes.GetSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and SessionEntityType + * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest} request GetTransitionRouteGroupRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroups.GetTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and TransitionRouteGroup * @returns {undefined} * @variation 1 */ - Object.defineProperty(SessionEntityTypes.prototype.getSessionEntityType = function getSessionEntityType(request, callback) { - return this.rpcCall(getSessionEntityType, $root.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3.SessionEntityType, request, callback); - }, "name", { value: "GetSessionEntityType" }); + Object.defineProperty(TransitionRouteGroups.prototype.getTransitionRouteGroup = function getTransitionRouteGroup(request, callback) { + return this.rpcCall(getTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest, $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup, request, callback); + }, "name", { value: "GetTransitionRouteGroup" }); /** - * Calls GetSessionEntityType. - * @function getSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * Calls GetTransitionRouteGroup. + * @function getTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest} request GetSessionEntityTypeRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest} request GetTransitionRouteGroupRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#createSessionEntityType}. - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes - * @typedef CreateSessionEntityTypeCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#createTransitionRouteGroup}. + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * @typedef CreateTransitionRouteGroupCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.SessionEntityType} [response] SessionEntityType + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} [response] TransitionRouteGroup */ /** - * Calls CreateSessionEntityType. - * @function createSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * Calls CreateTransitionRouteGroup. + * @function createTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest} request CreateSessionEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.SessionEntityTypes.CreateSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and SessionEntityType + * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest} request CreateTransitionRouteGroupRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and TransitionRouteGroup * @returns {undefined} * @variation 1 */ - Object.defineProperty(SessionEntityTypes.prototype.createSessionEntityType = function createSessionEntityType(request, callback) { - return this.rpcCall(createSessionEntityType, $root.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3.SessionEntityType, request, callback); - }, "name", { value: "CreateSessionEntityType" }); + Object.defineProperty(TransitionRouteGroups.prototype.createTransitionRouteGroup = function createTransitionRouteGroup(request, callback) { + return this.rpcCall(createTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest, $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup, request, callback); + }, "name", { value: "CreateTransitionRouteGroup" }); /** - * Calls CreateSessionEntityType. - * @function createSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * Calls CreateTransitionRouteGroup. + * @function createTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest} request CreateSessionEntityTypeRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest} request CreateTransitionRouteGroupRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#updateSessionEntityType}. - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes - * @typedef UpdateSessionEntityTypeCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#updateTransitionRouteGroup}. + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * @typedef UpdateTransitionRouteGroupCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.SessionEntityType} [response] SessionEntityType + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} [response] TransitionRouteGroup */ /** - * Calls UpdateSessionEntityType. - * @function updateSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * Calls UpdateTransitionRouteGroup. + * @function updateTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest} request UpdateSessionEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.SessionEntityTypes.UpdateSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and SessionEntityType + * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest} request UpdateTransitionRouteGroupRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroups.UpdateTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and TransitionRouteGroup * @returns {undefined} * @variation 1 */ - Object.defineProperty(SessionEntityTypes.prototype.updateSessionEntityType = function updateSessionEntityType(request, callback) { - return this.rpcCall(updateSessionEntityType, $root.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3.SessionEntityType, request, callback); - }, "name", { value: "UpdateSessionEntityType" }); + Object.defineProperty(TransitionRouteGroups.prototype.updateTransitionRouteGroup = function updateTransitionRouteGroup(request, callback) { + return this.rpcCall(updateTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest, $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup, request, callback); + }, "name", { value: "UpdateTransitionRouteGroup" }); /** - * Calls UpdateSessionEntityType. - * @function updateSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * Calls UpdateTransitionRouteGroup. + * @function updateTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest} request UpdateSessionEntityTypeRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest} request UpdateTransitionRouteGroupRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#deleteSessionEntityType}. - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes - * @typedef DeleteSessionEntityTypeCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#deleteTransitionRouteGroup}. + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * @typedef DeleteTransitionRouteGroupCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.protobuf.Empty} [response] Empty */ /** - * Calls DeleteSessionEntityType. - * @function deleteSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * Calls DeleteTransitionRouteGroup. + * @function deleteTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest} request DeleteSessionEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.SessionEntityTypes.DeleteSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and Empty + * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest} request DeleteTransitionRouteGroupRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroups.DeleteTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and Empty * @returns {undefined} * @variation 1 */ - Object.defineProperty(SessionEntityTypes.prototype.deleteSessionEntityType = function deleteSessionEntityType(request, callback) { - return this.rpcCall(deleteSessionEntityType, $root.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteSessionEntityType" }); + Object.defineProperty(TransitionRouteGroups.prototype.deleteTransitionRouteGroup = function deleteTransitionRouteGroup(request, callback) { + return this.rpcCall(deleteTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteTransitionRouteGroup" }); /** - * Calls DeleteSessionEntityType. - * @function deleteSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes + * Calls DeleteTransitionRouteGroup. + * @function deleteTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest} request DeleteSessionEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest} request DeleteTransitionRouteGroupRequest message or plain object * @returns {Promise} Promise * @variation 2 */ - return SessionEntityTypes; + return TransitionRouteGroups; })(); - v3.SessionEntityType = (function() { + v3.TransitionRouteGroup = (function() { /** - * Properties of a SessionEntityType. + * Properties of a TransitionRouteGroup. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ISessionEntityType - * @property {string|null} [name] SessionEntityType name - * @property {google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode|null} [entityOverrideMode] SessionEntityType entityOverrideMode - * @property {Array.|null} [entities] SessionEntityType entities + * @interface ITransitionRouteGroup + * @property {string|null} [name] TransitionRouteGroup name + * @property {string|null} [displayName] TransitionRouteGroup displayName + * @property {Array.|null} [transitionRoutes] TransitionRouteGroup transitionRoutes */ /** - * Constructs a new SessionEntityType. + * Constructs a new TransitionRouteGroup. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a SessionEntityType. - * @implements ISessionEntityType + * @classdesc Represents a TransitionRouteGroup. + * @implements ITransitionRouteGroup * @constructor - * @param {google.cloud.dialogflow.cx.v3.ISessionEntityType=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup=} [properties] Properties to set */ - function SessionEntityType(properties) { - this.entities = []; + function TransitionRouteGroup(properties) { + this.transitionRoutes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -48637,104 +48242,104 @@ } /** - * SessionEntityType name. + * TransitionRouteGroup name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @instance */ - SessionEntityType.prototype.name = ""; + TransitionRouteGroup.prototype.name = ""; /** - * SessionEntityType entityOverrideMode. - * @member {google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode} entityOverrideMode - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType + * TransitionRouteGroup displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @instance */ - SessionEntityType.prototype.entityOverrideMode = 0; + TransitionRouteGroup.prototype.displayName = ""; /** - * SessionEntityType entities. - * @member {Array.} entities - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType + * TransitionRouteGroup transitionRoutes. + * @member {Array.} transitionRoutes + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @instance */ - SessionEntityType.prototype.entities = $util.emptyArray; + TransitionRouteGroup.prototype.transitionRoutes = $util.emptyArray; /** - * Creates a new SessionEntityType instance using the specified properties. + * Creates a new TransitionRouteGroup instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @static - * @param {google.cloud.dialogflow.cx.v3.ISessionEntityType=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.SessionEntityType} SessionEntityType instance + * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} TransitionRouteGroup instance */ - SessionEntityType.create = function create(properties) { - return new SessionEntityType(properties); + TransitionRouteGroup.create = function create(properties) { + return new TransitionRouteGroup(properties); }; /** - * Encodes the specified SessionEntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionEntityType.verify|verify} messages. + * Encodes the specified TransitionRouteGroup message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @static - * @param {google.cloud.dialogflow.cx.v3.ISessionEntityType} message SessionEntityType message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup} message TransitionRouteGroup message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SessionEntityType.encode = function encode(message, writer) { + TransitionRouteGroup.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.entityOverrideMode != null && Object.hasOwnProperty.call(message, "entityOverrideMode")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.entityOverrideMode); - if (message.entities != null && message.entities.length) - for (var i = 0; i < message.entities.length; ++i) - $root.google.cloud.dialogflow.cx.v3.EntityType.Entity.encode(message.entities[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.transitionRoutes != null && message.transitionRoutes.length) + for (var i = 0; i < message.transitionRoutes.length; ++i) + $root.google.cloud.dialogflow.cx.v3.TransitionRoute.encode(message.transitionRoutes[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified SessionEntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionEntityType.verify|verify} messages. + * Encodes the specified TransitionRouteGroup message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @static - * @param {google.cloud.dialogflow.cx.v3.ISessionEntityType} message SessionEntityType message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup} message TransitionRouteGroup message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SessionEntityType.encodeDelimited = function encodeDelimited(message, writer) { + TransitionRouteGroup.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SessionEntityType message from the specified reader or buffer. + * Decodes a TransitionRouteGroup message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.SessionEntityType} SessionEntityType + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} TransitionRouteGroup * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SessionEntityType.decode = function decode(reader, length) { + TransitionRouteGroup.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.SessionEntityType(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; - case 3: - message.entityOverrideMode = reader.int32(); + case 2: + message.displayName = reader.string(); break; - case 4: - if (!(message.entities && message.entities.length)) - message.entities = []; - message.entities.push($root.google.cloud.dialogflow.cx.v3.EntityType.Entity.decode(reader, reader.uint32())); + case 5: + if (!(message.transitionRoutes && message.transitionRoutes.length)) + message.transitionRoutes = []; + message.transitionRoutes.push($root.google.cloud.dialogflow.cx.v3.TransitionRoute.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -48745,178 +48350,145 @@ }; /** - * Decodes a SessionEntityType message from the specified reader or buffer, length delimited. + * Decodes a TransitionRouteGroup message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.SessionEntityType} SessionEntityType + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} TransitionRouteGroup * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SessionEntityType.decodeDelimited = function decodeDelimited(reader) { + TransitionRouteGroup.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SessionEntityType message. + * Verifies a TransitionRouteGroup message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SessionEntityType.verify = function verify(message) { + TransitionRouteGroup.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.entityOverrideMode != null && message.hasOwnProperty("entityOverrideMode")) - switch (message.entityOverrideMode) { - default: - return "entityOverrideMode: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.entities != null && message.hasOwnProperty("entities")) { - if (!Array.isArray(message.entities)) - return "entities: array expected"; - for (var i = 0; i < message.entities.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.EntityType.Entity.verify(message.entities[i]); + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.transitionRoutes != null && message.hasOwnProperty("transitionRoutes")) { + if (!Array.isArray(message.transitionRoutes)) + return "transitionRoutes: array expected"; + for (var i = 0; i < message.transitionRoutes.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.verify(message.transitionRoutes[i]); if (error) - return "entities." + error; + return "transitionRoutes." + error; } } return null; }; /** - * Creates a SessionEntityType message from a plain object. Also converts values to their respective internal types. + * Creates a TransitionRouteGroup message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.SessionEntityType} SessionEntityType + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} TransitionRouteGroup */ - SessionEntityType.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.SessionEntityType) + TransitionRouteGroup.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.SessionEntityType(); + var message = new $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup(); if (object.name != null) message.name = String(object.name); - switch (object.entityOverrideMode) { - case "ENTITY_OVERRIDE_MODE_UNSPECIFIED": - case 0: - message.entityOverrideMode = 0; - break; - case "ENTITY_OVERRIDE_MODE_OVERRIDE": - case 1: - message.entityOverrideMode = 1; - break; - case "ENTITY_OVERRIDE_MODE_SUPPLEMENT": - case 2: - message.entityOverrideMode = 2; - break; - } - if (object.entities) { - if (!Array.isArray(object.entities)) - throw TypeError(".google.cloud.dialogflow.cx.v3.SessionEntityType.entities: array expected"); - message.entities = []; - for (var i = 0; i < object.entities.length; ++i) { - if (typeof object.entities[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.SessionEntityType.entities: object expected"); - message.entities[i] = $root.google.cloud.dialogflow.cx.v3.EntityType.Entity.fromObject(object.entities[i]); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.transitionRoutes) { + if (!Array.isArray(object.transitionRoutes)) + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRouteGroup.transitionRoutes: array expected"); + message.transitionRoutes = []; + for (var i = 0; i < object.transitionRoutes.length; ++i) { + if (typeof object.transitionRoutes[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRouteGroup.transitionRoutes: object expected"); + message.transitionRoutes[i] = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.fromObject(object.transitionRoutes[i]); } } return message; }; /** - * Creates a plain object from a SessionEntityType message. Also converts values to other types if specified. + * Creates a plain object from a TransitionRouteGroup message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @static - * @param {google.cloud.dialogflow.cx.v3.SessionEntityType} message SessionEntityType + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} message TransitionRouteGroup * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SessionEntityType.toObject = function toObject(message, options) { + TransitionRouteGroup.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.entities = []; + object.transitionRoutes = []; if (options.defaults) { object.name = ""; - object.entityOverrideMode = options.enums === String ? "ENTITY_OVERRIDE_MODE_UNSPECIFIED" : 0; + object.displayName = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.entityOverrideMode != null && message.hasOwnProperty("entityOverrideMode")) - object.entityOverrideMode = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode[message.entityOverrideMode] : message.entityOverrideMode; - if (message.entities && message.entities.length) { - object.entities = []; - for (var j = 0; j < message.entities.length; ++j) - object.entities[j] = $root.google.cloud.dialogflow.cx.v3.EntityType.Entity.toObject(message.entities[j], options); + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.transitionRoutes && message.transitionRoutes.length) { + object.transitionRoutes = []; + for (var j = 0; j < message.transitionRoutes.length; ++j) + object.transitionRoutes[j] = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.toObject(message.transitionRoutes[j], options); } return object; }; /** - * Converts this SessionEntityType to JSON. + * Converts this TransitionRouteGroup to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @instance * @returns {Object.} JSON object */ - SessionEntityType.prototype.toJSON = function toJSON() { + TransitionRouteGroup.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * EntityOverrideMode enum. - * @name google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode - * @enum {number} - * @property {number} ENTITY_OVERRIDE_MODE_UNSPECIFIED=0 ENTITY_OVERRIDE_MODE_UNSPECIFIED value - * @property {number} ENTITY_OVERRIDE_MODE_OVERRIDE=1 ENTITY_OVERRIDE_MODE_OVERRIDE value - * @property {number} ENTITY_OVERRIDE_MODE_SUPPLEMENT=2 ENTITY_OVERRIDE_MODE_SUPPLEMENT value - */ - SessionEntityType.EntityOverrideMode = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ENTITY_OVERRIDE_MODE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ENTITY_OVERRIDE_MODE_OVERRIDE"] = 1; - values[valuesById[2] = "ENTITY_OVERRIDE_MODE_SUPPLEMENT"] = 2; - return values; - })(); - - return SessionEntityType; + return TransitionRouteGroup; })(); - v3.ListSessionEntityTypesRequest = (function() { + v3.ListTransitionRouteGroupsRequest = (function() { /** - * Properties of a ListSessionEntityTypesRequest. + * Properties of a ListTransitionRouteGroupsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListSessionEntityTypesRequest - * @property {string|null} [parent] ListSessionEntityTypesRequest parent - * @property {number|null} [pageSize] ListSessionEntityTypesRequest pageSize - * @property {string|null} [pageToken] ListSessionEntityTypesRequest pageToken + * @interface IListTransitionRouteGroupsRequest + * @property {string|null} [parent] ListTransitionRouteGroupsRequest parent + * @property {number|null} [pageSize] ListTransitionRouteGroupsRequest pageSize + * @property {string|null} [pageToken] ListTransitionRouteGroupsRequest pageToken + * @property {string|null} [languageCode] ListTransitionRouteGroupsRequest languageCode */ /** - * Constructs a new ListSessionEntityTypesRequest. + * Constructs a new ListTransitionRouteGroupsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListSessionEntityTypesRequest. - * @implements IListSessionEntityTypesRequest + * @classdesc Represents a ListTransitionRouteGroupsRequest. + * @implements IListTransitionRouteGroupsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest=} [properties] Properties to set */ - function ListSessionEntityTypesRequest(properties) { + function ListTransitionRouteGroupsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -48924,51 +48496,59 @@ } /** - * ListSessionEntityTypesRequest parent. + * ListTransitionRouteGroupsRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @instance */ - ListSessionEntityTypesRequest.prototype.parent = ""; + ListTransitionRouteGroupsRequest.prototype.parent = ""; /** - * ListSessionEntityTypesRequest pageSize. + * ListTransitionRouteGroupsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @instance */ - ListSessionEntityTypesRequest.prototype.pageSize = 0; + ListTransitionRouteGroupsRequest.prototype.pageSize = 0; /** - * ListSessionEntityTypesRequest pageToken. + * ListTransitionRouteGroupsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @instance */ - ListSessionEntityTypesRequest.prototype.pageToken = ""; + ListTransitionRouteGroupsRequest.prototype.pageToken = ""; /** - * Creates a new ListSessionEntityTypesRequest instance using the specified properties. + * ListTransitionRouteGroupsRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * @instance + */ + ListTransitionRouteGroupsRequest.prototype.languageCode = ""; + + /** + * Creates a new ListTransitionRouteGroupsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest instance + * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest instance */ - ListSessionEntityTypesRequest.create = function create(properties) { - return new ListSessionEntityTypesRequest(properties); + ListTransitionRouteGroupsRequest.create = function create(properties) { + return new ListTransitionRouteGroupsRequest(properties); }; /** - * Encodes the specified ListSessionEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest.verify|verify} messages. + * Encodes the specified ListTransitionRouteGroupsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest} message ListSessionEntityTypesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest} message ListTransitionRouteGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSessionEntityTypesRequest.encode = function encode(message, writer) { + ListTransitionRouteGroupsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -48977,37 +48557,39 @@ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.languageCode); return writer; }; /** - * Encodes the specified ListSessionEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest.verify|verify} messages. + * Encodes the specified ListTransitionRouteGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest} message ListSessionEntityTypesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest} message ListTransitionRouteGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSessionEntityTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListTransitionRouteGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer. + * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest + * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSessionEntityTypesRequest.decode = function decode(reader, length) { + ListTransitionRouteGroupsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -49020,6 +48602,9 @@ case 3: message.pageToken = reader.string(); break; + case 4: + message.languageCode = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -49029,30 +48614,30 @@ }; /** - * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest + * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSessionEntityTypesRequest.decodeDelimited = function decodeDelimited(reader) { + ListTransitionRouteGroupsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListSessionEntityTypesRequest message. + * Verifies a ListTransitionRouteGroupsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListSessionEntityTypesRequest.verify = function verify(message) { + ListTransitionRouteGroupsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -49064,40 +48649,45 @@ if (message.pageToken != null && message.hasOwnProperty("pageToken")) if (!$util.isString(message.pageToken)) return "pageToken: string expected"; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates a ListSessionEntityTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListTransitionRouteGroupsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest + * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest */ - ListSessionEntityTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest) + ListTransitionRouteGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.pageSize != null) message.pageSize = object.pageSize | 0; if (object.pageToken != null) message.pageToken = String(object.pageToken); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a ListSessionEntityTypesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListTransitionRouteGroupsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest} message ListSessionEntityTypesRequest + * @param {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest} message ListTransitionRouteGroupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListSessionEntityTypesRequest.toObject = function toObject(message, options) { + ListTransitionRouteGroupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -49105,6 +48695,7 @@ object.parent = ""; object.pageSize = 0; object.pageToken = ""; + object.languageCode = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; @@ -49112,43 +48703,45 @@ object.pageSize = message.pageSize; if (message.pageToken != null && message.hasOwnProperty("pageToken")) object.pageToken = message.pageToken; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this ListSessionEntityTypesRequest to JSON. + * Converts this ListTransitionRouteGroupsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @instance * @returns {Object.} JSON object */ - ListSessionEntityTypesRequest.prototype.toJSON = function toJSON() { + ListTransitionRouteGroupsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListSessionEntityTypesRequest; + return ListTransitionRouteGroupsRequest; })(); - v3.ListSessionEntityTypesResponse = (function() { + v3.ListTransitionRouteGroupsResponse = (function() { /** - * Properties of a ListSessionEntityTypesResponse. + * Properties of a ListTransitionRouteGroupsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListSessionEntityTypesResponse - * @property {Array.|null} [sessionEntityTypes] ListSessionEntityTypesResponse sessionEntityTypes - * @property {string|null} [nextPageToken] ListSessionEntityTypesResponse nextPageToken + * @interface IListTransitionRouteGroupsResponse + * @property {Array.|null} [transitionRouteGroups] ListTransitionRouteGroupsResponse transitionRouteGroups + * @property {string|null} [nextPageToken] ListTransitionRouteGroupsResponse nextPageToken */ /** - * Constructs a new ListSessionEntityTypesResponse. + * Constructs a new ListTransitionRouteGroupsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListSessionEntityTypesResponse. - * @implements IListSessionEntityTypesResponse + * @classdesc Represents a ListTransitionRouteGroupsResponse. + * @implements IListTransitionRouteGroupsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse=} [properties] Properties to set */ - function ListSessionEntityTypesResponse(properties) { - this.sessionEntityTypes = []; + function ListTransitionRouteGroupsResponse(properties) { + this.transitionRouteGroups = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49156,88 +48749,88 @@ } /** - * ListSessionEntityTypesResponse sessionEntityTypes. - * @member {Array.} sessionEntityTypes - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse + * ListTransitionRouteGroupsResponse transitionRouteGroups. + * @member {Array.} transitionRouteGroups + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @instance */ - ListSessionEntityTypesResponse.prototype.sessionEntityTypes = $util.emptyArray; + ListTransitionRouteGroupsResponse.prototype.transitionRouteGroups = $util.emptyArray; /** - * ListSessionEntityTypesResponse nextPageToken. + * ListTransitionRouteGroupsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @instance */ - ListSessionEntityTypesResponse.prototype.nextPageToken = ""; + ListTransitionRouteGroupsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListSessionEntityTypesResponse instance using the specified properties. + * Creates a new ListTransitionRouteGroupsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse instance + * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse instance */ - ListSessionEntityTypesResponse.create = function create(properties) { - return new ListSessionEntityTypesResponse(properties); + ListTransitionRouteGroupsResponse.create = function create(properties) { + return new ListTransitionRouteGroupsResponse(properties); }; /** - * Encodes the specified ListSessionEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse.verify|verify} messages. + * Encodes the specified ListTransitionRouteGroupsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse} message ListSessionEntityTypesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse} message ListTransitionRouteGroupsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSessionEntityTypesResponse.encode = function encode(message, writer) { + ListTransitionRouteGroupsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sessionEntityTypes != null && message.sessionEntityTypes.length) - for (var i = 0; i < message.sessionEntityTypes.length; ++i) - $root.google.cloud.dialogflow.cx.v3.SessionEntityType.encode(message.sessionEntityTypes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.transitionRouteGroups != null && message.transitionRouteGroups.length) + for (var i = 0; i < message.transitionRouteGroups.length; ++i) + $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.encode(message.transitionRouteGroups[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListSessionEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse.verify|verify} messages. + * Encodes the specified ListTransitionRouteGroupsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse} message ListSessionEntityTypesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse} message ListTransitionRouteGroupsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSessionEntityTypesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListTransitionRouteGroupsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer. + * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse + * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSessionEntityTypesResponse.decode = function decode(reader, length) { + ListTransitionRouteGroupsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.sessionEntityTypes && message.sessionEntityTypes.length)) - message.sessionEntityTypes = []; - message.sessionEntityTypes.push($root.google.cloud.dialogflow.cx.v3.SessionEntityType.decode(reader, reader.uint32())); + if (!(message.transitionRouteGroups && message.transitionRouteGroups.length)) + message.transitionRouteGroups = []; + message.transitionRouteGroups.push($root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.decode(reader, reader.uint32())); break; case 2: message.nextPageToken = reader.string(); @@ -49251,39 +48844,39 @@ }; /** - * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse + * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSessionEntityTypesResponse.decodeDelimited = function decodeDelimited(reader) { + ListTransitionRouteGroupsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListSessionEntityTypesResponse message. + * Verifies a ListTransitionRouteGroupsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListSessionEntityTypesResponse.verify = function verify(message) { + ListTransitionRouteGroupsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sessionEntityTypes != null && message.hasOwnProperty("sessionEntityTypes")) { - if (!Array.isArray(message.sessionEntityTypes)) - return "sessionEntityTypes: array expected"; - for (var i = 0; i < message.sessionEntityTypes.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.verify(message.sessionEntityTypes[i]); + if (message.transitionRouteGroups != null && message.hasOwnProperty("transitionRouteGroups")) { + if (!Array.isArray(message.transitionRouteGroups)) + return "transitionRouteGroups: array expected"; + for (var i = 0; i < message.transitionRouteGroups.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify(message.transitionRouteGroups[i]); if (error) - return "sessionEntityTypes." + error; + return "transitionRouteGroups." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -49293,53 +48886,53 @@ }; /** - * Creates a ListSessionEntityTypesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListTransitionRouteGroupsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse + * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse */ - ListSessionEntityTypesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse) + ListTransitionRouteGroupsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse(); - if (object.sessionEntityTypes) { - if (!Array.isArray(object.sessionEntityTypes)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse.sessionEntityTypes: array expected"); - message.sessionEntityTypes = []; - for (var i = 0; i < object.sessionEntityTypes.length; ++i) { - if (typeof object.sessionEntityTypes[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse.sessionEntityTypes: object expected"); - message.sessionEntityTypes[i] = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.fromObject(object.sessionEntityTypes[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; + var message = new $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse(); + if (object.transitionRouteGroups) { + if (!Array.isArray(object.transitionRouteGroups)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse.transitionRouteGroups: array expected"); + message.transitionRouteGroups = []; + for (var i = 0; i < object.transitionRouteGroups.length; ++i) { + if (typeof object.transitionRouteGroups[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse.transitionRouteGroups: object expected"); + message.transitionRouteGroups[i] = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.fromObject(object.transitionRouteGroups[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; /** - * Creates a plain object from a ListSessionEntityTypesResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListTransitionRouteGroupsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} message ListSessionEntityTypesResponse + * @param {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} message ListTransitionRouteGroupsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListSessionEntityTypesResponse.toObject = function toObject(message, options) { + ListTransitionRouteGroupsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.sessionEntityTypes = []; + object.transitionRouteGroups = []; if (options.defaults) object.nextPageToken = ""; - if (message.sessionEntityTypes && message.sessionEntityTypes.length) { - object.sessionEntityTypes = []; - for (var j = 0; j < message.sessionEntityTypes.length; ++j) - object.sessionEntityTypes[j] = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.toObject(message.sessionEntityTypes[j], options); + if (message.transitionRouteGroups && message.transitionRouteGroups.length) { + object.transitionRouteGroups = []; + for (var j = 0; j < message.transitionRouteGroups.length; ++j) + object.transitionRouteGroups[j] = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.toObject(message.transitionRouteGroups[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -49347,37 +48940,38 @@ }; /** - * Converts this ListSessionEntityTypesResponse to JSON. + * Converts this ListTransitionRouteGroupsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @instance * @returns {Object.} JSON object */ - ListSessionEntityTypesResponse.prototype.toJSON = function toJSON() { + ListTransitionRouteGroupsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListSessionEntityTypesResponse; + return ListTransitionRouteGroupsResponse; })(); - v3.GetSessionEntityTypeRequest = (function() { + v3.GetTransitionRouteGroupRequest = (function() { /** - * Properties of a GetSessionEntityTypeRequest. + * Properties of a GetTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IGetSessionEntityTypeRequest - * @property {string|null} [name] GetSessionEntityTypeRequest name + * @interface IGetTransitionRouteGroupRequest + * @property {string|null} [name] GetTransitionRouteGroupRequest name + * @property {string|null} [languageCode] GetTransitionRouteGroupRequest languageCode */ /** - * Constructs a new GetSessionEntityTypeRequest. + * Constructs a new GetTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a GetSessionEntityTypeRequest. - * @implements IGetSessionEntityTypeRequest + * @classdesc Represents a GetTransitionRouteGroupRequest. + * @implements IGetTransitionRouteGroupRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest=} [properties] Properties to set */ - function GetSessionEntityTypeRequest(properties) { + function GetTransitionRouteGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49385,76 +48979,89 @@ } /** - * GetSessionEntityTypeRequest name. + * GetTransitionRouteGroupRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @instance */ - GetSessionEntityTypeRequest.prototype.name = ""; + GetTransitionRouteGroupRequest.prototype.name = ""; /** - * Creates a new GetSessionEntityTypeRequest instance using the specified properties. + * GetTransitionRouteGroupRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest + * @instance + */ + GetTransitionRouteGroupRequest.prototype.languageCode = ""; + + /** + * Creates a new GetTransitionRouteGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest instance */ - GetSessionEntityTypeRequest.create = function create(properties) { - return new GetSessionEntityTypeRequest(properties); + GetTransitionRouteGroupRequest.create = function create(properties) { + return new GetTransitionRouteGroupRequest(properties); }; /** - * Encodes the specified GetSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified GetTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest} message GetSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest} message GetTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSessionEntityTypeRequest.encode = function encode(message, writer) { + GetTransitionRouteGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); return writer; }; /** - * Encodes the specified GetSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified GetTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest} message GetSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest} message GetTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer. + * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSessionEntityTypeRequest.decode = function decode(reader, length) { + GetTransitionRouteGroupRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; + case 2: + message.languageCode = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -49464,108 +49071,118 @@ }; /** - * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSessionEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + GetTransitionRouteGroupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetSessionEntityTypeRequest message. + * Verifies a GetTransitionRouteGroupRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSessionEntityTypeRequest.verify = function verify(message) { + GetTransitionRouteGroupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates a GetSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest */ - GetSessionEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest) + GetTransitionRouteGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest(); if (object.name != null) message.name = String(object.name); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a GetSessionEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetTransitionRouteGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest} message GetSessionEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest} message GetTransitionRouteGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSessionEntityTypeRequest.toObject = function toObject(message, options) { + GetTransitionRouteGroupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.name = ""; + object.languageCode = ""; + } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this GetSessionEntityTypeRequest to JSON. + * Converts this GetTransitionRouteGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @instance * @returns {Object.} JSON object */ - GetSessionEntityTypeRequest.prototype.toJSON = function toJSON() { + GetTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetSessionEntityTypeRequest; + return GetTransitionRouteGroupRequest; })(); - v3.CreateSessionEntityTypeRequest = (function() { + v3.CreateTransitionRouteGroupRequest = (function() { /** - * Properties of a CreateSessionEntityTypeRequest. + * Properties of a CreateTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ICreateSessionEntityTypeRequest - * @property {string|null} [parent] CreateSessionEntityTypeRequest parent - * @property {google.cloud.dialogflow.cx.v3.ISessionEntityType|null} [sessionEntityType] CreateSessionEntityTypeRequest sessionEntityType + * @interface ICreateTransitionRouteGroupRequest + * @property {string|null} [parent] CreateTransitionRouteGroupRequest parent + * @property {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null} [transitionRouteGroup] CreateTransitionRouteGroupRequest transitionRouteGroup + * @property {string|null} [languageCode] CreateTransitionRouteGroupRequest languageCode */ /** - * Constructs a new CreateSessionEntityTypeRequest. + * Constructs a new CreateTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CreateSessionEntityTypeRequest. - * @implements ICreateSessionEntityTypeRequest + * @classdesc Represents a CreateTransitionRouteGroupRequest. + * @implements ICreateTransitionRouteGroupRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest=} [properties] Properties to set */ - function CreateSessionEntityTypeRequest(properties) { + function CreateTransitionRouteGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49573,80 +49190,90 @@ } /** - * CreateSessionEntityTypeRequest parent. + * CreateTransitionRouteGroupRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @instance */ - CreateSessionEntityTypeRequest.prototype.parent = ""; + CreateTransitionRouteGroupRequest.prototype.parent = ""; /** - * CreateSessionEntityTypeRequest sessionEntityType. - * @member {google.cloud.dialogflow.cx.v3.ISessionEntityType|null|undefined} sessionEntityType - * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * CreateTransitionRouteGroupRequest transitionRouteGroup. + * @member {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null|undefined} transitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @instance */ - CreateSessionEntityTypeRequest.prototype.sessionEntityType = null; + CreateTransitionRouteGroupRequest.prototype.transitionRouteGroup = null; /** - * Creates a new CreateSessionEntityTypeRequest instance using the specified properties. + * CreateTransitionRouteGroupRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest + * @instance + */ + CreateTransitionRouteGroupRequest.prototype.languageCode = ""; + + /** + * Creates a new CreateTransitionRouteGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest instance */ - CreateSessionEntityTypeRequest.create = function create(properties) { - return new CreateSessionEntityTypeRequest(properties); + CreateTransitionRouteGroupRequest.create = function create(properties) { + return new CreateTransitionRouteGroupRequest(properties); }; /** - * Encodes the specified CreateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified CreateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest} message CreateSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest} message CreateTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateSessionEntityTypeRequest.encode = function encode(message, writer) { + CreateTransitionRouteGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.sessionEntityType != null && Object.hasOwnProperty.call(message, "sessionEntityType")) - $root.google.cloud.dialogflow.cx.v3.SessionEntityType.encode(message.sessionEntityType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.transitionRouteGroup != null && Object.hasOwnProperty.call(message, "transitionRouteGroup")) + $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.encode(message.transitionRouteGroup, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); return writer; }; /** - * Encodes the specified CreateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified CreateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest} message CreateSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest} message CreateTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer. + * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateSessionEntityTypeRequest.decode = function decode(reader, length) { + CreateTransitionRouteGroupRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -49654,7 +49281,10 @@ message.parent = reader.string(); break; case 2: - message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.decode(reader, reader.uint32()); + message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.decode(reader, reader.uint32()); + break; + case 3: + message.languageCode = reader.string(); break; default: reader.skipType(tag & 7); @@ -49665,122 +49295,131 @@ }; /** - * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateSessionEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + CreateTransitionRouteGroupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateSessionEntityTypeRequest message. + * Verifies a CreateTransitionRouteGroupRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateSessionEntityTypeRequest.verify = function verify(message) { + CreateTransitionRouteGroupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) { - var error = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.verify(message.sessionEntityType); + if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) { + var error = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify(message.transitionRouteGroup); if (error) - return "sessionEntityType." + error; + return "transitionRouteGroup." + error; } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates a CreateSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest */ - CreateSessionEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest) + CreateTransitionRouteGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.sessionEntityType != null) { - if (typeof object.sessionEntityType !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest.sessionEntityType: object expected"); - message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.fromObject(object.sessionEntityType); + if (object.transitionRouteGroup != null) { + if (typeof object.transitionRouteGroup !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest.transitionRouteGroup: object expected"); + message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.fromObject(object.transitionRouteGroup); } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a CreateSessionEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateTransitionRouteGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest} message CreateSessionEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest} message CreateTransitionRouteGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateSessionEntityTypeRequest.toObject = function toObject(message, options) { + CreateTransitionRouteGroupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.sessionEntityType = null; + object.transitionRouteGroup = null; + object.languageCode = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) - object.sessionEntityType = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.toObject(message.sessionEntityType, options); + if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) + object.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.toObject(message.transitionRouteGroup, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this CreateSessionEntityTypeRequest to JSON. + * Converts this CreateTransitionRouteGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @instance * @returns {Object.} JSON object */ - CreateSessionEntityTypeRequest.prototype.toJSON = function toJSON() { + CreateTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateSessionEntityTypeRequest; + return CreateTransitionRouteGroupRequest; })(); - v3.UpdateSessionEntityTypeRequest = (function() { + v3.UpdateTransitionRouteGroupRequest = (function() { /** - * Properties of an UpdateSessionEntityTypeRequest. + * Properties of an UpdateTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IUpdateSessionEntityTypeRequest - * @property {google.cloud.dialogflow.cx.v3.ISessionEntityType|null} [sessionEntityType] UpdateSessionEntityTypeRequest sessionEntityType - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSessionEntityTypeRequest updateMask + * @interface IUpdateTransitionRouteGroupRequest + * @property {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null} [transitionRouteGroup] UpdateTransitionRouteGroupRequest transitionRouteGroup + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateTransitionRouteGroupRequest updateMask + * @property {string|null} [languageCode] UpdateTransitionRouteGroupRequest languageCode */ /** - * Constructs a new UpdateSessionEntityTypeRequest. + * Constructs a new UpdateTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an UpdateSessionEntityTypeRequest. - * @implements IUpdateSessionEntityTypeRequest + * @classdesc Represents an UpdateTransitionRouteGroupRequest. + * @implements IUpdateTransitionRouteGroupRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest=} [properties] Properties to set */ - function UpdateSessionEntityTypeRequest(properties) { + function UpdateTransitionRouteGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49788,89 +49427,102 @@ } /** - * UpdateSessionEntityTypeRequest sessionEntityType. - * @member {google.cloud.dialogflow.cx.v3.ISessionEntityType|null|undefined} sessionEntityType - * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest + * UpdateTransitionRouteGroupRequest transitionRouteGroup. + * @member {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null|undefined} transitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @instance */ - UpdateSessionEntityTypeRequest.prototype.sessionEntityType = null; + UpdateTransitionRouteGroupRequest.prototype.transitionRouteGroup = null; /** - * UpdateSessionEntityTypeRequest updateMask. + * UpdateTransitionRouteGroupRequest updateMask. * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @instance */ - UpdateSessionEntityTypeRequest.prototype.updateMask = null; + UpdateTransitionRouteGroupRequest.prototype.updateMask = null; /** - * Creates a new UpdateSessionEntityTypeRequest instance using the specified properties. + * UpdateTransitionRouteGroupRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest + * @instance + */ + UpdateTransitionRouteGroupRequest.prototype.languageCode = ""; + + /** + * Creates a new UpdateTransitionRouteGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest instance */ - UpdateSessionEntityTypeRequest.create = function create(properties) { - return new UpdateSessionEntityTypeRequest(properties); + UpdateTransitionRouteGroupRequest.create = function create(properties) { + return new UpdateTransitionRouteGroupRequest(properties); }; /** - * Encodes the specified UpdateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified UpdateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest} message UpdateSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest} message UpdateTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateSessionEntityTypeRequest.encode = function encode(message, writer) { + UpdateTransitionRouteGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sessionEntityType != null && Object.hasOwnProperty.call(message, "sessionEntityType")) - $root.google.cloud.dialogflow.cx.v3.SessionEntityType.encode(message.sessionEntityType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.transitionRouteGroup != null && Object.hasOwnProperty.call(message, "transitionRouteGroup")) + $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.encode(message.transitionRouteGroup, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); return writer; }; /** - * Encodes the specified UpdateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified UpdateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest} message UpdateSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest} message UpdateTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer. + * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateSessionEntityTypeRequest.decode = function decode(reader, length) { + UpdateTransitionRouteGroupRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.decode(reader, reader.uint32()); + message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.decode(reader, reader.uint32()); break; case 2: message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; + case 3: + message.languageCode = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -49880,126 +49532,135 @@ }; /** - * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateSessionEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateTransitionRouteGroupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateSessionEntityTypeRequest message. + * Verifies an UpdateTransitionRouteGroupRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateSessionEntityTypeRequest.verify = function verify(message) { + UpdateTransitionRouteGroupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) { - var error = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.verify(message.sessionEntityType); + if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) { + var error = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify(message.transitionRouteGroup); if (error) - return "sessionEntityType." + error; + return "transitionRouteGroup." + error; } if (message.updateMask != null && message.hasOwnProperty("updateMask")) { var error = $root.google.protobuf.FieldMask.verify(message.updateMask); if (error) return "updateMask." + error; } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates an UpdateSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest */ - UpdateSessionEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest) + UpdateTransitionRouteGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest(); - if (object.sessionEntityType != null) { - if (typeof object.sessionEntityType !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest.sessionEntityType: object expected"); - message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.fromObject(object.sessionEntityType); + var message = new $root.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest(); + if (object.transitionRouteGroup != null) { + if (typeof object.transitionRouteGroup !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest.transitionRouteGroup: object expected"); + message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.fromObject(object.transitionRouteGroup); } if (object.updateMask != null) { if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest.updateMask: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest.updateMask: object expected"); message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from an UpdateSessionEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateTransitionRouteGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest} message UpdateSessionEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest} message UpdateTransitionRouteGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateSessionEntityTypeRequest.toObject = function toObject(message, options) { + UpdateTransitionRouteGroupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.sessionEntityType = null; + object.transitionRouteGroup = null; object.updateMask = null; + object.languageCode = ""; } - if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) - object.sessionEntityType = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.toObject(message.sessionEntityType, options); + if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) + object.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.toObject(message.transitionRouteGroup, options); if (message.updateMask != null && message.hasOwnProperty("updateMask")) object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this UpdateSessionEntityTypeRequest to JSON. + * Converts this UpdateTransitionRouteGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @instance * @returns {Object.} JSON object */ - UpdateSessionEntityTypeRequest.prototype.toJSON = function toJSON() { + UpdateTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateSessionEntityTypeRequest; + return UpdateTransitionRouteGroupRequest; })(); - v3.DeleteSessionEntityTypeRequest = (function() { + v3.DeleteTransitionRouteGroupRequest = (function() { /** - * Properties of a DeleteSessionEntityTypeRequest. + * Properties of a DeleteTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDeleteSessionEntityTypeRequest - * @property {string|null} [name] DeleteSessionEntityTypeRequest name + * @interface IDeleteTransitionRouteGroupRequest + * @property {string|null} [name] DeleteTransitionRouteGroupRequest name + * @property {boolean|null} [force] DeleteTransitionRouteGroupRequest force */ /** - * Constructs a new DeleteSessionEntityTypeRequest. + * Constructs a new DeleteTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DeleteSessionEntityTypeRequest. - * @implements IDeleteSessionEntityTypeRequest + * @classdesc Represents a DeleteTransitionRouteGroupRequest. + * @implements IDeleteTransitionRouteGroupRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest=} [properties] Properties to set */ - function DeleteSessionEntityTypeRequest(properties) { + function DeleteTransitionRouteGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -50007,76 +49668,89 @@ } /** - * DeleteSessionEntityTypeRequest name. + * DeleteTransitionRouteGroupRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @instance */ - DeleteSessionEntityTypeRequest.prototype.name = ""; + DeleteTransitionRouteGroupRequest.prototype.name = ""; /** - * Creates a new DeleteSessionEntityTypeRequest instance using the specified properties. + * DeleteTransitionRouteGroupRequest force. + * @member {boolean} force + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest + * @instance + */ + DeleteTransitionRouteGroupRequest.prototype.force = false; + + /** + * Creates a new DeleteTransitionRouteGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest instance */ - DeleteSessionEntityTypeRequest.create = function create(properties) { - return new DeleteSessionEntityTypeRequest(properties); + DeleteTransitionRouteGroupRequest.create = function create(properties) { + return new DeleteTransitionRouteGroupRequest(properties); }; /** - * Encodes the specified DeleteSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified DeleteTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest} message DeleteSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest} message DeleteTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteSessionEntityTypeRequest.encode = function encode(message, writer) { + DeleteTransitionRouteGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); return writer; }; /** - * Encodes the specified DeleteSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified DeleteTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest} message DeleteSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest} message DeleteTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer. + * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteSessionEntityTypeRequest.decode = function decode(reader, length) { + DeleteTransitionRouteGroupRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; + case 2: + message.force = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -50086,310 +49760,397 @@ }; /** - * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteSessionEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteTransitionRouteGroupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteSessionEntityTypeRequest message. + * Verifies a DeleteTransitionRouteGroupRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteSessionEntityTypeRequest.verify = function verify(message) { + DeleteTransitionRouteGroupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; return null; }; /** - * Creates a DeleteSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest */ - DeleteSessionEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest) + DeleteTransitionRouteGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest(); if (object.name != null) message.name = String(object.name); + if (object.force != null) + message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from a DeleteSessionEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteTransitionRouteGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest} message DeleteSessionEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest} message DeleteTransitionRouteGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteSessionEntityTypeRequest.toObject = function toObject(message, options) { + DeleteTransitionRouteGroupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.name = ""; + object.force = false; + } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; return object; }; /** - * Converts this DeleteSessionEntityTypeRequest to JSON. + * Converts this DeleteTransitionRouteGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @instance * @returns {Object.} JSON object */ - DeleteSessionEntityTypeRequest.prototype.toJSON = function toJSON() { + DeleteTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteSessionEntityTypeRequest; + return DeleteTransitionRouteGroupRequest; })(); - v3.TransitionRouteGroups = (function() { + v3.Experiments = (function() { /** - * Constructs a new TransitionRouteGroups service. + * Constructs a new Experiments service. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a TransitionRouteGroups + * @classdesc Represents an Experiments * @extends $protobuf.rpc.Service * @constructor * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - function TransitionRouteGroups(rpcImpl, requestDelimited, responseDelimited) { + function Experiments(rpcImpl, requestDelimited, responseDelimited) { $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - (TransitionRouteGroups.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = TransitionRouteGroups; + (Experiments.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Experiments; /** - * Creates new TransitionRouteGroups service using the specified rpc implementation. + * Creates new Experiments service using the specified rpc implementation. * @function create - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * @memberof google.cloud.dialogflow.cx.v3.Experiments * @static * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {TransitionRouteGroups} RPC service. Useful where requests and/or responses are streamed. + * @returns {Experiments} RPC service. Useful where requests and/or responses are streamed. */ - TransitionRouteGroups.create = function create(rpcImpl, requestDelimited, responseDelimited) { + Experiments.create = function create(rpcImpl, requestDelimited, responseDelimited) { return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#listTransitionRouteGroups}. - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups - * @typedef ListTransitionRouteGroupsCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#listExperiments}. + * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @typedef ListExperimentsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} [response] ListTransitionRouteGroupsResponse + * @param {google.cloud.dialogflow.cx.v3.ListExperimentsResponse} [response] ListExperimentsResponse */ /** - * Calls ListTransitionRouteGroups. - * @function listTransitionRouteGroups - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * Calls ListExperiments. + * @function listExperiments + * @memberof google.cloud.dialogflow.cx.v3.Experiments * @instance - * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest} request ListTransitionRouteGroupsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroupsCallback} callback Node-style callback called with the error, if any, and ListTransitionRouteGroupsResponse + * @param {google.cloud.dialogflow.cx.v3.IListExperimentsRequest} request ListExperimentsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Experiments.ListExperimentsCallback} callback Node-style callback called with the error, if any, and ListExperimentsResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(TransitionRouteGroups.prototype.listTransitionRouteGroups = function listTransitionRouteGroups(request, callback) { - return this.rpcCall(listTransitionRouteGroups, $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest, $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse, request, callback); - }, "name", { value: "ListTransitionRouteGroups" }); + Object.defineProperty(Experiments.prototype.listExperiments = function listExperiments(request, callback) { + return this.rpcCall(listExperiments, $root.google.cloud.dialogflow.cx.v3.ListExperimentsRequest, $root.google.cloud.dialogflow.cx.v3.ListExperimentsResponse, request, callback); + }, "name", { value: "ListExperiments" }); /** - * Calls ListTransitionRouteGroups. - * @function listTransitionRouteGroups - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * Calls ListExperiments. + * @function listExperiments + * @memberof google.cloud.dialogflow.cx.v3.Experiments * @instance - * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest} request ListTransitionRouteGroupsRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IListExperimentsRequest} request ListExperimentsRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#getTransitionRouteGroup}. - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups - * @typedef GetTransitionRouteGroupCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#getExperiment}. + * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @typedef GetExperimentCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} [response] TransitionRouteGroup + * @param {google.cloud.dialogflow.cx.v3.Experiment} [response] Experiment */ /** - * Calls GetTransitionRouteGroup. - * @function getTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * Calls GetExperiment. + * @function getExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest} request GetTransitionRouteGroupRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroups.GetTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and TransitionRouteGroup + * @param {google.cloud.dialogflow.cx.v3.IGetExperimentRequest} request GetExperimentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Experiments.GetExperimentCallback} callback Node-style callback called with the error, if any, and Experiment * @returns {undefined} * @variation 1 */ - Object.defineProperty(TransitionRouteGroups.prototype.getTransitionRouteGroup = function getTransitionRouteGroup(request, callback) { - return this.rpcCall(getTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest, $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup, request, callback); - }, "name", { value: "GetTransitionRouteGroup" }); + Object.defineProperty(Experiments.prototype.getExperiment = function getExperiment(request, callback) { + return this.rpcCall(getExperiment, $root.google.cloud.dialogflow.cx.v3.GetExperimentRequest, $root.google.cloud.dialogflow.cx.v3.Experiment, request, callback); + }, "name", { value: "GetExperiment" }); /** - * Calls GetTransitionRouteGroup. - * @function getTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * Calls GetExperiment. + * @function getExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest} request GetTransitionRouteGroupRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IGetExperimentRequest} request GetExperimentRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#createTransitionRouteGroup}. - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups - * @typedef CreateTransitionRouteGroupCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#createExperiment}. + * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @typedef CreateExperimentCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} [response] TransitionRouteGroup + * @param {google.cloud.dialogflow.cx.v3.Experiment} [response] Experiment */ /** - * Calls CreateTransitionRouteGroup. - * @function createTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * Calls CreateExperiment. + * @function createExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest} request CreateTransitionRouteGroupRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and TransitionRouteGroup + * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest} request CreateExperimentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Experiments.CreateExperimentCallback} callback Node-style callback called with the error, if any, and Experiment * @returns {undefined} * @variation 1 */ - Object.defineProperty(TransitionRouteGroups.prototype.createTransitionRouteGroup = function createTransitionRouteGroup(request, callback) { - return this.rpcCall(createTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest, $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup, request, callback); - }, "name", { value: "CreateTransitionRouteGroup" }); + Object.defineProperty(Experiments.prototype.createExperiment = function createExperiment(request, callback) { + return this.rpcCall(createExperiment, $root.google.cloud.dialogflow.cx.v3.CreateExperimentRequest, $root.google.cloud.dialogflow.cx.v3.Experiment, request, callback); + }, "name", { value: "CreateExperiment" }); /** - * Calls CreateTransitionRouteGroup. - * @function createTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * Calls CreateExperiment. + * @function createExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest} request CreateTransitionRouteGroupRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest} request CreateExperimentRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#updateTransitionRouteGroup}. - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups - * @typedef UpdateTransitionRouteGroupCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#updateExperiment}. + * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @typedef UpdateExperimentCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} [response] TransitionRouteGroup + * @param {google.cloud.dialogflow.cx.v3.Experiment} [response] Experiment */ /** - * Calls UpdateTransitionRouteGroup. - * @function updateTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * Calls UpdateExperiment. + * @function updateExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest} request UpdateTransitionRouteGroupRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroups.UpdateTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and TransitionRouteGroup + * @param {google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest} request UpdateExperimentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Experiments.UpdateExperimentCallback} callback Node-style callback called with the error, if any, and Experiment * @returns {undefined} * @variation 1 */ - Object.defineProperty(TransitionRouteGroups.prototype.updateTransitionRouteGroup = function updateTransitionRouteGroup(request, callback) { - return this.rpcCall(updateTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest, $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup, request, callback); - }, "name", { value: "UpdateTransitionRouteGroup" }); + Object.defineProperty(Experiments.prototype.updateExperiment = function updateExperiment(request, callback) { + return this.rpcCall(updateExperiment, $root.google.cloud.dialogflow.cx.v3.UpdateExperimentRequest, $root.google.cloud.dialogflow.cx.v3.Experiment, request, callback); + }, "name", { value: "UpdateExperiment" }); /** - * Calls UpdateTransitionRouteGroup. - * @function updateTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * Calls UpdateExperiment. + * @function updateExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest} request UpdateTransitionRouteGroupRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest} request UpdateExperimentRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#deleteTransitionRouteGroup}. - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups - * @typedef DeleteTransitionRouteGroupCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#deleteExperiment}. + * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @typedef DeleteExperimentCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.protobuf.Empty} [response] Empty */ /** - * Calls DeleteTransitionRouteGroup. - * @function deleteTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * Calls DeleteExperiment. + * @function deleteExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest} request DeleteTransitionRouteGroupRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroups.DeleteTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and Empty + * @param {google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest} request DeleteExperimentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Experiments.DeleteExperimentCallback} callback Node-style callback called with the error, if any, and Empty * @returns {undefined} * @variation 1 */ - Object.defineProperty(TransitionRouteGroups.prototype.deleteTransitionRouteGroup = function deleteTransitionRouteGroup(request, callback) { - return this.rpcCall(deleteTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteTransitionRouteGroup" }); + Object.defineProperty(Experiments.prototype.deleteExperiment = function deleteExperiment(request, callback) { + return this.rpcCall(deleteExperiment, $root.google.cloud.dialogflow.cx.v3.DeleteExperimentRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteExperiment" }); /** - * Calls DeleteTransitionRouteGroup. - * @function deleteTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * Calls DeleteExperiment. + * @function deleteExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest} request DeleteTransitionRouteGroupRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest} request DeleteExperimentRequest message or plain object * @returns {Promise} Promise * @variation 2 */ - return TransitionRouteGroups; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#startExperiment}. + * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @typedef StartExperimentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.Experiment} [response] Experiment + */ + + /** + * Calls StartExperiment. + * @function startExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3.IStartExperimentRequest} request StartExperimentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Experiments.StartExperimentCallback} callback Node-style callback called with the error, if any, and Experiment + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Experiments.prototype.startExperiment = function startExperiment(request, callback) { + return this.rpcCall(startExperiment, $root.google.cloud.dialogflow.cx.v3.StartExperimentRequest, $root.google.cloud.dialogflow.cx.v3.Experiment, request, callback); + }, "name", { value: "StartExperiment" }); + + /** + * Calls StartExperiment. + * @function startExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3.IStartExperimentRequest} request StartExperimentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#stopExperiment}. + * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @typedef StopExperimentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.Experiment} [response] Experiment + */ + + /** + * Calls StopExperiment. + * @function stopExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest} request StopExperimentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Experiments.StopExperimentCallback} callback Node-style callback called with the error, if any, and Experiment + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Experiments.prototype.stopExperiment = function stopExperiment(request, callback) { + return this.rpcCall(stopExperiment, $root.google.cloud.dialogflow.cx.v3.StopExperimentRequest, $root.google.cloud.dialogflow.cx.v3.Experiment, request, callback); + }, "name", { value: "StopExperiment" }); + + /** + * Calls StopExperiment. + * @function stopExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest} request StopExperimentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Experiments; })(); - v3.TransitionRouteGroup = (function() { + v3.Experiment = (function() { /** - * Properties of a TransitionRouteGroup. + * Properties of an Experiment. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ITransitionRouteGroup - * @property {string|null} [name] TransitionRouteGroup name - * @property {string|null} [displayName] TransitionRouteGroup displayName - * @property {Array.|null} [transitionRoutes] TransitionRouteGroup transitionRoutes + * @interface IExperiment + * @property {string|null} [name] Experiment name + * @property {string|null} [displayName] Experiment displayName + * @property {string|null} [description] Experiment description + * @property {google.cloud.dialogflow.cx.v3.Experiment.State|null} [state] Experiment state + * @property {google.cloud.dialogflow.cx.v3.Experiment.IDefinition|null} [definition] Experiment definition + * @property {google.cloud.dialogflow.cx.v3.IRolloutConfig|null} [rolloutConfig] Experiment rolloutConfig + * @property {google.cloud.dialogflow.cx.v3.IRolloutState|null} [rolloutState] Experiment rolloutState + * @property {string|null} [rolloutFailureReason] Experiment rolloutFailureReason + * @property {google.cloud.dialogflow.cx.v3.Experiment.IResult|null} [result] Experiment result + * @property {google.protobuf.ITimestamp|null} [createTime] Experiment createTime + * @property {google.protobuf.ITimestamp|null} [startTime] Experiment startTime + * @property {google.protobuf.ITimestamp|null} [endTime] Experiment endTime + * @property {google.protobuf.ITimestamp|null} [lastUpdateTime] Experiment lastUpdateTime + * @property {google.protobuf.IDuration|null} [experimentLength] Experiment experimentLength + * @property {Array.|null} [variantsHistory] Experiment variantsHistory */ /** - * Constructs a new TransitionRouteGroup. + * Constructs a new Experiment. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a TransitionRouteGroup. - * @implements ITransitionRouteGroup + * @classdesc Represents an Experiment. + * @implements IExperiment * @constructor - * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IExperiment=} [properties] Properties to set */ - function TransitionRouteGroup(properties) { - this.transitionRoutes = []; + function Experiment(properties) { + this.variantsHistory = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -50397,368 +50158,260 @@ } /** - * TransitionRouteGroup name. + * Experiment name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @instance */ - TransitionRouteGroup.prototype.name = ""; + Experiment.prototype.name = ""; /** - * TransitionRouteGroup displayName. + * Experiment displayName. * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @instance */ - TransitionRouteGroup.prototype.displayName = ""; + Experiment.prototype.displayName = ""; /** - * TransitionRouteGroup transitionRoutes. - * @member {Array.} transitionRoutes - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup + * Experiment description. + * @member {string} description + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @instance */ - TransitionRouteGroup.prototype.transitionRoutes = $util.emptyArray; + Experiment.prototype.description = ""; /** - * Creates a new TransitionRouteGroup instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup - * @static - * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} TransitionRouteGroup instance + * Experiment state. + * @member {google.cloud.dialogflow.cx.v3.Experiment.State} state + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @instance */ - TransitionRouteGroup.create = function create(properties) { - return new TransitionRouteGroup(properties); - }; + Experiment.prototype.state = 0; /** - * Encodes the specified TransitionRouteGroup message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup - * @static - * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup} message TransitionRouteGroup message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Experiment definition. + * @member {google.cloud.dialogflow.cx.v3.Experiment.IDefinition|null|undefined} definition + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @instance */ - TransitionRouteGroup.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.transitionRoutes != null && message.transitionRoutes.length) - for (var i = 0; i < message.transitionRoutes.length; ++i) - $root.google.cloud.dialogflow.cx.v3.TransitionRoute.encode(message.transitionRoutes[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; + Experiment.prototype.definition = null; /** - * Encodes the specified TransitionRouteGroup message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup - * @static - * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup} message TransitionRouteGroup message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Experiment rolloutConfig. + * @member {google.cloud.dialogflow.cx.v3.IRolloutConfig|null|undefined} rolloutConfig + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @instance */ - TransitionRouteGroup.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Experiment.prototype.rolloutConfig = null; /** - * Decodes a TransitionRouteGroup message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} TransitionRouteGroup - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Experiment rolloutState. + * @member {google.cloud.dialogflow.cx.v3.IRolloutState|null|undefined} rolloutState + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @instance */ - TransitionRouteGroup.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.displayName = reader.string(); - break; - case 5: - if (!(message.transitionRoutes && message.transitionRoutes.length)) - message.transitionRoutes = []; - message.transitionRoutes.push($root.google.cloud.dialogflow.cx.v3.TransitionRoute.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a TransitionRouteGroup message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} TransitionRouteGroup - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TransitionRouteGroup.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TransitionRouteGroup message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TransitionRouteGroup.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.transitionRoutes != null && message.hasOwnProperty("transitionRoutes")) { - if (!Array.isArray(message.transitionRoutes)) - return "transitionRoutes: array expected"; - for (var i = 0; i < message.transitionRoutes.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.verify(message.transitionRoutes[i]); - if (error) - return "transitionRoutes." + error; - } - } - return null; - }; - - /** - * Creates a TransitionRouteGroup message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} TransitionRouteGroup - */ - TransitionRouteGroup.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.transitionRoutes) { - if (!Array.isArray(object.transitionRoutes)) - throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRouteGroup.transitionRoutes: array expected"); - message.transitionRoutes = []; - for (var i = 0; i < object.transitionRoutes.length; ++i) { - if (typeof object.transitionRoutes[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRouteGroup.transitionRoutes: object expected"); - message.transitionRoutes[i] = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.fromObject(object.transitionRoutes[i]); - } - } - return message; - }; + Experiment.prototype.rolloutState = null; /** - * Creates a plain object from a TransitionRouteGroup message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup - * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} message TransitionRouteGroup - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Experiment rolloutFailureReason. + * @member {string} rolloutFailureReason + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @instance */ - TransitionRouteGroup.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.transitionRoutes = []; - if (options.defaults) { - object.name = ""; - object.displayName = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.transitionRoutes && message.transitionRoutes.length) { - object.transitionRoutes = []; - for (var j = 0; j < message.transitionRoutes.length; ++j) - object.transitionRoutes[j] = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.toObject(message.transitionRoutes[j], options); - } - return object; - }; + Experiment.prototype.rolloutFailureReason = ""; /** - * Converts this TransitionRouteGroup to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup + * Experiment result. + * @member {google.cloud.dialogflow.cx.v3.Experiment.IResult|null|undefined} result + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @instance - * @returns {Object.} JSON object */ - TransitionRouteGroup.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return TransitionRouteGroup; - })(); - - v3.ListTransitionRouteGroupsRequest = (function() { + Experiment.prototype.result = null; /** - * Properties of a ListTransitionRouteGroupsRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListTransitionRouteGroupsRequest - * @property {string|null} [parent] ListTransitionRouteGroupsRequest parent - * @property {number|null} [pageSize] ListTransitionRouteGroupsRequest pageSize - * @property {string|null} [pageToken] ListTransitionRouteGroupsRequest pageToken - * @property {string|null} [languageCode] ListTransitionRouteGroupsRequest languageCode + * Experiment createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @instance */ + Experiment.prototype.createTime = null; /** - * Constructs a new ListTransitionRouteGroupsRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListTransitionRouteGroupsRequest. - * @implements IListTransitionRouteGroupsRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest=} [properties] Properties to set + * Experiment startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @instance */ - function ListTransitionRouteGroupsRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Experiment.prototype.startTime = null; /** - * ListTransitionRouteGroupsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * Experiment endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @instance */ - ListTransitionRouteGroupsRequest.prototype.parent = ""; + Experiment.prototype.endTime = null; /** - * ListTransitionRouteGroupsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * Experiment lastUpdateTime. + * @member {google.protobuf.ITimestamp|null|undefined} lastUpdateTime + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @instance */ - ListTransitionRouteGroupsRequest.prototype.pageSize = 0; + Experiment.prototype.lastUpdateTime = null; /** - * ListTransitionRouteGroupsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * Experiment experimentLength. + * @member {google.protobuf.IDuration|null|undefined} experimentLength + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @instance */ - ListTransitionRouteGroupsRequest.prototype.pageToken = ""; + Experiment.prototype.experimentLength = null; /** - * ListTransitionRouteGroupsRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * Experiment variantsHistory. + * @member {Array.} variantsHistory + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @instance */ - ListTransitionRouteGroupsRequest.prototype.languageCode = ""; + Experiment.prototype.variantsHistory = $util.emptyArray; /** - * Creates a new ListTransitionRouteGroupsRequest instance using the specified properties. + * Creates a new Experiment instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @static - * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest instance + * @param {google.cloud.dialogflow.cx.v3.IExperiment=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Experiment} Experiment instance */ - ListTransitionRouteGroupsRequest.create = function create(properties) { - return new ListTransitionRouteGroupsRequest(properties); + Experiment.create = function create(properties) { + return new Experiment(properties); }; /** - * Encodes the specified ListTransitionRouteGroupsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest.verify|verify} messages. + * Encodes the specified Experiment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @static - * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest} message ListTransitionRouteGroupsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IExperiment} message Experiment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTransitionRouteGroupsRequest.encode = function encode(message, writer) { + Experiment.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.languageCode); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state); + if (message.definition != null && Object.hasOwnProperty.call(message, "definition")) + $root.google.cloud.dialogflow.cx.v3.Experiment.Definition.encode(message.definition, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.google.cloud.dialogflow.cx.v3.Experiment.Result.encode(message.result, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.lastUpdateTime != null && Object.hasOwnProperty.call(message, "lastUpdateTime")) + $root.google.protobuf.Timestamp.encode(message.lastUpdateTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.experimentLength != null && Object.hasOwnProperty.call(message, "experimentLength")) + $root.google.protobuf.Duration.encode(message.experimentLength, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.variantsHistory != null && message.variantsHistory.length) + for (var i = 0; i < message.variantsHistory.length; ++i) + $root.google.cloud.dialogflow.cx.v3.VariantsHistory.encode(message.variantsHistory[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.rolloutConfig != null && Object.hasOwnProperty.call(message, "rolloutConfig")) + $root.google.cloud.dialogflow.cx.v3.RolloutConfig.encode(message.rolloutConfig, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.rolloutState != null && Object.hasOwnProperty.call(message, "rolloutState")) + $root.google.cloud.dialogflow.cx.v3.RolloutState.encode(message.rolloutState, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.rolloutFailureReason != null && Object.hasOwnProperty.call(message, "rolloutFailureReason")) + writer.uint32(/* id 16, wireType 2 =*/130).string(message.rolloutFailureReason); return writer; }; /** - * Encodes the specified ListTransitionRouteGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest.verify|verify} messages. + * Encodes the specified Experiment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @static - * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest} message ListTransitionRouteGroupsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IExperiment} message Experiment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTransitionRouteGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + Experiment.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer. + * Decodes an Experiment message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest + * @returns {google.cloud.dialogflow.cx.v3.Experiment} Experiment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTransitionRouteGroupsRequest.decode = function decode(reader, length) { + Experiment.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Experiment(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.name = reader.string(); break; case 2: - message.pageSize = reader.int32(); + message.displayName = reader.string(); break; case 3: - message.pageToken = reader.string(); + message.description = reader.string(); break; case 4: - message.languageCode = reader.string(); + message.state = reader.int32(); + break; + case 5: + message.definition = $root.google.cloud.dialogflow.cx.v3.Experiment.Definition.decode(reader, reader.uint32()); + break; + case 14: + message.rolloutConfig = $root.google.cloud.dialogflow.cx.v3.RolloutConfig.decode(reader, reader.uint32()); + break; + case 15: + message.rolloutState = $root.google.cloud.dialogflow.cx.v3.RolloutState.decode(reader, reader.uint32()); + break; + case 16: + message.rolloutFailureReason = reader.string(); + break; + case 6: + message.result = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.decode(reader, reader.uint32()); + break; + case 7: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 8: + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 9: + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 10: + message.lastUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 11: + message.experimentLength = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 12: + if (!(message.variantsHistory && message.variantsHistory.length)) + message.variantsHistory = []; + message.variantsHistory.push($root.google.cloud.dialogflow.cx.v3.VariantsHistory.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -50769,1622 +50422,1791 @@ }; /** - * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer, length delimited. + * Decodes an Experiment message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest + * @returns {google.cloud.dialogflow.cx.v3.Experiment} Experiment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTransitionRouteGroupsRequest.decodeDelimited = function decodeDelimited(reader) { + Experiment.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTransitionRouteGroupsRequest message. + * Verifies an Experiment message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTransitionRouteGroupsRequest.verify = function verify(message) { + Experiment.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.definition != null && message.hasOwnProperty("definition")) { + var error = $root.google.cloud.dialogflow.cx.v3.Experiment.Definition.verify(message.definition); + if (error) + return "definition." + error; + } + if (message.rolloutConfig != null && message.hasOwnProperty("rolloutConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3.RolloutConfig.verify(message.rolloutConfig); + if (error) + return "rolloutConfig." + error; + } + if (message.rolloutState != null && message.hasOwnProperty("rolloutState")) { + var error = $root.google.cloud.dialogflow.cx.v3.RolloutState.verify(message.rolloutState); + if (error) + return "rolloutState." + error; + } + if (message.rolloutFailureReason != null && message.hasOwnProperty("rolloutFailureReason")) + if (!$util.isString(message.rolloutFailureReason)) + return "rolloutFailureReason: string expected"; + if (message.result != null && message.hasOwnProperty("result")) { + var error = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.verify(message.result); + if (error) + return "result." + error; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.lastUpdateTime); + if (error) + return "lastUpdateTime." + error; + } + if (message.experimentLength != null && message.hasOwnProperty("experimentLength")) { + var error = $root.google.protobuf.Duration.verify(message.experimentLength); + if (error) + return "experimentLength." + error; + } + if (message.variantsHistory != null && message.hasOwnProperty("variantsHistory")) { + if (!Array.isArray(message.variantsHistory)) + return "variantsHistory: array expected"; + for (var i = 0; i < message.variantsHistory.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.VariantsHistory.verify(message.variantsHistory[i]); + if (error) + return "variantsHistory." + error; + } + } return null; }; /** - * Creates a ListTransitionRouteGroupsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an Experiment message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest + * @returns {google.cloud.dialogflow.cx.v3.Experiment} Experiment */ - ListTransitionRouteGroupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest) + Experiment.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); - return message; - }; - - /** - * Creates a plain object from a ListTransitionRouteGroupsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest} message ListTransitionRouteGroupsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListTransitionRouteGroupsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.languageCode = ""; + var message = new $root.google.cloud.dialogflow.cx.v3.Experiment(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.description != null) + message.description = String(object.description); + switch (object.state) { + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "DRAFT": + case 1: + message.state = 1; + break; + case "RUNNING": + case 2: + message.state = 2; + break; + case "DONE": + case 3: + message.state = 3; + break; + case "ROLLOUT_FAILED": + case 4: + message.state = 4; + break; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; - return object; - }; - - /** - * Converts this ListTransitionRouteGroupsRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest - * @instance - * @returns {Object.} JSON object - */ - ListTransitionRouteGroupsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ListTransitionRouteGroupsRequest; - })(); - - v3.ListTransitionRouteGroupsResponse = (function() { - - /** - * Properties of a ListTransitionRouteGroupsResponse. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListTransitionRouteGroupsResponse - * @property {Array.|null} [transitionRouteGroups] ListTransitionRouteGroupsResponse transitionRouteGroups - * @property {string|null} [nextPageToken] ListTransitionRouteGroupsResponse nextPageToken - */ - - /** - * Constructs a new ListTransitionRouteGroupsResponse. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListTransitionRouteGroupsResponse. - * @implements IListTransitionRouteGroupsResponse - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse=} [properties] Properties to set - */ - function ListTransitionRouteGroupsResponse(properties) { - this.transitionRouteGroups = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ListTransitionRouteGroupsResponse transitionRouteGroups. - * @member {Array.} transitionRouteGroups - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse - * @instance - */ - ListTransitionRouteGroupsResponse.prototype.transitionRouteGroups = $util.emptyArray; - - /** - * ListTransitionRouteGroupsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse - * @instance - */ - ListTransitionRouteGroupsResponse.prototype.nextPageToken = ""; - - /** - * Creates a new ListTransitionRouteGroupsResponse instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse instance - */ - ListTransitionRouteGroupsResponse.create = function create(properties) { - return new ListTransitionRouteGroupsResponse(properties); - }; - - /** - * Encodes the specified ListTransitionRouteGroupsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse} message ListTransitionRouteGroupsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListTransitionRouteGroupsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.transitionRouteGroups != null && message.transitionRouteGroups.length) - for (var i = 0; i < message.transitionRouteGroups.length; ++i) - $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.encode(message.transitionRouteGroups[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - return writer; - }; - - /** - * Encodes the specified ListTransitionRouteGroupsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse} message ListTransitionRouteGroupsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListTransitionRouteGroupsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListTransitionRouteGroupsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.transitionRouteGroups && message.transitionRouteGroups.length)) - message.transitionRouteGroups = []; - message.transitionRouteGroups.push($root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } + if (object.definition != null) { + if (typeof object.definition !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.definition: object expected"); + message.definition = $root.google.cloud.dialogflow.cx.v3.Experiment.Definition.fromObject(object.definition); } - return message; - }; - - /** - * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListTransitionRouteGroupsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ListTransitionRouteGroupsResponse message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListTransitionRouteGroupsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.transitionRouteGroups != null && message.hasOwnProperty("transitionRouteGroups")) { - if (!Array.isArray(message.transitionRouteGroups)) - return "transitionRouteGroups: array expected"; - for (var i = 0; i < message.transitionRouteGroups.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify(message.transitionRouteGroups[i]); - if (error) - return "transitionRouteGroups." + error; - } + if (object.rolloutConfig != null) { + if (typeof object.rolloutConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.rolloutConfig: object expected"); + message.rolloutConfig = $root.google.cloud.dialogflow.cx.v3.RolloutConfig.fromObject(object.rolloutConfig); } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; - - /** - * Creates a ListTransitionRouteGroupsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse - */ - ListTransitionRouteGroupsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse(); - if (object.transitionRouteGroups) { - if (!Array.isArray(object.transitionRouteGroups)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse.transitionRouteGroups: array expected"); - message.transitionRouteGroups = []; - for (var i = 0; i < object.transitionRouteGroups.length; ++i) { - if (typeof object.transitionRouteGroups[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse.transitionRouteGroups: object expected"); - message.transitionRouteGroups[i] = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.fromObject(object.transitionRouteGroups[i]); + if (object.rolloutState != null) { + if (typeof object.rolloutState !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.rolloutState: object expected"); + message.rolloutState = $root.google.cloud.dialogflow.cx.v3.RolloutState.fromObject(object.rolloutState); + } + if (object.rolloutFailureReason != null) + message.rolloutFailureReason = String(object.rolloutFailureReason); + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.result: object expected"); + message.result = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.fromObject(object.result); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + if (object.lastUpdateTime != null) { + if (typeof object.lastUpdateTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.lastUpdateTime: object expected"); + message.lastUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.lastUpdateTime); + } + if (object.experimentLength != null) { + if (typeof object.experimentLength !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.experimentLength: object expected"); + message.experimentLength = $root.google.protobuf.Duration.fromObject(object.experimentLength); + } + if (object.variantsHistory) { + if (!Array.isArray(object.variantsHistory)) + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.variantsHistory: array expected"); + message.variantsHistory = []; + for (var i = 0; i < object.variantsHistory.length; ++i) { + if (typeof object.variantsHistory[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.variantsHistory: object expected"); + message.variantsHistory[i] = $root.google.cloud.dialogflow.cx.v3.VariantsHistory.fromObject(object.variantsHistory[i]); } } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListTransitionRouteGroupsResponse message. Also converts values to other types if specified. + * Creates a plain object from an Experiment message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @static - * @param {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} message ListTransitionRouteGroupsResponse + * @param {google.cloud.dialogflow.cx.v3.Experiment} message Experiment * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTransitionRouteGroupsResponse.toObject = function toObject(message, options) { + Experiment.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.transitionRouteGroups = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.transitionRouteGroups && message.transitionRouteGroups.length) { - object.transitionRouteGroups = []; - for (var j = 0; j < message.transitionRouteGroups.length; ++j) - object.transitionRouteGroups[j] = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.toObject(message.transitionRouteGroups[j], options); + object.variantsHistory = []; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.description = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.definition = null; + object.result = null; + object.createTime = null; + object.startTime = null; + object.endTime = null; + object.lastUpdateTime = null; + object.experimentLength = null; + object.rolloutConfig = null; + object.rolloutState = null; + object.rolloutFailureReason = ""; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Experiment.State[message.state] : message.state; + if (message.definition != null && message.hasOwnProperty("definition")) + object.definition = $root.google.cloud.dialogflow.cx.v3.Experiment.Definition.toObject(message.definition, options); + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.toObject(message.result, options); + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) + object.lastUpdateTime = $root.google.protobuf.Timestamp.toObject(message.lastUpdateTime, options); + if (message.experimentLength != null && message.hasOwnProperty("experimentLength")) + object.experimentLength = $root.google.protobuf.Duration.toObject(message.experimentLength, options); + if (message.variantsHistory && message.variantsHistory.length) { + object.variantsHistory = []; + for (var j = 0; j < message.variantsHistory.length; ++j) + object.variantsHistory[j] = $root.google.cloud.dialogflow.cx.v3.VariantsHistory.toObject(message.variantsHistory[j], options); + } + if (message.rolloutConfig != null && message.hasOwnProperty("rolloutConfig")) + object.rolloutConfig = $root.google.cloud.dialogflow.cx.v3.RolloutConfig.toObject(message.rolloutConfig, options); + if (message.rolloutState != null && message.hasOwnProperty("rolloutState")) + object.rolloutState = $root.google.cloud.dialogflow.cx.v3.RolloutState.toObject(message.rolloutState, options); + if (message.rolloutFailureReason != null && message.hasOwnProperty("rolloutFailureReason")) + object.rolloutFailureReason = message.rolloutFailureReason; return object; }; /** - * Converts this ListTransitionRouteGroupsResponse to JSON. + * Converts this Experiment to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @instance * @returns {Object.} JSON object */ - ListTransitionRouteGroupsResponse.prototype.toJSON = function toJSON() { + Experiment.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListTransitionRouteGroupsResponse; - })(); - - v3.GetTransitionRouteGroupRequest = (function() { - /** - * Properties of a GetTransitionRouteGroupRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IGetTransitionRouteGroupRequest - * @property {string|null} [name] GetTransitionRouteGroupRequest name - * @property {string|null} [languageCode] GetTransitionRouteGroupRequest languageCode + * State enum. + * @name google.cloud.dialogflow.cx.v3.Experiment.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} DRAFT=1 DRAFT value + * @property {number} RUNNING=2 RUNNING value + * @property {number} DONE=3 DONE value + * @property {number} ROLLOUT_FAILED=4 ROLLOUT_FAILED value */ + Experiment.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "DRAFT"] = 1; + values[valuesById[2] = "RUNNING"] = 2; + values[valuesById[3] = "DONE"] = 3; + values[valuesById[4] = "ROLLOUT_FAILED"] = 4; + return values; + })(); - /** - * Constructs a new GetTransitionRouteGroupRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a GetTransitionRouteGroupRequest. - * @implements IGetTransitionRouteGroupRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest=} [properties] Properties to set - */ - function GetTransitionRouteGroupRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Experiment.Definition = (function() { - /** - * GetTransitionRouteGroupRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest - * @instance - */ - GetTransitionRouteGroupRequest.prototype.name = ""; + /** + * Properties of a Definition. + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @interface IDefinition + * @property {string|null} [condition] Definition condition + * @property {google.cloud.dialogflow.cx.v3.IVersionVariants|null} [versionVariants] Definition versionVariants + */ - /** - * GetTransitionRouteGroupRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest - * @instance - */ - GetTransitionRouteGroupRequest.prototype.languageCode = ""; + /** + * Constructs a new Definition. + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @classdesc Represents a Definition. + * @implements IDefinition + * @constructor + * @param {google.cloud.dialogflow.cx.v3.Experiment.IDefinition=} [properties] Properties to set + */ + function Definition(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a new GetTransitionRouteGroupRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest instance - */ - GetTransitionRouteGroupRequest.create = function create(properties) { - return new GetTransitionRouteGroupRequest(properties); - }; + /** + * Definition condition. + * @member {string} condition + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @instance + */ + Definition.prototype.condition = ""; - /** - * Encodes the specified GetTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest} message GetTransitionRouteGroupRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetTransitionRouteGroupRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); - return writer; - }; + /** + * Definition versionVariants. + * @member {google.cloud.dialogflow.cx.v3.IVersionVariants|null|undefined} versionVariants + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @instance + */ + Definition.prototype.versionVariants = null; - /** - * Encodes the specified GetTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest} message GetTransitionRouteGroupRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetTransitionRouteGroupRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.languageCode = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Definition variants. + * @member {"versionVariants"|undefined} variants + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @instance + */ + Object.defineProperty(Definition.prototype, "variants", { + get: $util.oneOfGetter($oneOfFields = ["versionVariants"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetTransitionRouteGroupRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a new Definition instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.IDefinition=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Definition} Definition instance + */ + Definition.create = function create(properties) { + return new Definition(properties); + }; - /** - * Verifies a GetTransitionRouteGroupRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetTransitionRouteGroupRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; - return null; - }; + /** + * Encodes the specified Definition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Definition.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.IDefinition} message Definition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Definition.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.condition != null && Object.hasOwnProperty.call(message, "condition")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.condition); + if (message.versionVariants != null && Object.hasOwnProperty.call(message, "versionVariants")) + $root.google.cloud.dialogflow.cx.v3.VersionVariants.encode(message.versionVariants, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Creates a GetTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest - */ - GetTransitionRouteGroupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); - return message; - }; + /** + * Encodes the specified Definition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Definition.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.IDefinition} message Definition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Definition.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a plain object from a GetTransitionRouteGroupRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest} message GetTransitionRouteGroupRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetTransitionRouteGroupRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.languageCode = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; - return object; - }; + /** + * Decodes a Definition message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Definition} Definition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Definition.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Definition(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.condition = reader.string(); + break; + case 2: + message.versionVariants = $root.google.cloud.dialogflow.cx.v3.VersionVariants.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Converts this GetTransitionRouteGroupRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest - * @instance - * @returns {Object.} JSON object - */ - GetTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a Definition message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Definition} Definition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Definition.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - return GetTransitionRouteGroupRequest; - })(); + /** + * Verifies a Definition message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Definition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.condition != null && message.hasOwnProperty("condition")) + if (!$util.isString(message.condition)) + return "condition: string expected"; + if (message.versionVariants != null && message.hasOwnProperty("versionVariants")) { + properties.variants = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.VersionVariants.verify(message.versionVariants); + if (error) + return "versionVariants." + error; + } + } + return null; + }; - v3.CreateTransitionRouteGroupRequest = (function() { + /** + * Creates a Definition message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Definition} Definition + */ + Definition.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment.Definition) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Definition(); + if (object.condition != null) + message.condition = String(object.condition); + if (object.versionVariants != null) { + if (typeof object.versionVariants !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.Definition.versionVariants: object expected"); + message.versionVariants = $root.google.cloud.dialogflow.cx.v3.VersionVariants.fromObject(object.versionVariants); + } + return message; + }; - /** - * Properties of a CreateTransitionRouteGroupRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface ICreateTransitionRouteGroupRequest - * @property {string|null} [parent] CreateTransitionRouteGroupRequest parent - * @property {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null} [transitionRouteGroup] CreateTransitionRouteGroupRequest transitionRouteGroup - * @property {string|null} [languageCode] CreateTransitionRouteGroupRequest languageCode - */ + /** + * Creates a plain object from a Definition message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.Definition} message Definition + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Definition.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.condition = ""; + if (message.condition != null && message.hasOwnProperty("condition")) + object.condition = message.condition; + if (message.versionVariants != null && message.hasOwnProperty("versionVariants")) { + object.versionVariants = $root.google.cloud.dialogflow.cx.v3.VersionVariants.toObject(message.versionVariants, options); + if (options.oneofs) + object.variants = "versionVariants"; + } + return object; + }; - /** - * Constructs a new CreateTransitionRouteGroupRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CreateTransitionRouteGroupRequest. - * @implements ICreateTransitionRouteGroupRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest=} [properties] Properties to set - */ - function CreateTransitionRouteGroupRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Converts this Definition to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @instance + * @returns {Object.} JSON object + */ + Definition.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * CreateTransitionRouteGroupRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest - * @instance - */ - CreateTransitionRouteGroupRequest.prototype.parent = ""; + return Definition; + })(); - /** - * CreateTransitionRouteGroupRequest transitionRouteGroup. - * @member {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null|undefined} transitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest - * @instance - */ - CreateTransitionRouteGroupRequest.prototype.transitionRouteGroup = null; + Experiment.Result = (function() { - /** - * CreateTransitionRouteGroupRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest - * @instance - */ - CreateTransitionRouteGroupRequest.prototype.languageCode = ""; + /** + * Properties of a Result. + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @interface IResult + * @property {Array.|null} [versionMetrics] Result versionMetrics + * @property {google.protobuf.ITimestamp|null} [lastUpdateTime] Result lastUpdateTime + */ - /** - * Creates a new CreateTransitionRouteGroupRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest instance - */ - CreateTransitionRouteGroupRequest.create = function create(properties) { - return new CreateTransitionRouteGroupRequest(properties); - }; + /** + * Constructs a new Result. + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @classdesc Represents a Result. + * @implements IResult + * @constructor + * @param {google.cloud.dialogflow.cx.v3.Experiment.IResult=} [properties] Properties to set + */ + function Result(properties) { + this.versionMetrics = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified CreateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest} message CreateTransitionRouteGroupRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateTransitionRouteGroupRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.transitionRouteGroup != null && Object.hasOwnProperty.call(message, "transitionRouteGroup")) - $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.encode(message.transitionRouteGroup, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); - return writer; - }; + /** + * Result versionMetrics. + * @member {Array.} versionMetrics + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @instance + */ + Result.prototype.versionMetrics = $util.emptyArray; - /** - * Encodes the specified CreateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest} message CreateTransitionRouteGroupRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Result lastUpdateTime. + * @member {google.protobuf.ITimestamp|null|undefined} lastUpdateTime + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @instance + */ + Result.prototype.lastUpdateTime = null; - /** - * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateTransitionRouteGroupRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.decode(reader, reader.uint32()); - break; - case 3: - message.languageCode = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a new Result instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.IResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result} Result instance + */ + Result.create = function create(properties) { + return new Result(properties); + }; - /** - * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateTransitionRouteGroupRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified Result message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.IResult} message Result message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Result.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.versionMetrics != null && message.versionMetrics.length) + for (var i = 0; i < message.versionMetrics.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.encode(message.versionMetrics[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.lastUpdateTime != null && Object.hasOwnProperty.call(message, "lastUpdateTime")) + $root.google.protobuf.Timestamp.encode(message.lastUpdateTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Verifies a CreateTransitionRouteGroupRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateTransitionRouteGroupRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) { - var error = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify(message.transitionRouteGroup); - if (error) - return "transitionRouteGroup." + error; - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; - return null; - }; + /** + * Encodes the specified Result message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.IResult} message Result message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Result.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a CreateTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest - */ - CreateTransitionRouteGroupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.transitionRouteGroup != null) { - if (typeof object.transitionRouteGroup !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest.transitionRouteGroup: object expected"); - message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.fromObject(object.transitionRouteGroup); - } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); - return message; - }; + /** + * Decodes a Result message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result} Result + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Result.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.versionMetrics && message.versionMetrics.length)) + message.versionMetrics = []; + message.versionMetrics.push($root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.decode(reader, reader.uint32())); + break; + case 2: + message.lastUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a plain object from a CreateTransitionRouteGroupRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest} message CreateTransitionRouteGroupRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CreateTransitionRouteGroupRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.transitionRouteGroup = null; - object.languageCode = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) - object.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.toObject(message.transitionRouteGroup, options); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; - return object; - }; - - /** - * Converts this CreateTransitionRouteGroupRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest - * @instance - * @returns {Object.} JSON object - */ - CreateTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CreateTransitionRouteGroupRequest; - })(); - - v3.UpdateTransitionRouteGroupRequest = (function() { + /** + * Decodes a Result message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result} Result + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Result.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Properties of an UpdateTransitionRouteGroupRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IUpdateTransitionRouteGroupRequest - * @property {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null} [transitionRouteGroup] UpdateTransitionRouteGroupRequest transitionRouteGroup - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateTransitionRouteGroupRequest updateMask - * @property {string|null} [languageCode] UpdateTransitionRouteGroupRequest languageCode - */ + /** + * Verifies a Result message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Result.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.versionMetrics != null && message.hasOwnProperty("versionMetrics")) { + if (!Array.isArray(message.versionMetrics)) + return "versionMetrics: array expected"; + for (var i = 0; i < message.versionMetrics.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.verify(message.versionMetrics[i]); + if (error) + return "versionMetrics." + error; + } + } + if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.lastUpdateTime); + if (error) + return "lastUpdateTime." + error; + } + return null; + }; - /** - * Constructs a new UpdateTransitionRouteGroupRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an UpdateTransitionRouteGroupRequest. - * @implements IUpdateTransitionRouteGroupRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest=} [properties] Properties to set - */ - function UpdateTransitionRouteGroupRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Creates a Result message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result} Result + */ + Result.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment.Result) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result(); + if (object.versionMetrics) { + if (!Array.isArray(object.versionMetrics)) + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.Result.versionMetrics: array expected"); + message.versionMetrics = []; + for (var i = 0; i < object.versionMetrics.length; ++i) { + if (typeof object.versionMetrics[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.Result.versionMetrics: object expected"); + message.versionMetrics[i] = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.fromObject(object.versionMetrics[i]); + } + } + if (object.lastUpdateTime != null) { + if (typeof object.lastUpdateTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.Result.lastUpdateTime: object expected"); + message.lastUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.lastUpdateTime); + } + return message; + }; - /** - * UpdateTransitionRouteGroupRequest transitionRouteGroup. - * @member {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null|undefined} transitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest - * @instance - */ - UpdateTransitionRouteGroupRequest.prototype.transitionRouteGroup = null; + /** + * Creates a plain object from a Result message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.Result} message Result + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Result.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.versionMetrics = []; + if (options.defaults) + object.lastUpdateTime = null; + if (message.versionMetrics && message.versionMetrics.length) { + object.versionMetrics = []; + for (var j = 0; j < message.versionMetrics.length; ++j) + object.versionMetrics[j] = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.toObject(message.versionMetrics[j], options); + } + if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) + object.lastUpdateTime = $root.google.protobuf.Timestamp.toObject(message.lastUpdateTime, options); + return object; + }; - /** - * UpdateTransitionRouteGroupRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest - * @instance - */ - UpdateTransitionRouteGroupRequest.prototype.updateMask = null; + /** + * Converts this Result to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @instance + * @returns {Object.} JSON object + */ + Result.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * UpdateTransitionRouteGroupRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest - * @instance - */ - UpdateTransitionRouteGroupRequest.prototype.languageCode = ""; + /** + * MetricType enum. + * @name google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType + * @enum {number} + * @property {number} METRIC_UNSPECIFIED=0 METRIC_UNSPECIFIED value + * @property {number} CONTAINED_SESSION_NO_CALLBACK_RATE=1 CONTAINED_SESSION_NO_CALLBACK_RATE value + * @property {number} LIVE_AGENT_HANDOFF_RATE=2 LIVE_AGENT_HANDOFF_RATE value + * @property {number} CALLBACK_SESSION_RATE=3 CALLBACK_SESSION_RATE value + * @property {number} ABANDONED_SESSION_RATE=4 ABANDONED_SESSION_RATE value + * @property {number} SESSION_END_RATE=5 SESSION_END_RATE value + */ + Result.MetricType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "METRIC_UNSPECIFIED"] = 0; + values[valuesById[1] = "CONTAINED_SESSION_NO_CALLBACK_RATE"] = 1; + values[valuesById[2] = "LIVE_AGENT_HANDOFF_RATE"] = 2; + values[valuesById[3] = "CALLBACK_SESSION_RATE"] = 3; + values[valuesById[4] = "ABANDONED_SESSION_RATE"] = 4; + values[valuesById[5] = "SESSION_END_RATE"] = 5; + return values; + })(); - /** - * Creates a new UpdateTransitionRouteGroupRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest instance - */ - UpdateTransitionRouteGroupRequest.create = function create(properties) { - return new UpdateTransitionRouteGroupRequest(properties); - }; + /** + * CountType enum. + * @name google.cloud.dialogflow.cx.v3.Experiment.Result.CountType + * @enum {number} + * @property {number} COUNT_TYPE_UNSPECIFIED=0 COUNT_TYPE_UNSPECIFIED value + * @property {number} TOTAL_NO_MATCH_COUNT=1 TOTAL_NO_MATCH_COUNT value + * @property {number} TOTAL_TURN_COUNT=2 TOTAL_TURN_COUNT value + * @property {number} AVERAGE_TURN_COUNT=3 AVERAGE_TURN_COUNT value + */ + Result.CountType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "COUNT_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "TOTAL_NO_MATCH_COUNT"] = 1; + values[valuesById[2] = "TOTAL_TURN_COUNT"] = 2; + values[valuesById[3] = "AVERAGE_TURN_COUNT"] = 3; + return values; + })(); - /** - * Encodes the specified UpdateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest} message UpdateTransitionRouteGroupRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateTransitionRouteGroupRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.transitionRouteGroup != null && Object.hasOwnProperty.call(message, "transitionRouteGroup")) - $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.encode(message.transitionRouteGroup, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); - return writer; - }; + Result.ConfidenceInterval = (function() { - /** - * Encodes the specified UpdateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest} message UpdateTransitionRouteGroupRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Properties of a ConfidenceInterval. + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @interface IConfidenceInterval + * @property {number|null} [confidenceLevel] ConfidenceInterval confidenceLevel + * @property {number|null} [ratio] ConfidenceInterval ratio + * @property {number|null} [lowerBound] ConfidenceInterval lowerBound + * @property {number|null} [upperBound] ConfidenceInterval upperBound + */ - /** - * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateTransitionRouteGroupRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - case 3: - message.languageCode = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Constructs a new ConfidenceInterval. + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @classdesc Represents a ConfidenceInterval. + * @implements IConfidenceInterval + * @constructor + * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval=} [properties] Properties to set + */ + function ConfidenceInterval(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - } - return message; - }; - /** - * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateTransitionRouteGroupRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * ConfidenceInterval confidenceLevel. + * @member {number} confidenceLevel + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @instance + */ + ConfidenceInterval.prototype.confidenceLevel = 0; - /** - * Verifies an UpdateTransitionRouteGroupRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UpdateTransitionRouteGroupRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) { - var error = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify(message.transitionRouteGroup); - if (error) - return "transitionRouteGroup." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; - return null; - }; + /** + * ConfidenceInterval ratio. + * @member {number} ratio + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @instance + */ + ConfidenceInterval.prototype.ratio = 0; - /** - * Creates an UpdateTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest - */ - UpdateTransitionRouteGroupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest(); - if (object.transitionRouteGroup != null) { - if (typeof object.transitionRouteGroup !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest.transitionRouteGroup: object expected"); - message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.fromObject(object.transitionRouteGroup); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); - return message; - }; + /** + * ConfidenceInterval lowerBound. + * @member {number} lowerBound + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @instance + */ + ConfidenceInterval.prototype.lowerBound = 0; - /** - * Creates a plain object from an UpdateTransitionRouteGroupRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest} message UpdateTransitionRouteGroupRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UpdateTransitionRouteGroupRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.transitionRouteGroup = null; - object.updateMask = null; - object.languageCode = ""; - } - if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) - object.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.toObject(message.transitionRouteGroup, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; - return object; - }; + /** + * ConfidenceInterval upperBound. + * @member {number} upperBound + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @instance + */ + ConfidenceInterval.prototype.upperBound = 0; - /** - * Converts this UpdateTransitionRouteGroupRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest - * @instance - * @returns {Object.} JSON object - */ - UpdateTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a new ConfidenceInterval instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval} ConfidenceInterval instance + */ + ConfidenceInterval.create = function create(properties) { + return new ConfidenceInterval(properties); + }; - return UpdateTransitionRouteGroupRequest; - })(); + /** + * Encodes the specified ConfidenceInterval message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval} message ConfidenceInterval message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConfidenceInterval.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.confidenceLevel != null && Object.hasOwnProperty.call(message, "confidenceLevel")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.confidenceLevel); + if (message.ratio != null && Object.hasOwnProperty.call(message, "ratio")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.ratio); + if (message.lowerBound != null && Object.hasOwnProperty.call(message, "lowerBound")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.lowerBound); + if (message.upperBound != null && Object.hasOwnProperty.call(message, "upperBound")) + writer.uint32(/* id 4, wireType 1 =*/33).double(message.upperBound); + return writer; + }; - v3.DeleteTransitionRouteGroupRequest = (function() { + /** + * Encodes the specified ConfidenceInterval message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval} message ConfidenceInterval message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConfidenceInterval.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Properties of a DeleteTransitionRouteGroupRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDeleteTransitionRouteGroupRequest - * @property {string|null} [name] DeleteTransitionRouteGroupRequest name - * @property {boolean|null} [force] DeleteTransitionRouteGroupRequest force - */ - - /** - * Constructs a new DeleteTransitionRouteGroupRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DeleteTransitionRouteGroupRequest. - * @implements IDeleteTransitionRouteGroupRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest=} [properties] Properties to set - */ - function DeleteTransitionRouteGroupRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Decodes a ConfidenceInterval message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval} ConfidenceInterval + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConfidenceInterval.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.confidenceLevel = reader.double(); + break; + case 2: + message.ratio = reader.double(); + break; + case 3: + message.lowerBound = reader.double(); + break; + case 4: + message.upperBound = reader.double(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * DeleteTransitionRouteGroupRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest - * @instance - */ - DeleteTransitionRouteGroupRequest.prototype.name = ""; + /** + * Decodes a ConfidenceInterval message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval} ConfidenceInterval + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConfidenceInterval.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * DeleteTransitionRouteGroupRequest force. - * @member {boolean} force - * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest - * @instance - */ - DeleteTransitionRouteGroupRequest.prototype.force = false; + /** + * Verifies a ConfidenceInterval message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConfidenceInterval.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.confidenceLevel != null && message.hasOwnProperty("confidenceLevel")) + if (typeof message.confidenceLevel !== "number") + return "confidenceLevel: number expected"; + if (message.ratio != null && message.hasOwnProperty("ratio")) + if (typeof message.ratio !== "number") + return "ratio: number expected"; + if (message.lowerBound != null && message.hasOwnProperty("lowerBound")) + if (typeof message.lowerBound !== "number") + return "lowerBound: number expected"; + if (message.upperBound != null && message.hasOwnProperty("upperBound")) + if (typeof message.upperBound !== "number") + return "upperBound: number expected"; + return null; + }; - /** - * Creates a new DeleteTransitionRouteGroupRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest instance - */ - DeleteTransitionRouteGroupRequest.create = function create(properties) { - return new DeleteTransitionRouteGroupRequest(properties); - }; + /** + * Creates a ConfidenceInterval message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval} ConfidenceInterval + */ + ConfidenceInterval.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval(); + if (object.confidenceLevel != null) + message.confidenceLevel = Number(object.confidenceLevel); + if (object.ratio != null) + message.ratio = Number(object.ratio); + if (object.lowerBound != null) + message.lowerBound = Number(object.lowerBound); + if (object.upperBound != null) + message.upperBound = Number(object.upperBound); + return message; + }; - /** - * Encodes the specified DeleteTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest} message DeleteTransitionRouteGroupRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteTransitionRouteGroupRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); - return writer; - }; + /** + * Creates a plain object from a ConfidenceInterval message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval} message ConfidenceInterval + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ConfidenceInterval.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.confidenceLevel = 0; + object.ratio = 0; + object.lowerBound = 0; + object.upperBound = 0; + } + if (message.confidenceLevel != null && message.hasOwnProperty("confidenceLevel")) + object.confidenceLevel = options.json && !isFinite(message.confidenceLevel) ? String(message.confidenceLevel) : message.confidenceLevel; + if (message.ratio != null && message.hasOwnProperty("ratio")) + object.ratio = options.json && !isFinite(message.ratio) ? String(message.ratio) : message.ratio; + if (message.lowerBound != null && message.hasOwnProperty("lowerBound")) + object.lowerBound = options.json && !isFinite(message.lowerBound) ? String(message.lowerBound) : message.lowerBound; + if (message.upperBound != null && message.hasOwnProperty("upperBound")) + object.upperBound = options.json && !isFinite(message.upperBound) ? String(message.upperBound) : message.upperBound; + return object; + }; - /** - * Encodes the specified DeleteTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest} message DeleteTransitionRouteGroupRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Converts this ConfidenceInterval to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @instance + * @returns {Object.} JSON object + */ + ConfidenceInterval.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteTransitionRouteGroupRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.force = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + return ConfidenceInterval; + })(); - /** - * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteTransitionRouteGroupRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Result.Metric = (function() { - /** - * Verifies a DeleteTransitionRouteGroupRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeleteTransitionRouteGroupRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; - return null; - }; + /** + * Properties of a Metric. + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @interface IMetric + * @property {google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType|null} [type] Metric type + * @property {google.cloud.dialogflow.cx.v3.Experiment.Result.CountType|null} [countType] Metric countType + * @property {number|null} [ratio] Metric ratio + * @property {number|null} [count] Metric count + * @property {google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval|null} [confidenceInterval] Metric confidenceInterval + */ - /** - * Creates a DeleteTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest - */ - DeleteTransitionRouteGroupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.force != null) - message.force = Boolean(object.force); - return message; - }; + /** + * Constructs a new Metric. + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @classdesc Represents a Metric. + * @implements IMetric + * @constructor + * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric=} [properties] Properties to set + */ + function Metric(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a plain object from a DeleteTransitionRouteGroupRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest} message DeleteTransitionRouteGroupRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteTransitionRouteGroupRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.force = false; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; - return object; - }; + /** + * Metric type. + * @member {google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType} type + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @instance + */ + Metric.prototype.type = 0; - /** - * Converts this DeleteTransitionRouteGroupRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest - * @instance - * @returns {Object.} JSON object - */ - DeleteTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Metric countType. + * @member {google.cloud.dialogflow.cx.v3.Experiment.Result.CountType} countType + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @instance + */ + Metric.prototype.countType = 0; - return DeleteTransitionRouteGroupRequest; - })(); + /** + * Metric ratio. + * @member {number|null|undefined} ratio + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @instance + */ + Metric.prototype.ratio = null; - v3.Webhooks = (function() { + /** + * Metric count. + * @member {number|null|undefined} count + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @instance + */ + Metric.prototype.count = null; - /** - * Constructs a new Webhooks service. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a Webhooks - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Webhooks(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } + /** + * Metric confidenceInterval. + * @member {google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval|null|undefined} confidenceInterval + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @instance + */ + Metric.prototype.confidenceInterval = null; - (Webhooks.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Webhooks; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Creates new Webhooks service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Webhooks - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {Webhooks} RPC service. Useful where requests and/or responses are streamed. - */ - Webhooks.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; + /** + * Metric value. + * @member {"ratio"|"count"|undefined} value + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @instance + */ + Object.defineProperty(Metric.prototype, "value", { + get: $util.oneOfGetter($oneOfFields = ["ratio", "count"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#listWebhooks}. - * @memberof google.cloud.dialogflow.cx.v3.Webhooks - * @typedef ListWebhooksCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.ListWebhooksResponse} [response] ListWebhooksResponse - */ + /** + * Creates a new Metric instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.Metric} Metric instance + */ + Metric.create = function create(properties) { + return new Metric(properties); + }; - /** - * Calls ListWebhooks. - * @function listWebhooks - * @memberof google.cloud.dialogflow.cx.v3.Webhooks - * @instance - * @param {google.cloud.dialogflow.cx.v3.IListWebhooksRequest} request ListWebhooksRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooksCallback} callback Node-style callback called with the error, if any, and ListWebhooksResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Webhooks.prototype.listWebhooks = function listWebhooks(request, callback) { - return this.rpcCall(listWebhooks, $root.google.cloud.dialogflow.cx.v3.ListWebhooksRequest, $root.google.cloud.dialogflow.cx.v3.ListWebhooksResponse, request, callback); - }, "name", { value: "ListWebhooks" }); + /** + * Encodes the specified Metric message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric} message Metric message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Metric.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.ratio != null && Object.hasOwnProperty.call(message, "ratio")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.ratio); + if (message.confidenceInterval != null && Object.hasOwnProperty.call(message, "confidenceInterval")) + $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.encode(message.confidenceInterval, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.count != null && Object.hasOwnProperty.call(message, "count")) + writer.uint32(/* id 4, wireType 1 =*/33).double(message.count); + if (message.countType != null && Object.hasOwnProperty.call(message, "countType")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.countType); + return writer; + }; - /** - * Calls ListWebhooks. - * @function listWebhooks - * @memberof google.cloud.dialogflow.cx.v3.Webhooks - * @instance - * @param {google.cloud.dialogflow.cx.v3.IListWebhooksRequest} request ListWebhooksRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric} message Metric message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Metric.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#getWebhook}. - * @memberof google.cloud.dialogflow.cx.v3.Webhooks - * @typedef GetWebhookCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.Webhook} [response] Webhook - */ - - /** - * Calls GetWebhook. - * @function getWebhook - * @memberof google.cloud.dialogflow.cx.v3.Webhooks - * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetWebhookRequest} request GetWebhookRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Webhooks.GetWebhookCallback} callback Node-style callback called with the error, if any, and Webhook - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Webhooks.prototype.getWebhook = function getWebhook(request, callback) { - return this.rpcCall(getWebhook, $root.google.cloud.dialogflow.cx.v3.GetWebhookRequest, $root.google.cloud.dialogflow.cx.v3.Webhook, request, callback); - }, "name", { value: "GetWebhook" }); + /** + * Decodes a Metric message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.Metric} Metric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Metric.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = reader.int32(); + break; + case 5: + message.countType = reader.int32(); + break; + case 2: + message.ratio = reader.double(); + break; + case 4: + message.count = reader.double(); + break; + case 3: + message.confidenceInterval = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Calls GetWebhook. - * @function getWebhook - * @memberof google.cloud.dialogflow.cx.v3.Webhooks - * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetWebhookRequest} request GetWebhookRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Decodes a Metric message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.Metric} Metric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Metric.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#createWebhook}. - * @memberof google.cloud.dialogflow.cx.v3.Webhooks - * @typedef CreateWebhookCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.Webhook} [response] Webhook - */ + /** + * Verifies a Metric message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Metric.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.countType != null && message.hasOwnProperty("countType")) + switch (message.countType) { + default: + return "countType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.ratio != null && message.hasOwnProperty("ratio")) { + properties.value = 1; + if (typeof message.ratio !== "number") + return "ratio: number expected"; + } + if (message.count != null && message.hasOwnProperty("count")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (typeof message.count !== "number") + return "count: number expected"; + } + if (message.confidenceInterval != null && message.hasOwnProperty("confidenceInterval")) { + var error = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.verify(message.confidenceInterval); + if (error) + return "confidenceInterval." + error; + } + return null; + }; - /** - * Calls CreateWebhook. - * @function createWebhook - * @memberof google.cloud.dialogflow.cx.v3.Webhooks - * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateWebhookRequest} request CreateWebhookRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhookCallback} callback Node-style callback called with the error, if any, and Webhook - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Webhooks.prototype.createWebhook = function createWebhook(request, callback) { - return this.rpcCall(createWebhook, $root.google.cloud.dialogflow.cx.v3.CreateWebhookRequest, $root.google.cloud.dialogflow.cx.v3.Webhook, request, callback); - }, "name", { value: "CreateWebhook" }); + /** + * Creates a Metric message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.Metric} Metric + */ + Metric.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric(); + switch (object.type) { + case "METRIC_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "CONTAINED_SESSION_NO_CALLBACK_RATE": + case 1: + message.type = 1; + break; + case "LIVE_AGENT_HANDOFF_RATE": + case 2: + message.type = 2; + break; + case "CALLBACK_SESSION_RATE": + case 3: + message.type = 3; + break; + case "ABANDONED_SESSION_RATE": + case 4: + message.type = 4; + break; + case "SESSION_END_RATE": + case 5: + message.type = 5; + break; + } + switch (object.countType) { + case "COUNT_TYPE_UNSPECIFIED": + case 0: + message.countType = 0; + break; + case "TOTAL_NO_MATCH_COUNT": + case 1: + message.countType = 1; + break; + case "TOTAL_TURN_COUNT": + case 2: + message.countType = 2; + break; + case "AVERAGE_TURN_COUNT": + case 3: + message.countType = 3; + break; + } + if (object.ratio != null) + message.ratio = Number(object.ratio); + if (object.count != null) + message.count = Number(object.count); + if (object.confidenceInterval != null) { + if (typeof object.confidenceInterval !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.confidenceInterval: object expected"); + message.confidenceInterval = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.fromObject(object.confidenceInterval); + } + return message; + }; - /** - * Calls CreateWebhook. - * @function createWebhook - * @memberof google.cloud.dialogflow.cx.v3.Webhooks - * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateWebhookRequest} request CreateWebhookRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Creates a plain object from a Metric message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.Metric} message Metric + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Metric.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type = options.enums === String ? "METRIC_UNSPECIFIED" : 0; + object.confidenceInterval = null; + object.countType = options.enums === String ? "COUNT_TYPE_UNSPECIFIED" : 0; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType[message.type] : message.type; + if (message.ratio != null && message.hasOwnProperty("ratio")) { + object.ratio = options.json && !isFinite(message.ratio) ? String(message.ratio) : message.ratio; + if (options.oneofs) + object.value = "ratio"; + } + if (message.confidenceInterval != null && message.hasOwnProperty("confidenceInterval")) + object.confidenceInterval = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.toObject(message.confidenceInterval, options); + if (message.count != null && message.hasOwnProperty("count")) { + object.count = options.json && !isFinite(message.count) ? String(message.count) : message.count; + if (options.oneofs) + object.value = "count"; + } + if (message.countType != null && message.hasOwnProperty("countType")) + object.countType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Experiment.Result.CountType[message.countType] : message.countType; + return object; + }; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#updateWebhook}. - * @memberof google.cloud.dialogflow.cx.v3.Webhooks - * @typedef UpdateWebhookCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.Webhook} [response] Webhook - */ + /** + * Converts this Metric to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @instance + * @returns {Object.} JSON object + */ + Metric.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Calls UpdateWebhook. - * @function updateWebhook - * @memberof google.cloud.dialogflow.cx.v3.Webhooks - * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest} request UpdateWebhookRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhookCallback} callback Node-style callback called with the error, if any, and Webhook - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Webhooks.prototype.updateWebhook = function updateWebhook(request, callback) { - return this.rpcCall(updateWebhook, $root.google.cloud.dialogflow.cx.v3.UpdateWebhookRequest, $root.google.cloud.dialogflow.cx.v3.Webhook, request, callback); - }, "name", { value: "UpdateWebhook" }); + return Metric; + })(); - /** - * Calls UpdateWebhook. - * @function updateWebhook - * @memberof google.cloud.dialogflow.cx.v3.Webhooks - * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest} request UpdateWebhookRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + Result.VersionMetrics = (function() { - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#deleteWebhook}. - * @memberof google.cloud.dialogflow.cx.v3.Webhooks - * @typedef DeleteWebhookCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ + /** + * Properties of a VersionMetrics. + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @interface IVersionMetrics + * @property {string|null} [version] VersionMetrics version + * @property {Array.|null} [metrics] VersionMetrics metrics + * @property {number|null} [sessionCount] VersionMetrics sessionCount + */ - /** - * Calls DeleteWebhook. - * @function deleteWebhook - * @memberof google.cloud.dialogflow.cx.v3.Webhooks - * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest} request DeleteWebhookRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Webhooks.DeleteWebhookCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Webhooks.prototype.deleteWebhook = function deleteWebhook(request, callback) { - return this.rpcCall(deleteWebhook, $root.google.cloud.dialogflow.cx.v3.DeleteWebhookRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteWebhook" }); + /** + * Constructs a new VersionMetrics. + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @classdesc Represents a VersionMetrics. + * @implements IVersionMetrics + * @constructor + * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics=} [properties] Properties to set + */ + function VersionMetrics(properties) { + this.metrics = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Calls DeleteWebhook. - * @function deleteWebhook - * @memberof google.cloud.dialogflow.cx.v3.Webhooks - * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest} request DeleteWebhookRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * VersionMetrics version. + * @member {string} version + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics + * @instance + */ + VersionMetrics.prototype.version = ""; - return Webhooks; - })(); + /** + * VersionMetrics metrics. + * @member {Array.} metrics + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics + * @instance + */ + VersionMetrics.prototype.metrics = $util.emptyArray; - v3.Webhook = (function() { + /** + * VersionMetrics sessionCount. + * @member {number} sessionCount + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics + * @instance + */ + VersionMetrics.prototype.sessionCount = 0; - /** - * Properties of a Webhook. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IWebhook - * @property {string|null} [name] Webhook name - * @property {string|null} [displayName] Webhook displayName - * @property {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null} [genericWebService] Webhook genericWebService - * @property {google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig|null} [serviceDirectory] Webhook serviceDirectory - * @property {google.protobuf.IDuration|null} [timeout] Webhook timeout - * @property {boolean|null} [disabled] Webhook disabled - */ + /** + * Creates a new VersionMetrics instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics} VersionMetrics instance + */ + VersionMetrics.create = function create(properties) { + return new VersionMetrics(properties); + }; - /** - * Constructs a new Webhook. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a Webhook. - * @implements IWebhook - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IWebhook=} [properties] Properties to set - */ - function Webhook(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Encodes the specified VersionMetrics message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics} message VersionMetrics message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VersionMetrics.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); + if (message.metrics != null && message.metrics.length) + for (var i = 0; i < message.metrics.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.encode(message.metrics[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.sessionCount != null && Object.hasOwnProperty.call(message, "sessionCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.sessionCount); + return writer; + }; - /** - * Webhook name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.Webhook - * @instance - */ - Webhook.prototype.name = ""; + /** + * Encodes the specified VersionMetrics message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics} message VersionMetrics message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VersionMetrics.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Webhook displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.Webhook - * @instance - */ - Webhook.prototype.displayName = ""; + /** + * Decodes a VersionMetrics message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics} VersionMetrics + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VersionMetrics.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.version = reader.string(); + break; + case 2: + if (!(message.metrics && message.metrics.length)) + message.metrics = []; + message.metrics.push($root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.decode(reader, reader.uint32())); + break; + case 3: + message.sessionCount = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Webhook genericWebService. - * @member {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null|undefined} genericWebService - * @memberof google.cloud.dialogflow.cx.v3.Webhook - * @instance - */ - Webhook.prototype.genericWebService = null; + /** + * Decodes a VersionMetrics message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics} VersionMetrics + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VersionMetrics.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Webhook serviceDirectory. - * @member {google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig|null|undefined} serviceDirectory - * @memberof google.cloud.dialogflow.cx.v3.Webhook - * @instance - */ - Webhook.prototype.serviceDirectory = null; + /** + * Verifies a VersionMetrics message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VersionMetrics.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.metrics != null && message.hasOwnProperty("metrics")) { + if (!Array.isArray(message.metrics)) + return "metrics: array expected"; + for (var i = 0; i < message.metrics.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.verify(message.metrics[i]); + if (error) + return "metrics." + error; + } + } + if (message.sessionCount != null && message.hasOwnProperty("sessionCount")) + if (!$util.isInteger(message.sessionCount)) + return "sessionCount: integer expected"; + return null; + }; + + /** + * Creates a VersionMetrics message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics} VersionMetrics + */ + VersionMetrics.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics(); + if (object.version != null) + message.version = String(object.version); + if (object.metrics) { + if (!Array.isArray(object.metrics)) + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.metrics: array expected"); + message.metrics = []; + for (var i = 0; i < object.metrics.length; ++i) { + if (typeof object.metrics[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.metrics: object expected"); + message.metrics[i] = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.fromObject(object.metrics[i]); + } + } + if (object.sessionCount != null) + message.sessionCount = object.sessionCount | 0; + return message; + }; + + /** + * Creates a plain object from a VersionMetrics message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics} message VersionMetrics + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VersionMetrics.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.metrics = []; + if (options.defaults) { + object.version = ""; + object.sessionCount = 0; + } + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message.metrics && message.metrics.length) { + object.metrics = []; + for (var j = 0; j < message.metrics.length; ++j) + object.metrics[j] = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.toObject(message.metrics[j], options); + } + if (message.sessionCount != null && message.hasOwnProperty("sessionCount")) + object.sessionCount = message.sessionCount; + return object; + }; + + /** + * Converts this VersionMetrics to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics + * @instance + * @returns {Object.} JSON object + */ + VersionMetrics.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return VersionMetrics; + })(); + + return Result; + })(); + + return Experiment; + })(); + + v3.VersionVariants = (function() { /** - * Webhook timeout. - * @member {google.protobuf.IDuration|null|undefined} timeout - * @memberof google.cloud.dialogflow.cx.v3.Webhook - * @instance + * Properties of a VersionVariants. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IVersionVariants + * @property {Array.|null} [variants] VersionVariants variants */ - Webhook.prototype.timeout = null; /** - * Webhook disabled. - * @member {boolean} disabled - * @memberof google.cloud.dialogflow.cx.v3.Webhook - * @instance + * Constructs a new VersionVariants. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a VersionVariants. + * @implements IVersionVariants + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IVersionVariants=} [properties] Properties to set */ - Webhook.prototype.disabled = false; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + function VersionVariants(properties) { + this.variants = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Webhook webhook. - * @member {"genericWebService"|"serviceDirectory"|undefined} webhook - * @memberof google.cloud.dialogflow.cx.v3.Webhook + * VersionVariants variants. + * @member {Array.} variants + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @instance */ - Object.defineProperty(Webhook.prototype, "webhook", { - get: $util.oneOfGetter($oneOfFields = ["genericWebService", "serviceDirectory"]), - set: $util.oneOfSetter($oneOfFields) - }); + VersionVariants.prototype.variants = $util.emptyArray; /** - * Creates a new Webhook instance using the specified properties. + * Creates a new VersionVariants instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @static - * @param {google.cloud.dialogflow.cx.v3.IWebhook=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Webhook} Webhook instance + * @param {google.cloud.dialogflow.cx.v3.IVersionVariants=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.VersionVariants} VersionVariants instance */ - Webhook.create = function create(properties) { - return new Webhook(properties); + VersionVariants.create = function create(properties) { + return new VersionVariants(properties); }; /** - * Encodes the specified Webhook message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.verify|verify} messages. + * Encodes the specified VersionVariants message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @static - * @param {google.cloud.dialogflow.cx.v3.IWebhook} message Webhook message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IVersionVariants} message VersionVariants message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Webhook.encode = function encode(message, writer) { + VersionVariants.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.genericWebService != null && Object.hasOwnProperty.call(message, "genericWebService")) - $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.encode(message.genericWebService, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.disabled); - if (message.timeout != null && Object.hasOwnProperty.call(message, "timeout")) - $root.google.protobuf.Duration.encode(message.timeout, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.serviceDirectory != null && Object.hasOwnProperty.call(message, "serviceDirectory")) - $root.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.encode(message.serviceDirectory, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.variants != null && message.variants.length) + for (var i = 0; i < message.variants.length; ++i) + $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant.encode(message.variants[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified Webhook message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.verify|verify} messages. + * Encodes the specified VersionVariants message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @static - * @param {google.cloud.dialogflow.cx.v3.IWebhook} message Webhook message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IVersionVariants} message VersionVariants message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Webhook.encodeDelimited = function encodeDelimited(message, writer) { + VersionVariants.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Webhook message from the specified reader or buffer. + * Decodes a VersionVariants message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.Webhook} Webhook + * @returns {google.cloud.dialogflow.cx.v3.VersionVariants} VersionVariants * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Webhook.decode = function decode(reader, length) { + VersionVariants.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Webhook(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.VersionVariants(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); - break; - case 2: - message.displayName = reader.string(); - break; - case 4: - message.genericWebService = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.decode(reader, reader.uint32()); - break; - case 7: - message.serviceDirectory = $root.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.decode(reader, reader.uint32()); - break; - case 6: - message.timeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 5: - message.disabled = reader.bool(); + if (!(message.variants && message.variants.length)) + message.variants = []; + message.variants.push($root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -52395,179 +52217,123 @@ }; /** - * Decodes a Webhook message from the specified reader or buffer, length delimited. + * Decodes a VersionVariants message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Webhook} Webhook + * @returns {google.cloud.dialogflow.cx.v3.VersionVariants} VersionVariants * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Webhook.decodeDelimited = function decodeDelimited(reader) { + VersionVariants.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Webhook message. + * Verifies a VersionVariants message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Webhook.verify = function verify(message) { + VersionVariants.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.genericWebService != null && message.hasOwnProperty("genericWebService")) { - properties.webhook = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.verify(message.genericWebService); - if (error) - return "genericWebService." + error; - } - } - if (message.serviceDirectory != null && message.hasOwnProperty("serviceDirectory")) { - if (properties.webhook === 1) - return "webhook: multiple values"; - properties.webhook = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.verify(message.serviceDirectory); + if (message.variants != null && message.hasOwnProperty("variants")) { + if (!Array.isArray(message.variants)) + return "variants: array expected"; + for (var i = 0; i < message.variants.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant.verify(message.variants[i]); if (error) - return "serviceDirectory." + error; + return "variants." + error; } } - if (message.timeout != null && message.hasOwnProperty("timeout")) { - var error = $root.google.protobuf.Duration.verify(message.timeout); - if (error) - return "timeout." + error; - } - if (message.disabled != null && message.hasOwnProperty("disabled")) - if (typeof message.disabled !== "boolean") - return "disabled: boolean expected"; return null; }; /** - * Creates a Webhook message from a plain object. Also converts values to their respective internal types. + * Creates a VersionVariants message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Webhook} Webhook + * @returns {google.cloud.dialogflow.cx.v3.VersionVariants} VersionVariants */ - Webhook.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Webhook) + VersionVariants.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.VersionVariants) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Webhook(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.genericWebService != null) { - if (typeof object.genericWebService !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Webhook.genericWebService: object expected"); - message.genericWebService = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.fromObject(object.genericWebService); - } - if (object.serviceDirectory != null) { - if (typeof object.serviceDirectory !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Webhook.serviceDirectory: object expected"); - message.serviceDirectory = $root.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.fromObject(object.serviceDirectory); - } - if (object.timeout != null) { - if (typeof object.timeout !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Webhook.timeout: object expected"); - message.timeout = $root.google.protobuf.Duration.fromObject(object.timeout); + var message = new $root.google.cloud.dialogflow.cx.v3.VersionVariants(); + if (object.variants) { + if (!Array.isArray(object.variants)) + throw TypeError(".google.cloud.dialogflow.cx.v3.VersionVariants.variants: array expected"); + message.variants = []; + for (var i = 0; i < object.variants.length; ++i) { + if (typeof object.variants[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.VersionVariants.variants: object expected"); + message.variants[i] = $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant.fromObject(object.variants[i]); + } } - if (object.disabled != null) - message.disabled = Boolean(object.disabled); return message; }; /** - * Creates a plain object from a Webhook message. Also converts values to other types if specified. + * Creates a plain object from a VersionVariants message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @static - * @param {google.cloud.dialogflow.cx.v3.Webhook} message Webhook + * @param {google.cloud.dialogflow.cx.v3.VersionVariants} message VersionVariants * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Webhook.toObject = function toObject(message, options) { + VersionVariants.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.disabled = false; - object.timeout = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.genericWebService != null && message.hasOwnProperty("genericWebService")) { - object.genericWebService = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.toObject(message.genericWebService, options); - if (options.oneofs) - object.webhook = "genericWebService"; - } - if (message.disabled != null && message.hasOwnProperty("disabled")) - object.disabled = message.disabled; - if (message.timeout != null && message.hasOwnProperty("timeout")) - object.timeout = $root.google.protobuf.Duration.toObject(message.timeout, options); - if (message.serviceDirectory != null && message.hasOwnProperty("serviceDirectory")) { - object.serviceDirectory = $root.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.toObject(message.serviceDirectory, options); - if (options.oneofs) - object.webhook = "serviceDirectory"; + if (options.arrays || options.defaults) + object.variants = []; + if (message.variants && message.variants.length) { + object.variants = []; + for (var j = 0; j < message.variants.length; ++j) + object.variants[j] = $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant.toObject(message.variants[j], options); } return object; }; /** - * Converts this Webhook to JSON. + * Converts this VersionVariants to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @instance * @returns {Object.} JSON object */ - Webhook.prototype.toJSON = function toJSON() { + VersionVariants.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - Webhook.GenericWebService = (function() { + VersionVariants.Variant = (function() { /** - * Properties of a GenericWebService. - * @memberof google.cloud.dialogflow.cx.v3.Webhook - * @interface IGenericWebService - * @property {string|null} [uri] GenericWebService uri - * @property {string|null} [username] GenericWebService username - * @property {string|null} [password] GenericWebService password - * @property {Object.|null} [requestHeaders] GenericWebService requestHeaders - * @property {Array.|null} [allowedCaCerts] GenericWebService allowedCaCerts + * Properties of a Variant. + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants + * @interface IVariant + * @property {string|null} [version] Variant version + * @property {number|null} [trafficAllocation] Variant trafficAllocation + * @property {boolean|null} [isControlGroup] Variant isControlGroup */ /** - * Constructs a new GenericWebService. - * @memberof google.cloud.dialogflow.cx.v3.Webhook - * @classdesc Represents a GenericWebService. - * @implements IGenericWebService + * Constructs a new Variant. + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants + * @classdesc Represents a Variant. + * @implements IVariant * @constructor - * @param {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.VersionVariants.IVariant=} [properties] Properties to set */ - function GenericWebService(properties) { - this.requestHeaders = {}; - this.allowedCaCerts = []; + function Variant(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -52575,415 +52341,101 @@ } /** - * GenericWebService uri. - * @member {string} uri - * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService - * @instance - */ - GenericWebService.prototype.uri = ""; - - /** - * GenericWebService username. - * @member {string} username - * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService - * @instance - */ - GenericWebService.prototype.username = ""; - - /** - * GenericWebService password. - * @member {string} password - * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService + * Variant version. + * @member {string} version + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant * @instance */ - GenericWebService.prototype.password = ""; + Variant.prototype.version = ""; /** - * GenericWebService requestHeaders. - * @member {Object.} requestHeaders - * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService + * Variant trafficAllocation. + * @member {number} trafficAllocation + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant * @instance */ - GenericWebService.prototype.requestHeaders = $util.emptyObject; + Variant.prototype.trafficAllocation = 0; /** - * GenericWebService allowedCaCerts. - * @member {Array.} allowedCaCerts - * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService + * Variant isControlGroup. + * @member {boolean} isControlGroup + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant * @instance */ - GenericWebService.prototype.allowedCaCerts = $util.emptyArray; + Variant.prototype.isControlGroup = false; /** - * Creates a new GenericWebService instance using the specified properties. + * Creates a new Variant instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant * @static - * @param {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Webhook.GenericWebService} GenericWebService instance + * @param {google.cloud.dialogflow.cx.v3.VersionVariants.IVariant=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.VersionVariants.Variant} Variant instance */ - GenericWebService.create = function create(properties) { - return new GenericWebService(properties); + Variant.create = function create(properties) { + return new Variant(properties); }; /** - * Encodes the specified GenericWebService message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.verify|verify} messages. + * Encodes the specified Variant message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.Variant.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant * @static - * @param {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService} message GenericWebService message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.VersionVariants.IVariant} message Variant message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenericWebService.encode = function encode(message, writer) { + Variant.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.uri != null && Object.hasOwnProperty.call(message, "uri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); - if (message.password != null && Object.hasOwnProperty.call(message, "password")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.password); - if (message.requestHeaders != null && Object.hasOwnProperty.call(message, "requestHeaders")) - for (var keys = Object.keys(message.requestHeaders), i = 0; i < keys.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.requestHeaders[keys[i]]).ldelim(); - if (message.allowedCaCerts != null && message.allowedCaCerts.length) - for (var i = 0; i < message.allowedCaCerts.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.allowedCaCerts[i]); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); + if (message.trafficAllocation != null && Object.hasOwnProperty.call(message, "trafficAllocation")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.trafficAllocation); + if (message.isControlGroup != null && Object.hasOwnProperty.call(message, "isControlGroup")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isControlGroup); return writer; }; /** - * Encodes the specified GenericWebService message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.verify|verify} messages. + * Encodes the specified Variant message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.Variant.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant * @static - * @param {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService} message GenericWebService message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.VersionVariants.IVariant} message Variant message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenericWebService.encodeDelimited = function encodeDelimited(message, writer) { + Variant.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GenericWebService message from the specified reader or buffer. + * Decodes a Variant message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.Webhook.GenericWebService} GenericWebService + * @returns {google.cloud.dialogflow.cx.v3.VersionVariants.Variant} Variant * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenericWebService.decode = function decode(reader, length) { + Variant.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.uri = reader.string(); + message.version = reader.string(); break; case 2: - message.username = reader.string(); + message.trafficAllocation = reader.float(); break; case 3: - message.password = reader.string(); - break; - case 4: - if (message.requestHeaders === $util.emptyObject) - message.requestHeaders = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.requestHeaders[key] = value; - break; - case 5: - if (!(message.allowedCaCerts && message.allowedCaCerts.length)) - message.allowedCaCerts = []; - message.allowedCaCerts.push(reader.bytes()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GenericWebService message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Webhook.GenericWebService} GenericWebService - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GenericWebService.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GenericWebService message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GenericWebService.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.uri != null && message.hasOwnProperty("uri")) - if (!$util.isString(message.uri)) - return "uri: string expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.password != null && message.hasOwnProperty("password")) - if (!$util.isString(message.password)) - return "password: string expected"; - if (message.requestHeaders != null && message.hasOwnProperty("requestHeaders")) { - if (!$util.isObject(message.requestHeaders)) - return "requestHeaders: object expected"; - var key = Object.keys(message.requestHeaders); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.requestHeaders[key[i]])) - return "requestHeaders: string{k:string} expected"; - } - if (message.allowedCaCerts != null && message.hasOwnProperty("allowedCaCerts")) { - if (!Array.isArray(message.allowedCaCerts)) - return "allowedCaCerts: array expected"; - for (var i = 0; i < message.allowedCaCerts.length; ++i) - if (!(message.allowedCaCerts[i] && typeof message.allowedCaCerts[i].length === "number" || $util.isString(message.allowedCaCerts[i]))) - return "allowedCaCerts: buffer[] expected"; - } - return null; - }; - - /** - * Creates a GenericWebService message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Webhook.GenericWebService} GenericWebService - */ - GenericWebService.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService(); - if (object.uri != null) - message.uri = String(object.uri); - if (object.username != null) - message.username = String(object.username); - if (object.password != null) - message.password = String(object.password); - if (object.requestHeaders) { - if (typeof object.requestHeaders !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.requestHeaders: object expected"); - message.requestHeaders = {}; - for (var keys = Object.keys(object.requestHeaders), i = 0; i < keys.length; ++i) - message.requestHeaders[keys[i]] = String(object.requestHeaders[keys[i]]); - } - if (object.allowedCaCerts) { - if (!Array.isArray(object.allowedCaCerts)) - throw TypeError(".google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.allowedCaCerts: array expected"); - message.allowedCaCerts = []; - for (var i = 0; i < object.allowedCaCerts.length; ++i) - if (typeof object.allowedCaCerts[i] === "string") - $util.base64.decode(object.allowedCaCerts[i], message.allowedCaCerts[i] = $util.newBuffer($util.base64.length(object.allowedCaCerts[i])), 0); - else if (object.allowedCaCerts[i].length) - message.allowedCaCerts[i] = object.allowedCaCerts[i]; - } - return message; - }; - - /** - * Creates a plain object from a GenericWebService message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService - * @static - * @param {google.cloud.dialogflow.cx.v3.Webhook.GenericWebService} message GenericWebService - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GenericWebService.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.allowedCaCerts = []; - if (options.objects || options.defaults) - object.requestHeaders = {}; - if (options.defaults) { - object.uri = ""; - object.username = ""; - object.password = ""; - } - if (message.uri != null && message.hasOwnProperty("uri")) - object.uri = message.uri; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.password != null && message.hasOwnProperty("password")) - object.password = message.password; - var keys2; - if (message.requestHeaders && (keys2 = Object.keys(message.requestHeaders)).length) { - object.requestHeaders = {}; - for (var j = 0; j < keys2.length; ++j) - object.requestHeaders[keys2[j]] = message.requestHeaders[keys2[j]]; - } - if (message.allowedCaCerts && message.allowedCaCerts.length) { - object.allowedCaCerts = []; - for (var j = 0; j < message.allowedCaCerts.length; ++j) - object.allowedCaCerts[j] = options.bytes === String ? $util.base64.encode(message.allowedCaCerts[j], 0, message.allowedCaCerts[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.allowedCaCerts[j]) : message.allowedCaCerts[j]; - } - return object; - }; - - /** - * Converts this GenericWebService to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService - * @instance - * @returns {Object.} JSON object - */ - GenericWebService.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GenericWebService; - })(); - - Webhook.ServiceDirectoryConfig = (function() { - - /** - * Properties of a ServiceDirectoryConfig. - * @memberof google.cloud.dialogflow.cx.v3.Webhook - * @interface IServiceDirectoryConfig - * @property {string|null} [service] ServiceDirectoryConfig service - * @property {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null} [genericWebService] ServiceDirectoryConfig genericWebService - */ - - /** - * Constructs a new ServiceDirectoryConfig. - * @memberof google.cloud.dialogflow.cx.v3.Webhook - * @classdesc Represents a ServiceDirectoryConfig. - * @implements IServiceDirectoryConfig - * @constructor - * @param {google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig=} [properties] Properties to set - */ - function ServiceDirectoryConfig(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ServiceDirectoryConfig service. - * @member {string} service - * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig - * @instance - */ - ServiceDirectoryConfig.prototype.service = ""; - - /** - * ServiceDirectoryConfig genericWebService. - * @member {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null|undefined} genericWebService - * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig - * @instance - */ - ServiceDirectoryConfig.prototype.genericWebService = null; - - /** - * Creates a new ServiceDirectoryConfig instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig - * @static - * @param {google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig} ServiceDirectoryConfig instance - */ - ServiceDirectoryConfig.create = function create(properties) { - return new ServiceDirectoryConfig(properties); - }; - - /** - * Encodes the specified ServiceDirectoryConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig - * @static - * @param {google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig} message ServiceDirectoryConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceDirectoryConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.service != null && Object.hasOwnProperty.call(message, "service")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.service); - if (message.genericWebService != null && Object.hasOwnProperty.call(message, "genericWebService")) - $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.encode(message.genericWebService, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ServiceDirectoryConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig - * @static - * @param {google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig} message ServiceDirectoryConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceDirectoryConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ServiceDirectoryConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig} ServiceDirectoryConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceDirectoryConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.service = reader.string(); - break; - case 2: - message.genericWebService = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.decode(reader, reader.uint32()); + message.isControlGroup = reader.bool(); break; default: reader.skipType(tag & 7); @@ -52994,126 +52446,128 @@ }; /** - * Decodes a ServiceDirectoryConfig message from the specified reader or buffer, length delimited. + * Decodes a Variant message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig} ServiceDirectoryConfig + * @returns {google.cloud.dialogflow.cx.v3.VersionVariants.Variant} Variant * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceDirectoryConfig.decodeDelimited = function decodeDelimited(reader) { + Variant.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ServiceDirectoryConfig message. + * Verifies a Variant message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServiceDirectoryConfig.verify = function verify(message) { + Variant.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.service != null && message.hasOwnProperty("service")) - if (!$util.isString(message.service)) - return "service: string expected"; - if (message.genericWebService != null && message.hasOwnProperty("genericWebService")) { - var error = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.verify(message.genericWebService); - if (error) - return "genericWebService." + error; - } + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.trafficAllocation != null && message.hasOwnProperty("trafficAllocation")) + if (typeof message.trafficAllocation !== "number") + return "trafficAllocation: number expected"; + if (message.isControlGroup != null && message.hasOwnProperty("isControlGroup")) + if (typeof message.isControlGroup !== "boolean") + return "isControlGroup: boolean expected"; return null; }; /** - * Creates a ServiceDirectoryConfig message from a plain object. Also converts values to their respective internal types. + * Creates a Variant message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig} ServiceDirectoryConfig + * @returns {google.cloud.dialogflow.cx.v3.VersionVariants.Variant} Variant */ - ServiceDirectoryConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig) + Variant.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig(); - if (object.service != null) - message.service = String(object.service); - if (object.genericWebService != null) { - if (typeof object.genericWebService !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.genericWebService: object expected"); - message.genericWebService = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.fromObject(object.genericWebService); - } + var message = new $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant(); + if (object.version != null) + message.version = String(object.version); + if (object.trafficAllocation != null) + message.trafficAllocation = Number(object.trafficAllocation); + if (object.isControlGroup != null) + message.isControlGroup = Boolean(object.isControlGroup); return message; }; /** - * Creates a plain object from a ServiceDirectoryConfig message. Also converts values to other types if specified. + * Creates a plain object from a Variant message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant * @static - * @param {google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig} message ServiceDirectoryConfig + * @param {google.cloud.dialogflow.cx.v3.VersionVariants.Variant} message Variant * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceDirectoryConfig.toObject = function toObject(message, options) { + Variant.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.service = ""; - object.genericWebService = null; + object.version = ""; + object.trafficAllocation = 0; + object.isControlGroup = false; } - if (message.service != null && message.hasOwnProperty("service")) - object.service = message.service; - if (message.genericWebService != null && message.hasOwnProperty("genericWebService")) - object.genericWebService = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.toObject(message.genericWebService, options); + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message.trafficAllocation != null && message.hasOwnProperty("trafficAllocation")) + object.trafficAllocation = options.json && !isFinite(message.trafficAllocation) ? String(message.trafficAllocation) : message.trafficAllocation; + if (message.isControlGroup != null && message.hasOwnProperty("isControlGroup")) + object.isControlGroup = message.isControlGroup; return object; }; /** - * Converts this ServiceDirectoryConfig to JSON. + * Converts this Variant to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant * @instance * @returns {Object.} JSON object */ - ServiceDirectoryConfig.prototype.toJSON = function toJSON() { + Variant.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ServiceDirectoryConfig; + return Variant; })(); - return Webhook; + return VersionVariants; })(); - v3.ListWebhooksRequest = (function() { + v3.VariantsHistory = (function() { /** - * Properties of a ListWebhooksRequest. + * Properties of a VariantsHistory. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListWebhooksRequest - * @property {string|null} [parent] ListWebhooksRequest parent - * @property {number|null} [pageSize] ListWebhooksRequest pageSize - * @property {string|null} [pageToken] ListWebhooksRequest pageToken + * @interface IVariantsHistory + * @property {google.cloud.dialogflow.cx.v3.IVersionVariants|null} [versionVariants] VariantsHistory versionVariants + * @property {google.protobuf.ITimestamp|null} [updateTime] VariantsHistory updateTime */ /** - * Constructs a new ListWebhooksRequest. + * Constructs a new VariantsHistory. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListWebhooksRequest. - * @implements IListWebhooksRequest + * @classdesc Represents a VariantsHistory. + * @implements IVariantsHistory * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListWebhooksRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IVariantsHistory=} [properties] Properties to set */ - function ListWebhooksRequest(properties) { + function VariantsHistory(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53121,101 +52575,102 @@ } /** - * ListWebhooksRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * VariantsHistory versionVariants. + * @member {google.cloud.dialogflow.cx.v3.IVersionVariants|null|undefined} versionVariants + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @instance */ - ListWebhooksRequest.prototype.parent = ""; + VariantsHistory.prototype.versionVariants = null; /** - * ListWebhooksRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * VariantsHistory updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @instance */ - ListWebhooksRequest.prototype.pageSize = 0; + VariantsHistory.prototype.updateTime = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * ListWebhooksRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * VariantsHistory variants. + * @member {"versionVariants"|undefined} variants + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @instance */ - ListWebhooksRequest.prototype.pageToken = ""; + Object.defineProperty(VariantsHistory.prototype, "variants", { + get: $util.oneOfGetter($oneOfFields = ["versionVariants"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new ListWebhooksRequest instance using the specified properties. + * Creates a new VariantsHistory instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @static - * @param {google.cloud.dialogflow.cx.v3.IListWebhooksRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListWebhooksRequest} ListWebhooksRequest instance + * @param {google.cloud.dialogflow.cx.v3.IVariantsHistory=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.VariantsHistory} VariantsHistory instance */ - ListWebhooksRequest.create = function create(properties) { - return new ListWebhooksRequest(properties); + VariantsHistory.create = function create(properties) { + return new VariantsHistory(properties); }; /** - * Encodes the specified ListWebhooksRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksRequest.verify|verify} messages. + * Encodes the specified VariantsHistory message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VariantsHistory.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @static - * @param {google.cloud.dialogflow.cx.v3.IListWebhooksRequest} message ListWebhooksRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IVariantsHistory} message VariantsHistory message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListWebhooksRequest.encode = function encode(message, writer) { + VariantsHistory.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.versionVariants != null && Object.hasOwnProperty.call(message, "versionVariants")) + $root.google.cloud.dialogflow.cx.v3.VersionVariants.encode(message.versionVariants, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListWebhooksRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksRequest.verify|verify} messages. + * Encodes the specified VariantsHistory message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VariantsHistory.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @static - * @param {google.cloud.dialogflow.cx.v3.IListWebhooksRequest} message ListWebhooksRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IVariantsHistory} message VariantsHistory message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListWebhooksRequest.encodeDelimited = function encodeDelimited(message, writer) { + VariantsHistory.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListWebhooksRequest message from the specified reader or buffer. + * Decodes a VariantsHistory message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListWebhooksRequest} ListWebhooksRequest + * @returns {google.cloud.dialogflow.cx.v3.VariantsHistory} VariantsHistory * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListWebhooksRequest.decode = function decode(reader, length) { + VariantsHistory.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListWebhooksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.VariantsHistory(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.versionVariants = $root.google.cloud.dialogflow.cx.v3.VersionVariants.decode(reader, reader.uint32()); break; case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -53226,126 +52681,134 @@ }; /** - * Decodes a ListWebhooksRequest message from the specified reader or buffer, length delimited. + * Decodes a VariantsHistory message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListWebhooksRequest} ListWebhooksRequest + * @returns {google.cloud.dialogflow.cx.v3.VariantsHistory} VariantsHistory * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListWebhooksRequest.decodeDelimited = function decodeDelimited(reader) { + VariantsHistory.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListWebhooksRequest message. + * Verifies a VariantsHistory message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListWebhooksRequest.verify = function verify(message) { + VariantsHistory.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - return null; - }; + var properties = {}; + if (message.versionVariants != null && message.hasOwnProperty("versionVariants")) { + properties.variants = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.VersionVariants.verify(message.versionVariants); + if (error) + return "versionVariants." + error; + } + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + return null; + }; /** - * Creates a ListWebhooksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VariantsHistory message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListWebhooksRequest} ListWebhooksRequest + * @returns {google.cloud.dialogflow.cx.v3.VariantsHistory} VariantsHistory */ - ListWebhooksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListWebhooksRequest) + VariantsHistory.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.VariantsHistory) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListWebhooksRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.dialogflow.cx.v3.VariantsHistory(); + if (object.versionVariants != null) { + if (typeof object.versionVariants !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.VariantsHistory.versionVariants: object expected"); + message.versionVariants = $root.google.cloud.dialogflow.cx.v3.VersionVariants.fromObject(object.versionVariants); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.VariantsHistory.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } return message; }; /** - * Creates a plain object from a ListWebhooksRequest message. Also converts values to other types if specified. + * Creates a plain object from a VariantsHistory message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @static - * @param {google.cloud.dialogflow.cx.v3.ListWebhooksRequest} message ListWebhooksRequest + * @param {google.cloud.dialogflow.cx.v3.VariantsHistory} message VariantsHistory * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListWebhooksRequest.toObject = function toObject(message, options) { + VariantsHistory.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + if (options.defaults) + object.updateTime = null; + if (message.versionVariants != null && message.hasOwnProperty("versionVariants")) { + object.versionVariants = $root.google.cloud.dialogflow.cx.v3.VersionVariants.toObject(message.versionVariants, options); + if (options.oneofs) + object.variants = "versionVariants"; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); return object; }; /** - * Converts this ListWebhooksRequest to JSON. + * Converts this VariantsHistory to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @instance * @returns {Object.} JSON object */ - ListWebhooksRequest.prototype.toJSON = function toJSON() { + VariantsHistory.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListWebhooksRequest; + return VariantsHistory; })(); - v3.ListWebhooksResponse = (function() { + v3.RolloutConfig = (function() { /** - * Properties of a ListWebhooksResponse. + * Properties of a RolloutConfig. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListWebhooksResponse - * @property {Array.|null} [webhooks] ListWebhooksResponse webhooks - * @property {string|null} [nextPageToken] ListWebhooksResponse nextPageToken + * @interface IRolloutConfig + * @property {Array.|null} [rolloutSteps] RolloutConfig rolloutSteps + * @property {string|null} [rolloutCondition] RolloutConfig rolloutCondition + * @property {string|null} [failureCondition] RolloutConfig failureCondition */ /** - * Constructs a new ListWebhooksResponse. + * Constructs a new RolloutConfig. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListWebhooksResponse. - * @implements IListWebhooksResponse + * @classdesc Represents a RolloutConfig. + * @implements IRolloutConfig * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListWebhooksResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IRolloutConfig=} [properties] Properties to set */ - function ListWebhooksResponse(properties) { - this.webhooks = []; + function RolloutConfig(properties) { + this.rolloutSteps = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53353,91 +52816,104 @@ } /** - * ListWebhooksResponse webhooks. - * @member {Array.} webhooks - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse + * RolloutConfig rolloutSteps. + * @member {Array.} rolloutSteps + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig * @instance */ - ListWebhooksResponse.prototype.webhooks = $util.emptyArray; + RolloutConfig.prototype.rolloutSteps = $util.emptyArray; /** - * ListWebhooksResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse + * RolloutConfig rolloutCondition. + * @member {string} rolloutCondition + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig * @instance */ - ListWebhooksResponse.prototype.nextPageToken = ""; + RolloutConfig.prototype.rolloutCondition = ""; /** - * Creates a new ListWebhooksResponse instance using the specified properties. + * RolloutConfig failureCondition. + * @member {string} failureCondition + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig + * @instance + */ + RolloutConfig.prototype.failureCondition = ""; + + /** + * Creates a new RolloutConfig instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig * @static - * @param {google.cloud.dialogflow.cx.v3.IListWebhooksResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListWebhooksResponse} ListWebhooksResponse instance + * @param {google.cloud.dialogflow.cx.v3.IRolloutConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.RolloutConfig} RolloutConfig instance */ - ListWebhooksResponse.create = function create(properties) { - return new ListWebhooksResponse(properties); + RolloutConfig.create = function create(properties) { + return new RolloutConfig(properties); }; /** - * Encodes the specified ListWebhooksResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksResponse.verify|verify} messages. + * Encodes the specified RolloutConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig * @static - * @param {google.cloud.dialogflow.cx.v3.IListWebhooksResponse} message ListWebhooksResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IRolloutConfig} message RolloutConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListWebhooksResponse.encode = function encode(message, writer) { + RolloutConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.webhooks != null && message.webhooks.length) - for (var i = 0; i < message.webhooks.length; ++i) - $root.google.cloud.dialogflow.cx.v3.Webhook.encode(message.webhooks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.rolloutSteps != null && message.rolloutSteps.length) + for (var i = 0; i < message.rolloutSteps.length; ++i) + $root.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.encode(message.rolloutSteps[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.rolloutCondition != null && Object.hasOwnProperty.call(message, "rolloutCondition")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.rolloutCondition); + if (message.failureCondition != null && Object.hasOwnProperty.call(message, "failureCondition")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.failureCondition); return writer; }; /** - * Encodes the specified ListWebhooksResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksResponse.verify|verify} messages. + * Encodes the specified RolloutConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig * @static - * @param {google.cloud.dialogflow.cx.v3.IListWebhooksResponse} message ListWebhooksResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IRolloutConfig} message RolloutConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListWebhooksResponse.encodeDelimited = function encodeDelimited(message, writer) { + RolloutConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListWebhooksResponse message from the specified reader or buffer. + * Decodes a RolloutConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListWebhooksResponse} ListWebhooksResponse + * @returns {google.cloud.dialogflow.cx.v3.RolloutConfig} RolloutConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListWebhooksResponse.decode = function decode(reader, length) { + RolloutConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListWebhooksResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.RolloutConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.webhooks && message.webhooks.length)) - message.webhooks = []; - message.webhooks.push($root.google.cloud.dialogflow.cx.v3.Webhook.decode(reader, reader.uint32())); + if (!(message.rolloutSteps && message.rolloutSteps.length)) + message.rolloutSteps = []; + message.rolloutSteps.push($root.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.decode(reader, reader.uint32())); break; case 2: - message.nextPageToken = reader.string(); + message.rolloutCondition = reader.string(); + break; + case 3: + message.failureCondition = reader.string(); break; default: reader.skipType(tag & 7); @@ -53448,321 +52924,381 @@ }; /** - * Decodes a ListWebhooksResponse message from the specified reader or buffer, length delimited. + * Decodes a RolloutConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListWebhooksResponse} ListWebhooksResponse + * @returns {google.cloud.dialogflow.cx.v3.RolloutConfig} RolloutConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListWebhooksResponse.decodeDelimited = function decodeDelimited(reader) { + RolloutConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListWebhooksResponse message. + * Verifies a RolloutConfig message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListWebhooksResponse.verify = function verify(message) { + RolloutConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.webhooks != null && message.hasOwnProperty("webhooks")) { - if (!Array.isArray(message.webhooks)) - return "webhooks: array expected"; - for (var i = 0; i < message.webhooks.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.Webhook.verify(message.webhooks[i]); + if (message.rolloutSteps != null && message.hasOwnProperty("rolloutSteps")) { + if (!Array.isArray(message.rolloutSteps)) + return "rolloutSteps: array expected"; + for (var i = 0; i < message.rolloutSteps.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.verify(message.rolloutSteps[i]); if (error) - return "webhooks." + error; + return "rolloutSteps." + error; } } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.rolloutCondition != null && message.hasOwnProperty("rolloutCondition")) + if (!$util.isString(message.rolloutCondition)) + return "rolloutCondition: string expected"; + if (message.failureCondition != null && message.hasOwnProperty("failureCondition")) + if (!$util.isString(message.failureCondition)) + return "failureCondition: string expected"; return null; }; /** - * Creates a ListWebhooksResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RolloutConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListWebhooksResponse} ListWebhooksResponse + * @returns {google.cloud.dialogflow.cx.v3.RolloutConfig} RolloutConfig */ - ListWebhooksResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListWebhooksResponse) + RolloutConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.RolloutConfig) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListWebhooksResponse(); - if (object.webhooks) { - if (!Array.isArray(object.webhooks)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ListWebhooksResponse.webhooks: array expected"); - message.webhooks = []; - for (var i = 0; i < object.webhooks.length; ++i) { - if (typeof object.webhooks[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ListWebhooksResponse.webhooks: object expected"); - message.webhooks[i] = $root.google.cloud.dialogflow.cx.v3.Webhook.fromObject(object.webhooks[i]); + var message = new $root.google.cloud.dialogflow.cx.v3.RolloutConfig(); + if (object.rolloutSteps) { + if (!Array.isArray(object.rolloutSteps)) + throw TypeError(".google.cloud.dialogflow.cx.v3.RolloutConfig.rolloutSteps: array expected"); + message.rolloutSteps = []; + for (var i = 0; i < object.rolloutSteps.length; ++i) { + if (typeof object.rolloutSteps[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.RolloutConfig.rolloutSteps: object expected"); + message.rolloutSteps[i] = $root.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.fromObject(object.rolloutSteps[i]); } } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + if (object.rolloutCondition != null) + message.rolloutCondition = String(object.rolloutCondition); + if (object.failureCondition != null) + message.failureCondition = String(object.failureCondition); return message; }; /** - * Creates a plain object from a ListWebhooksResponse message. Also converts values to other types if specified. + * Creates a plain object from a RolloutConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig * @static - * @param {google.cloud.dialogflow.cx.v3.ListWebhooksResponse} message ListWebhooksResponse + * @param {google.cloud.dialogflow.cx.v3.RolloutConfig} message RolloutConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListWebhooksResponse.toObject = function toObject(message, options) { + RolloutConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.webhooks = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.webhooks && message.webhooks.length) { - object.webhooks = []; - for (var j = 0; j < message.webhooks.length; ++j) - object.webhooks[j] = $root.google.cloud.dialogflow.cx.v3.Webhook.toObject(message.webhooks[j], options); + object.rolloutSteps = []; + if (options.defaults) { + object.rolloutCondition = ""; + object.failureCondition = ""; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.rolloutSteps && message.rolloutSteps.length) { + object.rolloutSteps = []; + for (var j = 0; j < message.rolloutSteps.length; ++j) + object.rolloutSteps[j] = $root.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.toObject(message.rolloutSteps[j], options); + } + if (message.rolloutCondition != null && message.hasOwnProperty("rolloutCondition")) + object.rolloutCondition = message.rolloutCondition; + if (message.failureCondition != null && message.hasOwnProperty("failureCondition")) + object.failureCondition = message.failureCondition; return object; }; /** - * Converts this ListWebhooksResponse to JSON. + * Converts this RolloutConfig to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig * @instance * @returns {Object.} JSON object */ - ListWebhooksResponse.prototype.toJSON = function toJSON() { + RolloutConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListWebhooksResponse; - })(); + RolloutConfig.RolloutStep = (function() { - v3.GetWebhookRequest = (function() { + /** + * Properties of a RolloutStep. + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig + * @interface IRolloutStep + * @property {string|null} [displayName] RolloutStep displayName + * @property {number|null} [trafficPercent] RolloutStep trafficPercent + * @property {google.protobuf.IDuration|null} [minDuration] RolloutStep minDuration + */ - /** - * Properties of a GetWebhookRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IGetWebhookRequest - * @property {string|null} [name] GetWebhookRequest name - */ + /** + * Constructs a new RolloutStep. + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig + * @classdesc Represents a RolloutStep. + * @implements IRolloutStep + * @constructor + * @param {google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep=} [properties] Properties to set + */ + function RolloutStep(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new GetWebhookRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a GetWebhookRequest. - * @implements IGetWebhookRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IGetWebhookRequest=} [properties] Properties to set - */ - function GetWebhookRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * RolloutStep displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep + * @instance + */ + RolloutStep.prototype.displayName = ""; - /** - * GetWebhookRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest - * @instance - */ - GetWebhookRequest.prototype.name = ""; + /** + * RolloutStep trafficPercent. + * @member {number} trafficPercent + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep + * @instance + */ + RolloutStep.prototype.trafficPercent = 0; - /** - * Creates a new GetWebhookRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IGetWebhookRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.GetWebhookRequest} GetWebhookRequest instance - */ - GetWebhookRequest.create = function create(properties) { - return new GetWebhookRequest(properties); - }; + /** + * RolloutStep minDuration. + * @member {google.protobuf.IDuration|null|undefined} minDuration + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep + * @instance + */ + RolloutStep.prototype.minDuration = null; - /** - * Encodes the specified GetWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetWebhookRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IGetWebhookRequest} message GetWebhookRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetWebhookRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; + /** + * Creates a new RolloutStep instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep + * @static + * @param {google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep} RolloutStep instance + */ + RolloutStep.create = function create(properties) { + return new RolloutStep(properties); + }; - /** - * Encodes the specified GetWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetWebhookRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IGetWebhookRequest} message GetWebhookRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetWebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified RolloutStep message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep + * @static + * @param {google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep} message RolloutStep message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RolloutStep.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName); + if (message.trafficPercent != null && Object.hasOwnProperty.call(message, "trafficPercent")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.trafficPercent); + if (message.minDuration != null && Object.hasOwnProperty.call(message, "minDuration")) + $root.google.protobuf.Duration.encode(message.minDuration, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; - /** - * Decodes a GetWebhookRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.GetWebhookRequest} GetWebhookRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetWebhookRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetWebhookRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Encodes the specified RolloutStep message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep + * @static + * @param {google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep} message RolloutStep message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RolloutStep.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RolloutStep message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep} RolloutStep + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RolloutStep.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.displayName = reader.string(); + break; + case 2: + message.trafficPercent = reader.int32(); + break; + case 3: + message.minDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a GetWebhookRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.GetWebhookRequest} GetWebhookRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetWebhookRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a RolloutStep message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep} RolloutStep + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RolloutStep.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a GetWebhookRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetWebhookRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; + /** + * Verifies a RolloutStep message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RolloutStep.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.trafficPercent != null && message.hasOwnProperty("trafficPercent")) + if (!$util.isInteger(message.trafficPercent)) + return "trafficPercent: integer expected"; + if (message.minDuration != null && message.hasOwnProperty("minDuration")) { + var error = $root.google.protobuf.Duration.verify(message.minDuration); + if (error) + return "minDuration." + error; + } + return null; + }; - /** - * Creates a GetWebhookRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.GetWebhookRequest} GetWebhookRequest - */ - GetWebhookRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetWebhookRequest) + /** + * Creates a RolloutStep message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep} RolloutStep + */ + RolloutStep.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep(); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.trafficPercent != null) + message.trafficPercent = object.trafficPercent | 0; + if (object.minDuration != null) { + if (typeof object.minDuration !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.minDuration: object expected"); + message.minDuration = $root.google.protobuf.Duration.fromObject(object.minDuration); + } + return message; + }; + + /** + * Creates a plain object from a RolloutStep message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep + * @static + * @param {google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep} message RolloutStep + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RolloutStep.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.displayName = ""; + object.trafficPercent = 0; + object.minDuration = null; + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.trafficPercent != null && message.hasOwnProperty("trafficPercent")) + object.trafficPercent = message.trafficPercent; + if (message.minDuration != null && message.hasOwnProperty("minDuration")) + object.minDuration = $root.google.protobuf.Duration.toObject(message.minDuration, options); return object; - var message = new $root.google.cloud.dialogflow.cx.v3.GetWebhookRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + }; - /** - * Creates a plain object from a GetWebhookRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.GetWebhookRequest} message GetWebhookRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetWebhookRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + /** + * Converts this RolloutStep to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep + * @instance + * @returns {Object.} JSON object + */ + RolloutStep.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this GetWebhookRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest - * @instance - * @returns {Object.} JSON object - */ - GetWebhookRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return RolloutStep; + })(); - return GetWebhookRequest; + return RolloutConfig; })(); - v3.CreateWebhookRequest = (function() { + v3.RolloutState = (function() { /** - * Properties of a CreateWebhookRequest. + * Properties of a RolloutState. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ICreateWebhookRequest - * @property {string|null} [parent] CreateWebhookRequest parent - * @property {google.cloud.dialogflow.cx.v3.IWebhook|null} [webhook] CreateWebhookRequest webhook + * @interface IRolloutState + * @property {string|null} [step] RolloutState step + * @property {number|null} [stepIndex] RolloutState stepIndex + * @property {google.protobuf.ITimestamp|null} [startTime] RolloutState startTime */ /** - * Constructs a new CreateWebhookRequest. + * Constructs a new RolloutState. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CreateWebhookRequest. - * @implements ICreateWebhookRequest + * @classdesc Represents a RolloutState. + * @implements IRolloutState * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICreateWebhookRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IRolloutState=} [properties] Properties to set */ - function CreateWebhookRequest(properties) { + function RolloutState(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53770,88 +53306,101 @@ } /** - * CreateWebhookRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest + * RolloutState step. + * @member {string} step + * @memberof google.cloud.dialogflow.cx.v3.RolloutState * @instance */ - CreateWebhookRequest.prototype.parent = ""; + RolloutState.prototype.step = ""; /** - * CreateWebhookRequest webhook. - * @member {google.cloud.dialogflow.cx.v3.IWebhook|null|undefined} webhook - * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest + * RolloutState stepIndex. + * @member {number} stepIndex + * @memberof google.cloud.dialogflow.cx.v3.RolloutState * @instance */ - CreateWebhookRequest.prototype.webhook = null; + RolloutState.prototype.stepIndex = 0; /** - * Creates a new CreateWebhookRequest instance using the specified properties. + * RolloutState startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.dialogflow.cx.v3.RolloutState + * @instance + */ + RolloutState.prototype.startTime = null; + + /** + * Creates a new RolloutState instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.RolloutState * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateWebhookRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.CreateWebhookRequest} CreateWebhookRequest instance + * @param {google.cloud.dialogflow.cx.v3.IRolloutState=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.RolloutState} RolloutState instance */ - CreateWebhookRequest.create = function create(properties) { - return new CreateWebhookRequest(properties); + RolloutState.create = function create(properties) { + return new RolloutState(properties); }; /** - * Encodes the specified CreateWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateWebhookRequest.verify|verify} messages. + * Encodes the specified RolloutState message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutState.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.RolloutState * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateWebhookRequest} message CreateWebhookRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IRolloutState} message RolloutState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateWebhookRequest.encode = function encode(message, writer) { + RolloutState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.webhook != null && Object.hasOwnProperty.call(message, "webhook")) - $root.google.cloud.dialogflow.cx.v3.Webhook.encode(message.webhook, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.step != null && Object.hasOwnProperty.call(message, "step")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.step); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.stepIndex != null && Object.hasOwnProperty.call(message, "stepIndex")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.stepIndex); return writer; }; /** - * Encodes the specified CreateWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateWebhookRequest.verify|verify} messages. + * Encodes the specified RolloutState message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutState.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.RolloutState * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateWebhookRequest} message CreateWebhookRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IRolloutState} message RolloutState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateWebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { + RolloutState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateWebhookRequest message from the specified reader or buffer. + * Decodes a RolloutState message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.RolloutState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.CreateWebhookRequest} CreateWebhookRequest + * @returns {google.cloud.dialogflow.cx.v3.RolloutState} RolloutState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateWebhookRequest.decode = function decode(reader, length) { + RolloutState.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateWebhookRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.RolloutState(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.step = reader.string(); + break; + case 3: + message.stepIndex = reader.int32(); break; case 2: - message.webhook = $root.google.cloud.dialogflow.cx.v3.Webhook.decode(reader, reader.uint32()); + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -53862,122 +53411,131 @@ }; /** - * Decodes a CreateWebhookRequest message from the specified reader or buffer, length delimited. + * Decodes a RolloutState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.RolloutState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.CreateWebhookRequest} CreateWebhookRequest + * @returns {google.cloud.dialogflow.cx.v3.RolloutState} RolloutState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateWebhookRequest.decodeDelimited = function decodeDelimited(reader) { + RolloutState.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateWebhookRequest message. + * Verifies a RolloutState message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.RolloutState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateWebhookRequest.verify = function verify(message) { + RolloutState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.webhook != null && message.hasOwnProperty("webhook")) { - var error = $root.google.cloud.dialogflow.cx.v3.Webhook.verify(message.webhook); + if (message.step != null && message.hasOwnProperty("step")) + if (!$util.isString(message.step)) + return "step: string expected"; + if (message.stepIndex != null && message.hasOwnProperty("stepIndex")) + if (!$util.isInteger(message.stepIndex)) + return "stepIndex: integer expected"; + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); if (error) - return "webhook." + error; + return "startTime." + error; } return null; }; /** - * Creates a CreateWebhookRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RolloutState message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.RolloutState * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CreateWebhookRequest} CreateWebhookRequest + * @returns {google.cloud.dialogflow.cx.v3.RolloutState} RolloutState */ - CreateWebhookRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateWebhookRequest) + RolloutState.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.RolloutState) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.CreateWebhookRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.webhook != null) { - if (typeof object.webhook !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CreateWebhookRequest.webhook: object expected"); - message.webhook = $root.google.cloud.dialogflow.cx.v3.Webhook.fromObject(object.webhook); + var message = new $root.google.cloud.dialogflow.cx.v3.RolloutState(); + if (object.step != null) + message.step = String(object.step); + if (object.stepIndex != null) + message.stepIndex = object.stepIndex | 0; + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.RolloutState.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); } return message; }; /** - * Creates a plain object from a CreateWebhookRequest message. Also converts values to other types if specified. + * Creates a plain object from a RolloutState message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.RolloutState * @static - * @param {google.cloud.dialogflow.cx.v3.CreateWebhookRequest} message CreateWebhookRequest + * @param {google.cloud.dialogflow.cx.v3.RolloutState} message RolloutState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateWebhookRequest.toObject = function toObject(message, options) { + RolloutState.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.webhook = null; + object.step = ""; + object.startTime = null; + object.stepIndex = 0; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.webhook != null && message.hasOwnProperty("webhook")) - object.webhook = $root.google.cloud.dialogflow.cx.v3.Webhook.toObject(message.webhook, options); + if (message.step != null && message.hasOwnProperty("step")) + object.step = message.step; + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.stepIndex != null && message.hasOwnProperty("stepIndex")) + object.stepIndex = message.stepIndex; return object; }; /** - * Converts this CreateWebhookRequest to JSON. + * Converts this RolloutState to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.RolloutState * @instance * @returns {Object.} JSON object */ - CreateWebhookRequest.prototype.toJSON = function toJSON() { + RolloutState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateWebhookRequest; + return RolloutState; })(); - v3.UpdateWebhookRequest = (function() { + v3.ListExperimentsRequest = (function() { /** - * Properties of an UpdateWebhookRequest. + * Properties of a ListExperimentsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IUpdateWebhookRequest - * @property {google.cloud.dialogflow.cx.v3.IWebhook|null} [webhook] UpdateWebhookRequest webhook - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateWebhookRequest updateMask + * @interface IListExperimentsRequest + * @property {string|null} [parent] ListExperimentsRequest parent + * @property {number|null} [pageSize] ListExperimentsRequest pageSize + * @property {string|null} [pageToken] ListExperimentsRequest pageToken */ /** - * Constructs a new UpdateWebhookRequest. + * Constructs a new ListExperimentsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an UpdateWebhookRequest. - * @implements IUpdateWebhookRequest + * @classdesc Represents a ListExperimentsRequest. + * @implements IListExperimentsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListExperimentsRequest=} [properties] Properties to set */ - function UpdateWebhookRequest(properties) { + function ListExperimentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53985,88 +53543,101 @@ } /** - * UpdateWebhookRequest webhook. - * @member {google.cloud.dialogflow.cx.v3.IWebhook|null|undefined} webhook - * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest + * ListExperimentsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @instance */ - UpdateWebhookRequest.prototype.webhook = null; + ListExperimentsRequest.prototype.parent = ""; /** - * UpdateWebhookRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest + * ListExperimentsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @instance */ - UpdateWebhookRequest.prototype.updateMask = null; + ListExperimentsRequest.prototype.pageSize = 0; /** - * Creates a new UpdateWebhookRequest instance using the specified properties. + * ListExperimentsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest + * @instance + */ + ListExperimentsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListExperimentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.UpdateWebhookRequest} UpdateWebhookRequest instance + * @param {google.cloud.dialogflow.cx.v3.IListExperimentsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsRequest} ListExperimentsRequest instance */ - UpdateWebhookRequest.create = function create(properties) { - return new UpdateWebhookRequest(properties); + ListExperimentsRequest.create = function create(properties) { + return new ListExperimentsRequest(properties); }; /** - * Encodes the specified UpdateWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateWebhookRequest.verify|verify} messages. + * Encodes the specified ListExperimentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest} message UpdateWebhookRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListExperimentsRequest} message ListExperimentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateWebhookRequest.encode = function encode(message, writer) { + ListExperimentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.webhook != null && Object.hasOwnProperty.call(message, "webhook")) - $root.google.cloud.dialogflow.cx.v3.Webhook.encode(message.webhook, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified UpdateWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateWebhookRequest.verify|verify} messages. + * Encodes the specified ListExperimentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest} message UpdateWebhookRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListExperimentsRequest} message ListExperimentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateWebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListExperimentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateWebhookRequest message from the specified reader or buffer. + * Decodes a ListExperimentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.UpdateWebhookRequest} UpdateWebhookRequest + * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsRequest} ListExperimentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateWebhookRequest.decode = function decode(reader, length) { + ListExperimentsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateWebhookRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListExperimentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.webhook = $root.google.cloud.dialogflow.cx.v3.Webhook.decode(reader, reader.uint32()); + message.parent = reader.string(); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -54077,127 +53648,126 @@ }; /** - * Decodes an UpdateWebhookRequest message from the specified reader or buffer, length delimited. + * Decodes a ListExperimentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.UpdateWebhookRequest} UpdateWebhookRequest + * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsRequest} ListExperimentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateWebhookRequest.decodeDelimited = function decodeDelimited(reader) { + ListExperimentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateWebhookRequest message. + * Verifies a ListExperimentsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateWebhookRequest.verify = function verify(message) { + ListExperimentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.webhook != null && message.hasOwnProperty("webhook")) { - var error = $root.google.cloud.dialogflow.cx.v3.Webhook.verify(message.webhook); - if (error) - return "webhook." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates an UpdateWebhookRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListExperimentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.UpdateWebhookRequest} UpdateWebhookRequest + * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsRequest} ListExperimentsRequest */ - UpdateWebhookRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateWebhookRequest) + ListExperimentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListExperimentsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.UpdateWebhookRequest(); - if (object.webhook != null) { - if (typeof object.webhook !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateWebhookRequest.webhook: object expected"); - message.webhook = $root.google.cloud.dialogflow.cx.v3.Webhook.fromObject(object.webhook); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateWebhookRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.cloud.dialogflow.cx.v3.ListExperimentsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from an UpdateWebhookRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListExperimentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.UpdateWebhookRequest} message UpdateWebhookRequest + * @param {google.cloud.dialogflow.cx.v3.ListExperimentsRequest} message ListExperimentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateWebhookRequest.toObject = function toObject(message, options) { + ListExperimentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.webhook = null; - object.updateMask = null; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.webhook != null && message.hasOwnProperty("webhook")) - object.webhook = $root.google.cloud.dialogflow.cx.v3.Webhook.toObject(message.webhook, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this UpdateWebhookRequest to JSON. + * Converts this ListExperimentsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @instance * @returns {Object.} JSON object */ - UpdateWebhookRequest.prototype.toJSON = function toJSON() { + ListExperimentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateWebhookRequest; + return ListExperimentsRequest; })(); - v3.DeleteWebhookRequest = (function() { + v3.ListExperimentsResponse = (function() { /** - * Properties of a DeleteWebhookRequest. + * Properties of a ListExperimentsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDeleteWebhookRequest - * @property {string|null} [name] DeleteWebhookRequest name - * @property {boolean|null} [force] DeleteWebhookRequest force + * @interface IListExperimentsResponse + * @property {Array.|null} [experiments] ListExperimentsResponse experiments + * @property {string|null} [nextPageToken] ListExperimentsResponse nextPageToken */ /** - * Constructs a new DeleteWebhookRequest. + * Constructs a new ListExperimentsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DeleteWebhookRequest. - * @implements IDeleteWebhookRequest + * @classdesc Represents a ListExperimentsResponse. + * @implements IListExperimentsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListExperimentsResponse=} [properties] Properties to set */ - function DeleteWebhookRequest(properties) { + function ListExperimentsResponse(properties) { + this.experiments = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54205,88 +53775,91 @@ } /** - * DeleteWebhookRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest + * ListExperimentsResponse experiments. + * @member {Array.} experiments + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse * @instance */ - DeleteWebhookRequest.prototype.name = ""; + ListExperimentsResponse.prototype.experiments = $util.emptyArray; /** - * DeleteWebhookRequest force. - * @member {boolean} force - * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest + * ListExperimentsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse * @instance */ - DeleteWebhookRequest.prototype.force = false; + ListExperimentsResponse.prototype.nextPageToken = ""; /** - * Creates a new DeleteWebhookRequest instance using the specified properties. + * Creates a new ListExperimentsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.DeleteWebhookRequest} DeleteWebhookRequest instance + * @param {google.cloud.dialogflow.cx.v3.IListExperimentsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsResponse} ListExperimentsResponse instance */ - DeleteWebhookRequest.create = function create(properties) { - return new DeleteWebhookRequest(properties); + ListExperimentsResponse.create = function create(properties) { + return new ListExperimentsResponse(properties); }; /** - * Encodes the specified DeleteWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteWebhookRequest.verify|verify} messages. + * Encodes the specified ListExperimentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest} message DeleteWebhookRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListExperimentsResponse} message ListExperimentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteWebhookRequest.encode = function encode(message, writer) { + ListExperimentsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); + if (message.experiments != null && message.experiments.length) + for (var i = 0; i < message.experiments.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Experiment.encode(message.experiments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified DeleteWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteWebhookRequest.verify|verify} messages. + * Encodes the specified ListExperimentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest} message DeleteWebhookRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListExperimentsResponse} message ListExperimentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteWebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListExperimentsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteWebhookRequest message from the specified reader or buffer. + * Decodes a ListExperimentsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.DeleteWebhookRequest} DeleteWebhookRequest + * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsResponse} ListExperimentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteWebhookRequest.decode = function decode(reader, length) { + ListExperimentsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteWebhookRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListExperimentsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.experiments && message.experiments.length)) + message.experiments = []; + message.experiments.push($root.google.cloud.dialogflow.cx.v3.Experiment.decode(reader, reader.uint32())); break; case 2: - message.force = reader.bool(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -54297,129 +53870,133 @@ }; /** - * Decodes a DeleteWebhookRequest message from the specified reader or buffer, length delimited. + * Decodes a ListExperimentsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.DeleteWebhookRequest} DeleteWebhookRequest + * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsResponse} ListExperimentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteWebhookRequest.decodeDelimited = function decodeDelimited(reader) { + ListExperimentsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteWebhookRequest message. + * Verifies a ListExperimentsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteWebhookRequest.verify = function verify(message) { + ListExperimentsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; + if (message.experiments != null && message.hasOwnProperty("experiments")) { + if (!Array.isArray(message.experiments)) + return "experiments: array expected"; + for (var i = 0; i < message.experiments.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Experiment.verify(message.experiments[i]); + if (error) + return "experiments." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a DeleteWebhookRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListExperimentsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DeleteWebhookRequest} DeleteWebhookRequest + * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsResponse} ListExperimentsResponse */ - DeleteWebhookRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteWebhookRequest) + ListExperimentsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListExperimentsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.DeleteWebhookRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.force != null) - message.force = Boolean(object.force); + var message = new $root.google.cloud.dialogflow.cx.v3.ListExperimentsResponse(); + if (object.experiments) { + if (!Array.isArray(object.experiments)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ListExperimentsResponse.experiments: array expected"); + message.experiments = []; + for (var i = 0; i < object.experiments.length; ++i) { + if (typeof object.experiments[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ListExperimentsResponse.experiments: object expected"); + message.experiments[i] = $root.google.cloud.dialogflow.cx.v3.Experiment.fromObject(object.experiments[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a DeleteWebhookRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListExperimentsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.DeleteWebhookRequest} message DeleteWebhookRequest + * @param {google.cloud.dialogflow.cx.v3.ListExperimentsResponse} message ListExperimentsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteWebhookRequest.toObject = function toObject(message, options) { + ListExperimentsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.force = false; + if (options.arrays || options.defaults) + object.experiments = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.experiments && message.experiments.length) { + object.experiments = []; + for (var j = 0; j < message.experiments.length; ++j) + object.experiments[j] = $root.google.cloud.dialogflow.cx.v3.Experiment.toObject(message.experiments[j], options); } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this DeleteWebhookRequest to JSON. + * Converts this ListExperimentsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse * @instance * @returns {Object.} JSON object */ - DeleteWebhookRequest.prototype.toJSON = function toJSON() { + ListExperimentsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteWebhookRequest; + return ListExperimentsResponse; })(); - v3.WebhookRequest = (function() { + v3.GetExperimentRequest = (function() { /** - * Properties of a WebhookRequest. + * Properties of a GetExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IWebhookRequest - * @property {string|null} [detectIntentResponseId] WebhookRequest detectIntentResponseId - * @property {string|null} [text] WebhookRequest text - * @property {string|null} [triggerIntent] WebhookRequest triggerIntent - * @property {string|null} [transcript] WebhookRequest transcript - * @property {string|null} [triggerEvent] WebhookRequest triggerEvent - * @property {string|null} [languageCode] WebhookRequest languageCode - * @property {google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo|null} [fulfillmentInfo] WebhookRequest fulfillmentInfo - * @property {google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo|null} [intentInfo] WebhookRequest intentInfo - * @property {google.cloud.dialogflow.cx.v3.IPageInfo|null} [pageInfo] WebhookRequest pageInfo - * @property {google.cloud.dialogflow.cx.v3.ISessionInfo|null} [sessionInfo] WebhookRequest sessionInfo - * @property {Array.|null} [messages] WebhookRequest messages - * @property {google.protobuf.IStruct|null} [payload] WebhookRequest payload - * @property {google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult|null} [sentimentAnalysisResult] WebhookRequest sentimentAnalysisResult + * @interface IGetExperimentRequest + * @property {string|null} [name] GetExperimentRequest name */ /** - * Constructs a new WebhookRequest. + * Constructs a new GetExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a WebhookRequest. - * @implements IWebhookRequest + * @classdesc Represents a GetExperimentRequest. + * @implements IGetExperimentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IWebhookRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetExperimentRequest=} [properties] Properties to set */ - function WebhookRequest(properties) { - this.messages = []; + function GetExperimentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54427,248 +54004,75 @@ } /** - * WebhookRequest detectIntentResponseId. - * @member {string} detectIntentResponseId - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @instance - */ - WebhookRequest.prototype.detectIntentResponseId = ""; - - /** - * WebhookRequest text. - * @member {string|null|undefined} text - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @instance - */ - WebhookRequest.prototype.text = null; - - /** - * WebhookRequest triggerIntent. - * @member {string|null|undefined} triggerIntent - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @instance - */ - WebhookRequest.prototype.triggerIntent = null; - - /** - * WebhookRequest transcript. - * @member {string|null|undefined} transcript - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @instance - */ - WebhookRequest.prototype.transcript = null; - - /** - * WebhookRequest triggerEvent. - * @member {string|null|undefined} triggerEvent - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @instance - */ - WebhookRequest.prototype.triggerEvent = null; - - /** - * WebhookRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @instance - */ - WebhookRequest.prototype.languageCode = ""; - - /** - * WebhookRequest fulfillmentInfo. - * @member {google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo|null|undefined} fulfillmentInfo - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @instance - */ - WebhookRequest.prototype.fulfillmentInfo = null; - - /** - * WebhookRequest intentInfo. - * @member {google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo|null|undefined} intentInfo - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @instance - */ - WebhookRequest.prototype.intentInfo = null; - - /** - * WebhookRequest pageInfo. - * @member {google.cloud.dialogflow.cx.v3.IPageInfo|null|undefined} pageInfo - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @instance - */ - WebhookRequest.prototype.pageInfo = null; - - /** - * WebhookRequest sessionInfo. - * @member {google.cloud.dialogflow.cx.v3.ISessionInfo|null|undefined} sessionInfo - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @instance - */ - WebhookRequest.prototype.sessionInfo = null; - - /** - * WebhookRequest messages. - * @member {Array.} messages - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @instance - */ - WebhookRequest.prototype.messages = $util.emptyArray; - - /** - * WebhookRequest payload. - * @member {google.protobuf.IStruct|null|undefined} payload - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @instance - */ - WebhookRequest.prototype.payload = null; - - /** - * WebhookRequest sentimentAnalysisResult. - * @member {google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult|null|undefined} sentimentAnalysisResult - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @instance - */ - WebhookRequest.prototype.sentimentAnalysisResult = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * WebhookRequest query. - * @member {"text"|"triggerIntent"|"transcript"|"triggerEvent"|undefined} query - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * GetExperimentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest * @instance */ - Object.defineProperty(WebhookRequest.prototype, "query", { - get: $util.oneOfGetter($oneOfFields = ["text", "triggerIntent", "transcript", "triggerEvent"]), - set: $util.oneOfSetter($oneOfFields) - }); + GetExperimentRequest.prototype.name = ""; /** - * Creates a new WebhookRequest instance using the specified properties. + * Creates a new GetExperimentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IWebhookRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest} WebhookRequest instance + * @param {google.cloud.dialogflow.cx.v3.IGetExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetExperimentRequest} GetExperimentRequest instance */ - WebhookRequest.create = function create(properties) { - return new WebhookRequest(properties); + GetExperimentRequest.create = function create(properties) { + return new GetExperimentRequest(properties); }; /** - * Encodes the specified WebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.verify|verify} messages. + * Encodes the specified GetExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetExperimentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IWebhookRequest} message WebhookRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetExperimentRequest} message GetExperimentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WebhookRequest.encode = function encode(message, writer) { + GetExperimentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.detectIntentResponseId != null && Object.hasOwnProperty.call(message, "detectIntentResponseId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.detectIntentResponseId); - if (message.intentInfo != null && Object.hasOwnProperty.call(message, "intentInfo")) - $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.encode(message.intentInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.pageInfo != null && Object.hasOwnProperty.call(message, "pageInfo")) - $root.google.cloud.dialogflow.cx.v3.PageInfo.encode(message.pageInfo, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.sessionInfo != null && Object.hasOwnProperty.call(message, "sessionInfo")) - $root.google.cloud.dialogflow.cx.v3.SessionInfo.encode(message.sessionInfo, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.fulfillmentInfo != null && Object.hasOwnProperty.call(message, "fulfillmentInfo")) - $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.encode(message.fulfillmentInfo, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.messages != null && message.messages.length) - for (var i = 0; i < message.messages.length; ++i) - $root.google.cloud.dialogflow.cx.v3.ResponseMessage.encode(message.messages[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) - $root.google.protobuf.Struct.encode(message.payload, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.sentimentAnalysisResult != null && Object.hasOwnProperty.call(message, "sentimentAnalysisResult")) - $root.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.encode(message.sentimentAnalysisResult, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.text != null && Object.hasOwnProperty.call(message, "text")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.text); - if (message.triggerIntent != null && Object.hasOwnProperty.call(message, "triggerIntent")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.triggerIntent); - if (message.transcript != null && Object.hasOwnProperty.call(message, "transcript")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.transcript); - if (message.triggerEvent != null && Object.hasOwnProperty.call(message, "triggerEvent")) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.triggerEvent); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 15, wireType 2 =*/122).string(message.languageCode); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified WebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.verify|verify} messages. + * Encodes the specified GetExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetExperimentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IWebhookRequest} message WebhookRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetExperimentRequest} message GetExperimentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WebhookRequest message from the specified reader or buffer. + * Decodes a GetExperimentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest} WebhookRequest + * @returns {google.cloud.dialogflow.cx.v3.GetExperimentRequest} GetExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WebhookRequest.decode = function decode(reader, length) { + GetExperimentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.WebhookRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetExperimentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.detectIntentResponseId = reader.string(); - break; - case 10: - message.text = reader.string(); - break; - case 11: - message.triggerIntent = reader.string(); - break; - case 12: - message.transcript = reader.string(); - break; - case 14: - message.triggerEvent = reader.string(); - break; - case 15: - message.languageCode = reader.string(); - break; - case 6: - message.fulfillmentInfo = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.decode(reader, reader.uint32()); - break; - case 3: - message.intentInfo = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.decode(reader, reader.uint32()); - break; - case 4: - message.pageInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.decode(reader, reader.uint32()); - break; - case 5: - message.sessionInfo = $root.google.cloud.dialogflow.cx.v3.SessionInfo.decode(reader, reader.uint32()); - break; - case 7: - if (!(message.messages && message.messages.length)) - message.messages = []; - message.messages.push($root.google.cloud.dialogflow.cx.v3.ResponseMessage.decode(reader, reader.uint32())); - break; - case 8: - message.payload = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 9: - message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -54679,1189 +54083,916 @@ }; /** - * Decodes a WebhookRequest message from the specified reader or buffer, length delimited. + * Decodes a GetExperimentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest} WebhookRequest + * @returns {google.cloud.dialogflow.cx.v3.GetExperimentRequest} GetExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WebhookRequest.decodeDelimited = function decodeDelimited(reader) { + GetExperimentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WebhookRequest message. + * Verifies a GetExperimentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WebhookRequest.verify = function verify(message) { + GetExperimentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.detectIntentResponseId != null && message.hasOwnProperty("detectIntentResponseId")) - if (!$util.isString(message.detectIntentResponseId)) - return "detectIntentResponseId: string expected"; - if (message.text != null && message.hasOwnProperty("text")) { - properties.query = 1; - if (!$util.isString(message.text)) - return "text: string expected"; - } - if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { - if (properties.query === 1) - return "query: multiple values"; - properties.query = 1; - if (!$util.isString(message.triggerIntent)) - return "triggerIntent: string expected"; - } - if (message.transcript != null && message.hasOwnProperty("transcript")) { - if (properties.query === 1) - return "query: multiple values"; - properties.query = 1; - if (!$util.isString(message.transcript)) - return "transcript: string expected"; - } - if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { - if (properties.query === 1) - return "query: multiple values"; - properties.query = 1; - if (!$util.isString(message.triggerEvent)) - return "triggerEvent: string expected"; - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; - if (message.fulfillmentInfo != null && message.hasOwnProperty("fulfillmentInfo")) { - var error = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.verify(message.fulfillmentInfo); - if (error) - return "fulfillmentInfo." + error; - } - if (message.intentInfo != null && message.hasOwnProperty("intentInfo")) { - var error = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.verify(message.intentInfo); - if (error) - return "intentInfo." + error; - } - if (message.pageInfo != null && message.hasOwnProperty("pageInfo")) { - var error = $root.google.cloud.dialogflow.cx.v3.PageInfo.verify(message.pageInfo); - if (error) - return "pageInfo." + error; - } - if (message.sessionInfo != null && message.hasOwnProperty("sessionInfo")) { - var error = $root.google.cloud.dialogflow.cx.v3.SessionInfo.verify(message.sessionInfo); - if (error) - return "sessionInfo." + error; - } - if (message.messages != null && message.hasOwnProperty("messages")) { - if (!Array.isArray(message.messages)) - return "messages: array expected"; - for (var i = 0; i < message.messages.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.verify(message.messages[i]); - if (error) - return "messages." + error; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetExperimentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.GetExperimentRequest} GetExperimentRequest + */ + GetExperimentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetExperimentRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.GetExperimentRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetExperimentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.GetExperimentRequest} message GetExperimentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetExperimentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetExperimentRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest + * @instance + * @returns {Object.} JSON object + */ + GetExperimentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetExperimentRequest; + })(); + + v3.CreateExperimentRequest = (function() { + + /** + * Properties of a CreateExperimentRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface ICreateExperimentRequest + * @property {string|null} [parent] CreateExperimentRequest parent + * @property {google.cloud.dialogflow.cx.v3.IExperiment|null} [experiment] CreateExperimentRequest experiment + */ + + /** + * Constructs a new CreateExperimentRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a CreateExperimentRequest. + * @implements ICreateExperimentRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest=} [properties] Properties to set + */ + function CreateExperimentRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateExperimentRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest + * @instance + */ + CreateExperimentRequest.prototype.parent = ""; + + /** + * CreateExperimentRequest experiment. + * @member {google.cloud.dialogflow.cx.v3.IExperiment|null|undefined} experiment + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest + * @instance + */ + CreateExperimentRequest.prototype.experiment = null; + + /** + * Creates a new CreateExperimentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateExperimentRequest} CreateExperimentRequest instance + */ + CreateExperimentRequest.create = function create(properties) { + return new CreateExperimentRequest(properties); + }; + + /** + * Encodes the specified CreateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateExperimentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest} message CreateExperimentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateExperimentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.experiment != null && Object.hasOwnProperty.call(message, "experiment")) + $root.google.cloud.dialogflow.cx.v3.Experiment.encode(message.experiment, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateExperimentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest} message CreateExperimentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateExperimentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.CreateExperimentRequest} CreateExperimentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateExperimentRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateExperimentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; } } - if (message.payload != null && message.hasOwnProperty("payload")) { - var error = $root.google.protobuf.Struct.verify(message.payload); - if (error) - return "payload." + error; - } - if (message.sentimentAnalysisResult != null && message.hasOwnProperty("sentimentAnalysisResult")) { - var error = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.verify(message.sentimentAnalysisResult); + return message; + }; + + /** + * Decodes a CreateExperimentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.CreateExperimentRequest} CreateExperimentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateExperimentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateExperimentRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateExperimentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.experiment != null && message.hasOwnProperty("experiment")) { + var error = $root.google.cloud.dialogflow.cx.v3.Experiment.verify(message.experiment); if (error) - return "sentimentAnalysisResult." + error; + return "experiment." + error; } return null; }; /** - * Creates a WebhookRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateExperimentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest} WebhookRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateExperimentRequest} CreateExperimentRequest */ - WebhookRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookRequest) + CreateExperimentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateExperimentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.WebhookRequest(); - if (object.detectIntentResponseId != null) - message.detectIntentResponseId = String(object.detectIntentResponseId); - if (object.text != null) - message.text = String(object.text); - if (object.triggerIntent != null) - message.triggerIntent = String(object.triggerIntent); - if (object.transcript != null) - message.transcript = String(object.transcript); - if (object.triggerEvent != null) - message.triggerEvent = String(object.triggerEvent); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); - if (object.fulfillmentInfo != null) { - if (typeof object.fulfillmentInfo !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.fulfillmentInfo: object expected"); - message.fulfillmentInfo = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.fromObject(object.fulfillmentInfo); - } - if (object.intentInfo != null) { - if (typeof object.intentInfo !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.intentInfo: object expected"); - message.intentInfo = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.fromObject(object.intentInfo); - } - if (object.pageInfo != null) { - if (typeof object.pageInfo !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.pageInfo: object expected"); - message.pageInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.fromObject(object.pageInfo); - } - if (object.sessionInfo != null) { - if (typeof object.sessionInfo !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.sessionInfo: object expected"); - message.sessionInfo = $root.google.cloud.dialogflow.cx.v3.SessionInfo.fromObject(object.sessionInfo); - } - if (object.messages) { - if (!Array.isArray(object.messages)) - throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.messages: array expected"); - message.messages = []; - for (var i = 0; i < object.messages.length; ++i) { - if (typeof object.messages[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.messages: object expected"); - message.messages[i] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.fromObject(object.messages[i]); - } - } - if (object.payload != null) { - if (typeof object.payload !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.payload: object expected"); - message.payload = $root.google.protobuf.Struct.fromObject(object.payload); - } - if (object.sentimentAnalysisResult != null) { - if (typeof object.sentimentAnalysisResult !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.sentimentAnalysisResult: object expected"); - message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.fromObject(object.sentimentAnalysisResult); + var message = new $root.google.cloud.dialogflow.cx.v3.CreateExperimentRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.experiment != null) { + if (typeof object.experiment !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CreateExperimentRequest.experiment: object expected"); + message.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.fromObject(object.experiment); } return message; }; /** - * Creates a plain object from a WebhookRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateExperimentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest} message WebhookRequest + * @param {google.cloud.dialogflow.cx.v3.CreateExperimentRequest} message CreateExperimentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WebhookRequest.toObject = function toObject(message, options) { + CreateExperimentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.messages = []; if (options.defaults) { - object.detectIntentResponseId = ""; - object.intentInfo = null; - object.pageInfo = null; - object.sessionInfo = null; - object.fulfillmentInfo = null; - object.payload = null; - object.sentimentAnalysisResult = null; - object.languageCode = ""; - } - if (message.detectIntentResponseId != null && message.hasOwnProperty("detectIntentResponseId")) - object.detectIntentResponseId = message.detectIntentResponseId; - if (message.intentInfo != null && message.hasOwnProperty("intentInfo")) - object.intentInfo = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.toObject(message.intentInfo, options); - if (message.pageInfo != null && message.hasOwnProperty("pageInfo")) - object.pageInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.toObject(message.pageInfo, options); - if (message.sessionInfo != null && message.hasOwnProperty("sessionInfo")) - object.sessionInfo = $root.google.cloud.dialogflow.cx.v3.SessionInfo.toObject(message.sessionInfo, options); - if (message.fulfillmentInfo != null && message.hasOwnProperty("fulfillmentInfo")) - object.fulfillmentInfo = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.toObject(message.fulfillmentInfo, options); - if (message.messages && message.messages.length) { - object.messages = []; - for (var j = 0; j < message.messages.length; ++j) - object.messages[j] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.toObject(message.messages[j], options); - } - if (message.payload != null && message.hasOwnProperty("payload")) - object.payload = $root.google.protobuf.Struct.toObject(message.payload, options); - if (message.sentimentAnalysisResult != null && message.hasOwnProperty("sentimentAnalysisResult")) - object.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.toObject(message.sentimentAnalysisResult, options); - if (message.text != null && message.hasOwnProperty("text")) { - object.text = message.text; - if (options.oneofs) - object.query = "text"; - } - if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { - object.triggerIntent = message.triggerIntent; - if (options.oneofs) - object.query = "triggerIntent"; - } - if (message.transcript != null && message.hasOwnProperty("transcript")) { - object.transcript = message.transcript; - if (options.oneofs) - object.query = "transcript"; - } - if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { - object.triggerEvent = message.triggerEvent; - if (options.oneofs) - object.query = "triggerEvent"; + object.parent = ""; + object.experiment = null; } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.experiment != null && message.hasOwnProperty("experiment")) + object.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.toObject(message.experiment, options); return object; }; /** - * Converts this WebhookRequest to JSON. + * Converts this CreateExperimentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest * @instance * @returns {Object.} JSON object */ - WebhookRequest.prototype.toJSON = function toJSON() { + CreateExperimentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - WebhookRequest.FulfillmentInfo = (function() { + return CreateExperimentRequest; + })(); - /** - * Properties of a FulfillmentInfo. - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @interface IFulfillmentInfo - * @property {string|null} [tag] FulfillmentInfo tag - */ + v3.UpdateExperimentRequest = (function() { - /** - * Constructs a new FulfillmentInfo. - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @classdesc Represents a FulfillmentInfo. - * @implements IFulfillmentInfo - * @constructor - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo=} [properties] Properties to set - */ - function FulfillmentInfo(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of an UpdateExperimentRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IUpdateExperimentRequest + * @property {google.cloud.dialogflow.cx.v3.IExperiment|null} [experiment] UpdateExperimentRequest experiment + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateExperimentRequest updateMask + */ - /** - * FulfillmentInfo tag. - * @member {string} tag - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo - * @instance - */ - FulfillmentInfo.prototype.tag = ""; + /** + * Constructs a new UpdateExperimentRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents an UpdateExperimentRequest. + * @implements IUpdateExperimentRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest=} [properties] Properties to set + */ + function UpdateExperimentRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a new FulfillmentInfo instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo} FulfillmentInfo instance - */ - FulfillmentInfo.create = function create(properties) { - return new FulfillmentInfo(properties); - }; + /** + * UpdateExperimentRequest experiment. + * @member {google.cloud.dialogflow.cx.v3.IExperiment|null|undefined} experiment + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest + * @instance + */ + UpdateExperimentRequest.prototype.experiment = null; - /** - * Encodes the specified FulfillmentInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo} message FulfillmentInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FulfillmentInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.tag != null && Object.hasOwnProperty.call(message, "tag")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.tag); - return writer; - }; + /** + * UpdateExperimentRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest + * @instance + */ + UpdateExperimentRequest.prototype.updateMask = null; - /** - * Encodes the specified FulfillmentInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo} message FulfillmentInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FulfillmentInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new UpdateExperimentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdateExperimentRequest} UpdateExperimentRequest instance + */ + UpdateExperimentRequest.create = function create(properties) { + return new UpdateExperimentRequest(properties); + }; - /** - * Decodes a FulfillmentInfo message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo} FulfillmentInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FulfillmentInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tag = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FulfillmentInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo} FulfillmentInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FulfillmentInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified UpdateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateExperimentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest} message UpdateExperimentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateExperimentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.experiment != null && Object.hasOwnProperty.call(message, "experiment")) + $root.google.cloud.dialogflow.cx.v3.Experiment.encode(message.experiment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Verifies a FulfillmentInfo message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FulfillmentInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.tag != null && message.hasOwnProperty("tag")) - if (!$util.isString(message.tag)) - return "tag: string expected"; - return null; - }; + /** + * Encodes the specified UpdateExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateExperimentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest} message UpdateExperimentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a FulfillmentInfo message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo} FulfillmentInfo - */ - FulfillmentInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo(); - if (object.tag != null) - message.tag = String(object.tag); - return message; - }; + /** + * Decodes an UpdateExperimentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.UpdateExperimentRequest} UpdateExperimentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateExperimentRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateExperimentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.decode(reader, reader.uint32()); + break; + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a plain object from a FulfillmentInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo} message FulfillmentInfo - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FulfillmentInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.tag = ""; - if (message.tag != null && message.hasOwnProperty("tag")) - object.tag = message.tag; - return object; - }; + /** + * Decodes an UpdateExperimentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.UpdateExperimentRequest} UpdateExperimentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateExperimentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Converts this FulfillmentInfo to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo - * @instance - * @returns {Object.} JSON object - */ - FulfillmentInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Verifies an UpdateExperimentRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateExperimentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.experiment != null && message.hasOwnProperty("experiment")) { + var error = $root.google.cloud.dialogflow.cx.v3.Experiment.verify(message.experiment); + if (error) + return "experiment." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + return null; + }; - return FulfillmentInfo; - })(); + /** + * Creates an UpdateExperimentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.UpdateExperimentRequest} UpdateExperimentRequest + */ + UpdateExperimentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateExperimentRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.UpdateExperimentRequest(); + if (object.experiment != null) { + if (typeof object.experiment !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateExperimentRequest.experiment: object expected"); + message.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.fromObject(object.experiment); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateExperimentRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; - WebhookRequest.IntentInfo = (function() { + /** + * Creates a plain object from an UpdateExperimentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.UpdateExperimentRequest} message UpdateExperimentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateExperimentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.experiment = null; + object.updateMask = null; + } + if (message.experiment != null && message.hasOwnProperty("experiment")) + object.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.toObject(message.experiment, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; - /** - * Properties of an IntentInfo. - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @interface IIntentInfo - * @property {string|null} [lastMatchedIntent] IntentInfo lastMatchedIntent - * @property {string|null} [displayName] IntentInfo displayName - * @property {Object.|null} [parameters] IntentInfo parameters - * @property {number|null} [confidence] IntentInfo confidence - */ + /** + * Converts this UpdateExperimentRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateExperimentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new IntentInfo. - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @classdesc Represents an IntentInfo. - * @implements IIntentInfo - * @constructor - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo=} [properties] Properties to set - */ - function IntentInfo(properties) { - this.parameters = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + return UpdateExperimentRequest; + })(); - /** - * IntentInfo lastMatchedIntent. - * @member {string} lastMatchedIntent - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo - * @instance - */ - IntentInfo.prototype.lastMatchedIntent = ""; + v3.DeleteExperimentRequest = (function() { - /** - * IntentInfo displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo - * @instance - */ - IntentInfo.prototype.displayName = ""; + /** + * Properties of a DeleteExperimentRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IDeleteExperimentRequest + * @property {string|null} [name] DeleteExperimentRequest name + */ - /** - * IntentInfo parameters. - * @member {Object.} parameters - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo - * @instance - */ - IntentInfo.prototype.parameters = $util.emptyObject; + /** + * Constructs a new DeleteExperimentRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a DeleteExperimentRequest. + * @implements IDeleteExperimentRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest=} [properties] Properties to set + */ + function DeleteExperimentRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * IntentInfo confidence. - * @member {number} confidence - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo - * @instance - */ - IntentInfo.prototype.confidence = 0; + /** + * DeleteExperimentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest + * @instance + */ + DeleteExperimentRequest.prototype.name = ""; - /** - * Creates a new IntentInfo instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo} IntentInfo instance - */ - IntentInfo.create = function create(properties) { - return new IntentInfo(properties); - }; + /** + * Creates a new DeleteExperimentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeleteExperimentRequest} DeleteExperimentRequest instance + */ + DeleteExperimentRequest.create = function create(properties) { + return new DeleteExperimentRequest(properties); + }; - /** - * Encodes the specified IntentInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo} message IntentInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IntentInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.lastMatchedIntent != null && Object.hasOwnProperty.call(message, "lastMatchedIntent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.lastMatchedIntent); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - for (var keys = Object.keys(message.parameters), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.encode(message.parameters[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); - if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) - writer.uint32(/* id 4, wireType 5 =*/37).float(message.confidence); - return writer; - }; + /** + * Encodes the specified DeleteExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteExperimentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest} message DeleteExperimentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteExperimentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; - /** - * Encodes the specified IntentInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo} message IntentInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IntentInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified DeleteExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteExperimentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest} message DeleteExperimentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an IntentInfo message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo} IntentInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IntentInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.lastMatchedIntent = reader.string(); - break; - case 3: - message.displayName = reader.string(); - break; - case 2: - if (message.parameters === $util.emptyObject) - message.parameters = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.parameters[key] = value; - break; - case 4: - message.confidence = reader.float(); - break; - default: - reader.skipType(tag & 7); - break; - } + /** + * Decodes a DeleteExperimentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.DeleteExperimentRequest} DeleteExperimentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteExperimentRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteExperimentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Decodes an IntentInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo} IntentInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IntentInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an IntentInfo message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - IntentInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.lastMatchedIntent != null && message.hasOwnProperty("lastMatchedIntent")) - if (!$util.isString(message.lastMatchedIntent)) - return "lastMatchedIntent: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.parameters != null && message.hasOwnProperty("parameters")) { - if (!$util.isObject(message.parameters)) - return "parameters: object expected"; - var key = Object.keys(message.parameters); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.verify(message.parameters[key[i]]); - if (error) - return "parameters." + error; - } - } - if (message.confidence != null && message.hasOwnProperty("confidence")) - if (typeof message.confidence !== "number") - return "confidence: number expected"; - return null; - }; + /** + * Decodes a DeleteExperimentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.DeleteExperimentRequest} DeleteExperimentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteExperimentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates an IntentInfo message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo} IntentInfo - */ - IntentInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo(); - if (object.lastMatchedIntent != null) - message.lastMatchedIntent = String(object.lastMatchedIntent); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.parameters) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.parameters: object expected"); - message.parameters = {}; - for (var keys = Object.keys(object.parameters), i = 0; i < keys.length; ++i) { - if (typeof object.parameters[keys[i]] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.parameters: object expected"); - message.parameters[keys[i]] = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.fromObject(object.parameters[keys[i]]); - } - } - if (object.confidence != null) - message.confidence = Number(object.confidence); - return message; - }; + /** + * Verifies a DeleteExperimentRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteExperimentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; - /** - * Creates a plain object from an IntentInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo} message IntentInfo - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - IntentInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) - object.parameters = {}; - if (options.defaults) { - object.lastMatchedIntent = ""; - object.displayName = ""; - object.confidence = 0; - } - if (message.lastMatchedIntent != null && message.hasOwnProperty("lastMatchedIntent")) - object.lastMatchedIntent = message.lastMatchedIntent; - var keys2; - if (message.parameters && (keys2 = Object.keys(message.parameters)).length) { - object.parameters = {}; - for (var j = 0; j < keys2.length; ++j) - object.parameters[keys2[j]] = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.toObject(message.parameters[keys2[j]], options); - } - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.confidence != null && message.hasOwnProperty("confidence")) - object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; + /** + * Creates a DeleteExperimentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.DeleteExperimentRequest} DeleteExperimentRequest + */ + DeleteExperimentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteExperimentRequest) return object; - }; + var message = new $root.google.cloud.dialogflow.cx.v3.DeleteExperimentRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - /** - * Converts this IntentInfo to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo - * @instance - * @returns {Object.} JSON object - */ - IntentInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a DeleteExperimentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.DeleteExperimentRequest} message DeleteExperimentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteExperimentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; - IntentInfo.IntentParameterValue = (function() { + /** + * Converts this DeleteExperimentRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteExperimentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Properties of an IntentParameterValue. - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo - * @interface IIntentParameterValue - * @property {string|null} [originalValue] IntentParameterValue originalValue - * @property {google.protobuf.IValue|null} [resolvedValue] IntentParameterValue resolvedValue - */ + return DeleteExperimentRequest; + })(); - /** - * Constructs a new IntentParameterValue. - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo - * @classdesc Represents an IntentParameterValue. - * @implements IIntentParameterValue - * @constructor - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue=} [properties] Properties to set - */ - function IntentParameterValue(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v3.StartExperimentRequest = (function() { - /** - * IntentParameterValue originalValue. - * @member {string} originalValue - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue - * @instance - */ - IntentParameterValue.prototype.originalValue = ""; + /** + * Properties of a StartExperimentRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IStartExperimentRequest + * @property {string|null} [name] StartExperimentRequest name + */ - /** - * IntentParameterValue resolvedValue. - * @member {google.protobuf.IValue|null|undefined} resolvedValue - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue - * @instance - */ - IntentParameterValue.prototype.resolvedValue = null; + /** + * Constructs a new StartExperimentRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a StartExperimentRequest. + * @implements IStartExperimentRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IStartExperimentRequest=} [properties] Properties to set + */ + function StartExperimentRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a new IntentParameterValue instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue} IntentParameterValue instance - */ - IntentParameterValue.create = function create(properties) { - return new IntentParameterValue(properties); - }; + /** + * StartExperimentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest + * @instance + */ + StartExperimentRequest.prototype.name = ""; - /** - * Encodes the specified IntentParameterValue message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue} message IntentParameterValue message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IntentParameterValue.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.originalValue != null && Object.hasOwnProperty.call(message, "originalValue")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.originalValue); - if (message.resolvedValue != null && Object.hasOwnProperty.call(message, "resolvedValue")) - $root.google.protobuf.Value.encode(message.resolvedValue, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Creates a new StartExperimentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IStartExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.StartExperimentRequest} StartExperimentRequest instance + */ + StartExperimentRequest.create = function create(properties) { + return new StartExperimentRequest(properties); + }; - /** - * Encodes the specified IntentParameterValue message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue} message IntentParameterValue message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IntentParameterValue.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified StartExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StartExperimentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IStartExperimentRequest} message StartExperimentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StartExperimentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; - /** - * Decodes an IntentParameterValue message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue} IntentParameterValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IntentParameterValue.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.originalValue = reader.string(); - break; - case 2: - message.resolvedValue = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified StartExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StartExperimentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IStartExperimentRequest} message StartExperimentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StartExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an IntentParameterValue message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue} IntentParameterValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IntentParameterValue.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a StartExperimentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.StartExperimentRequest} StartExperimentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StartExperimentRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.StartExperimentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Verifies an IntentParameterValue message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - IntentParameterValue.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.originalValue != null && message.hasOwnProperty("originalValue")) - if (!$util.isString(message.originalValue)) - return "originalValue: string expected"; - if (message.resolvedValue != null && message.hasOwnProperty("resolvedValue")) { - var error = $root.google.protobuf.Value.verify(message.resolvedValue); - if (error) - return "resolvedValue." + error; - } - return null; - }; + /** + * Decodes a StartExperimentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.StartExperimentRequest} StartExperimentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StartExperimentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates an IntentParameterValue message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue} IntentParameterValue - */ - IntentParameterValue.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue(); - if (object.originalValue != null) - message.originalValue = String(object.originalValue); - if (object.resolvedValue != null) { - if (typeof object.resolvedValue !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.resolvedValue: object expected"); - message.resolvedValue = $root.google.protobuf.Value.fromObject(object.resolvedValue); - } - return message; - }; + /** + * Verifies a StartExperimentRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StartExperimentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; - /** - * Creates a plain object from an IntentParameterValue message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue} message IntentParameterValue - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - IntentParameterValue.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.originalValue = ""; - object.resolvedValue = null; - } - if (message.originalValue != null && message.hasOwnProperty("originalValue")) - object.originalValue = message.originalValue; - if (message.resolvedValue != null && message.hasOwnProperty("resolvedValue")) - object.resolvedValue = $root.google.protobuf.Value.toObject(message.resolvedValue, options); - return object; - }; - - /** - * Converts this IntentParameterValue to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue - * @instance - * @returns {Object.} JSON object - */ - IntentParameterValue.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return IntentParameterValue; - })(); - - return IntentInfo; - })(); - - WebhookRequest.SentimentAnalysisResult = (function() { - - /** - * Properties of a SentimentAnalysisResult. - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @interface ISentimentAnalysisResult - * @property {number|null} [score] SentimentAnalysisResult score - * @property {number|null} [magnitude] SentimentAnalysisResult magnitude - */ - - /** - * Constructs a new SentimentAnalysisResult. - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @classdesc Represents a SentimentAnalysisResult. - * @implements ISentimentAnalysisResult - * @constructor - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult=} [properties] Properties to set - */ - function SentimentAnalysisResult(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SentimentAnalysisResult score. - * @member {number} score - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult - * @instance - */ - SentimentAnalysisResult.prototype.score = 0; - - /** - * SentimentAnalysisResult magnitude. - * @member {number} magnitude - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult - * @instance - */ - SentimentAnalysisResult.prototype.magnitude = 0; - - /** - * Creates a new SentimentAnalysisResult instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult} SentimentAnalysisResult instance - */ - SentimentAnalysisResult.create = function create(properties) { - return new SentimentAnalysisResult(properties); - }; - - /** - * Encodes the specified SentimentAnalysisResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult} message SentimentAnalysisResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SentimentAnalysisResult.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.score != null && Object.hasOwnProperty.call(message, "score")) - writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); - if (message.magnitude != null && Object.hasOwnProperty.call(message, "magnitude")) - writer.uint32(/* id 2, wireType 5 =*/21).float(message.magnitude); - return writer; - }; - - /** - * Encodes the specified SentimentAnalysisResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult} message SentimentAnalysisResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SentimentAnalysisResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a SentimentAnalysisResult message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult} SentimentAnalysisResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SentimentAnalysisResult.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.score = reader.float(); - break; - case 2: - message.magnitude = reader.float(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a SentimentAnalysisResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult} SentimentAnalysisResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SentimentAnalysisResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SentimentAnalysisResult message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SentimentAnalysisResult.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.score != null && message.hasOwnProperty("score")) - if (typeof message.score !== "number") - return "score: number expected"; - if (message.magnitude != null && message.hasOwnProperty("magnitude")) - if (typeof message.magnitude !== "number") - return "magnitude: number expected"; - return null; - }; - - /** - * Creates a SentimentAnalysisResult message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult} SentimentAnalysisResult - */ - SentimentAnalysisResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult(); - if (object.score != null) - message.score = Number(object.score); - if (object.magnitude != null) - message.magnitude = Number(object.magnitude); - return message; - }; - - /** - * Creates a plain object from a SentimentAnalysisResult message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult} message SentimentAnalysisResult - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SentimentAnalysisResult.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.score = 0; - object.magnitude = 0; - } - if (message.score != null && message.hasOwnProperty("score")) - object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; - if (message.magnitude != null && message.hasOwnProperty("magnitude")) - object.magnitude = options.json && !isFinite(message.magnitude) ? String(message.magnitude) : message.magnitude; + /** + * Creates a StartExperimentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.StartExperimentRequest} StartExperimentRequest + */ + StartExperimentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.StartExperimentRequest) return object; - }; + var message = new $root.google.cloud.dialogflow.cx.v3.StartExperimentRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - /** - * Converts this SentimentAnalysisResult to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult - * @instance - * @returns {Object.} JSON object - */ - SentimentAnalysisResult.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a StartExperimentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.StartExperimentRequest} message StartExperimentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StartExperimentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; - return SentimentAnalysisResult; - })(); + /** + * Converts this StartExperimentRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest + * @instance + * @returns {Object.} JSON object + */ + StartExperimentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return WebhookRequest; + return StartExperimentRequest; })(); - v3.WebhookResponse = (function() { + v3.StopExperimentRequest = (function() { /** - * Properties of a WebhookResponse. + * Properties of a StopExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IWebhookResponse - * @property {google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse|null} [fulfillmentResponse] WebhookResponse fulfillmentResponse - * @property {google.cloud.dialogflow.cx.v3.IPageInfo|null} [pageInfo] WebhookResponse pageInfo - * @property {google.cloud.dialogflow.cx.v3.ISessionInfo|null} [sessionInfo] WebhookResponse sessionInfo - * @property {google.protobuf.IStruct|null} [payload] WebhookResponse payload - * @property {string|null} [targetPage] WebhookResponse targetPage - * @property {string|null} [targetFlow] WebhookResponse targetFlow + * @interface IStopExperimentRequest + * @property {string|null} [name] StopExperimentRequest name */ /** - * Constructs a new WebhookResponse. + * Constructs a new StopExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a WebhookResponse. - * @implements IWebhookResponse + * @classdesc Represents a StopExperimentRequest. + * @implements IStopExperimentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IWebhookResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest=} [properties] Properties to set */ - function WebhookResponse(properties) { + function StopExperimentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55869,154 +55000,75 @@ } /** - * WebhookResponse fulfillmentResponse. - * @member {google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse|null|undefined} fulfillmentResponse - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse - * @instance - */ - WebhookResponse.prototype.fulfillmentResponse = null; - - /** - * WebhookResponse pageInfo. - * @member {google.cloud.dialogflow.cx.v3.IPageInfo|null|undefined} pageInfo - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse - * @instance - */ - WebhookResponse.prototype.pageInfo = null; - - /** - * WebhookResponse sessionInfo. - * @member {google.cloud.dialogflow.cx.v3.ISessionInfo|null|undefined} sessionInfo - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse - * @instance - */ - WebhookResponse.prototype.sessionInfo = null; - - /** - * WebhookResponse payload. - * @member {google.protobuf.IStruct|null|undefined} payload - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse - * @instance - */ - WebhookResponse.prototype.payload = null; - - /** - * WebhookResponse targetPage. - * @member {string|null|undefined} targetPage - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse - * @instance - */ - WebhookResponse.prototype.targetPage = null; - - /** - * WebhookResponse targetFlow. - * @member {string|null|undefined} targetFlow - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse - * @instance - */ - WebhookResponse.prototype.targetFlow = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * WebhookResponse transition. - * @member {"targetPage"|"targetFlow"|undefined} transition - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * StopExperimentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest * @instance */ - Object.defineProperty(WebhookResponse.prototype, "transition", { - get: $util.oneOfGetter($oneOfFields = ["targetPage", "targetFlow"]), - set: $util.oneOfSetter($oneOfFields) - }); + StopExperimentRequest.prototype.name = ""; /** - * Creates a new WebhookResponse instance using the specified properties. + * Creates a new StopExperimentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IWebhookResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse} WebhookResponse instance + * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.StopExperimentRequest} StopExperimentRequest instance */ - WebhookResponse.create = function create(properties) { - return new WebhookResponse(properties); + StopExperimentRequest.create = function create(properties) { + return new StopExperimentRequest(properties); }; /** - * Encodes the specified WebhookResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.verify|verify} messages. + * Encodes the specified StopExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StopExperimentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IWebhookResponse} message WebhookResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest} message StopExperimentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WebhookResponse.encode = function encode(message, writer) { + StopExperimentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.fulfillmentResponse != null && Object.hasOwnProperty.call(message, "fulfillmentResponse")) - $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.encode(message.fulfillmentResponse, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.pageInfo != null && Object.hasOwnProperty.call(message, "pageInfo")) - $root.google.cloud.dialogflow.cx.v3.PageInfo.encode(message.pageInfo, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.sessionInfo != null && Object.hasOwnProperty.call(message, "sessionInfo")) - $root.google.cloud.dialogflow.cx.v3.SessionInfo.encode(message.sessionInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) - $root.google.protobuf.Struct.encode(message.payload, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.targetPage != null && Object.hasOwnProperty.call(message, "targetPage")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.targetPage); - if (message.targetFlow != null && Object.hasOwnProperty.call(message, "targetFlow")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.targetFlow); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified WebhookResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.verify|verify} messages. + * Encodes the specified StopExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StopExperimentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IWebhookResponse} message WebhookResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest} message StopExperimentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WebhookResponse.encodeDelimited = function encodeDelimited(message, writer) { + StopExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WebhookResponse message from the specified reader or buffer. + * Decodes a StopExperimentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse} WebhookResponse + * @returns {google.cloud.dialogflow.cx.v3.StopExperimentRequest} StopExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WebhookResponse.decode = function decode(reader, length) { + StopExperimentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.WebhookResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.StopExperimentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.fulfillmentResponse = $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.decode(reader, reader.uint32()); - break; - case 2: - message.pageInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.decode(reader, reader.uint32()); - break; - case 3: - message.sessionInfo = $root.google.cloud.dialogflow.cx.v3.SessionInfo.decode(reader, reader.uint32()); - break; - case 4: - message.payload = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 5: - message.targetPage = reader.string(); - break; - case 6: - message.targetFlow = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -56027,446 +55079,307 @@ }; /** - * Decodes a WebhookResponse message from the specified reader or buffer, length delimited. + * Decodes a StopExperimentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse} WebhookResponse + * @returns {google.cloud.dialogflow.cx.v3.StopExperimentRequest} StopExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WebhookResponse.decodeDelimited = function decodeDelimited(reader) { + StopExperimentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WebhookResponse message. + * Verifies a StopExperimentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WebhookResponse.verify = function verify(message) { + StopExperimentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.fulfillmentResponse != null && message.hasOwnProperty("fulfillmentResponse")) { - var error = $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.verify(message.fulfillmentResponse); - if (error) - return "fulfillmentResponse." + error; - } - if (message.pageInfo != null && message.hasOwnProperty("pageInfo")) { - var error = $root.google.cloud.dialogflow.cx.v3.PageInfo.verify(message.pageInfo); - if (error) - return "pageInfo." + error; - } - if (message.sessionInfo != null && message.hasOwnProperty("sessionInfo")) { - var error = $root.google.cloud.dialogflow.cx.v3.SessionInfo.verify(message.sessionInfo); - if (error) - return "sessionInfo." + error; - } - if (message.payload != null && message.hasOwnProperty("payload")) { - var error = $root.google.protobuf.Struct.verify(message.payload); - if (error) - return "payload." + error; - } - if (message.targetPage != null && message.hasOwnProperty("targetPage")) { - properties.transition = 1; - if (!$util.isString(message.targetPage)) - return "targetPage: string expected"; - } - if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { - if (properties.transition === 1) - return "transition: multiple values"; - properties.transition = 1; - if (!$util.isString(message.targetFlow)) - return "targetFlow: string expected"; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a WebhookResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StopExperimentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse} WebhookResponse + * @returns {google.cloud.dialogflow.cx.v3.StopExperimentRequest} StopExperimentRequest */ - WebhookResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookResponse) + StopExperimentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.StopExperimentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.WebhookResponse(); - if (object.fulfillmentResponse != null) { - if (typeof object.fulfillmentResponse !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookResponse.fulfillmentResponse: object expected"); - message.fulfillmentResponse = $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.fromObject(object.fulfillmentResponse); - } - if (object.pageInfo != null) { - if (typeof object.pageInfo !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookResponse.pageInfo: object expected"); - message.pageInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.fromObject(object.pageInfo); - } - if (object.sessionInfo != null) { - if (typeof object.sessionInfo !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookResponse.sessionInfo: object expected"); - message.sessionInfo = $root.google.cloud.dialogflow.cx.v3.SessionInfo.fromObject(object.sessionInfo); - } - if (object.payload != null) { - if (typeof object.payload !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookResponse.payload: object expected"); - message.payload = $root.google.protobuf.Struct.fromObject(object.payload); - } - if (object.targetPage != null) - message.targetPage = String(object.targetPage); - if (object.targetFlow != null) - message.targetFlow = String(object.targetFlow); + var message = new $root.google.cloud.dialogflow.cx.v3.StopExperimentRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a WebhookResponse message. Also converts values to other types if specified. + * Creates a plain object from a StopExperimentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookResponse} message WebhookResponse + * @param {google.cloud.dialogflow.cx.v3.StopExperimentRequest} message StopExperimentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WebhookResponse.toObject = function toObject(message, options) { + StopExperimentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.fulfillmentResponse = null; - object.pageInfo = null; - object.sessionInfo = null; - object.payload = null; - } - if (message.fulfillmentResponse != null && message.hasOwnProperty("fulfillmentResponse")) - object.fulfillmentResponse = $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.toObject(message.fulfillmentResponse, options); - if (message.pageInfo != null && message.hasOwnProperty("pageInfo")) - object.pageInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.toObject(message.pageInfo, options); - if (message.sessionInfo != null && message.hasOwnProperty("sessionInfo")) - object.sessionInfo = $root.google.cloud.dialogflow.cx.v3.SessionInfo.toObject(message.sessionInfo, options); - if (message.payload != null && message.hasOwnProperty("payload")) - object.payload = $root.google.protobuf.Struct.toObject(message.payload, options); - if (message.targetPage != null && message.hasOwnProperty("targetPage")) { - object.targetPage = message.targetPage; - if (options.oneofs) - object.transition = "targetPage"; - } - if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { - object.targetFlow = message.targetFlow; - if (options.oneofs) - object.transition = "targetFlow"; - } + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this WebhookResponse to JSON. + * Converts this StopExperimentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest * @instance * @returns {Object.} JSON object */ - WebhookResponse.prototype.toJSON = function toJSON() { + StopExperimentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - WebhookResponse.FulfillmentResponse = (function() { + return StopExperimentRequest; + })(); - /** - * Properties of a FulfillmentResponse. - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse - * @interface IFulfillmentResponse - * @property {Array.|null} [messages] FulfillmentResponse messages - * @property {google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior|null} [mergeBehavior] FulfillmentResponse mergeBehavior - */ + v3.SecuritySettingsService = (function() { - /** - * Constructs a new FulfillmentResponse. - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse - * @classdesc Represents a FulfillmentResponse. - * @implements IFulfillmentResponse - * @constructor - * @param {google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse=} [properties] Properties to set - */ - function FulfillmentResponse(properties) { - this.messages = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new SecuritySettingsService service. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a SecuritySettingsService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function SecuritySettingsService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } - /** - * FulfillmentResponse messages. - * @member {Array.} messages - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse - * @instance - */ - FulfillmentResponse.prototype.messages = $util.emptyArray; + (SecuritySettingsService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = SecuritySettingsService; - /** - * FulfillmentResponse mergeBehavior. - * @member {google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior} mergeBehavior - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse - * @instance - */ - FulfillmentResponse.prototype.mergeBehavior = 0; + /** + * Creates new SecuritySettingsService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {SecuritySettingsService} RPC service. Useful where requests and/or responses are streamed. + */ + SecuritySettingsService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; - /** - * Creates a new FulfillmentResponse instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse} FulfillmentResponse instance - */ - FulfillmentResponse.create = function create(properties) { - return new FulfillmentResponse(properties); - }; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#createSecuritySettings}. + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @typedef CreateSecuritySettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.SecuritySettings} [response] SecuritySettings + */ - /** - * Encodes the specified FulfillmentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse} message FulfillmentResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FulfillmentResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.messages != null && message.messages.length) - for (var i = 0; i < message.messages.length; ++i) - $root.google.cloud.dialogflow.cx.v3.ResponseMessage.encode(message.messages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.mergeBehavior != null && Object.hasOwnProperty.call(message, "mergeBehavior")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.mergeBehavior); - return writer; - }; + /** + * Calls CreateSecuritySettings. + * @function createSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @instance + * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest} request CreateSecuritySettingsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettingsCallback} callback Node-style callback called with the error, if any, and SecuritySettings + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecuritySettingsService.prototype.createSecuritySettings = function createSecuritySettings(request, callback) { + return this.rpcCall(createSecuritySettings, $root.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest, $root.google.cloud.dialogflow.cx.v3.SecuritySettings, request, callback); + }, "name", { value: "CreateSecuritySettings" }); - /** - * Encodes the specified FulfillmentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse} message FulfillmentResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FulfillmentResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Calls CreateSecuritySettings. + * @function createSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @instance + * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest} request CreateSecuritySettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Decodes a FulfillmentResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse} FulfillmentResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FulfillmentResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.messages && message.messages.length)) - message.messages = []; - message.messages.push($root.google.cloud.dialogflow.cx.v3.ResponseMessage.decode(reader, reader.uint32())); - break; - case 2: - message.mergeBehavior = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#getSecuritySettings}. + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @typedef GetSecuritySettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.SecuritySettings} [response] SecuritySettings + */ - /** - * Decodes a FulfillmentResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse} FulfillmentResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FulfillmentResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Calls GetSecuritySettings. + * @function getSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest} request GetSecuritySettingsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.SecuritySettingsService.GetSecuritySettingsCallback} callback Node-style callback called with the error, if any, and SecuritySettings + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecuritySettingsService.prototype.getSecuritySettings = function getSecuritySettings(request, callback) { + return this.rpcCall(getSecuritySettings, $root.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest, $root.google.cloud.dialogflow.cx.v3.SecuritySettings, request, callback); + }, "name", { value: "GetSecuritySettings" }); - /** - * Verifies a FulfillmentResponse message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FulfillmentResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.messages != null && message.hasOwnProperty("messages")) { - if (!Array.isArray(message.messages)) - return "messages: array expected"; - for (var i = 0; i < message.messages.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.verify(message.messages[i]); - if (error) - return "messages." + error; - } - } - if (message.mergeBehavior != null && message.hasOwnProperty("mergeBehavior")) - switch (message.mergeBehavior) { - default: - return "mergeBehavior: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; + /** + * Calls GetSecuritySettings. + * @function getSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest} request GetSecuritySettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Creates a FulfillmentResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse} FulfillmentResponse - */ - FulfillmentResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse(); - if (object.messages) { - if (!Array.isArray(object.messages)) - throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.messages: array expected"); - message.messages = []; - for (var i = 0; i < object.messages.length; ++i) { - if (typeof object.messages[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.messages: object expected"); - message.messages[i] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.fromObject(object.messages[i]); - } - } - switch (object.mergeBehavior) { - case "MERGE_BEHAVIOR_UNSPECIFIED": - case 0: - message.mergeBehavior = 0; - break; - case "APPEND": - case 1: - message.mergeBehavior = 1; - break; - case "REPLACE": - case 2: - message.mergeBehavior = 2; - break; - } - return message; - }; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#updateSecuritySettings}. + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @typedef UpdateSecuritySettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.SecuritySettings} [response] SecuritySettings + */ - /** - * Creates a plain object from a FulfillmentResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse} message FulfillmentResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FulfillmentResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.messages = []; - if (options.defaults) - object.mergeBehavior = options.enums === String ? "MERGE_BEHAVIOR_UNSPECIFIED" : 0; - if (message.messages && message.messages.length) { - object.messages = []; - for (var j = 0; j < message.messages.length; ++j) - object.messages[j] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.toObject(message.messages[j], options); - } - if (message.mergeBehavior != null && message.hasOwnProperty("mergeBehavior")) - object.mergeBehavior = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior[message.mergeBehavior] : message.mergeBehavior; - return object; - }; + /** + * Calls UpdateSecuritySettings. + * @function updateSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest} request UpdateSecuritySettingsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettingsCallback} callback Node-style callback called with the error, if any, and SecuritySettings + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecuritySettingsService.prototype.updateSecuritySettings = function updateSecuritySettings(request, callback) { + return this.rpcCall(updateSecuritySettings, $root.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest, $root.google.cloud.dialogflow.cx.v3.SecuritySettings, request, callback); + }, "name", { value: "UpdateSecuritySettings" }); - /** - * Converts this FulfillmentResponse to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse - * @instance - * @returns {Object.} JSON object - */ - FulfillmentResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Calls UpdateSecuritySettings. + * @function updateSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest} request UpdateSecuritySettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * MergeBehavior enum. - * @name google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior - * @enum {number} - * @property {number} MERGE_BEHAVIOR_UNSPECIFIED=0 MERGE_BEHAVIOR_UNSPECIFIED value - * @property {number} APPEND=1 APPEND value - * @property {number} REPLACE=2 REPLACE value - */ - FulfillmentResponse.MergeBehavior = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MERGE_BEHAVIOR_UNSPECIFIED"] = 0; - values[valuesById[1] = "APPEND"] = 1; - values[valuesById[2] = "REPLACE"] = 2; - return values; - })(); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#listSecuritySettings}. + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @typedef ListSecuritySettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} [response] ListSecuritySettingsResponse + */ - return FulfillmentResponse; - })(); + /** + * Calls ListSecuritySettings. + * @function listSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @instance + * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest} request ListSecuritySettingsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.SecuritySettingsService.ListSecuritySettingsCallback} callback Node-style callback called with the error, if any, and ListSecuritySettingsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecuritySettingsService.prototype.listSecuritySettings = function listSecuritySettings(request, callback) { + return this.rpcCall(listSecuritySettings, $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest, $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse, request, callback); + }, "name", { value: "ListSecuritySettings" }); - return WebhookResponse; + /** + * Calls ListSecuritySettings. + * @function listSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @instance + * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest} request ListSecuritySettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#deleteSecuritySettings}. + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @typedef DeleteSecuritySettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteSecuritySettings. + * @function deleteSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest} request DeleteSecuritySettingsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.SecuritySettingsService.DeleteSecuritySettingsCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecuritySettingsService.prototype.deleteSecuritySettings = function deleteSecuritySettings(request, callback) { + return this.rpcCall(deleteSecuritySettings, $root.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteSecuritySettings" }); + + /** + * Calls DeleteSecuritySettings. + * @function deleteSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest} request DeleteSecuritySettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return SecuritySettingsService; })(); - v3.PageInfo = (function() { + v3.GetSecuritySettingsRequest = (function() { /** - * Properties of a PageInfo. + * Properties of a GetSecuritySettingsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IPageInfo - * @property {string|null} [currentPage] PageInfo currentPage - * @property {string|null} [displayName] PageInfo displayName - * @property {google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo|null} [formInfo] PageInfo formInfo + * @interface IGetSecuritySettingsRequest + * @property {string|null} [name] GetSecuritySettingsRequest name */ /** - * Constructs a new PageInfo. + * Constructs a new GetSecuritySettingsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a PageInfo. - * @implements IPageInfo + * @classdesc Represents a GetSecuritySettingsRequest. + * @implements IGetSecuritySettingsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IPageInfo=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest=} [properties] Properties to set */ - function PageInfo(properties) { + function GetSecuritySettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56474,101 +55387,276 @@ } /** - * PageInfo currentPage. - * @member {string} currentPage - * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * GetSecuritySettingsRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest * @instance */ - PageInfo.prototype.currentPage = ""; + GetSecuritySettingsRequest.prototype.name = ""; /** - * PageInfo displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.PageInfo - * @instance - */ - PageInfo.prototype.displayName = ""; - + * Creates a new GetSecuritySettingsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest} GetSecuritySettingsRequest instance + */ + GetSecuritySettingsRequest.create = function create(properties) { + return new GetSecuritySettingsRequest(properties); + }; + /** - * PageInfo formInfo. - * @member {google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo|null|undefined} formInfo - * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * Encodes the specified GetSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest} message GetSecuritySettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetSecuritySettingsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest} message GetSecuritySettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetSecuritySettingsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest} GetSecuritySettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetSecuritySettingsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest} GetSecuritySettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetSecuritySettingsRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetSecuritySettingsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest} GetSecuritySettingsRequest + */ + GetSecuritySettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetSecuritySettingsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest} message GetSecuritySettingsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetSecuritySettingsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetSecuritySettingsRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest * @instance + * @returns {Object.} JSON object */ - PageInfo.prototype.formInfo = null; + GetSecuritySettingsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetSecuritySettingsRequest; + })(); + + v3.UpdateSecuritySettingsRequest = (function() { /** - * Creates a new PageInfo instance using the specified properties. + * Properties of an UpdateSecuritySettingsRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IUpdateSecuritySettingsRequest + * @property {google.cloud.dialogflow.cx.v3.ISecuritySettings|null} [securitySettings] UpdateSecuritySettingsRequest securitySettings + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSecuritySettingsRequest updateMask + */ + + /** + * Constructs a new UpdateSecuritySettingsRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents an UpdateSecuritySettingsRequest. + * @implements IUpdateSecuritySettingsRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest=} [properties] Properties to set + */ + function UpdateSecuritySettingsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UpdateSecuritySettingsRequest securitySettings. + * @member {google.cloud.dialogflow.cx.v3.ISecuritySettings|null|undefined} securitySettings + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest + * @instance + */ + UpdateSecuritySettingsRequest.prototype.securitySettings = null; + + /** + * UpdateSecuritySettingsRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest + * @instance + */ + UpdateSecuritySettingsRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateSecuritySettingsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IPageInfo=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.PageInfo} PageInfo instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest} UpdateSecuritySettingsRequest instance */ - PageInfo.create = function create(properties) { - return new PageInfo(properties); + UpdateSecuritySettingsRequest.create = function create(properties) { + return new UpdateSecuritySettingsRequest(properties); }; /** - * Encodes the specified PageInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.verify|verify} messages. + * Encodes the specified UpdateSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IPageInfo} message PageInfo message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest} message UpdateSecuritySettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PageInfo.encode = function encode(message, writer) { + UpdateSecuritySettingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.currentPage); - if (message.formInfo != null && Object.hasOwnProperty.call(message, "formInfo")) - $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.encode(message.formInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.displayName); + if (message.securitySettings != null && Object.hasOwnProperty.call(message, "securitySettings")) + $root.google.cloud.dialogflow.cx.v3.SecuritySettings.encode(message.securitySettings, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified PageInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.verify|verify} messages. + * Encodes the specified UpdateSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IPageInfo} message PageInfo message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest} message UpdateSecuritySettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PageInfo.encodeDelimited = function encodeDelimited(message, writer) { + UpdateSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PageInfo message from the specified reader or buffer. + * Decodes an UpdateSecuritySettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.PageInfo} PageInfo + * @returns {google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest} UpdateSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PageInfo.decode = function decode(reader, length) { + UpdateSecuritySettingsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.PageInfo(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.currentPage = reader.string(); - break; - case 4: - message.displayName = reader.string(); + message.securitySettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.decode(reader, reader.uint32()); break; - case 3: - message.formInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.decode(reader, reader.uint32()); + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -56579,772 +55667,230 @@ }; /** - * Decodes a PageInfo message from the specified reader or buffer, length delimited. + * Decodes an UpdateSecuritySettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.PageInfo} PageInfo + * @returns {google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest} UpdateSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PageInfo.decodeDelimited = function decodeDelimited(reader) { + UpdateSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PageInfo message. + * Verifies an UpdateSecuritySettingsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PageInfo.verify = function verify(message) { + UpdateSecuritySettingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.currentPage != null && message.hasOwnProperty("currentPage")) - if (!$util.isString(message.currentPage)) - return "currentPage: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.formInfo != null && message.hasOwnProperty("formInfo")) { - var error = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.verify(message.formInfo); + if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) { + var error = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.verify(message.securitySettings); if (error) - return "formInfo." + error; + return "securitySettings." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } return null; }; /** - * Creates a PageInfo message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.PageInfo} PageInfo + * @returns {google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest} UpdateSecuritySettingsRequest */ - PageInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.PageInfo) + UpdateSecuritySettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.PageInfo(); - if (object.currentPage != null) - message.currentPage = String(object.currentPage); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.formInfo != null) { - if (typeof object.formInfo !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.PageInfo.formInfo: object expected"); - message.formInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.fromObject(object.formInfo); + var message = new $root.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest(); + if (object.securitySettings != null) { + if (typeof object.securitySettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest.securitySettings: object expected"); + message.securitySettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.fromObject(object.securitySettings); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from a PageInfo message. Also converts values to other types if specified. + * Creates a plain object from an UpdateSecuritySettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.PageInfo} message PageInfo + * @param {google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest} message UpdateSecuritySettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PageInfo.toObject = function toObject(message, options) { + UpdateSecuritySettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.currentPage = ""; - object.formInfo = null; - object.displayName = ""; + object.securitySettings = null; + object.updateMask = null; } - if (message.currentPage != null && message.hasOwnProperty("currentPage")) - object.currentPage = message.currentPage; - if (message.formInfo != null && message.hasOwnProperty("formInfo")) - object.formInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.toObject(message.formInfo, options); - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; + if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) + object.securitySettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.toObject(message.securitySettings, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this PageInfo to JSON. + * Converts this UpdateSecuritySettingsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @instance * @returns {Object.} JSON object */ - PageInfo.prototype.toJSON = function toJSON() { + UpdateSecuritySettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - PageInfo.FormInfo = (function() { + return UpdateSecuritySettingsRequest; + })(); - /** - * Properties of a FormInfo. - * @memberof google.cloud.dialogflow.cx.v3.PageInfo - * @interface IFormInfo - * @property {Array.|null} [parameterInfo] FormInfo parameterInfo - */ + v3.ListSecuritySettingsRequest = (function() { - /** - * Constructs a new FormInfo. - * @memberof google.cloud.dialogflow.cx.v3.PageInfo - * @classdesc Represents a FormInfo. - * @implements IFormInfo - * @constructor - * @param {google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo=} [properties] Properties to set - */ - function FormInfo(properties) { - this.parameterInfo = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a ListSecuritySettingsRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IListSecuritySettingsRequest + * @property {string|null} [parent] ListSecuritySettingsRequest parent + * @property {number|null} [pageSize] ListSecuritySettingsRequest pageSize + * @property {string|null} [pageToken] ListSecuritySettingsRequest pageToken + */ - /** - * FormInfo parameterInfo. - * @member {Array.} parameterInfo - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo - * @instance - */ - FormInfo.prototype.parameterInfo = $util.emptyArray; + /** + * Constructs a new ListSecuritySettingsRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a ListSecuritySettingsRequest. + * @implements IListSecuritySettingsRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest=} [properties] Properties to set + */ + function ListSecuritySettingsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a new FormInfo instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo - * @static - * @param {google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo} FormInfo instance - */ - FormInfo.create = function create(properties) { - return new FormInfo(properties); - }; + /** + * ListSecuritySettingsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest + * @instance + */ + ListSecuritySettingsRequest.prototype.parent = ""; - /** - * Encodes the specified FormInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo - * @static - * @param {google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo} message FormInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FormInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parameterInfo != null && message.parameterInfo.length) - for (var i = 0; i < message.parameterInfo.length; ++i) - $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.encode(message.parameterInfo[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * ListSecuritySettingsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest + * @instance + */ + ListSecuritySettingsRequest.prototype.pageSize = 0; - /** - * Encodes the specified FormInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo - * @static - * @param {google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo} message FormInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FormInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * ListSecuritySettingsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest + * @instance + */ + ListSecuritySettingsRequest.prototype.pageToken = ""; - /** - * Decodes a FormInfo message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo} FormInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FormInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - if (!(message.parameterInfo && message.parameterInfo.length)) - message.parameterInfo = []; - message.parameterInfo.push($root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FormInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo} FormInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FormInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FormInfo message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FormInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parameterInfo != null && message.hasOwnProperty("parameterInfo")) { - if (!Array.isArray(message.parameterInfo)) - return "parameterInfo: array expected"; - for (var i = 0; i < message.parameterInfo.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.verify(message.parameterInfo[i]); - if (error) - return "parameterInfo." + error; - } - } - return null; - }; - - /** - * Creates a FormInfo message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo} FormInfo - */ - FormInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo(); - if (object.parameterInfo) { - if (!Array.isArray(object.parameterInfo)) - throw TypeError(".google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.parameterInfo: array expected"); - message.parameterInfo = []; - for (var i = 0; i < object.parameterInfo.length; ++i) { - if (typeof object.parameterInfo[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.parameterInfo: object expected"); - message.parameterInfo[i] = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.fromObject(object.parameterInfo[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a FormInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo - * @static - * @param {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo} message FormInfo - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FormInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.parameterInfo = []; - if (message.parameterInfo && message.parameterInfo.length) { - object.parameterInfo = []; - for (var j = 0; j < message.parameterInfo.length; ++j) - object.parameterInfo[j] = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.toObject(message.parameterInfo[j], options); - } - return object; - }; - - /** - * Converts this FormInfo to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo - * @instance - * @returns {Object.} JSON object - */ - FormInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - FormInfo.ParameterInfo = (function() { - - /** - * Properties of a ParameterInfo. - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo - * @interface IParameterInfo - * @property {string|null} [displayName] ParameterInfo displayName - * @property {boolean|null} [required] ParameterInfo required - * @property {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState|null} [state] ParameterInfo state - * @property {google.protobuf.IValue|null} [value] ParameterInfo value - * @property {boolean|null} [justCollected] ParameterInfo justCollected - */ - - /** - * Constructs a new ParameterInfo. - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo - * @classdesc Represents a ParameterInfo. - * @implements IParameterInfo - * @constructor - * @param {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo=} [properties] Properties to set - */ - function ParameterInfo(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ParameterInfo displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo - * @instance - */ - ParameterInfo.prototype.displayName = ""; - - /** - * ParameterInfo required. - * @member {boolean} required - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo - * @instance - */ - ParameterInfo.prototype.required = false; - - /** - * ParameterInfo state. - * @member {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState} state - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo - * @instance - */ - ParameterInfo.prototype.state = 0; - - /** - * ParameterInfo value. - * @member {google.protobuf.IValue|null|undefined} value - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo - * @instance - */ - ParameterInfo.prototype.value = null; - - /** - * ParameterInfo justCollected. - * @member {boolean} justCollected - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo - * @instance - */ - ParameterInfo.prototype.justCollected = false; - - /** - * Creates a new ParameterInfo instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo - * @static - * @param {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo} ParameterInfo instance - */ - ParameterInfo.create = function create(properties) { - return new ParameterInfo(properties); - }; - - /** - * Encodes the specified ParameterInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo - * @static - * @param {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo} message ParameterInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ParameterInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName); - if (message.required != null && Object.hasOwnProperty.call(message, "required")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.required); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - $root.google.protobuf.Value.encode(message.value, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.justCollected != null && Object.hasOwnProperty.call(message, "justCollected")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.justCollected); - return writer; - }; - - /** - * Encodes the specified ParameterInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo - * @static - * @param {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo} message ParameterInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ParameterInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ParameterInfo message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo} ParameterInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ParameterInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.displayName = reader.string(); - break; - case 2: - message.required = reader.bool(); - break; - case 3: - message.state = reader.int32(); - break; - case 4: - message.value = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - case 5: - message.justCollected = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ParameterInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo} ParameterInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ParameterInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ParameterInfo message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ParameterInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.required != null && message.hasOwnProperty("required")) - if (typeof message.required !== "boolean") - return "required: boolean expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.value != null && message.hasOwnProperty("value")) { - var error = $root.google.protobuf.Value.verify(message.value); - if (error) - return "value." + error; - } - if (message.justCollected != null && message.hasOwnProperty("justCollected")) - if (typeof message.justCollected !== "boolean") - return "justCollected: boolean expected"; - return null; - }; - - /** - * Creates a ParameterInfo message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo} ParameterInfo - */ - ParameterInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo(); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.required != null) - message.required = Boolean(object.required); - switch (object.state) { - case "PARAMETER_STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "EMPTY": - case 1: - message.state = 1; - break; - case "INVALID": - case 2: - message.state = 2; - break; - case "FILLED": - case 3: - message.state = 3; - break; - } - if (object.value != null) { - if (typeof object.value !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.value: object expected"); - message.value = $root.google.protobuf.Value.fromObject(object.value); - } - if (object.justCollected != null) - message.justCollected = Boolean(object.justCollected); - return message; - }; - - /** - * Creates a plain object from a ParameterInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo - * @static - * @param {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo} message ParameterInfo - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ParameterInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.displayName = ""; - object.required = false; - object.state = options.enums === String ? "PARAMETER_STATE_UNSPECIFIED" : 0; - object.value = null; - object.justCollected = false; - } - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.required != null && message.hasOwnProperty("required")) - object.required = message.required; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState[message.state] : message.state; - if (message.value != null && message.hasOwnProperty("value")) - object.value = $root.google.protobuf.Value.toObject(message.value, options); - if (message.justCollected != null && message.hasOwnProperty("justCollected")) - object.justCollected = message.justCollected; - return object; - }; - - /** - * Converts this ParameterInfo to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo - * @instance - * @returns {Object.} JSON object - */ - ParameterInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * ParameterState enum. - * @name google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState - * @enum {number} - * @property {number} PARAMETER_STATE_UNSPECIFIED=0 PARAMETER_STATE_UNSPECIFIED value - * @property {number} EMPTY=1 EMPTY value - * @property {number} INVALID=2 INVALID value - * @property {number} FILLED=3 FILLED value - */ - ParameterInfo.ParameterState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "PARAMETER_STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "EMPTY"] = 1; - values[valuesById[2] = "INVALID"] = 2; - values[valuesById[3] = "FILLED"] = 3; - return values; - })(); - - return ParameterInfo; - })(); - - return FormInfo; - })(); - - return PageInfo; - })(); - - v3.SessionInfo = (function() { - - /** - * Properties of a SessionInfo. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface ISessionInfo - * @property {string|null} [session] SessionInfo session - * @property {Object.|null} [parameters] SessionInfo parameters - */ - - /** - * Constructs a new SessionInfo. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a SessionInfo. - * @implements ISessionInfo - * @constructor - * @param {google.cloud.dialogflow.cx.v3.ISessionInfo=} [properties] Properties to set - */ - function SessionInfo(properties) { - this.parameters = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SessionInfo session. - * @member {string} session - * @memberof google.cloud.dialogflow.cx.v3.SessionInfo - * @instance - */ - SessionInfo.prototype.session = ""; - - /** - * SessionInfo parameters. - * @member {Object.} parameters - * @memberof google.cloud.dialogflow.cx.v3.SessionInfo - * @instance - */ - SessionInfo.prototype.parameters = $util.emptyObject; - - /** - * Creates a new SessionInfo instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.SessionInfo - * @static - * @param {google.cloud.dialogflow.cx.v3.ISessionInfo=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.SessionInfo} SessionInfo instance - */ - SessionInfo.create = function create(properties) { - return new SessionInfo(properties); - }; + /** + * Creates a new ListSecuritySettingsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest} ListSecuritySettingsRequest instance + */ + ListSecuritySettingsRequest.create = function create(properties) { + return new ListSecuritySettingsRequest(properties); + }; /** - * Encodes the specified SessionInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionInfo.verify|verify} messages. + * Encodes the specified ListSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ISessionInfo} message SessionInfo message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest} message ListSecuritySettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SessionInfo.encode = function encode(message, writer) { + ListSecuritySettingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.session != null && Object.hasOwnProperty.call(message, "session")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.session); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - for (var keys = Object.keys(message.parameters), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.protobuf.Value.encode(message.parameters[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified SessionInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionInfo.verify|verify} messages. + * Encodes the specified ListSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ISessionInfo} message SessionInfo message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest} message ListSecuritySettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SessionInfo.encodeDelimited = function encodeDelimited(message, writer) { + ListSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SessionInfo message from the specified reader or buffer. + * Decodes a ListSecuritySettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.SessionInfo} SessionInfo + * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest} ListSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SessionInfo.decode = function decode(reader, length) { + ListSecuritySettingsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.SessionInfo(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.session = reader.string(); + message.parent = reader.string(); break; case 2: - if (message.parameters === $util.emptyObject) - message.parameters = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.parameters[key] = value; + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -57355,416 +55901,570 @@ }; /** - * Decodes a SessionInfo message from the specified reader or buffer, length delimited. + * Decodes a ListSecuritySettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.SessionInfo} SessionInfo + * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest} ListSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SessionInfo.decodeDelimited = function decodeDelimited(reader) { + ListSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SessionInfo message. + * Verifies a ListSecuritySettingsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SessionInfo.verify = function verify(message) { + ListSecuritySettingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.session != null && message.hasOwnProperty("session")) - if (!$util.isString(message.session)) - return "session: string expected"; - if (message.parameters != null && message.hasOwnProperty("parameters")) { - if (!$util.isObject(message.parameters)) - return "parameters: object expected"; - var key = Object.keys(message.parameters); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.protobuf.Value.verify(message.parameters[key[i]]); - if (error) - return "parameters." + error; - } - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a SessionInfo message from a plain object. Also converts values to their respective internal types. + * Creates a ListSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.SessionInfo} SessionInfo + * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest} ListSecuritySettingsRequest */ - SessionInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.SessionInfo) + ListSecuritySettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.SessionInfo(); - if (object.session != null) - message.session = String(object.session); - if (object.parameters) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.SessionInfo.parameters: object expected"); - message.parameters = {}; - for (var keys = Object.keys(object.parameters), i = 0; i < keys.length; ++i) { - if (typeof object.parameters[keys[i]] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.SessionInfo.parameters: object expected"); - message.parameters[keys[i]] = $root.google.protobuf.Value.fromObject(object.parameters[keys[i]]); - } - } + var message = new $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a SessionInfo message. Also converts values to other types if specified. + * Creates a plain object from a ListSecuritySettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.SessionInfo} message SessionInfo + * @param {google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest} message ListSecuritySettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SessionInfo.toObject = function toObject(message, options) { + ListSecuritySettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.parameters = {}; - if (options.defaults) - object.session = ""; - if (message.session != null && message.hasOwnProperty("session")) - object.session = message.session; - var keys2; - if (message.parameters && (keys2 = Object.keys(message.parameters)).length) { - object.parameters = {}; - for (var j = 0; j < keys2.length; ++j) - object.parameters[keys2[j]] = $root.google.protobuf.Value.toObject(message.parameters[keys2[j]], options); + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this SessionInfo to JSON. + * Converts this ListSecuritySettingsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @instance * @returns {Object.} JSON object */ - SessionInfo.prototype.toJSON = function toJSON() { + ListSecuritySettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SessionInfo; + return ListSecuritySettingsRequest; })(); - v3.Experiments = (function() { + v3.ListSecuritySettingsResponse = (function() { /** - * Constructs a new Experiments service. + * Properties of a ListSecuritySettingsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an Experiments - * @extends $protobuf.rpc.Service + * @interface IListSecuritySettingsResponse + * @property {Array.|null} [securitySettings] ListSecuritySettingsResponse securitySettings + * @property {string|null} [nextPageToken] ListSecuritySettingsResponse nextPageToken + */ + + /** + * Constructs a new ListSecuritySettingsResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a ListSecuritySettingsResponse. + * @implements IListSecuritySettingsResponse * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse=} [properties] Properties to set */ - function Experiments(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + function ListSecuritySettingsResponse(properties) { + this.securitySettings = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - (Experiments.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Experiments; + /** + * ListSecuritySettingsResponse securitySettings. + * @member {Array.} securitySettings + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @instance + */ + ListSecuritySettingsResponse.prototype.securitySettings = $util.emptyArray; /** - * Creates new Experiments service using the specified rpc implementation. + * ListSecuritySettingsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @instance + */ + ListSecuritySettingsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListSecuritySettingsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {Experiments} RPC service. Useful where requests and/or responses are streamed. + * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} ListSecuritySettingsResponse instance */ - Experiments.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); + ListSecuritySettingsResponse.create = function create(properties) { + return new ListSecuritySettingsResponse(properties); }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#listExperiments}. - * @memberof google.cloud.dialogflow.cx.v3.Experiments - * @typedef ListExperimentsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.ListExperimentsResponse} [response] ListExperimentsResponse + * Encodes the specified ListSecuritySettingsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse} message ListSecuritySettingsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + ListSecuritySettingsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.securitySettings != null && message.securitySettings.length) + for (var i = 0; i < message.securitySettings.length; ++i) + $root.google.cloud.dialogflow.cx.v3.SecuritySettings.encode(message.securitySettings[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; /** - * Calls ListExperiments. - * @function listExperiments - * @memberof google.cloud.dialogflow.cx.v3.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3.IListExperimentsRequest} request ListExperimentsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Experiments.ListExperimentsCallback} callback Node-style callback called with the error, if any, and ListExperimentsResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified ListSecuritySettingsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse} message ListSecuritySettingsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(Experiments.prototype.listExperiments = function listExperiments(request, callback) { - return this.rpcCall(listExperiments, $root.google.cloud.dialogflow.cx.v3.ListExperimentsRequest, $root.google.cloud.dialogflow.cx.v3.ListExperimentsResponse, request, callback); - }, "name", { value: "ListExperiments" }); + ListSecuritySettingsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls ListExperiments. - * @function listExperiments - * @memberof google.cloud.dialogflow.cx.v3.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3.IListExperimentsRequest} request ListExperimentsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a ListSecuritySettingsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} ListSecuritySettingsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + ListSecuritySettingsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.securitySettings && message.securitySettings.length)) + message.securitySettings = []; + message.securitySettings.push($root.google.cloud.dialogflow.cx.v3.SecuritySettings.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#getExperiment}. - * @memberof google.cloud.dialogflow.cx.v3.Experiments - * @typedef GetExperimentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.Experiment} [response] Experiment + * Decodes a ListSecuritySettingsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} ListSecuritySettingsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + ListSecuritySettingsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls GetExperiment. - * @function getExperiment - * @memberof google.cloud.dialogflow.cx.v3.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetExperimentRequest} request GetExperimentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Experiments.GetExperimentCallback} callback Node-style callback called with the error, if any, and Experiment - * @returns {undefined} - * @variation 1 + * Verifies a ListSecuritySettingsResponse message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(Experiments.prototype.getExperiment = function getExperiment(request, callback) { - return this.rpcCall(getExperiment, $root.google.cloud.dialogflow.cx.v3.GetExperimentRequest, $root.google.cloud.dialogflow.cx.v3.Experiment, request, callback); - }, "name", { value: "GetExperiment" }); + ListSecuritySettingsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) { + if (!Array.isArray(message.securitySettings)) + return "securitySettings: array expected"; + for (var i = 0; i < message.securitySettings.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.verify(message.securitySettings[i]); + if (error) + return "securitySettings." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; /** - * Calls GetExperiment. - * @function getExperiment - * @memberof google.cloud.dialogflow.cx.v3.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetExperimentRequest} request GetExperimentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a ListSecuritySettingsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} ListSecuritySettingsResponse */ + ListSecuritySettingsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse(); + if (object.securitySettings) { + if (!Array.isArray(object.securitySettings)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse.securitySettings: array expected"); + message.securitySettings = []; + for (var i = 0; i < object.securitySettings.length; ++i) { + if (typeof object.securitySettings[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse.securitySettings: object expected"); + message.securitySettings[i] = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.fromObject(object.securitySettings[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#createExperiment}. - * @memberof google.cloud.dialogflow.cx.v3.Experiments - * @typedef CreateExperimentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.Experiment} [response] Experiment + * Creates a plain object from a ListSecuritySettingsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} message ListSecuritySettingsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + ListSecuritySettingsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.securitySettings = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.securitySettings && message.securitySettings.length) { + object.securitySettings = []; + for (var j = 0; j < message.securitySettings.length; ++j) + object.securitySettings[j] = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.toObject(message.securitySettings[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; /** - * Calls CreateExperiment. - * @function createExperiment - * @memberof google.cloud.dialogflow.cx.v3.Experiments + * Converts this ListSecuritySettingsResponse to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest} request CreateExperimentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Experiments.CreateExperimentCallback} callback Node-style callback called with the error, if any, and Experiment - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(Experiments.prototype.createExperiment = function createExperiment(request, callback) { - return this.rpcCall(createExperiment, $root.google.cloud.dialogflow.cx.v3.CreateExperimentRequest, $root.google.cloud.dialogflow.cx.v3.Experiment, request, callback); - }, "name", { value: "CreateExperiment" }); + ListSecuritySettingsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListSecuritySettingsResponse; + })(); + + v3.CreateSecuritySettingsRequest = (function() { /** - * Calls CreateExperiment. - * @function createExperiment - * @memberof google.cloud.dialogflow.cx.v3.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest} request CreateExperimentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of a CreateSecuritySettingsRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface ICreateSecuritySettingsRequest + * @property {string|null} [parent] CreateSecuritySettingsRequest parent + * @property {google.cloud.dialogflow.cx.v3.ISecuritySettings|null} [securitySettings] CreateSecuritySettingsRequest securitySettings */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#updateExperiment}. - * @memberof google.cloud.dialogflow.cx.v3.Experiments - * @typedef UpdateExperimentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.Experiment} [response] Experiment + * Constructs a new CreateSecuritySettingsRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a CreateSecuritySettingsRequest. + * @implements ICreateSecuritySettingsRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest=} [properties] Properties to set */ + function CreateSecuritySettingsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls UpdateExperiment. - * @function updateExperiment - * @memberof google.cloud.dialogflow.cx.v3.Experiments + * CreateSecuritySettingsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest} request UpdateExperimentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Experiments.UpdateExperimentCallback} callback Node-style callback called with the error, if any, and Experiment - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(Experiments.prototype.updateExperiment = function updateExperiment(request, callback) { - return this.rpcCall(updateExperiment, $root.google.cloud.dialogflow.cx.v3.UpdateExperimentRequest, $root.google.cloud.dialogflow.cx.v3.Experiment, request, callback); - }, "name", { value: "UpdateExperiment" }); + CreateSecuritySettingsRequest.prototype.parent = ""; /** - * Calls UpdateExperiment. - * @function updateExperiment - * @memberof google.cloud.dialogflow.cx.v3.Experiments + * CreateSecuritySettingsRequest securitySettings. + * @member {google.cloud.dialogflow.cx.v3.ISecuritySettings|null|undefined} securitySettings + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest} request UpdateExperimentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + CreateSecuritySettingsRequest.prototype.securitySettings = null; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#deleteExperiment}. - * @memberof google.cloud.dialogflow.cx.v3.Experiments - * @typedef DeleteExperimentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Creates a new CreateSecuritySettingsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest} CreateSecuritySettingsRequest instance */ + CreateSecuritySettingsRequest.create = function create(properties) { + return new CreateSecuritySettingsRequest(properties); + }; /** - * Calls DeleteExperiment. - * @function deleteExperiment - * @memberof google.cloud.dialogflow.cx.v3.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest} request DeleteExperimentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Experiments.DeleteExperimentCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * Encodes the specified CreateSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest} message CreateSecuritySettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(Experiments.prototype.deleteExperiment = function deleteExperiment(request, callback) { - return this.rpcCall(deleteExperiment, $root.google.cloud.dialogflow.cx.v3.DeleteExperimentRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteExperiment" }); + CreateSecuritySettingsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.securitySettings != null && Object.hasOwnProperty.call(message, "securitySettings")) + $root.google.cloud.dialogflow.cx.v3.SecuritySettings.encode(message.securitySettings, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; /** - * Calls DeleteExperiment. - * @function deleteExperiment - * @memberof google.cloud.dialogflow.cx.v3.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest} request DeleteExperimentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified CreateSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest} message CreateSecuritySettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + CreateSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#startExperiment}. - * @memberof google.cloud.dialogflow.cx.v3.Experiments - * @typedef StartExperimentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.Experiment} [response] Experiment + * Decodes a CreateSecuritySettingsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest} CreateSecuritySettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + CreateSecuritySettingsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.securitySettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls StartExperiment. - * @function startExperiment - * @memberof google.cloud.dialogflow.cx.v3.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3.IStartExperimentRequest} request StartExperimentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Experiments.StartExperimentCallback} callback Node-style callback called with the error, if any, and Experiment - * @returns {undefined} - * @variation 1 + * Decodes a CreateSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest} CreateSecuritySettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(Experiments.prototype.startExperiment = function startExperiment(request, callback) { - return this.rpcCall(startExperiment, $root.google.cloud.dialogflow.cx.v3.StartExperimentRequest, $root.google.cloud.dialogflow.cx.v3.Experiment, request, callback); - }, "name", { value: "StartExperiment" }); + CreateSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls StartExperiment. - * @function startExperiment - * @memberof google.cloud.dialogflow.cx.v3.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3.IStartExperimentRequest} request StartExperimentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a CreateSecuritySettingsRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + CreateSecuritySettingsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) { + var error = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.verify(message.securitySettings); + if (error) + return "securitySettings." + error; + } + return null; + }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#stopExperiment}. - * @memberof google.cloud.dialogflow.cx.v3.Experiments - * @typedef StopExperimentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.Experiment} [response] Experiment + * Creates a CreateSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest} CreateSecuritySettingsRequest */ + CreateSecuritySettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.securitySettings != null) { + if (typeof object.securitySettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest.securitySettings: object expected"); + message.securitySettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.fromObject(object.securitySettings); + } + return message; + }; /** - * Calls StopExperiment. - * @function stopExperiment - * @memberof google.cloud.dialogflow.cx.v3.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest} request StopExperimentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Experiments.StopExperimentCallback} callback Node-style callback called with the error, if any, and Experiment - * @returns {undefined} - * @variation 1 + * Creates a plain object from a CreateSecuritySettingsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest} message CreateSecuritySettingsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(Experiments.prototype.stopExperiment = function stopExperiment(request, callback) { - return this.rpcCall(stopExperiment, $root.google.cloud.dialogflow.cx.v3.StopExperimentRequest, $root.google.cloud.dialogflow.cx.v3.Experiment, request, callback); - }, "name", { value: "StopExperiment" }); + CreateSecuritySettingsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.securitySettings = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) + object.securitySettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.toObject(message.securitySettings, options); + return object; + }; /** - * Calls StopExperiment. - * @function stopExperiment - * @memberof google.cloud.dialogflow.cx.v3.Experiments + * Converts this CreateSecuritySettingsRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest * @instance - * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest} request StopExperimentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + CreateSecuritySettingsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Experiments; + return CreateSecuritySettingsRequest; })(); - v3.Experiment = (function() { + v3.DeleteSecuritySettingsRequest = (function() { /** - * Properties of an Experiment. + * Properties of a DeleteSecuritySettingsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IExperiment - * @property {string|null} [name] Experiment name - * @property {string|null} [displayName] Experiment displayName - * @property {string|null} [description] Experiment description - * @property {google.cloud.dialogflow.cx.v3.Experiment.State|null} [state] Experiment state - * @property {google.cloud.dialogflow.cx.v3.Experiment.IDefinition|null} [definition] Experiment definition - * @property {google.cloud.dialogflow.cx.v3.IRolloutConfig|null} [rolloutConfig] Experiment rolloutConfig - * @property {google.cloud.dialogflow.cx.v3.IRolloutState|null} [rolloutState] Experiment rolloutState - * @property {string|null} [rolloutFailureReason] Experiment rolloutFailureReason - * @property {google.cloud.dialogflow.cx.v3.Experiment.IResult|null} [result] Experiment result - * @property {google.protobuf.ITimestamp|null} [createTime] Experiment createTime - * @property {google.protobuf.ITimestamp|null} [startTime] Experiment startTime - * @property {google.protobuf.ITimestamp|null} [endTime] Experiment endTime - * @property {google.protobuf.ITimestamp|null} [lastUpdateTime] Experiment lastUpdateTime - * @property {google.protobuf.IDuration|null} [experimentLength] Experiment experimentLength - * @property {Array.|null} [variantsHistory] Experiment variantsHistory + * @interface IDeleteSecuritySettingsRequest + * @property {string|null} [name] DeleteSecuritySettingsRequest name */ /** - * Constructs a new Experiment. + * Constructs a new DeleteSecuritySettingsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an Experiment. - * @implements IExperiment + * @classdesc Represents a DeleteSecuritySettingsRequest. + * @implements IDeleteSecuritySettingsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IExperiment=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest=} [properties] Properties to set */ - function Experiment(properties) { - this.variantsHistory = []; + function DeleteSecuritySettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57772,261 +56472,76 @@ } /** - * Experiment name. + * DeleteSecuritySettingsRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @instance - */ - Experiment.prototype.name = ""; - - /** - * Experiment displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @instance - */ - Experiment.prototype.displayName = ""; - - /** - * Experiment description. - * @member {string} description - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @instance - */ - Experiment.prototype.description = ""; - - /** - * Experiment state. - * @member {google.cloud.dialogflow.cx.v3.Experiment.State} state - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @instance - */ - Experiment.prototype.state = 0; - - /** - * Experiment definition. - * @member {google.cloud.dialogflow.cx.v3.Experiment.IDefinition|null|undefined} definition - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @instance - */ - Experiment.prototype.definition = null; - - /** - * Experiment rolloutConfig. - * @member {google.cloud.dialogflow.cx.v3.IRolloutConfig|null|undefined} rolloutConfig - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @instance - */ - Experiment.prototype.rolloutConfig = null; - - /** - * Experiment rolloutState. - * @member {google.cloud.dialogflow.cx.v3.IRolloutState|null|undefined} rolloutState - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @instance - */ - Experiment.prototype.rolloutState = null; - - /** - * Experiment rolloutFailureReason. - * @member {string} rolloutFailureReason - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @instance - */ - Experiment.prototype.rolloutFailureReason = ""; - - /** - * Experiment result. - * @member {google.cloud.dialogflow.cx.v3.Experiment.IResult|null|undefined} result - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @instance - */ - Experiment.prototype.result = null; - - /** - * Experiment createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @instance - */ - Experiment.prototype.createTime = null; - - /** - * Experiment startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @instance - */ - Experiment.prototype.startTime = null; - - /** - * Experiment endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @instance - */ - Experiment.prototype.endTime = null; - - /** - * Experiment lastUpdateTime. - * @member {google.protobuf.ITimestamp|null|undefined} lastUpdateTime - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @instance - */ - Experiment.prototype.lastUpdateTime = null; - - /** - * Experiment experimentLength. - * @member {google.protobuf.IDuration|null|undefined} experimentLength - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @instance - */ - Experiment.prototype.experimentLength = null; - - /** - * Experiment variantsHistory. - * @member {Array.} variantsHistory - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @instance */ - Experiment.prototype.variantsHistory = $util.emptyArray; + DeleteSecuritySettingsRequest.prototype.name = ""; /** - * Creates a new Experiment instance using the specified properties. + * Creates a new DeleteSecuritySettingsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IExperiment=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Experiment} Experiment instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest} DeleteSecuritySettingsRequest instance */ - Experiment.create = function create(properties) { - return new Experiment(properties); + DeleteSecuritySettingsRequest.create = function create(properties) { + return new DeleteSecuritySettingsRequest(properties); }; /** - * Encodes the specified Experiment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.verify|verify} messages. + * Encodes the specified DeleteSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IExperiment} message Experiment message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest} message DeleteSecuritySettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Experiment.encode = function encode(message, writer) { + DeleteSecuritySettingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state); - if (message.definition != null && Object.hasOwnProperty.call(message, "definition")) - $root.google.cloud.dialogflow.cx.v3.Experiment.Definition.encode(message.definition, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.google.cloud.dialogflow.cx.v3.Experiment.Result.encode(message.result, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.lastUpdateTime != null && Object.hasOwnProperty.call(message, "lastUpdateTime")) - $root.google.protobuf.Timestamp.encode(message.lastUpdateTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.experimentLength != null && Object.hasOwnProperty.call(message, "experimentLength")) - $root.google.protobuf.Duration.encode(message.experimentLength, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.variantsHistory != null && message.variantsHistory.length) - for (var i = 0; i < message.variantsHistory.length; ++i) - $root.google.cloud.dialogflow.cx.v3.VariantsHistory.encode(message.variantsHistory[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.rolloutConfig != null && Object.hasOwnProperty.call(message, "rolloutConfig")) - $root.google.cloud.dialogflow.cx.v3.RolloutConfig.encode(message.rolloutConfig, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.rolloutState != null && Object.hasOwnProperty.call(message, "rolloutState")) - $root.google.cloud.dialogflow.cx.v3.RolloutState.encode(message.rolloutState, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.rolloutFailureReason != null && Object.hasOwnProperty.call(message, "rolloutFailureReason")) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.rolloutFailureReason); return writer; }; /** - * Encodes the specified Experiment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.verify|verify} messages. + * Encodes the specified DeleteSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IExperiment} message Experiment message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest} message DeleteSecuritySettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Experiment.encodeDelimited = function encodeDelimited(message, writer) { + DeleteSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Experiment message from the specified reader or buffer. + * Decodes a DeleteSecuritySettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.Experiment} Experiment + * @returns {google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest} DeleteSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Experiment.decode = function decode(reader, length) { + DeleteSecuritySettingsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Experiment(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; - case 2: - message.displayName = reader.string(); - break; - case 3: - message.description = reader.string(); - break; - case 4: - message.state = reader.int32(); - break; - case 5: - message.definition = $root.google.cloud.dialogflow.cx.v3.Experiment.Definition.decode(reader, reader.uint32()); - break; - case 14: - message.rolloutConfig = $root.google.cloud.dialogflow.cx.v3.RolloutConfig.decode(reader, reader.uint32()); - break; - case 15: - message.rolloutState = $root.google.cloud.dialogflow.cx.v3.RolloutState.decode(reader, reader.uint32()); - break; - case 16: - message.rolloutFailureReason = reader.string(); - break; - case 6: - message.result = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.decode(reader, reader.uint32()); - break; - case 7: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 8: - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 9: - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 10: - message.lastUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 11: - message.experimentLength = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 12: - if (!(message.variantsHistory && message.variantsHistory.length)) - message.variantsHistory = []; - message.variantsHistory.push($root.google.cloud.dialogflow.cx.v3.VariantsHistory.decode(reader, reader.uint32())); - break; default: reader.skipType(tag & 7); break; @@ -58036,564 +56551,600 @@ }; /** - * Decodes an Experiment message from the specified reader or buffer, length delimited. + * Decodes a DeleteSecuritySettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Experiment} Experiment + * @returns {google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest} DeleteSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Experiment.decodeDelimited = function decodeDelimited(reader) { + DeleteSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Experiment message. + * Verifies a DeleteSecuritySettingsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Experiment.verify = function verify(message) { + DeleteSecuritySettingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.definition != null && message.hasOwnProperty("definition")) { - var error = $root.google.cloud.dialogflow.cx.v3.Experiment.Definition.verify(message.definition); - if (error) - return "definition." + error; - } - if (message.rolloutConfig != null && message.hasOwnProperty("rolloutConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3.RolloutConfig.verify(message.rolloutConfig); - if (error) - return "rolloutConfig." + error; - } - if (message.rolloutState != null && message.hasOwnProperty("rolloutState")) { - var error = $root.google.cloud.dialogflow.cx.v3.RolloutState.verify(message.rolloutState); - if (error) - return "rolloutState." + error; - } - if (message.rolloutFailureReason != null && message.hasOwnProperty("rolloutFailureReason")) - if (!$util.isString(message.rolloutFailureReason)) - return "rolloutFailureReason: string expected"; - if (message.result != null && message.hasOwnProperty("result")) { - var error = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.verify(message.result); - if (error) - return "result." + error; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; - } - if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.lastUpdateTime); - if (error) - return "lastUpdateTime." + error; - } - if (message.experimentLength != null && message.hasOwnProperty("experimentLength")) { - var error = $root.google.protobuf.Duration.verify(message.experimentLength); - if (error) - return "experimentLength." + error; - } - if (message.variantsHistory != null && message.hasOwnProperty("variantsHistory")) { - if (!Array.isArray(message.variantsHistory)) - return "variantsHistory: array expected"; - for (var i = 0; i < message.variantsHistory.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.VariantsHistory.verify(message.variantsHistory[i]); - if (error) - return "variantsHistory." + error; - } - } return null; }; /** - * Creates an Experiment message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Experiment} Experiment + * @returns {google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest} DeleteSecuritySettingsRequest */ - Experiment.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment) + DeleteSecuritySettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Experiment(); + var message = new $root.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest(); if (object.name != null) message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.description != null) - message.description = String(object.description); - switch (object.state) { - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "DRAFT": - case 1: - message.state = 1; - break; - case "RUNNING": - case 2: - message.state = 2; - break; - case "DONE": - case 3: - message.state = 3; - break; - case "ROLLOUT_FAILED": - case 4: - message.state = 4; - break; - } - if (object.definition != null) { - if (typeof object.definition !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.definition: object expected"); - message.definition = $root.google.cloud.dialogflow.cx.v3.Experiment.Definition.fromObject(object.definition); - } - if (object.rolloutConfig != null) { - if (typeof object.rolloutConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.rolloutConfig: object expected"); - message.rolloutConfig = $root.google.cloud.dialogflow.cx.v3.RolloutConfig.fromObject(object.rolloutConfig); - } - if (object.rolloutState != null) { - if (typeof object.rolloutState !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.rolloutState: object expected"); - message.rolloutState = $root.google.cloud.dialogflow.cx.v3.RolloutState.fromObject(object.rolloutState); - } - if (object.rolloutFailureReason != null) - message.rolloutFailureReason = String(object.rolloutFailureReason); - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.result: object expected"); - message.result = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.fromObject(object.result); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); - } - if (object.lastUpdateTime != null) { - if (typeof object.lastUpdateTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.lastUpdateTime: object expected"); - message.lastUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.lastUpdateTime); - } - if (object.experimentLength != null) { - if (typeof object.experimentLength !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.experimentLength: object expected"); - message.experimentLength = $root.google.protobuf.Duration.fromObject(object.experimentLength); - } - if (object.variantsHistory) { - if (!Array.isArray(object.variantsHistory)) - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.variantsHistory: array expected"); - message.variantsHistory = []; - for (var i = 0; i < object.variantsHistory.length; ++i) { - if (typeof object.variantsHistory[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.variantsHistory: object expected"); - message.variantsHistory[i] = $root.google.cloud.dialogflow.cx.v3.VariantsHistory.fromObject(object.variantsHistory[i]); - } - } return message; }; /** - * Creates a plain object from an Experiment message. Also converts values to other types if specified. + * Creates a plain object from a DeleteSecuritySettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment} message Experiment + * @param {google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest} message DeleteSecuritySettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Experiment.toObject = function toObject(message, options) { + DeleteSecuritySettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.variantsHistory = []; - if (options.defaults) { + if (options.defaults) object.name = ""; - object.displayName = ""; - object.description = ""; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.definition = null; - object.result = null; - object.createTime = null; - object.startTime = null; - object.endTime = null; - object.lastUpdateTime = null; - object.experimentLength = null; - object.rolloutConfig = null; - object.rolloutState = null; - object.rolloutFailureReason = ""; - } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Experiment.State[message.state] : message.state; - if (message.definition != null && message.hasOwnProperty("definition")) - object.definition = $root.google.cloud.dialogflow.cx.v3.Experiment.Definition.toObject(message.definition, options); - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.toObject(message.result, options); - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) - object.lastUpdateTime = $root.google.protobuf.Timestamp.toObject(message.lastUpdateTime, options); - if (message.experimentLength != null && message.hasOwnProperty("experimentLength")) - object.experimentLength = $root.google.protobuf.Duration.toObject(message.experimentLength, options); - if (message.variantsHistory && message.variantsHistory.length) { - object.variantsHistory = []; - for (var j = 0; j < message.variantsHistory.length; ++j) - object.variantsHistory[j] = $root.google.cloud.dialogflow.cx.v3.VariantsHistory.toObject(message.variantsHistory[j], options); - } - if (message.rolloutConfig != null && message.hasOwnProperty("rolloutConfig")) - object.rolloutConfig = $root.google.cloud.dialogflow.cx.v3.RolloutConfig.toObject(message.rolloutConfig, options); - if (message.rolloutState != null && message.hasOwnProperty("rolloutState")) - object.rolloutState = $root.google.cloud.dialogflow.cx.v3.RolloutState.toObject(message.rolloutState, options); - if (message.rolloutFailureReason != null && message.hasOwnProperty("rolloutFailureReason")) - object.rolloutFailureReason = message.rolloutFailureReason; return object; }; /** - * Converts this Experiment to JSON. + * Converts this DeleteSecuritySettingsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @instance * @returns {Object.} JSON object */ - Experiment.prototype.toJSON = function toJSON() { + DeleteSecuritySettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + return DeleteSecuritySettingsRequest; + })(); + + v3.SecuritySettings = (function() { + /** - * State enum. - * @name google.cloud.dialogflow.cx.v3.Experiment.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} DRAFT=1 DRAFT value - * @property {number} RUNNING=2 RUNNING value - * @property {number} DONE=3 DONE value - * @property {number} ROLLOUT_FAILED=4 ROLLOUT_FAILED value + * Properties of a SecuritySettings. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface ISecuritySettings + * @property {string|null} [name] SecuritySettings name + * @property {string|null} [displayName] SecuritySettings displayName + * @property {google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy|null} [redactionStrategy] SecuritySettings redactionStrategy + * @property {google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope|null} [redactionScope] SecuritySettings redactionScope + * @property {string|null} [inspectTemplate] SecuritySettings inspectTemplate + * @property {string|null} [deidentifyTemplate] SecuritySettings deidentifyTemplate + * @property {number|null} [retentionWindowDays] SecuritySettings retentionWindowDays + * @property {Array.|null} [purgeDataTypes] SecuritySettings purgeDataTypes + * @property {google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings|null} [insightsExportSettings] SecuritySettings insightsExportSettings */ - Experiment.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "DRAFT"] = 1; - values[valuesById[2] = "RUNNING"] = 2; - values[valuesById[3] = "DONE"] = 3; - values[valuesById[4] = "ROLLOUT_FAILED"] = 4; - return values; - })(); - Experiment.Definition = (function() { + /** + * Constructs a new SecuritySettings. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a SecuritySettings. + * @implements ISecuritySettings + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ISecuritySettings=} [properties] Properties to set + */ + function SecuritySettings(properties) { + this.purgeDataTypes = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Properties of a Definition. - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @interface IDefinition - * @property {string|null} [condition] Definition condition - * @property {google.cloud.dialogflow.cx.v3.IVersionVariants|null} [versionVariants] Definition versionVariants - */ + /** + * SecuritySettings name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @instance + */ + SecuritySettings.prototype.name = ""; - /** - * Constructs a new Definition. - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @classdesc Represents a Definition. - * @implements IDefinition - * @constructor - * @param {google.cloud.dialogflow.cx.v3.Experiment.IDefinition=} [properties] Properties to set - */ - function Definition(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * SecuritySettings displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @instance + */ + SecuritySettings.prototype.displayName = ""; - /** - * Definition condition. - * @member {string} condition - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition - * @instance - */ - Definition.prototype.condition = ""; + /** + * SecuritySettings redactionStrategy. + * @member {google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy} redactionStrategy + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @instance + */ + SecuritySettings.prototype.redactionStrategy = 0; - /** - * Definition versionVariants. - * @member {google.cloud.dialogflow.cx.v3.IVersionVariants|null|undefined} versionVariants - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition - * @instance - */ - Definition.prototype.versionVariants = null; + /** + * SecuritySettings redactionScope. + * @member {google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope} redactionScope + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @instance + */ + SecuritySettings.prototype.redactionScope = 0; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * SecuritySettings inspectTemplate. + * @member {string} inspectTemplate + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @instance + */ + SecuritySettings.prototype.inspectTemplate = ""; - /** - * Definition variants. - * @member {"versionVariants"|undefined} variants - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition - * @instance - */ - Object.defineProperty(Definition.prototype, "variants", { - get: $util.oneOfGetter($oneOfFields = ["versionVariants"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * SecuritySettings deidentifyTemplate. + * @member {string} deidentifyTemplate + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @instance + */ + SecuritySettings.prototype.deidentifyTemplate = ""; - /** - * Creates a new Definition instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.IDefinition=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Definition} Definition instance - */ - Definition.create = function create(properties) { - return new Definition(properties); - }; + /** + * SecuritySettings retentionWindowDays. + * @member {number|null|undefined} retentionWindowDays + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @instance + */ + SecuritySettings.prototype.retentionWindowDays = null; - /** - * Encodes the specified Definition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Definition.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.IDefinition} message Definition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Definition.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.condition != null && Object.hasOwnProperty.call(message, "condition")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.condition); - if (message.versionVariants != null && Object.hasOwnProperty.call(message, "versionVariants")) - $root.google.cloud.dialogflow.cx.v3.VersionVariants.encode(message.versionVariants, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * SecuritySettings purgeDataTypes. + * @member {Array.} purgeDataTypes + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @instance + */ + SecuritySettings.prototype.purgeDataTypes = $util.emptyArray; - /** - * Encodes the specified Definition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Definition.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.IDefinition} message Definition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Definition.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * SecuritySettings insightsExportSettings. + * @member {google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings|null|undefined} insightsExportSettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @instance + */ + SecuritySettings.prototype.insightsExportSettings = null; - /** - * Decodes a Definition message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Definition} Definition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Definition.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Definition(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.condition = reader.string(); - break; - case 2: - message.versionVariants = $root.google.cloud.dialogflow.cx.v3.VersionVariants.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Decodes a Definition message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Definition} Definition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Definition.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * SecuritySettings dataRetention. + * @member {"retentionWindowDays"|undefined} dataRetention + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @instance + */ + Object.defineProperty(SecuritySettings.prototype, "dataRetention", { + get: $util.oneOfGetter($oneOfFields = ["retentionWindowDays"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Verifies a Definition message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Definition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.condition != null && message.hasOwnProperty("condition")) - if (!$util.isString(message.condition)) - return "condition: string expected"; - if (message.versionVariants != null && message.hasOwnProperty("versionVariants")) { - properties.variants = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.VersionVariants.verify(message.versionVariants); - if (error) - return "versionVariants." + error; - } - } - return null; - }; + /** + * Creates a new SecuritySettings instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @static + * @param {google.cloud.dialogflow.cx.v3.ISecuritySettings=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings} SecuritySettings instance + */ + SecuritySettings.create = function create(properties) { + return new SecuritySettings(properties); + }; - /** - * Creates a Definition message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Definition} Definition - */ - Definition.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment.Definition) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Definition(); - if (object.condition != null) - message.condition = String(object.condition); - if (object.versionVariants != null) { - if (typeof object.versionVariants !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.Definition.versionVariants: object expected"); - message.versionVariants = $root.google.cloud.dialogflow.cx.v3.VersionVariants.fromObject(object.versionVariants); - } - return message; - }; + /** + * Encodes the specified SecuritySettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @static + * @param {google.cloud.dialogflow.cx.v3.ISecuritySettings} message SecuritySettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecuritySettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.redactionStrategy != null && Object.hasOwnProperty.call(message, "redactionStrategy")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.redactionStrategy); + if (message.redactionScope != null && Object.hasOwnProperty.call(message, "redactionScope")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.redactionScope); + if (message.retentionWindowDays != null && Object.hasOwnProperty.call(message, "retentionWindowDays")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.retentionWindowDays); + if (message.purgeDataTypes != null && message.purgeDataTypes.length) { + writer.uint32(/* id 8, wireType 2 =*/66).fork(); + for (var i = 0; i < message.purgeDataTypes.length; ++i) + writer.int32(message.purgeDataTypes[i]); + writer.ldelim(); + } + if (message.inspectTemplate != null && Object.hasOwnProperty.call(message, "inspectTemplate")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.inspectTemplate); + if (message.insightsExportSettings != null && Object.hasOwnProperty.call(message, "insightsExportSettings")) + $root.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.encode(message.insightsExportSettings, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.deidentifyTemplate != null && Object.hasOwnProperty.call(message, "deidentifyTemplate")) + writer.uint32(/* id 17, wireType 2 =*/138).string(message.deidentifyTemplate); + return writer; + }; - /** - * Creates a plain object from a Definition message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Definition} message Definition - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Definition.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.condition = ""; - if (message.condition != null && message.hasOwnProperty("condition")) - object.condition = message.condition; - if (message.versionVariants != null && message.hasOwnProperty("versionVariants")) { - object.versionVariants = $root.google.cloud.dialogflow.cx.v3.VersionVariants.toObject(message.versionVariants, options); - if (options.oneofs) - object.variants = "versionVariants"; + /** + * Encodes the specified SecuritySettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @static + * @param {google.cloud.dialogflow.cx.v3.ISecuritySettings} message SecuritySettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecuritySettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SecuritySettings message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings} SecuritySettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecuritySettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.SecuritySettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.displayName = reader.string(); + break; + case 3: + message.redactionStrategy = reader.int32(); + break; + case 4: + message.redactionScope = reader.int32(); + break; + case 9: + message.inspectTemplate = reader.string(); + break; + case 17: + message.deidentifyTemplate = reader.string(); + break; + case 6: + message.retentionWindowDays = reader.int32(); + break; + case 8: + if (!(message.purgeDataTypes && message.purgeDataTypes.length)) + message.purgeDataTypes = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.purgeDataTypes.push(reader.int32()); + } else + message.purgeDataTypes.push(reader.int32()); + break; + case 13: + message.insightsExportSettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SecuritySettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings} SecuritySettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecuritySettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SecuritySettings message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SecuritySettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.redactionStrategy != null && message.hasOwnProperty("redactionStrategy")) + switch (message.redactionStrategy) { + default: + return "redactionStrategy: enum value expected"; + case 0: + case 1: + break; + } + if (message.redactionScope != null && message.hasOwnProperty("redactionScope")) + switch (message.redactionScope) { + default: + return "redactionScope: enum value expected"; + case 0: + case 2: + break; } + if (message.inspectTemplate != null && message.hasOwnProperty("inspectTemplate")) + if (!$util.isString(message.inspectTemplate)) + return "inspectTemplate: string expected"; + if (message.deidentifyTemplate != null && message.hasOwnProperty("deidentifyTemplate")) + if (!$util.isString(message.deidentifyTemplate)) + return "deidentifyTemplate: string expected"; + if (message.retentionWindowDays != null && message.hasOwnProperty("retentionWindowDays")) { + properties.dataRetention = 1; + if (!$util.isInteger(message.retentionWindowDays)) + return "retentionWindowDays: integer expected"; + } + if (message.purgeDataTypes != null && message.hasOwnProperty("purgeDataTypes")) { + if (!Array.isArray(message.purgeDataTypes)) + return "purgeDataTypes: array expected"; + for (var i = 0; i < message.purgeDataTypes.length; ++i) + switch (message.purgeDataTypes[i]) { + default: + return "purgeDataTypes: enum value[] expected"; + case 0: + case 1: + break; + } + } + if (message.insightsExportSettings != null && message.hasOwnProperty("insightsExportSettings")) { + var error = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.verify(message.insightsExportSettings); + if (error) + return "insightsExportSettings." + error; + } + return null; + }; + + /** + * Creates a SecuritySettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings} SecuritySettings + */ + SecuritySettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.SecuritySettings) return object; - }; + var message = new $root.google.cloud.dialogflow.cx.v3.SecuritySettings(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + switch (object.redactionStrategy) { + case "REDACTION_STRATEGY_UNSPECIFIED": + case 0: + message.redactionStrategy = 0; + break; + case "REDACT_WITH_SERVICE": + case 1: + message.redactionStrategy = 1; + break; + } + switch (object.redactionScope) { + case "REDACTION_SCOPE_UNSPECIFIED": + case 0: + message.redactionScope = 0; + break; + case "REDACT_DISK_STORAGE": + case 2: + message.redactionScope = 2; + break; + } + if (object.inspectTemplate != null) + message.inspectTemplate = String(object.inspectTemplate); + if (object.deidentifyTemplate != null) + message.deidentifyTemplate = String(object.deidentifyTemplate); + if (object.retentionWindowDays != null) + message.retentionWindowDays = object.retentionWindowDays | 0; + if (object.purgeDataTypes) { + if (!Array.isArray(object.purgeDataTypes)) + throw TypeError(".google.cloud.dialogflow.cx.v3.SecuritySettings.purgeDataTypes: array expected"); + message.purgeDataTypes = []; + for (var i = 0; i < object.purgeDataTypes.length; ++i) + switch (object.purgeDataTypes[i]) { + default: + case "PURGE_DATA_TYPE_UNSPECIFIED": + case 0: + message.purgeDataTypes[i] = 0; + break; + case "DIALOGFLOW_HISTORY": + case 1: + message.purgeDataTypes[i] = 1; + break; + } + } + if (object.insightsExportSettings != null) { + if (typeof object.insightsExportSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.SecuritySettings.insightsExportSettings: object expected"); + message.insightsExportSettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.fromObject(object.insightsExportSettings); + } + return message; + }; - /** - * Converts this Definition to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition - * @instance - * @returns {Object.} JSON object - */ - Definition.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a SecuritySettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @static + * @param {google.cloud.dialogflow.cx.v3.SecuritySettings} message SecuritySettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SecuritySettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.purgeDataTypes = []; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.redactionStrategy = options.enums === String ? "REDACTION_STRATEGY_UNSPECIFIED" : 0; + object.redactionScope = options.enums === String ? "REDACTION_SCOPE_UNSPECIFIED" : 0; + object.inspectTemplate = ""; + object.insightsExportSettings = null; + object.deidentifyTemplate = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.redactionStrategy != null && message.hasOwnProperty("redactionStrategy")) + object.redactionStrategy = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy[message.redactionStrategy] : message.redactionStrategy; + if (message.redactionScope != null && message.hasOwnProperty("redactionScope")) + object.redactionScope = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope[message.redactionScope] : message.redactionScope; + if (message.retentionWindowDays != null && message.hasOwnProperty("retentionWindowDays")) { + object.retentionWindowDays = message.retentionWindowDays; + if (options.oneofs) + object.dataRetention = "retentionWindowDays"; + } + if (message.purgeDataTypes && message.purgeDataTypes.length) { + object.purgeDataTypes = []; + for (var j = 0; j < message.purgeDataTypes.length; ++j) + object.purgeDataTypes[j] = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType[message.purgeDataTypes[j]] : message.purgeDataTypes[j]; + } + if (message.inspectTemplate != null && message.hasOwnProperty("inspectTemplate")) + object.inspectTemplate = message.inspectTemplate; + if (message.insightsExportSettings != null && message.hasOwnProperty("insightsExportSettings")) + object.insightsExportSettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.toObject(message.insightsExportSettings, options); + if (message.deidentifyTemplate != null && message.hasOwnProperty("deidentifyTemplate")) + object.deidentifyTemplate = message.deidentifyTemplate; + return object; + }; - return Definition; + /** + * Converts this SecuritySettings to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @instance + * @returns {Object.} JSON object + */ + SecuritySettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * RedactionStrategy enum. + * @name google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy + * @enum {number} + * @property {number} REDACTION_STRATEGY_UNSPECIFIED=0 REDACTION_STRATEGY_UNSPECIFIED value + * @property {number} REDACT_WITH_SERVICE=1 REDACT_WITH_SERVICE value + */ + SecuritySettings.RedactionStrategy = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "REDACTION_STRATEGY_UNSPECIFIED"] = 0; + values[valuesById[1] = "REDACT_WITH_SERVICE"] = 1; + return values; })(); - Experiment.Result = (function() { + /** + * RedactionScope enum. + * @name google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope + * @enum {number} + * @property {number} REDACTION_SCOPE_UNSPECIFIED=0 REDACTION_SCOPE_UNSPECIFIED value + * @property {number} REDACT_DISK_STORAGE=2 REDACT_DISK_STORAGE value + */ + SecuritySettings.RedactionScope = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "REDACTION_SCOPE_UNSPECIFIED"] = 0; + values[valuesById[2] = "REDACT_DISK_STORAGE"] = 2; + return values; + })(); + + /** + * PurgeDataType enum. + * @name google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType + * @enum {number} + * @property {number} PURGE_DATA_TYPE_UNSPECIFIED=0 PURGE_DATA_TYPE_UNSPECIFIED value + * @property {number} DIALOGFLOW_HISTORY=1 DIALOGFLOW_HISTORY value + */ + SecuritySettings.PurgeDataType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PURGE_DATA_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "DIALOGFLOW_HISTORY"] = 1; + return values; + })(); + + SecuritySettings.InsightsExportSettings = (function() { /** - * Properties of a Result. - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @interface IResult - * @property {Array.|null} [versionMetrics] Result versionMetrics - * @property {google.protobuf.ITimestamp|null} [lastUpdateTime] Result lastUpdateTime + * Properties of an InsightsExportSettings. + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @interface IInsightsExportSettings + * @property {boolean|null} [enableInsightsExport] InsightsExportSettings enableInsightsExport */ /** - * Constructs a new Result. - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @classdesc Represents a Result. - * @implements IResult + * Constructs a new InsightsExportSettings. + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @classdesc Represents an InsightsExportSettings. + * @implements IInsightsExportSettings * @constructor - * @param {google.cloud.dialogflow.cx.v3.Experiment.IResult=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings=} [properties] Properties to set */ - function Result(properties) { - this.versionMetrics = []; + function InsightsExportSettings(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -58601,91 +57152,75 @@ } /** - * Result versionMetrics. - * @member {Array.} versionMetrics - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result - * @instance - */ - Result.prototype.versionMetrics = $util.emptyArray; - - /** - * Result lastUpdateTime. - * @member {google.protobuf.ITimestamp|null|undefined} lastUpdateTime - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * InsightsExportSettings enableInsightsExport. + * @member {boolean} enableInsightsExport + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings * @instance */ - Result.prototype.lastUpdateTime = null; + InsightsExportSettings.prototype.enableInsightsExport = false; /** - * Creates a new Result instance using the specified properties. + * Creates a new InsightsExportSettings instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.IResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result} Result instance + * @param {google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings} InsightsExportSettings instance */ - Result.create = function create(properties) { - return new Result(properties); + InsightsExportSettings.create = function create(properties) { + return new InsightsExportSettings(properties); }; /** - * Encodes the specified Result message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.verify|verify} messages. + * Encodes the specified InsightsExportSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.IResult} message Result message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings} message InsightsExportSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Result.encode = function encode(message, writer) { + InsightsExportSettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.versionMetrics != null && message.versionMetrics.length) - for (var i = 0; i < message.versionMetrics.length; ++i) - $root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.encode(message.versionMetrics[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.lastUpdateTime != null && Object.hasOwnProperty.call(message, "lastUpdateTime")) - $root.google.protobuf.Timestamp.encode(message.lastUpdateTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.enableInsightsExport != null && Object.hasOwnProperty.call(message, "enableInsightsExport")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enableInsightsExport); return writer; }; /** - * Encodes the specified Result message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.verify|verify} messages. + * Encodes the specified InsightsExportSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.IResult} message Result message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings} message InsightsExportSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Result.encodeDelimited = function encodeDelimited(message, writer) { + InsightsExportSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Result message from the specified reader or buffer. + * Decodes an InsightsExportSettings message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result} Result + * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings} InsightsExportSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Result.decode = function decode(reader, length) { + InsightsExportSettings.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.versionMetrics && message.versionMetrics.length)) - message.versionMetrics = []; - message.versionMetrics.push($root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.decode(reader, reader.uint32())); - break; - case 2: - message.lastUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.enableInsightsExport = reader.bool(); break; default: reader.skipType(tag & 7); @@ -58696,1052 +57231,1375 @@ }; /** - * Decodes a Result message from the specified reader or buffer, length delimited. + * Decodes an InsightsExportSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result} Result + * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings} InsightsExportSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Result.decodeDelimited = function decodeDelimited(reader) { + InsightsExportSettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Result message. + * Verifies an InsightsExportSettings message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Result.verify = function verify(message) { + InsightsExportSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.versionMetrics != null && message.hasOwnProperty("versionMetrics")) { - if (!Array.isArray(message.versionMetrics)) - return "versionMetrics: array expected"; - for (var i = 0; i < message.versionMetrics.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.verify(message.versionMetrics[i]); - if (error) - return "versionMetrics." + error; - } - } - if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.lastUpdateTime); - if (error) - return "lastUpdateTime." + error; - } + if (message.enableInsightsExport != null && message.hasOwnProperty("enableInsightsExport")) + if (typeof message.enableInsightsExport !== "boolean") + return "enableInsightsExport: boolean expected"; return null; }; /** - * Creates a Result message from a plain object. Also converts values to their respective internal types. + * Creates an InsightsExportSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result} Result + * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings} InsightsExportSettings */ - Result.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment.Result) + InsightsExportSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result(); - if (object.versionMetrics) { - if (!Array.isArray(object.versionMetrics)) - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.Result.versionMetrics: array expected"); - message.versionMetrics = []; - for (var i = 0; i < object.versionMetrics.length; ++i) { - if (typeof object.versionMetrics[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.Result.versionMetrics: object expected"); - message.versionMetrics[i] = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.fromObject(object.versionMetrics[i]); - } - } - if (object.lastUpdateTime != null) { - if (typeof object.lastUpdateTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.Result.lastUpdateTime: object expected"); - message.lastUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.lastUpdateTime); - } + var message = new $root.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings(); + if (object.enableInsightsExport != null) + message.enableInsightsExport = Boolean(object.enableInsightsExport); return message; }; /** - * Creates a plain object from a Result message. Also converts values to other types if specified. + * Creates a plain object from an InsightsExportSettings message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result} message Result + * @param {google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings} message InsightsExportSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Result.toObject = function toObject(message, options) { + InsightsExportSettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.versionMetrics = []; if (options.defaults) - object.lastUpdateTime = null; - if (message.versionMetrics && message.versionMetrics.length) { - object.versionMetrics = []; - for (var j = 0; j < message.versionMetrics.length; ++j) - object.versionMetrics[j] = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.toObject(message.versionMetrics[j], options); - } - if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) - object.lastUpdateTime = $root.google.protobuf.Timestamp.toObject(message.lastUpdateTime, options); + object.enableInsightsExport = false; + if (message.enableInsightsExport != null && message.hasOwnProperty("enableInsightsExport")) + object.enableInsightsExport = message.enableInsightsExport; return object; }; /** - * Converts this Result to JSON. + * Converts this InsightsExportSettings to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings * @instance * @returns {Object.} JSON object */ - Result.prototype.toJSON = function toJSON() { + InsightsExportSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * MetricType enum. - * @name google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType - * @enum {number} - * @property {number} METRIC_UNSPECIFIED=0 METRIC_UNSPECIFIED value - * @property {number} CONTAINED_SESSION_NO_CALLBACK_RATE=1 CONTAINED_SESSION_NO_CALLBACK_RATE value - * @property {number} LIVE_AGENT_HANDOFF_RATE=2 LIVE_AGENT_HANDOFF_RATE value - * @property {number} CALLBACK_SESSION_RATE=3 CALLBACK_SESSION_RATE value - * @property {number} ABANDONED_SESSION_RATE=4 ABANDONED_SESSION_RATE value - * @property {number} SESSION_END_RATE=5 SESSION_END_RATE value - */ - Result.MetricType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "METRIC_UNSPECIFIED"] = 0; - values[valuesById[1] = "CONTAINED_SESSION_NO_CALLBACK_RATE"] = 1; - values[valuesById[2] = "LIVE_AGENT_HANDOFF_RATE"] = 2; - values[valuesById[3] = "CALLBACK_SESSION_RATE"] = 3; - values[valuesById[4] = "ABANDONED_SESSION_RATE"] = 4; - values[valuesById[5] = "SESSION_END_RATE"] = 5; - return values; - })(); - - /** - * CountType enum. - * @name google.cloud.dialogflow.cx.v3.Experiment.Result.CountType - * @enum {number} - * @property {number} COUNT_TYPE_UNSPECIFIED=0 COUNT_TYPE_UNSPECIFIED value - * @property {number} TOTAL_NO_MATCH_COUNT=1 TOTAL_NO_MATCH_COUNT value - * @property {number} TOTAL_TURN_COUNT=2 TOTAL_TURN_COUNT value - * @property {number} AVERAGE_TURN_COUNT=3 AVERAGE_TURN_COUNT value - */ - Result.CountType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "COUNT_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "TOTAL_NO_MATCH_COUNT"] = 1; - values[valuesById[2] = "TOTAL_TURN_COUNT"] = 2; - values[valuesById[3] = "AVERAGE_TURN_COUNT"] = 3; - return values; - })(); + return InsightsExportSettings; + })(); - Result.ConfidenceInterval = (function() { + return SecuritySettings; + })(); - /** - * Properties of a ConfidenceInterval. - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result - * @interface IConfidenceInterval - * @property {number|null} [confidenceLevel] ConfidenceInterval confidenceLevel - * @property {number|null} [ratio] ConfidenceInterval ratio - * @property {number|null} [lowerBound] ConfidenceInterval lowerBound - * @property {number|null} [upperBound] ConfidenceInterval upperBound - */ + v3.Versions = (function() { - /** - * Constructs a new ConfidenceInterval. - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result - * @classdesc Represents a ConfidenceInterval. - * @implements IConfidenceInterval - * @constructor - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval=} [properties] Properties to set - */ - function ConfidenceInterval(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new Versions service. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a Versions + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function Versions(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } - /** - * ConfidenceInterval confidenceLevel. - * @member {number} confidenceLevel - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval - * @instance - */ - ConfidenceInterval.prototype.confidenceLevel = 0; + (Versions.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Versions; - /** - * ConfidenceInterval ratio. - * @member {number} ratio - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval - * @instance - */ - ConfidenceInterval.prototype.ratio = 0; + /** + * Creates new Versions service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Versions + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {Versions} RPC service. Useful where requests and/or responses are streamed. + */ + Versions.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; - /** - * ConfidenceInterval lowerBound. - * @member {number} lowerBound - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval - * @instance - */ - ConfidenceInterval.prototype.lowerBound = 0; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#listVersions}. + * @memberof google.cloud.dialogflow.cx.v3.Versions + * @typedef ListVersionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.ListVersionsResponse} [response] ListVersionsResponse + */ - /** - * ConfidenceInterval upperBound. - * @member {number} upperBound - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval - * @instance - */ - ConfidenceInterval.prototype.upperBound = 0; + /** + * Calls ListVersions. + * @function listVersions + * @memberof google.cloud.dialogflow.cx.v3.Versions + * @instance + * @param {google.cloud.dialogflow.cx.v3.IListVersionsRequest} request ListVersionsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Versions.ListVersionsCallback} callback Node-style callback called with the error, if any, and ListVersionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Versions.prototype.listVersions = function listVersions(request, callback) { + return this.rpcCall(listVersions, $root.google.cloud.dialogflow.cx.v3.ListVersionsRequest, $root.google.cloud.dialogflow.cx.v3.ListVersionsResponse, request, callback); + }, "name", { value: "ListVersions" }); - /** - * Creates a new ConfidenceInterval instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval} ConfidenceInterval instance - */ - ConfidenceInterval.create = function create(properties) { - return new ConfidenceInterval(properties); - }; + /** + * Calls ListVersions. + * @function listVersions + * @memberof google.cloud.dialogflow.cx.v3.Versions + * @instance + * @param {google.cloud.dialogflow.cx.v3.IListVersionsRequest} request ListVersionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Encodes the specified ConfidenceInterval message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval} message ConfidenceInterval message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConfidenceInterval.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.confidenceLevel != null && Object.hasOwnProperty.call(message, "confidenceLevel")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.confidenceLevel); - if (message.ratio != null && Object.hasOwnProperty.call(message, "ratio")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.ratio); - if (message.lowerBound != null && Object.hasOwnProperty.call(message, "lowerBound")) - writer.uint32(/* id 3, wireType 1 =*/25).double(message.lowerBound); - if (message.upperBound != null && Object.hasOwnProperty.call(message, "upperBound")) - writer.uint32(/* id 4, wireType 1 =*/33).double(message.upperBound); - return writer; - }; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#getVersion}. + * @memberof google.cloud.dialogflow.cx.v3.Versions + * @typedef GetVersionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.Version} [response] Version + */ - /** - * Encodes the specified ConfidenceInterval message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval} message ConfidenceInterval message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConfidenceInterval.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Calls GetVersion. + * @function getVersion + * @memberof google.cloud.dialogflow.cx.v3.Versions + * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetVersionRequest} request GetVersionRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Versions.GetVersionCallback} callback Node-style callback called with the error, if any, and Version + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Versions.prototype.getVersion = function getVersion(request, callback) { + return this.rpcCall(getVersion, $root.google.cloud.dialogflow.cx.v3.GetVersionRequest, $root.google.cloud.dialogflow.cx.v3.Version, request, callback); + }, "name", { value: "GetVersion" }); - /** - * Decodes a ConfidenceInterval message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval} ConfidenceInterval - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConfidenceInterval.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.confidenceLevel = reader.double(); - break; - case 2: - message.ratio = reader.double(); - break; - case 3: - message.lowerBound = reader.double(); - break; - case 4: - message.upperBound = reader.double(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Calls GetVersion. + * @function getVersion + * @memberof google.cloud.dialogflow.cx.v3.Versions + * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetVersionRequest} request GetVersionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Decodes a ConfidenceInterval message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval} ConfidenceInterval - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConfidenceInterval.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#createVersion}. + * @memberof google.cloud.dialogflow.cx.v3.Versions + * @typedef CreateVersionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ - /** - * Verifies a ConfidenceInterval message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ConfidenceInterval.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.confidenceLevel != null && message.hasOwnProperty("confidenceLevel")) - if (typeof message.confidenceLevel !== "number") - return "confidenceLevel: number expected"; - if (message.ratio != null && message.hasOwnProperty("ratio")) - if (typeof message.ratio !== "number") - return "ratio: number expected"; - if (message.lowerBound != null && message.hasOwnProperty("lowerBound")) - if (typeof message.lowerBound !== "number") - return "lowerBound: number expected"; - if (message.upperBound != null && message.hasOwnProperty("upperBound")) - if (typeof message.upperBound !== "number") - return "upperBound: number expected"; - return null; - }; + /** + * Calls CreateVersion. + * @function createVersion + * @memberof google.cloud.dialogflow.cx.v3.Versions + * @instance + * @param {google.cloud.dialogflow.cx.v3.ICreateVersionRequest} request CreateVersionRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Versions.CreateVersionCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Versions.prototype.createVersion = function createVersion(request, callback) { + return this.rpcCall(createVersion, $root.google.cloud.dialogflow.cx.v3.CreateVersionRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateVersion" }); - /** - * Creates a ConfidenceInterval message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval} ConfidenceInterval - */ - ConfidenceInterval.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval(); - if (object.confidenceLevel != null) - message.confidenceLevel = Number(object.confidenceLevel); - if (object.ratio != null) - message.ratio = Number(object.ratio); - if (object.lowerBound != null) - message.lowerBound = Number(object.lowerBound); - if (object.upperBound != null) - message.upperBound = Number(object.upperBound); - return message; - }; + /** + * Calls CreateVersion. + * @function createVersion + * @memberof google.cloud.dialogflow.cx.v3.Versions + * @instance + * @param {google.cloud.dialogflow.cx.v3.ICreateVersionRequest} request CreateVersionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Creates a plain object from a ConfidenceInterval message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval} message ConfidenceInterval - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ConfidenceInterval.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.confidenceLevel = 0; - object.ratio = 0; - object.lowerBound = 0; - object.upperBound = 0; - } - if (message.confidenceLevel != null && message.hasOwnProperty("confidenceLevel")) - object.confidenceLevel = options.json && !isFinite(message.confidenceLevel) ? String(message.confidenceLevel) : message.confidenceLevel; - if (message.ratio != null && message.hasOwnProperty("ratio")) - object.ratio = options.json && !isFinite(message.ratio) ? String(message.ratio) : message.ratio; - if (message.lowerBound != null && message.hasOwnProperty("lowerBound")) - object.lowerBound = options.json && !isFinite(message.lowerBound) ? String(message.lowerBound) : message.lowerBound; - if (message.upperBound != null && message.hasOwnProperty("upperBound")) - object.upperBound = options.json && !isFinite(message.upperBound) ? String(message.upperBound) : message.upperBound; - return object; - }; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#updateVersion}. + * @memberof google.cloud.dialogflow.cx.v3.Versions + * @typedef UpdateVersionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.Version} [response] Version + */ - /** - * Converts this ConfidenceInterval to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval - * @instance - * @returns {Object.} JSON object - */ - ConfidenceInterval.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Calls UpdateVersion. + * @function updateVersion + * @memberof google.cloud.dialogflow.cx.v3.Versions + * @instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateVersionRequest} request UpdateVersionRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Versions.UpdateVersionCallback} callback Node-style callback called with the error, if any, and Version + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Versions.prototype.updateVersion = function updateVersion(request, callback) { + return this.rpcCall(updateVersion, $root.google.cloud.dialogflow.cx.v3.UpdateVersionRequest, $root.google.cloud.dialogflow.cx.v3.Version, request, callback); + }, "name", { value: "UpdateVersion" }); - return ConfidenceInterval; - })(); + /** + * Calls UpdateVersion. + * @function updateVersion + * @memberof google.cloud.dialogflow.cx.v3.Versions + * @instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateVersionRequest} request UpdateVersionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - Result.Metric = (function() { + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#deleteVersion}. + * @memberof google.cloud.dialogflow.cx.v3.Versions + * @typedef DeleteVersionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ - /** - * Properties of a Metric. - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result - * @interface IMetric - * @property {google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType|null} [type] Metric type - * @property {google.cloud.dialogflow.cx.v3.Experiment.Result.CountType|null} [countType] Metric countType - * @property {number|null} [ratio] Metric ratio - * @property {number|null} [count] Metric count - * @property {google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval|null} [confidenceInterval] Metric confidenceInterval - */ + /** + * Calls DeleteVersion. + * @function deleteVersion + * @memberof google.cloud.dialogflow.cx.v3.Versions + * @instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest} request DeleteVersionRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Versions.DeleteVersionCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Versions.prototype.deleteVersion = function deleteVersion(request, callback) { + return this.rpcCall(deleteVersion, $root.google.cloud.dialogflow.cx.v3.DeleteVersionRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteVersion" }); - /** - * Constructs a new Metric. - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result - * @classdesc Represents a Metric. - * @implements IMetric - * @constructor - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric=} [properties] Properties to set - */ - function Metric(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Calls DeleteVersion. + * @function deleteVersion + * @memberof google.cloud.dialogflow.cx.v3.Versions + * @instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest} request DeleteVersionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Metric type. - * @member {google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType} type - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @instance - */ - Metric.prototype.type = 0; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#loadVersion}. + * @memberof google.cloud.dialogflow.cx.v3.Versions + * @typedef LoadVersionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ - /** - * Metric countType. - * @member {google.cloud.dialogflow.cx.v3.Experiment.Result.CountType} countType - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @instance - */ - Metric.prototype.countType = 0; + /** + * Calls LoadVersion. + * @function loadVersion + * @memberof google.cloud.dialogflow.cx.v3.Versions + * @instance + * @param {google.cloud.dialogflow.cx.v3.ILoadVersionRequest} request LoadVersionRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Versions.LoadVersionCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Versions.prototype.loadVersion = function loadVersion(request, callback) { + return this.rpcCall(loadVersion, $root.google.cloud.dialogflow.cx.v3.LoadVersionRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "LoadVersion" }); - /** - * Metric ratio. - * @member {number|null|undefined} ratio - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @instance - */ - Metric.prototype.ratio = null; + /** + * Calls LoadVersion. + * @function loadVersion + * @memberof google.cloud.dialogflow.cx.v3.Versions + * @instance + * @param {google.cloud.dialogflow.cx.v3.ILoadVersionRequest} request LoadVersionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Metric count. - * @member {number|null|undefined} count - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @instance - */ - Metric.prototype.count = null; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#compareVersions}. + * @memberof google.cloud.dialogflow.cx.v3.Versions + * @typedef CompareVersionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.CompareVersionsResponse} [response] CompareVersionsResponse + */ - /** - * Metric confidenceInterval. - * @member {google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval|null|undefined} confidenceInterval - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @instance - */ - Metric.prototype.confidenceInterval = null; + /** + * Calls CompareVersions. + * @function compareVersions + * @memberof google.cloud.dialogflow.cx.v3.Versions + * @instance + * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsRequest} request CompareVersionsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Versions.CompareVersionsCallback} callback Node-style callback called with the error, if any, and CompareVersionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Versions.prototype.compareVersions = function compareVersions(request, callback) { + return this.rpcCall(compareVersions, $root.google.cloud.dialogflow.cx.v3.CompareVersionsRequest, $root.google.cloud.dialogflow.cx.v3.CompareVersionsResponse, request, callback); + }, "name", { value: "CompareVersions" }); - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Calls CompareVersions. + * @function compareVersions + * @memberof google.cloud.dialogflow.cx.v3.Versions + * @instance + * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsRequest} request CompareVersionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Metric value. - * @member {"ratio"|"count"|undefined} value - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @instance - */ - Object.defineProperty(Metric.prototype, "value", { - get: $util.oneOfGetter($oneOfFields = ["ratio", "count"]), - set: $util.oneOfSetter($oneOfFields) - }); + return Versions; + })(); - /** - * Creates a new Metric instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.Metric} Metric instance - */ - Metric.create = function create(properties) { - return new Metric(properties); - }; + v3.CreateVersionOperationMetadata = (function() { - /** - * Encodes the specified Metric message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric} message Metric message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Metric.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.ratio != null && Object.hasOwnProperty.call(message, "ratio")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.ratio); - if (message.confidenceInterval != null && Object.hasOwnProperty.call(message, "confidenceInterval")) - $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.encode(message.confidenceInterval, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.count != null && Object.hasOwnProperty.call(message, "count")) - writer.uint32(/* id 4, wireType 1 =*/33).double(message.count); - if (message.countType != null && Object.hasOwnProperty.call(message, "countType")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.countType); - return writer; - }; + /** + * Properties of a CreateVersionOperationMetadata. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface ICreateVersionOperationMetadata + * @property {string|null} [version] CreateVersionOperationMetadata version + */ - /** - * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric} message Metric message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Metric.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Constructs a new CreateVersionOperationMetadata. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a CreateVersionOperationMetadata. + * @implements ICreateVersionOperationMetadata + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata=} [properties] Properties to set + */ + function CreateVersionOperationMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Decodes a Metric message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.Metric} Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Metric.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = reader.int32(); - break; - case 5: - message.countType = reader.int32(); - break; - case 2: - message.ratio = reader.double(); - break; - case 4: - message.count = reader.double(); - break; - case 3: - message.confidenceInterval = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * CreateVersionOperationMetadata version. + * @member {string} version + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata + * @instance + */ + CreateVersionOperationMetadata.prototype.version = ""; - /** - * Decodes a Metric message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.Metric} Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Metric.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a new CreateVersionOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata + * @static + * @param {google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata} CreateVersionOperationMetadata instance + */ + CreateVersionOperationMetadata.create = function create(properties) { + return new CreateVersionOperationMetadata(properties); + }; - /** - * Verifies a Metric message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Metric.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.countType != null && message.hasOwnProperty("countType")) - switch (message.countType) { - default: - return "countType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.ratio != null && message.hasOwnProperty("ratio")) { - properties.value = 1; - if (typeof message.ratio !== "number") - return "ratio: number expected"; - } - if (message.count != null && message.hasOwnProperty("count")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - if (typeof message.count !== "number") - return "count: number expected"; - } - if (message.confidenceInterval != null && message.hasOwnProperty("confidenceInterval")) { - var error = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.verify(message.confidenceInterval); - if (error) - return "confidenceInterval." + error; - } - return null; - }; + /** + * Encodes the specified CreateVersionOperationMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata + * @static + * @param {google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata} message CreateVersionOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateVersionOperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); + return writer; + }; - /** - * Creates a Metric message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.Metric} Metric - */ - Metric.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric(); - switch (object.type) { - case "METRIC_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "CONTAINED_SESSION_NO_CALLBACK_RATE": - case 1: - message.type = 1; - break; - case "LIVE_AGENT_HANDOFF_RATE": - case 2: - message.type = 2; - break; - case "CALLBACK_SESSION_RATE": - case 3: - message.type = 3; - break; - case "ABANDONED_SESSION_RATE": - case 4: - message.type = 4; - break; - case "SESSION_END_RATE": - case 5: - message.type = 5; - break; - } - switch (object.countType) { - case "COUNT_TYPE_UNSPECIFIED": - case 0: - message.countType = 0; - break; - case "TOTAL_NO_MATCH_COUNT": - case 1: - message.countType = 1; - break; - case "TOTAL_TURN_COUNT": - case 2: - message.countType = 2; - break; - case "AVERAGE_TURN_COUNT": - case 3: - message.countType = 3; - break; - } - if (object.ratio != null) - message.ratio = Number(object.ratio); - if (object.count != null) - message.count = Number(object.count); - if (object.confidenceInterval != null) { - if (typeof object.confidenceInterval !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.confidenceInterval: object expected"); - message.confidenceInterval = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.fromObject(object.confidenceInterval); - } - return message; - }; + /** + * Encodes the specified CreateVersionOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata + * @static + * @param {google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata} message CreateVersionOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateVersionOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a plain object from a Metric message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.Metric} message Metric - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Metric.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.type = options.enums === String ? "METRIC_UNSPECIFIED" : 0; - object.confidenceInterval = null; - object.countType = options.enums === String ? "COUNT_TYPE_UNSPECIFIED" : 0; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType[message.type] : message.type; - if (message.ratio != null && message.hasOwnProperty("ratio")) { - object.ratio = options.json && !isFinite(message.ratio) ? String(message.ratio) : message.ratio; - if (options.oneofs) - object.value = "ratio"; - } - if (message.confidenceInterval != null && message.hasOwnProperty("confidenceInterval")) - object.confidenceInterval = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.toObject(message.confidenceInterval, options); - if (message.count != null && message.hasOwnProperty("count")) { - object.count = options.json && !isFinite(message.count) ? String(message.count) : message.count; - if (options.oneofs) - object.value = "count"; - } - if (message.countType != null && message.hasOwnProperty("countType")) - object.countType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Experiment.Result.CountType[message.countType] : message.countType; - return object; - }; + /** + * Decodes a CreateVersionOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata} CreateVersionOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateVersionOperationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.version = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Converts this Metric to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @instance - * @returns {Object.} JSON object - */ - Metric.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a CreateVersionOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata} CreateVersionOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateVersionOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateVersionOperationMetadata message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateVersionOperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + return null; + }; + + /** + * Creates a CreateVersionOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata} CreateVersionOperationMetadata + */ + CreateVersionOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata(); + if (object.version != null) + message.version = String(object.version); + return message; + }; + + /** + * Creates a plain object from a CreateVersionOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata + * @static + * @param {google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata} message CreateVersionOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateVersionOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.version = ""; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + return object; + }; + + /** + * Converts this CreateVersionOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + CreateVersionOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreateVersionOperationMetadata; + })(); + + v3.Version = (function() { + + /** + * Properties of a Version. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IVersion + * @property {string|null} [name] Version name + * @property {string|null} [displayName] Version displayName + * @property {string|null} [description] Version description + * @property {google.cloud.dialogflow.cx.v3.INluSettings|null} [nluSettings] Version nluSettings + * @property {google.protobuf.ITimestamp|null} [createTime] Version createTime + * @property {google.cloud.dialogflow.cx.v3.Version.State|null} [state] Version state + */ + + /** + * Constructs a new Version. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a Version. + * @implements IVersion + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IVersion=} [properties] Properties to set + */ + function Version(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Version name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.Version + * @instance + */ + Version.prototype.name = ""; + + /** + * Version displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.Version + * @instance + */ + Version.prototype.displayName = ""; + + /** + * Version description. + * @member {string} description + * @memberof google.cloud.dialogflow.cx.v3.Version + * @instance + */ + Version.prototype.description = ""; + + /** + * Version nluSettings. + * @member {google.cloud.dialogflow.cx.v3.INluSettings|null|undefined} nluSettings + * @memberof google.cloud.dialogflow.cx.v3.Version + * @instance + */ + Version.prototype.nluSettings = null; + + /** + * Version createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.dialogflow.cx.v3.Version + * @instance + */ + Version.prototype.createTime = null; + + /** + * Version state. + * @member {google.cloud.dialogflow.cx.v3.Version.State} state + * @memberof google.cloud.dialogflow.cx.v3.Version + * @instance + */ + Version.prototype.state = 0; + + /** + * Creates a new Version instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Version + * @static + * @param {google.cloud.dialogflow.cx.v3.IVersion=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Version} Version instance + */ + Version.create = function create(properties) { + return new Version(properties); + }; + + /** + * Encodes the specified Version message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Version.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.Version + * @static + * @param {google.cloud.dialogflow.cx.v3.IVersion} message Version message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Version.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); + if (message.nluSettings != null && Object.hasOwnProperty.call(message, "nluSettings")) + $root.google.cloud.dialogflow.cx.v3.NluSettings.encode(message.nluSettings, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state); + return writer; + }; + + /** + * Encodes the specified Version message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Version.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Version + * @static + * @param {google.cloud.dialogflow.cx.v3.IVersion} message Version message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Version.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Version message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.Version + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.Version} Version + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Version.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Version(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.displayName = reader.string(); + break; + case 3: + message.description = reader.string(); + break; + case 4: + message.nluSettings = $root.google.cloud.dialogflow.cx.v3.NluSettings.decode(reader, reader.uint32()); + break; + case 5: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 6: + message.state = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Version message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Version + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.Version} Version + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Version.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Version message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.Version + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Version.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.nluSettings != null && message.hasOwnProperty("nluSettings")) { + var error = $root.google.cloud.dialogflow.cx.v3.NluSettings.verify(message.nluSettings); + if (error) + return "nluSettings." + error; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + return null; + }; + + /** + * Creates a Version message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.Version + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.Version} Version + */ + Version.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Version) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.Version(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.description != null) + message.description = String(object.description); + if (object.nluSettings != null) { + if (typeof object.nluSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Version.nluSettings: object expected"); + message.nluSettings = $root.google.cloud.dialogflow.cx.v3.NluSettings.fromObject(object.nluSettings); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Version.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + switch (object.state) { + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "RUNNING": + case 1: + message.state = 1; + break; + case "SUCCEEDED": + case 2: + message.state = 2; + break; + case "FAILED": + case 3: + message.state = 3; + break; + } + return message; + }; + + /** + * Creates a plain object from a Version message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.Version + * @static + * @param {google.cloud.dialogflow.cx.v3.Version} message Version + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Version.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.description = ""; + object.nluSettings = null; + object.createTime = null; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.nluSettings != null && message.hasOwnProperty("nluSettings")) + object.nluSettings = $root.google.cloud.dialogflow.cx.v3.NluSettings.toObject(message.nluSettings, options); + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Version.State[message.state] : message.state; + return object; + }; + + /** + * Converts this Version to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.Version + * @instance + * @returns {Object.} JSON object + */ + Version.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * State enum. + * @name google.cloud.dialogflow.cx.v3.Version.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} RUNNING=1 RUNNING value + * @property {number} SUCCEEDED=2 SUCCEEDED value + * @property {number} FAILED=3 FAILED value + */ + Version.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "RUNNING"] = 1; + values[valuesById[2] = "SUCCEEDED"] = 2; + values[valuesById[3] = "FAILED"] = 3; + return values; + })(); + + return Version; + })(); + + v3.ListVersionsRequest = (function() { + + /** + * Properties of a ListVersionsRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IListVersionsRequest + * @property {string|null} [parent] ListVersionsRequest parent + * @property {number|null} [pageSize] ListVersionsRequest pageSize + * @property {string|null} [pageToken] ListVersionsRequest pageToken + */ + + /** + * Constructs a new ListVersionsRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a ListVersionsRequest. + * @implements IListVersionsRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IListVersionsRequest=} [properties] Properties to set + */ + function ListVersionsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListVersionsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * @instance + */ + ListVersionsRequest.prototype.parent = ""; + + /** + * ListVersionsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * @instance + */ + ListVersionsRequest.prototype.pageSize = 0; + + /** + * ListVersionsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * @instance + */ + ListVersionsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListVersionsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IListVersionsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListVersionsRequest} ListVersionsRequest instance + */ + ListVersionsRequest.create = function create(properties) { + return new ListVersionsRequest(properties); + }; + + /** + * Encodes the specified ListVersionsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IListVersionsRequest} message ListVersionsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListVersionsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + return writer; + }; + + /** + * Encodes the specified ListVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IListVersionsRequest} message ListVersionsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListVersionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListVersionsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.ListVersionsRequest} ListVersionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListVersionsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListVersionsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListVersionsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.ListVersionsRequest} ListVersionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListVersionsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - return Metric; - })(); + /** + * Verifies a ListVersionsRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListVersionsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + return null; + }; - Result.VersionMetrics = (function() { + /** + * Creates a ListVersionsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.ListVersionsRequest} ListVersionsRequest + */ + ListVersionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListVersionsRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.ListVersionsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + return message; + }; - /** - * Properties of a VersionMetrics. - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result - * @interface IVersionMetrics - * @property {string|null} [version] VersionMetrics version - * @property {Array.|null} [metrics] VersionMetrics metrics - * @property {number|null} [sessionCount] VersionMetrics sessionCount - */ + /** + * Creates a plain object from a ListVersionsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.ListVersionsRequest} message ListVersionsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListVersionsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + return object; + }; - /** - * Constructs a new VersionMetrics. - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result - * @classdesc Represents a VersionMetrics. - * @implements IVersionMetrics - * @constructor - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics=} [properties] Properties to set - */ - function VersionMetrics(properties) { - this.metrics = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Converts this ListVersionsRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * @instance + * @returns {Object.} JSON object + */ + ListVersionsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * VersionMetrics version. - * @member {string} version - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @instance - */ - VersionMetrics.prototype.version = ""; + return ListVersionsRequest; + })(); - /** - * VersionMetrics metrics. - * @member {Array.} metrics - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @instance - */ - VersionMetrics.prototype.metrics = $util.emptyArray; + v3.ListVersionsResponse = (function() { - /** - * VersionMetrics sessionCount. - * @member {number} sessionCount - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @instance - */ - VersionMetrics.prototype.sessionCount = 0; + /** + * Properties of a ListVersionsResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IListVersionsResponse + * @property {Array.|null} [versions] ListVersionsResponse versions + * @property {string|null} [nextPageToken] ListVersionsResponse nextPageToken + */ - /** - * Creates a new VersionMetrics instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics} VersionMetrics instance - */ - VersionMetrics.create = function create(properties) { - return new VersionMetrics(properties); - }; + /** + * Constructs a new ListVersionsResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a ListVersionsResponse. + * @implements IListVersionsResponse + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IListVersionsResponse=} [properties] Properties to set + */ + function ListVersionsResponse(properties) { + this.versions = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified VersionMetrics message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics} message VersionMetrics message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VersionMetrics.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); - if (message.metrics != null && message.metrics.length) - for (var i = 0; i < message.metrics.length; ++i) - $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.encode(message.metrics[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.sessionCount != null && Object.hasOwnProperty.call(message, "sessionCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.sessionCount); - return writer; - }; + /** + * ListVersionsResponse versions. + * @member {Array.} versions + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse + * @instance + */ + ListVersionsResponse.prototype.versions = $util.emptyArray; - /** - * Encodes the specified VersionMetrics message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics} message VersionMetrics message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VersionMetrics.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * ListVersionsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse + * @instance + */ + ListVersionsResponse.prototype.nextPageToken = ""; - /** - * Decodes a VersionMetrics message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics} VersionMetrics - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VersionMetrics.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.version = reader.string(); - break; - case 2: - if (!(message.metrics && message.metrics.length)) - message.metrics = []; - message.metrics.push($root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.decode(reader, reader.uint32())); - break; - case 3: - message.sessionCount = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a new ListVersionsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.IListVersionsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListVersionsResponse} ListVersionsResponse instance + */ + ListVersionsResponse.create = function create(properties) { + return new ListVersionsResponse(properties); + }; - /** - * Decodes a VersionMetrics message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics} VersionMetrics - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VersionMetrics.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified ListVersionsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.IListVersionsResponse} message ListVersionsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListVersionsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.versions != null && message.versions.length) + for (var i = 0; i < message.versions.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Version.encode(message.versions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; - /** - * Verifies a VersionMetrics message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - VersionMetrics.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - if (message.metrics != null && message.hasOwnProperty("metrics")) { - if (!Array.isArray(message.metrics)) - return "metrics: array expected"; - for (var i = 0; i < message.metrics.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.verify(message.metrics[i]); - if (error) - return "metrics." + error; - } - } - if (message.sessionCount != null && message.hasOwnProperty("sessionCount")) - if (!$util.isInteger(message.sessionCount)) - return "sessionCount: integer expected"; - return null; - }; + /** + * Encodes the specified ListVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.IListVersionsResponse} message ListVersionsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListVersionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a VersionMetrics message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics} VersionMetrics - */ - VersionMetrics.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics(); - if (object.version != null) - message.version = String(object.version); - if (object.metrics) { - if (!Array.isArray(object.metrics)) - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.metrics: array expected"); - message.metrics = []; - for (var i = 0; i < object.metrics.length; ++i) { - if (typeof object.metrics[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.metrics: object expected"); - message.metrics[i] = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.fromObject(object.metrics[i]); - } - } - if (object.sessionCount != null) - message.sessionCount = object.sessionCount | 0; - return message; - }; + /** + * Decodes a ListVersionsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.ListVersionsResponse} ListVersionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListVersionsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListVersionsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.versions && message.versions.length)) + message.versions = []; + message.versions.push($root.google.cloud.dialogflow.cx.v3.Version.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a plain object from a VersionMetrics message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics} message VersionMetrics - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - VersionMetrics.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.metrics = []; - if (options.defaults) { - object.version = ""; - object.sessionCount = 0; - } - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.metrics && message.metrics.length) { - object.metrics = []; - for (var j = 0; j < message.metrics.length; ++j) - object.metrics[j] = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.toObject(message.metrics[j], options); - } - if (message.sessionCount != null && message.hasOwnProperty("sessionCount")) - object.sessionCount = message.sessionCount; - return object; - }; + /** + * Decodes a ListVersionsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.ListVersionsResponse} ListVersionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListVersionsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Converts this VersionMetrics to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @instance - * @returns {Object.} JSON object - */ - VersionMetrics.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Verifies a ListVersionsResponse message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListVersionsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.versions != null && message.hasOwnProperty("versions")) { + if (!Array.isArray(message.versions)) + return "versions: array expected"; + for (var i = 0; i < message.versions.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Version.verify(message.versions[i]); + if (error) + return "versions." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; - return VersionMetrics; - })(); + /** + * Creates a ListVersionsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.ListVersionsResponse} ListVersionsResponse + */ + ListVersionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListVersionsResponse) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.ListVersionsResponse(); + if (object.versions) { + if (!Array.isArray(object.versions)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ListVersionsResponse.versions: array expected"); + message.versions = []; + for (var i = 0; i < object.versions.length; ++i) { + if (typeof object.versions[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ListVersionsResponse.versions: object expected"); + message.versions[i] = $root.google.cloud.dialogflow.cx.v3.Version.fromObject(object.versions[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListVersionsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.ListVersionsResponse} message ListVersionsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListVersionsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.versions = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.versions && message.versions.length) { + object.versions = []; + for (var j = 0; j < message.versions.length; ++j) + object.versions[j] = $root.google.cloud.dialogflow.cx.v3.Version.toObject(message.versions[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; - return Result; - })(); + /** + * Converts this ListVersionsResponse to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse + * @instance + * @returns {Object.} JSON object + */ + ListVersionsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Experiment; + return ListVersionsResponse; })(); - v3.VersionVariants = (function() { + v3.GetVersionRequest = (function() { /** - * Properties of a VersionVariants. + * Properties of a GetVersionRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IVersionVariants - * @property {Array.|null} [variants] VersionVariants variants + * @interface IGetVersionRequest + * @property {string|null} [name] GetVersionRequest name */ /** - * Constructs a new VersionVariants. + * Constructs a new GetVersionRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a VersionVariants. - * @implements IVersionVariants + * @classdesc Represents a GetVersionRequest. + * @implements IGetVersionRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IVersionVariants=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetVersionRequest=} [properties] Properties to set */ - function VersionVariants(properties) { - this.variants = []; + function GetVersionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -59749,78 +58607,75 @@ } /** - * VersionVariants variants. - * @member {Array.} variants - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants + * GetVersionRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest * @instance */ - VersionVariants.prototype.variants = $util.emptyArray; + GetVersionRequest.prototype.name = ""; /** - * Creates a new VersionVariants instance using the specified properties. + * Creates a new GetVersionRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IVersionVariants=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.VersionVariants} VersionVariants instance + * @param {google.cloud.dialogflow.cx.v3.IGetVersionRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetVersionRequest} GetVersionRequest instance */ - VersionVariants.create = function create(properties) { - return new VersionVariants(properties); + GetVersionRequest.create = function create(properties) { + return new GetVersionRequest(properties); }; /** - * Encodes the specified VersionVariants message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.verify|verify} messages. + * Encodes the specified GetVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetVersionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IVersionVariants} message VersionVariants message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetVersionRequest} message GetVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VersionVariants.encode = function encode(message, writer) { + GetVersionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.variants != null && message.variants.length) - for (var i = 0; i < message.variants.length; ++i) - $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant.encode(message.variants[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified VersionVariants message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.verify|verify} messages. + * Encodes the specified GetVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetVersionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IVersionVariants} message VersionVariants message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetVersionRequest} message GetVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VersionVariants.encodeDelimited = function encodeDelimited(message, writer) { + GetVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VersionVariants message from the specified reader or buffer. + * Decodes a GetVersionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.VersionVariants} VersionVariants + * @returns {google.cloud.dialogflow.cx.v3.GetVersionRequest} GetVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VersionVariants.decode = function decode(reader, length) { + GetVersionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.VersionVariants(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetVersionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.variants && message.variants.length)) - message.variants = []; - message.variants.push($root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant.decode(reader, reader.uint32())); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -59831,357 +58686,108 @@ }; /** - * Decodes a VersionVariants message from the specified reader or buffer, length delimited. + * Decodes a GetVersionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.VersionVariants} VersionVariants + * @returns {google.cloud.dialogflow.cx.v3.GetVersionRequest} GetVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VersionVariants.decodeDelimited = function decodeDelimited(reader) { + GetVersionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VersionVariants message. + * Verifies a GetVersionRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VersionVariants.verify = function verify(message) { + GetVersionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.variants != null && message.hasOwnProperty("variants")) { - if (!Array.isArray(message.variants)) - return "variants: array expected"; - for (var i = 0; i < message.variants.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant.verify(message.variants[i]); - if (error) - return "variants." + error; - } - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a VersionVariants message from a plain object. Also converts values to their respective internal types. + * Creates a GetVersionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.VersionVariants} VersionVariants + * @returns {google.cloud.dialogflow.cx.v3.GetVersionRequest} GetVersionRequest */ - VersionVariants.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.VersionVariants) + GetVersionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetVersionRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.VersionVariants(); - if (object.variants) { - if (!Array.isArray(object.variants)) - throw TypeError(".google.cloud.dialogflow.cx.v3.VersionVariants.variants: array expected"); - message.variants = []; - for (var i = 0; i < object.variants.length; ++i) { - if (typeof object.variants[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.VersionVariants.variants: object expected"); - message.variants[i] = $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant.fromObject(object.variants[i]); - } - } + var message = new $root.google.cloud.dialogflow.cx.v3.GetVersionRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a VersionVariants message. Also converts values to other types if specified. + * Creates a plain object from a GetVersionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3.VersionVariants} message VersionVariants + * @param {google.cloud.dialogflow.cx.v3.GetVersionRequest} message GetVersionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VersionVariants.toObject = function toObject(message, options) { + GetVersionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.variants = []; - if (message.variants && message.variants.length) { - object.variants = []; - for (var j = 0; j < message.variants.length; ++j) - object.variants[j] = $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant.toObject(message.variants[j], options); - } + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this VersionVariants to JSON. + * Converts this GetVersionRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest * @instance * @returns {Object.} JSON object */ - VersionVariants.prototype.toJSON = function toJSON() { + GetVersionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - VersionVariants.Variant = (function() { - - /** - * Properties of a Variant. - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants - * @interface IVariant - * @property {string|null} [version] Variant version - * @property {number|null} [trafficAllocation] Variant trafficAllocation - * @property {boolean|null} [isControlGroup] Variant isControlGroup - */ - - /** - * Constructs a new Variant. - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants - * @classdesc Represents a Variant. - * @implements IVariant - * @constructor - * @param {google.cloud.dialogflow.cx.v3.VersionVariants.IVariant=} [properties] Properties to set - */ - function Variant(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Variant version. - * @member {string} version - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @instance - */ - Variant.prototype.version = ""; - - /** - * Variant trafficAllocation. - * @member {number} trafficAllocation - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @instance - */ - Variant.prototype.trafficAllocation = 0; - - /** - * Variant isControlGroup. - * @member {boolean} isControlGroup - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @instance - */ - Variant.prototype.isControlGroup = false; - - /** - * Creates a new Variant instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @static - * @param {google.cloud.dialogflow.cx.v3.VersionVariants.IVariant=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.VersionVariants.Variant} Variant instance - */ - Variant.create = function create(properties) { - return new Variant(properties); - }; - - /** - * Encodes the specified Variant message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.Variant.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @static - * @param {google.cloud.dialogflow.cx.v3.VersionVariants.IVariant} message Variant message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Variant.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); - if (message.trafficAllocation != null && Object.hasOwnProperty.call(message, "trafficAllocation")) - writer.uint32(/* id 2, wireType 5 =*/21).float(message.trafficAllocation); - if (message.isControlGroup != null && Object.hasOwnProperty.call(message, "isControlGroup")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isControlGroup); - return writer; - }; - - /** - * Encodes the specified Variant message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.Variant.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @static - * @param {google.cloud.dialogflow.cx.v3.VersionVariants.IVariant} message Variant message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Variant.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Variant message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.VersionVariants.Variant} Variant - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Variant.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.version = reader.string(); - break; - case 2: - message.trafficAllocation = reader.float(); - break; - case 3: - message.isControlGroup = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Variant message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.VersionVariants.Variant} Variant - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Variant.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Variant message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Variant.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - if (message.trafficAllocation != null && message.hasOwnProperty("trafficAllocation")) - if (typeof message.trafficAllocation !== "number") - return "trafficAllocation: number expected"; - if (message.isControlGroup != null && message.hasOwnProperty("isControlGroup")) - if (typeof message.isControlGroup !== "boolean") - return "isControlGroup: boolean expected"; - return null; - }; - - /** - * Creates a Variant message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.VersionVariants.Variant} Variant - */ - Variant.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant(); - if (object.version != null) - message.version = String(object.version); - if (object.trafficAllocation != null) - message.trafficAllocation = Number(object.trafficAllocation); - if (object.isControlGroup != null) - message.isControlGroup = Boolean(object.isControlGroup); - return message; - }; - - /** - * Creates a plain object from a Variant message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @static - * @param {google.cloud.dialogflow.cx.v3.VersionVariants.Variant} message Variant - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Variant.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.version = ""; - object.trafficAllocation = 0; - object.isControlGroup = false; - } - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.trafficAllocation != null && message.hasOwnProperty("trafficAllocation")) - object.trafficAllocation = options.json && !isFinite(message.trafficAllocation) ? String(message.trafficAllocation) : message.trafficAllocation; - if (message.isControlGroup != null && message.hasOwnProperty("isControlGroup")) - object.isControlGroup = message.isControlGroup; - return object; - }; - - /** - * Converts this Variant to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @instance - * @returns {Object.} JSON object - */ - Variant.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Variant; - })(); - - return VersionVariants; + return GetVersionRequest; })(); - v3.VariantsHistory = (function() { + v3.CreateVersionRequest = (function() { /** - * Properties of a VariantsHistory. + * Properties of a CreateVersionRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IVariantsHistory - * @property {google.cloud.dialogflow.cx.v3.IVersionVariants|null} [versionVariants] VariantsHistory versionVariants - * @property {google.protobuf.ITimestamp|null} [updateTime] VariantsHistory updateTime + * @interface ICreateVersionRequest + * @property {string|null} [parent] CreateVersionRequest parent + * @property {google.cloud.dialogflow.cx.v3.IVersion|null} [version] CreateVersionRequest version */ /** - * Constructs a new VariantsHistory. + * Constructs a new CreateVersionRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a VariantsHistory. - * @implements IVariantsHistory + * @classdesc Represents a CreateVersionRequest. + * @implements ICreateVersionRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IVariantsHistory=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICreateVersionRequest=} [properties] Properties to set */ - function VariantsHistory(properties) { + function CreateVersionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60189,102 +58795,88 @@ } /** - * VariantsHistory versionVariants. - * @member {google.cloud.dialogflow.cx.v3.IVersionVariants|null|undefined} versionVariants - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory - * @instance - */ - VariantsHistory.prototype.versionVariants = null; - - /** - * VariantsHistory updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory + * CreateVersionRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @instance */ - VariantsHistory.prototype.updateTime = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + CreateVersionRequest.prototype.parent = ""; /** - * VariantsHistory variants. - * @member {"versionVariants"|undefined} variants - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory + * CreateVersionRequest version. + * @member {google.cloud.dialogflow.cx.v3.IVersion|null|undefined} version + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @instance */ - Object.defineProperty(VariantsHistory.prototype, "variants", { - get: $util.oneOfGetter($oneOfFields = ["versionVariants"]), - set: $util.oneOfSetter($oneOfFields) - }); + CreateVersionRequest.prototype.version = null; /** - * Creates a new VariantsHistory instance using the specified properties. + * Creates a new CreateVersionRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IVariantsHistory=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.VariantsHistory} VariantsHistory instance + * @param {google.cloud.dialogflow.cx.v3.ICreateVersionRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateVersionRequest} CreateVersionRequest instance */ - VariantsHistory.create = function create(properties) { - return new VariantsHistory(properties); + CreateVersionRequest.create = function create(properties) { + return new CreateVersionRequest(properties); }; /** - * Encodes the specified VariantsHistory message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VariantsHistory.verify|verify} messages. + * Encodes the specified CreateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IVariantsHistory} message VariantsHistory message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateVersionRequest} message CreateVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VariantsHistory.encode = function encode(message, writer) { + CreateVersionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.versionVariants != null && Object.hasOwnProperty.call(message, "versionVariants")) - $root.google.cloud.dialogflow.cx.v3.VersionVariants.encode(message.versionVariants, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + $root.google.cloud.dialogflow.cx.v3.Version.encode(message.version, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified VariantsHistory message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VariantsHistory.verify|verify} messages. + * Encodes the specified CreateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IVariantsHistory} message VariantsHistory message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateVersionRequest} message CreateVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VariantsHistory.encodeDelimited = function encodeDelimited(message, writer) { + CreateVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VariantsHistory message from the specified reader or buffer. + * Decodes a CreateVersionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.VariantsHistory} VariantsHistory + * @returns {google.cloud.dialogflow.cx.v3.CreateVersionRequest} CreateVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VariantsHistory.decode = function decode(reader, length) { + CreateVersionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.VariantsHistory(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateVersionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.versionVariants = $root.google.cloud.dialogflow.cx.v3.VersionVariants.decode(reader, reader.uint32()); + message.parent = reader.string(); break; case 2: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.version = $root.google.cloud.dialogflow.cx.v3.Version.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -60295,134 +58887,122 @@ }; /** - * Decodes a VariantsHistory message from the specified reader or buffer, length delimited. + * Decodes a CreateVersionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.VariantsHistory} VariantsHistory + * @returns {google.cloud.dialogflow.cx.v3.CreateVersionRequest} CreateVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VariantsHistory.decodeDelimited = function decodeDelimited(reader) { + CreateVersionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VariantsHistory message. + * Verifies a CreateVersionRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VariantsHistory.verify = function verify(message) { + CreateVersionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.versionVariants != null && message.hasOwnProperty("versionVariants")) { - properties.variants = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.VersionVariants.verify(message.versionVariants); - if (error) - return "versionVariants." + error; - } - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.version != null && message.hasOwnProperty("version")) { + var error = $root.google.cloud.dialogflow.cx.v3.Version.verify(message.version); if (error) - return "updateTime." + error; + return "version." + error; } return null; }; /** - * Creates a VariantsHistory message from a plain object. Also converts values to their respective internal types. + * Creates a CreateVersionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.VariantsHistory} VariantsHistory + * @returns {google.cloud.dialogflow.cx.v3.CreateVersionRequest} CreateVersionRequest */ - VariantsHistory.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.VariantsHistory) + CreateVersionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateVersionRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.VariantsHistory(); - if (object.versionVariants != null) { - if (typeof object.versionVariants !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.VariantsHistory.versionVariants: object expected"); - message.versionVariants = $root.google.cloud.dialogflow.cx.v3.VersionVariants.fromObject(object.versionVariants); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.VariantsHistory.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + var message = new $root.google.cloud.dialogflow.cx.v3.CreateVersionRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.version != null) { + if (typeof object.version !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CreateVersionRequest.version: object expected"); + message.version = $root.google.cloud.dialogflow.cx.v3.Version.fromObject(object.version); } return message; }; /** - * Creates a plain object from a VariantsHistory message. Also converts values to other types if specified. + * Creates a plain object from a CreateVersionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3.VariantsHistory} message VariantsHistory + * @param {google.cloud.dialogflow.cx.v3.CreateVersionRequest} message CreateVersionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VariantsHistory.toObject = function toObject(message, options) { + CreateVersionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.updateTime = null; - if (message.versionVariants != null && message.hasOwnProperty("versionVariants")) { - object.versionVariants = $root.google.cloud.dialogflow.cx.v3.VersionVariants.toObject(message.versionVariants, options); - if (options.oneofs) - object.variants = "versionVariants"; + if (options.defaults) { + object.parent = ""; + object.version = null; } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.version != null && message.hasOwnProperty("version")) + object.version = $root.google.cloud.dialogflow.cx.v3.Version.toObject(message.version, options); return object; }; /** - * Converts this VariantsHistory to JSON. + * Converts this CreateVersionRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @instance * @returns {Object.} JSON object */ - VariantsHistory.prototype.toJSON = function toJSON() { + CreateVersionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return VariantsHistory; + return CreateVersionRequest; })(); - v3.RolloutConfig = (function() { + v3.UpdateVersionRequest = (function() { /** - * Properties of a RolloutConfig. + * Properties of an UpdateVersionRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IRolloutConfig - * @property {Array.|null} [rolloutSteps] RolloutConfig rolloutSteps - * @property {string|null} [rolloutCondition] RolloutConfig rolloutCondition - * @property {string|null} [failureCondition] RolloutConfig failureCondition + * @interface IUpdateVersionRequest + * @property {google.cloud.dialogflow.cx.v3.IVersion|null} [version] UpdateVersionRequest version + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateVersionRequest updateMask */ /** - * Constructs a new RolloutConfig. + * Constructs a new UpdateVersionRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a RolloutConfig. - * @implements IRolloutConfig + * @classdesc Represents an UpdateVersionRequest. + * @implements IUpdateVersionRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IRolloutConfig=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IUpdateVersionRequest=} [properties] Properties to set */ - function RolloutConfig(properties) { - this.rolloutSteps = []; + function UpdateVersionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60430,104 +59010,88 @@ } /** - * RolloutConfig rolloutSteps. - * @member {Array.} rolloutSteps - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig - * @instance - */ - RolloutConfig.prototype.rolloutSteps = $util.emptyArray; - - /** - * RolloutConfig rolloutCondition. - * @member {string} rolloutCondition - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig + * UpdateVersionRequest version. + * @member {google.cloud.dialogflow.cx.v3.IVersion|null|undefined} version + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @instance */ - RolloutConfig.prototype.rolloutCondition = ""; + UpdateVersionRequest.prototype.version = null; /** - * RolloutConfig failureCondition. - * @member {string} failureCondition - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig + * UpdateVersionRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @instance */ - RolloutConfig.prototype.failureCondition = ""; + UpdateVersionRequest.prototype.updateMask = null; /** - * Creates a new RolloutConfig instance using the specified properties. + * Creates a new UpdateVersionRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IRolloutConfig=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.RolloutConfig} RolloutConfig instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateVersionRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdateVersionRequest} UpdateVersionRequest instance */ - RolloutConfig.create = function create(properties) { - return new RolloutConfig(properties); + UpdateVersionRequest.create = function create(properties) { + return new UpdateVersionRequest(properties); }; /** - * Encodes the specified RolloutConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutConfig.verify|verify} messages. + * Encodes the specified UpdateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateVersionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IRolloutConfig} message RolloutConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateVersionRequest} message UpdateVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RolloutConfig.encode = function encode(message, writer) { + UpdateVersionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rolloutSteps != null && message.rolloutSteps.length) - for (var i = 0; i < message.rolloutSteps.length; ++i) - $root.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.encode(message.rolloutSteps[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.rolloutCondition != null && Object.hasOwnProperty.call(message, "rolloutCondition")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.rolloutCondition); - if (message.failureCondition != null && Object.hasOwnProperty.call(message, "failureCondition")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.failureCondition); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + $root.google.cloud.dialogflow.cx.v3.Version.encode(message.version, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified RolloutConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutConfig.verify|verify} messages. + * Encodes the specified UpdateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateVersionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IRolloutConfig} message RolloutConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateVersionRequest} message UpdateVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RolloutConfig.encodeDelimited = function encodeDelimited(message, writer) { + UpdateVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RolloutConfig message from the specified reader or buffer. + * Decodes an UpdateVersionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.RolloutConfig} RolloutConfig + * @returns {google.cloud.dialogflow.cx.v3.UpdateVersionRequest} UpdateVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RolloutConfig.decode = function decode(reader, length) { + UpdateVersionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.RolloutConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateVersionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.rolloutSteps && message.rolloutSteps.length)) - message.rolloutSteps = []; - message.rolloutSteps.push($root.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.decode(reader, reader.uint32())); + message.version = $root.google.cloud.dialogflow.cx.v3.Version.decode(reader, reader.uint32()); break; case 2: - message.rolloutCondition = reader.string(); - break; - case 3: - message.failureCondition = reader.string(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -60538,381 +59102,314 @@ }; /** - * Decodes a RolloutConfig message from the specified reader or buffer, length delimited. + * Decodes an UpdateVersionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.RolloutConfig} RolloutConfig + * @returns {google.cloud.dialogflow.cx.v3.UpdateVersionRequest} UpdateVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RolloutConfig.decodeDelimited = function decodeDelimited(reader) { + UpdateVersionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RolloutConfig message. + * Verifies an UpdateVersionRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RolloutConfig.verify = function verify(message) { + UpdateVersionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.rolloutSteps != null && message.hasOwnProperty("rolloutSteps")) { - if (!Array.isArray(message.rolloutSteps)) - return "rolloutSteps: array expected"; - for (var i = 0; i < message.rolloutSteps.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.verify(message.rolloutSteps[i]); - if (error) - return "rolloutSteps." + error; - } + if (message.version != null && message.hasOwnProperty("version")) { + var error = $root.google.cloud.dialogflow.cx.v3.Version.verify(message.version); + if (error) + return "version." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } - if (message.rolloutCondition != null && message.hasOwnProperty("rolloutCondition")) - if (!$util.isString(message.rolloutCondition)) - return "rolloutCondition: string expected"; - if (message.failureCondition != null && message.hasOwnProperty("failureCondition")) - if (!$util.isString(message.failureCondition)) - return "failureCondition: string expected"; return null; }; /** - * Creates a RolloutConfig message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateVersionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.RolloutConfig} RolloutConfig + * @returns {google.cloud.dialogflow.cx.v3.UpdateVersionRequest} UpdateVersionRequest */ - RolloutConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.RolloutConfig) + UpdateVersionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateVersionRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.RolloutConfig(); - if (object.rolloutSteps) { - if (!Array.isArray(object.rolloutSteps)) - throw TypeError(".google.cloud.dialogflow.cx.v3.RolloutConfig.rolloutSteps: array expected"); - message.rolloutSteps = []; - for (var i = 0; i < object.rolloutSteps.length; ++i) { - if (typeof object.rolloutSteps[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.RolloutConfig.rolloutSteps: object expected"); - message.rolloutSteps[i] = $root.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.fromObject(object.rolloutSteps[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3.UpdateVersionRequest(); + if (object.version != null) { + if (typeof object.version !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateVersionRequest.version: object expected"); + message.version = $root.google.cloud.dialogflow.cx.v3.Version.fromObject(object.version); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateVersionRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } - if (object.rolloutCondition != null) - message.rolloutCondition = String(object.rolloutCondition); - if (object.failureCondition != null) - message.failureCondition = String(object.failureCondition); return message; }; /** - * Creates a plain object from a RolloutConfig message. Also converts values to other types if specified. + * Creates a plain object from an UpdateVersionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3.RolloutConfig} message RolloutConfig + * @param {google.cloud.dialogflow.cx.v3.UpdateVersionRequest} message UpdateVersionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RolloutConfig.toObject = function toObject(message, options) { + UpdateVersionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.rolloutSteps = []; if (options.defaults) { - object.rolloutCondition = ""; - object.failureCondition = ""; - } - if (message.rolloutSteps && message.rolloutSteps.length) { - object.rolloutSteps = []; - for (var j = 0; j < message.rolloutSteps.length; ++j) - object.rolloutSteps[j] = $root.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.toObject(message.rolloutSteps[j], options); + object.version = null; + object.updateMask = null; } - if (message.rolloutCondition != null && message.hasOwnProperty("rolloutCondition")) - object.rolloutCondition = message.rolloutCondition; - if (message.failureCondition != null && message.hasOwnProperty("failureCondition")) - object.failureCondition = message.failureCondition; + if (message.version != null && message.hasOwnProperty("version")) + object.version = $root.google.cloud.dialogflow.cx.v3.Version.toObject(message.version, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this RolloutConfig to JSON. + * Converts this UpdateVersionRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @instance * @returns {Object.} JSON object */ - RolloutConfig.prototype.toJSON = function toJSON() { + UpdateVersionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - RolloutConfig.RolloutStep = (function() { - - /** - * Properties of a RolloutStep. - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig - * @interface IRolloutStep - * @property {string|null} [displayName] RolloutStep displayName - * @property {number|null} [trafficPercent] RolloutStep trafficPercent - * @property {google.protobuf.IDuration|null} [minDuration] RolloutStep minDuration - */ + return UpdateVersionRequest; + })(); - /** - * Constructs a new RolloutStep. - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig - * @classdesc Represents a RolloutStep. - * @implements IRolloutStep - * @constructor - * @param {google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep=} [properties] Properties to set - */ - function RolloutStep(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v3.DeleteVersionRequest = (function() { - /** - * RolloutStep displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep - * @instance - */ - RolloutStep.prototype.displayName = ""; + /** + * Properties of a DeleteVersionRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IDeleteVersionRequest + * @property {string|null} [name] DeleteVersionRequest name + */ - /** - * RolloutStep trafficPercent. - * @member {number} trafficPercent - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep - * @instance - */ - RolloutStep.prototype.trafficPercent = 0; + /** + * Constructs a new DeleteVersionRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a DeleteVersionRequest. + * @implements IDeleteVersionRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest=} [properties] Properties to set + */ + function DeleteVersionRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * RolloutStep minDuration. - * @member {google.protobuf.IDuration|null|undefined} minDuration - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep - * @instance - */ - RolloutStep.prototype.minDuration = null; + /** + * DeleteVersionRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest + * @instance + */ + DeleteVersionRequest.prototype.name = ""; - /** - * Creates a new RolloutStep instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep - * @static - * @param {google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep} RolloutStep instance - */ - RolloutStep.create = function create(properties) { - return new RolloutStep(properties); - }; + /** + * Creates a new DeleteVersionRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeleteVersionRequest} DeleteVersionRequest instance + */ + DeleteVersionRequest.create = function create(properties) { + return new DeleteVersionRequest(properties); + }; - /** - * Encodes the specified RolloutStep message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep - * @static - * @param {google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep} message RolloutStep message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RolloutStep.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName); - if (message.trafficPercent != null && Object.hasOwnProperty.call(message, "trafficPercent")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.trafficPercent); - if (message.minDuration != null && Object.hasOwnProperty.call(message, "minDuration")) - $root.google.protobuf.Duration.encode(message.minDuration, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified DeleteVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteVersionRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest} message DeleteVersionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteVersionRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; - /** - * Encodes the specified RolloutStep message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep - * @static - * @param {google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep} message RolloutStep message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RolloutStep.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified DeleteVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteVersionRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest} message DeleteVersionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a RolloutStep message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep} RolloutStep - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RolloutStep.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.displayName = reader.string(); - break; - case 2: - message.trafficPercent = reader.int32(); - break; - case 3: - message.minDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } + /** + * Decodes a DeleteVersionRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.DeleteVersionRequest} DeleteVersionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteVersionRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteVersionRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a RolloutStep message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep} RolloutStep - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RolloutStep.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a RolloutStep message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RolloutStep.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.trafficPercent != null && message.hasOwnProperty("trafficPercent")) - if (!$util.isInteger(message.trafficPercent)) - return "trafficPercent: integer expected"; - if (message.minDuration != null && message.hasOwnProperty("minDuration")) { - var error = $root.google.protobuf.Duration.verify(message.minDuration); - if (error) - return "minDuration." + error; - } - return null; - }; + /** + * Decodes a DeleteVersionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.DeleteVersionRequest} DeleteVersionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteVersionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a RolloutStep message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep} RolloutStep - */ - RolloutStep.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep(); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.trafficPercent != null) - message.trafficPercent = object.trafficPercent | 0; - if (object.minDuration != null) { - if (typeof object.minDuration !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.minDuration: object expected"); - message.minDuration = $root.google.protobuf.Duration.fromObject(object.minDuration); - } - return message; - }; + /** + * Verifies a DeleteVersionRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteVersionRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; - /** - * Creates a plain object from a RolloutStep message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep - * @static - * @param {google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep} message RolloutStep - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RolloutStep.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.displayName = ""; - object.trafficPercent = 0; - object.minDuration = null; - } - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.trafficPercent != null && message.hasOwnProperty("trafficPercent")) - object.trafficPercent = message.trafficPercent; - if (message.minDuration != null && message.hasOwnProperty("minDuration")) - object.minDuration = $root.google.protobuf.Duration.toObject(message.minDuration, options); + /** + * Creates a DeleteVersionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.DeleteVersionRequest} DeleteVersionRequest + */ + DeleteVersionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteVersionRequest) return object; - }; + var message = new $root.google.cloud.dialogflow.cx.v3.DeleteVersionRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - /** - * Converts this RolloutStep to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep - * @instance - * @returns {Object.} JSON object - */ - RolloutStep.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a DeleteVersionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.DeleteVersionRequest} message DeleteVersionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteVersionRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; - return RolloutStep; - })(); + /** + * Converts this DeleteVersionRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteVersionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return RolloutConfig; + return DeleteVersionRequest; })(); - v3.RolloutState = (function() { + v3.LoadVersionRequest = (function() { /** - * Properties of a RolloutState. + * Properties of a LoadVersionRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IRolloutState - * @property {string|null} [step] RolloutState step - * @property {number|null} [stepIndex] RolloutState stepIndex - * @property {google.protobuf.ITimestamp|null} [startTime] RolloutState startTime + * @interface ILoadVersionRequest + * @property {string|null} [name] LoadVersionRequest name + * @property {boolean|null} [allowOverrideAgentResources] LoadVersionRequest allowOverrideAgentResources */ /** - * Constructs a new RolloutState. + * Constructs a new LoadVersionRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a RolloutState. - * @implements IRolloutState + * @classdesc Represents a LoadVersionRequest. + * @implements ILoadVersionRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IRolloutState=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ILoadVersionRequest=} [properties] Properties to set */ - function RolloutState(properties) { + function LoadVersionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60920,101 +59417,88 @@ } /** - * RolloutState step. - * @member {string} step - * @memberof google.cloud.dialogflow.cx.v3.RolloutState - * @instance - */ - RolloutState.prototype.step = ""; - - /** - * RolloutState stepIndex. - * @member {number} stepIndex - * @memberof google.cloud.dialogflow.cx.v3.RolloutState + * LoadVersionRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @instance */ - RolloutState.prototype.stepIndex = 0; + LoadVersionRequest.prototype.name = ""; /** - * RolloutState startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.dialogflow.cx.v3.RolloutState + * LoadVersionRequest allowOverrideAgentResources. + * @member {boolean} allowOverrideAgentResources + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @instance */ - RolloutState.prototype.startTime = null; + LoadVersionRequest.prototype.allowOverrideAgentResources = false; /** - * Creates a new RolloutState instance using the specified properties. + * Creates a new LoadVersionRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.RolloutState + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IRolloutState=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.RolloutState} RolloutState instance + * @param {google.cloud.dialogflow.cx.v3.ILoadVersionRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.LoadVersionRequest} LoadVersionRequest instance */ - RolloutState.create = function create(properties) { - return new RolloutState(properties); + LoadVersionRequest.create = function create(properties) { + return new LoadVersionRequest(properties); }; /** - * Encodes the specified RolloutState message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutState.verify|verify} messages. + * Encodes the specified LoadVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LoadVersionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.RolloutState + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IRolloutState} message RolloutState message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ILoadVersionRequest} message LoadVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RolloutState.encode = function encode(message, writer) { + LoadVersionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.step != null && Object.hasOwnProperty.call(message, "step")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.step); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.stepIndex != null && Object.hasOwnProperty.call(message, "stepIndex")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.stepIndex); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.allowOverrideAgentResources != null && Object.hasOwnProperty.call(message, "allowOverrideAgentResources")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowOverrideAgentResources); return writer; }; /** - * Encodes the specified RolloutState message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutState.verify|verify} messages. + * Encodes the specified LoadVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LoadVersionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.RolloutState + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IRolloutState} message RolloutState message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ILoadVersionRequest} message LoadVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RolloutState.encodeDelimited = function encodeDelimited(message, writer) { + LoadVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RolloutState message from the specified reader or buffer. + * Decodes a LoadVersionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.RolloutState + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.RolloutState} RolloutState + * @returns {google.cloud.dialogflow.cx.v3.LoadVersionRequest} LoadVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RolloutState.decode = function decode(reader, length) { + LoadVersionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.RolloutState(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.LoadVersionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.step = reader.string(); - break; - case 3: - message.stepIndex = reader.int32(); + message.name = reader.string(); break; case 2: - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.allowOverrideAgentResources = reader.bool(); break; default: reader.skipType(tag & 7); @@ -61025,131 +59509,118 @@ }; /** - * Decodes a RolloutState message from the specified reader or buffer, length delimited. + * Decodes a LoadVersionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.RolloutState + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.RolloutState} RolloutState + * @returns {google.cloud.dialogflow.cx.v3.LoadVersionRequest} LoadVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RolloutState.decodeDelimited = function decodeDelimited(reader) { + LoadVersionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RolloutState message. + * Verifies a LoadVersionRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.RolloutState + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RolloutState.verify = function verify(message) { + LoadVersionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.step != null && message.hasOwnProperty("step")) - if (!$util.isString(message.step)) - return "step: string expected"; - if (message.stepIndex != null && message.hasOwnProperty("stepIndex")) - if (!$util.isInteger(message.stepIndex)) - return "stepIndex: integer expected"; - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.allowOverrideAgentResources != null && message.hasOwnProperty("allowOverrideAgentResources")) + if (typeof message.allowOverrideAgentResources !== "boolean") + return "allowOverrideAgentResources: boolean expected"; return null; }; /** - * Creates a RolloutState message from a plain object. Also converts values to their respective internal types. + * Creates a LoadVersionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.RolloutState + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.RolloutState} RolloutState + * @returns {google.cloud.dialogflow.cx.v3.LoadVersionRequest} LoadVersionRequest */ - RolloutState.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.RolloutState) + LoadVersionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.LoadVersionRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.RolloutState(); - if (object.step != null) - message.step = String(object.step); - if (object.stepIndex != null) - message.stepIndex = object.stepIndex | 0; - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.RolloutState.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } + var message = new $root.google.cloud.dialogflow.cx.v3.LoadVersionRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.allowOverrideAgentResources != null) + message.allowOverrideAgentResources = Boolean(object.allowOverrideAgentResources); return message; }; /** - * Creates a plain object from a RolloutState message. Also converts values to other types if specified. + * Creates a plain object from a LoadVersionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.RolloutState + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3.RolloutState} message RolloutState + * @param {google.cloud.dialogflow.cx.v3.LoadVersionRequest} message LoadVersionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RolloutState.toObject = function toObject(message, options) { + LoadVersionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.step = ""; - object.startTime = null; - object.stepIndex = 0; + object.name = ""; + object.allowOverrideAgentResources = false; } - if (message.step != null && message.hasOwnProperty("step")) - object.step = message.step; - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.stepIndex != null && message.hasOwnProperty("stepIndex")) - object.stepIndex = message.stepIndex; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.allowOverrideAgentResources != null && message.hasOwnProperty("allowOverrideAgentResources")) + object.allowOverrideAgentResources = message.allowOverrideAgentResources; return object; }; /** - * Converts this RolloutState to JSON. + * Converts this LoadVersionRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.RolloutState + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @instance * @returns {Object.} JSON object */ - RolloutState.prototype.toJSON = function toJSON() { + LoadVersionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RolloutState; + return LoadVersionRequest; })(); - v3.ListExperimentsRequest = (function() { + v3.CompareVersionsRequest = (function() { /** - * Properties of a ListExperimentsRequest. + * Properties of a CompareVersionsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListExperimentsRequest - * @property {string|null} [parent] ListExperimentsRequest parent - * @property {number|null} [pageSize] ListExperimentsRequest pageSize - * @property {string|null} [pageToken] ListExperimentsRequest pageToken + * @interface ICompareVersionsRequest + * @property {string|null} [baseVersion] CompareVersionsRequest baseVersion + * @property {string|null} [targetVersion] CompareVersionsRequest targetVersion + * @property {string|null} [languageCode] CompareVersionsRequest languageCode */ /** - * Constructs a new ListExperimentsRequest. + * Constructs a new CompareVersionsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListExperimentsRequest. - * @implements IListExperimentsRequest + * @classdesc Represents a CompareVersionsRequest. + * @implements ICompareVersionsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListExperimentsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsRequest=} [properties] Properties to set */ - function ListExperimentsRequest(properties) { + function CompareVersionsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61157,101 +59628,101 @@ } /** - * ListExperimentsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest + * CompareVersionsRequest baseVersion. + * @member {string} baseVersion + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest * @instance */ - ListExperimentsRequest.prototype.parent = ""; + CompareVersionsRequest.prototype.baseVersion = ""; /** - * ListExperimentsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest + * CompareVersionsRequest targetVersion. + * @member {string} targetVersion + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest * @instance */ - ListExperimentsRequest.prototype.pageSize = 0; + CompareVersionsRequest.prototype.targetVersion = ""; /** - * ListExperimentsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest + * CompareVersionsRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest * @instance */ - ListExperimentsRequest.prototype.pageToken = ""; + CompareVersionsRequest.prototype.languageCode = ""; /** - * Creates a new ListExperimentsRequest instance using the specified properties. + * Creates a new CompareVersionsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListExperimentsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsRequest} ListExperimentsRequest instance + * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CompareVersionsRequest} CompareVersionsRequest instance */ - ListExperimentsRequest.create = function create(properties) { - return new ListExperimentsRequest(properties); + CompareVersionsRequest.create = function create(properties) { + return new CompareVersionsRequest(properties); }; /** - * Encodes the specified ListExperimentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsRequest.verify|verify} messages. + * Encodes the specified CompareVersionsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListExperimentsRequest} message ListExperimentsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsRequest} message CompareVersionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListExperimentsRequest.encode = function encode(message, writer) { + CompareVersionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.baseVersion != null && Object.hasOwnProperty.call(message, "baseVersion")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.baseVersion); + if (message.targetVersion != null && Object.hasOwnProperty.call(message, "targetVersion")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.targetVersion); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); return writer; }; /** - * Encodes the specified ListExperimentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsRequest.verify|verify} messages. + * Encodes the specified CompareVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListExperimentsRequest} message ListExperimentsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsRequest} message CompareVersionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListExperimentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + CompareVersionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListExperimentsRequest message from the specified reader or buffer. + * Decodes a CompareVersionsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsRequest} ListExperimentsRequest + * @returns {google.cloud.dialogflow.cx.v3.CompareVersionsRequest} CompareVersionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListExperimentsRequest.decode = function decode(reader, length) { + CompareVersionsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListExperimentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CompareVersionsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.baseVersion = reader.string(); break; case 2: - message.pageSize = reader.int32(); + message.targetVersion = reader.string(); break; case 3: - message.pageToken = reader.string(); + message.languageCode = reader.string(); break; default: reader.skipType(tag & 7); @@ -61262,126 +59733,126 @@ }; /** - * Decodes a ListExperimentsRequest message from the specified reader or buffer, length delimited. + * Decodes a CompareVersionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsRequest} ListExperimentsRequest + * @returns {google.cloud.dialogflow.cx.v3.CompareVersionsRequest} CompareVersionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListExperimentsRequest.decodeDelimited = function decodeDelimited(reader) { + CompareVersionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListExperimentsRequest message. + * Verifies a CompareVersionsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListExperimentsRequest.verify = function verify(message) { + CompareVersionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.baseVersion != null && message.hasOwnProperty("baseVersion")) + if (!$util.isString(message.baseVersion)) + return "baseVersion: string expected"; + if (message.targetVersion != null && message.hasOwnProperty("targetVersion")) + if (!$util.isString(message.targetVersion)) + return "targetVersion: string expected"; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates a ListExperimentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CompareVersionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsRequest} ListExperimentsRequest + * @returns {google.cloud.dialogflow.cx.v3.CompareVersionsRequest} CompareVersionsRequest */ - ListExperimentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListExperimentsRequest) + CompareVersionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CompareVersionsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListExperimentsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.dialogflow.cx.v3.CompareVersionsRequest(); + if (object.baseVersion != null) + message.baseVersion = String(object.baseVersion); + if (object.targetVersion != null) + message.targetVersion = String(object.targetVersion); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a ListExperimentsRequest message. Also converts values to other types if specified. + * Creates a plain object from a CompareVersionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ListExperimentsRequest} message ListExperimentsRequest + * @param {google.cloud.dialogflow.cx.v3.CompareVersionsRequest} message CompareVersionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListExperimentsRequest.toObject = function toObject(message, options) { + CompareVersionsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.baseVersion = ""; + object.targetVersion = ""; + object.languageCode = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.baseVersion != null && message.hasOwnProperty("baseVersion")) + object.baseVersion = message.baseVersion; + if (message.targetVersion != null && message.hasOwnProperty("targetVersion")) + object.targetVersion = message.targetVersion; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this ListExperimentsRequest to JSON. + * Converts this CompareVersionsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest * @instance * @returns {Object.} JSON object */ - ListExperimentsRequest.prototype.toJSON = function toJSON() { + CompareVersionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListExperimentsRequest; + return CompareVersionsRequest; })(); - v3.ListExperimentsResponse = (function() { + v3.CompareVersionsResponse = (function() { /** - * Properties of a ListExperimentsResponse. + * Properties of a CompareVersionsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListExperimentsResponse - * @property {Array.|null} [experiments] ListExperimentsResponse experiments - * @property {string|null} [nextPageToken] ListExperimentsResponse nextPageToken + * @interface ICompareVersionsResponse + * @property {string|null} [baseVersionContentJson] CompareVersionsResponse baseVersionContentJson + * @property {string|null} [targetVersionContentJson] CompareVersionsResponse targetVersionContentJson + * @property {google.protobuf.ITimestamp|null} [compareTime] CompareVersionsResponse compareTime */ /** - * Constructs a new ListExperimentsResponse. + * Constructs a new CompareVersionsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListExperimentsResponse. - * @implements IListExperimentsResponse + * @classdesc Represents a CompareVersionsResponse. + * @implements ICompareVersionsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListExperimentsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsResponse=} [properties] Properties to set */ - function ListExperimentsResponse(properties) { - this.experiments = []; + function CompareVersionsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61389,91 +59860,101 @@ } /** - * ListExperimentsResponse experiments. - * @member {Array.} experiments - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse + * CompareVersionsResponse baseVersionContentJson. + * @member {string} baseVersionContentJson + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse * @instance */ - ListExperimentsResponse.prototype.experiments = $util.emptyArray; + CompareVersionsResponse.prototype.baseVersionContentJson = ""; /** - * ListExperimentsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse + * CompareVersionsResponse targetVersionContentJson. + * @member {string} targetVersionContentJson + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse * @instance */ - ListExperimentsResponse.prototype.nextPageToken = ""; + CompareVersionsResponse.prototype.targetVersionContentJson = ""; /** - * Creates a new ListExperimentsResponse instance using the specified properties. + * CompareVersionsResponse compareTime. + * @member {google.protobuf.ITimestamp|null|undefined} compareTime + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse + * @instance + */ + CompareVersionsResponse.prototype.compareTime = null; + + /** + * Creates a new CompareVersionsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IListExperimentsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsResponse} ListExperimentsResponse instance + * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CompareVersionsResponse} CompareVersionsResponse instance */ - ListExperimentsResponse.create = function create(properties) { - return new ListExperimentsResponse(properties); + CompareVersionsResponse.create = function create(properties) { + return new CompareVersionsResponse(properties); }; /** - * Encodes the specified ListExperimentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsResponse.verify|verify} messages. + * Encodes the specified CompareVersionsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IListExperimentsResponse} message ListExperimentsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsResponse} message CompareVersionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListExperimentsResponse.encode = function encode(message, writer) { + CompareVersionsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.experiments != null && message.experiments.length) - for (var i = 0; i < message.experiments.length; ++i) - $root.google.cloud.dialogflow.cx.v3.Experiment.encode(message.experiments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.baseVersionContentJson != null && Object.hasOwnProperty.call(message, "baseVersionContentJson")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.baseVersionContentJson); + if (message.targetVersionContentJson != null && Object.hasOwnProperty.call(message, "targetVersionContentJson")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.targetVersionContentJson); + if (message.compareTime != null && Object.hasOwnProperty.call(message, "compareTime")) + $root.google.protobuf.Timestamp.encode(message.compareTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListExperimentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsResponse.verify|verify} messages. + * Encodes the specified CompareVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IListExperimentsResponse} message ListExperimentsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsResponse} message CompareVersionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListExperimentsResponse.encodeDelimited = function encodeDelimited(message, writer) { + CompareVersionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListExperimentsResponse message from the specified reader or buffer. + * Decodes a CompareVersionsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsResponse} ListExperimentsResponse + * @returns {google.cloud.dialogflow.cx.v3.CompareVersionsResponse} CompareVersionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListExperimentsResponse.decode = function decode(reader, length) { + CompareVersionsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListExperimentsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CompareVersionsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.experiments && message.experiments.length)) - message.experiments = []; - message.experiments.push($root.google.cloud.dialogflow.cx.v3.Experiment.decode(reader, reader.uint32())); + message.baseVersionContentJson = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + message.targetVersionContentJson = reader.string(); + break; + case 3: + message.compareTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -61484,210 +59965,490 @@ }; /** - * Decodes a ListExperimentsResponse message from the specified reader or buffer, length delimited. + * Decodes a CompareVersionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsResponse} ListExperimentsResponse + * @returns {google.cloud.dialogflow.cx.v3.CompareVersionsResponse} CompareVersionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListExperimentsResponse.decodeDelimited = function decodeDelimited(reader) { + CompareVersionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListExperimentsResponse message. + * Verifies a CompareVersionsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListExperimentsResponse.verify = function verify(message) { + CompareVersionsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.experiments != null && message.hasOwnProperty("experiments")) { - if (!Array.isArray(message.experiments)) - return "experiments: array expected"; - for (var i = 0; i < message.experiments.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.Experiment.verify(message.experiments[i]); - if (error) - return "experiments." + error; - } + if (message.baseVersionContentJson != null && message.hasOwnProperty("baseVersionContentJson")) + if (!$util.isString(message.baseVersionContentJson)) + return "baseVersionContentJson: string expected"; + if (message.targetVersionContentJson != null && message.hasOwnProperty("targetVersionContentJson")) + if (!$util.isString(message.targetVersionContentJson)) + return "targetVersionContentJson: string expected"; + if (message.compareTime != null && message.hasOwnProperty("compareTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.compareTime); + if (error) + return "compareTime." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListExperimentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CompareVersionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsResponse} ListExperimentsResponse + * @returns {google.cloud.dialogflow.cx.v3.CompareVersionsResponse} CompareVersionsResponse */ - ListExperimentsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListExperimentsResponse) + CompareVersionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CompareVersionsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListExperimentsResponse(); - if (object.experiments) { - if (!Array.isArray(object.experiments)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ListExperimentsResponse.experiments: array expected"); - message.experiments = []; - for (var i = 0; i < object.experiments.length; ++i) { - if (typeof object.experiments[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ListExperimentsResponse.experiments: object expected"); - message.experiments[i] = $root.google.cloud.dialogflow.cx.v3.Experiment.fromObject(object.experiments[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3.CompareVersionsResponse(); + if (object.baseVersionContentJson != null) + message.baseVersionContentJson = String(object.baseVersionContentJson); + if (object.targetVersionContentJson != null) + message.targetVersionContentJson = String(object.targetVersionContentJson); + if (object.compareTime != null) { + if (typeof object.compareTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CompareVersionsResponse.compareTime: object expected"); + message.compareTime = $root.google.protobuf.Timestamp.fromObject(object.compareTime); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListExperimentsResponse message. Also converts values to other types if specified. + * Creates a plain object from a CompareVersionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ListExperimentsResponse} message ListExperimentsResponse + * @param {google.cloud.dialogflow.cx.v3.CompareVersionsResponse} message CompareVersionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListExperimentsResponse.toObject = function toObject(message, options) { + CompareVersionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.experiments = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.experiments && message.experiments.length) { - object.experiments = []; - for (var j = 0; j < message.experiments.length; ++j) - object.experiments[j] = $root.google.cloud.dialogflow.cx.v3.Experiment.toObject(message.experiments[j], options); + if (options.defaults) { + object.baseVersionContentJson = ""; + object.targetVersionContentJson = ""; + object.compareTime = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.baseVersionContentJson != null && message.hasOwnProperty("baseVersionContentJson")) + object.baseVersionContentJson = message.baseVersionContentJson; + if (message.targetVersionContentJson != null && message.hasOwnProperty("targetVersionContentJson")) + object.targetVersionContentJson = message.targetVersionContentJson; + if (message.compareTime != null && message.hasOwnProperty("compareTime")) + object.compareTime = $root.google.protobuf.Timestamp.toObject(message.compareTime, options); return object; }; /** - * Converts this ListExperimentsResponse to JSON. + * Converts this CompareVersionsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse * @instance * @returns {Object.} JSON object */ - ListExperimentsResponse.prototype.toJSON = function toJSON() { + CompareVersionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListExperimentsResponse; + return CompareVersionsResponse; + })(); + + v3.Webhooks = (function() { + + /** + * Constructs a new Webhooks service. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a Webhooks + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function Webhooks(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Webhooks.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Webhooks; + + /** + * Creates new Webhooks service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Webhooks + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {Webhooks} RPC service. Useful where requests and/or responses are streamed. + */ + Webhooks.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#listWebhooks}. + * @memberof google.cloud.dialogflow.cx.v3.Webhooks + * @typedef ListWebhooksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.ListWebhooksResponse} [response] ListWebhooksResponse + */ + + /** + * Calls ListWebhooks. + * @function listWebhooks + * @memberof google.cloud.dialogflow.cx.v3.Webhooks + * @instance + * @param {google.cloud.dialogflow.cx.v3.IListWebhooksRequest} request ListWebhooksRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooksCallback} callback Node-style callback called with the error, if any, and ListWebhooksResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Webhooks.prototype.listWebhooks = function listWebhooks(request, callback) { + return this.rpcCall(listWebhooks, $root.google.cloud.dialogflow.cx.v3.ListWebhooksRequest, $root.google.cloud.dialogflow.cx.v3.ListWebhooksResponse, request, callback); + }, "name", { value: "ListWebhooks" }); + + /** + * Calls ListWebhooks. + * @function listWebhooks + * @memberof google.cloud.dialogflow.cx.v3.Webhooks + * @instance + * @param {google.cloud.dialogflow.cx.v3.IListWebhooksRequest} request ListWebhooksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#getWebhook}. + * @memberof google.cloud.dialogflow.cx.v3.Webhooks + * @typedef GetWebhookCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.Webhook} [response] Webhook + */ + + /** + * Calls GetWebhook. + * @function getWebhook + * @memberof google.cloud.dialogflow.cx.v3.Webhooks + * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetWebhookRequest} request GetWebhookRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Webhooks.GetWebhookCallback} callback Node-style callback called with the error, if any, and Webhook + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Webhooks.prototype.getWebhook = function getWebhook(request, callback) { + return this.rpcCall(getWebhook, $root.google.cloud.dialogflow.cx.v3.GetWebhookRequest, $root.google.cloud.dialogflow.cx.v3.Webhook, request, callback); + }, "name", { value: "GetWebhook" }); + + /** + * Calls GetWebhook. + * @function getWebhook + * @memberof google.cloud.dialogflow.cx.v3.Webhooks + * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetWebhookRequest} request GetWebhookRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#createWebhook}. + * @memberof google.cloud.dialogflow.cx.v3.Webhooks + * @typedef CreateWebhookCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.Webhook} [response] Webhook + */ + + /** + * Calls CreateWebhook. + * @function createWebhook + * @memberof google.cloud.dialogflow.cx.v3.Webhooks + * @instance + * @param {google.cloud.dialogflow.cx.v3.ICreateWebhookRequest} request CreateWebhookRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhookCallback} callback Node-style callback called with the error, if any, and Webhook + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Webhooks.prototype.createWebhook = function createWebhook(request, callback) { + return this.rpcCall(createWebhook, $root.google.cloud.dialogflow.cx.v3.CreateWebhookRequest, $root.google.cloud.dialogflow.cx.v3.Webhook, request, callback); + }, "name", { value: "CreateWebhook" }); + + /** + * Calls CreateWebhook. + * @function createWebhook + * @memberof google.cloud.dialogflow.cx.v3.Webhooks + * @instance + * @param {google.cloud.dialogflow.cx.v3.ICreateWebhookRequest} request CreateWebhookRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#updateWebhook}. + * @memberof google.cloud.dialogflow.cx.v3.Webhooks + * @typedef UpdateWebhookCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.Webhook} [response] Webhook + */ + + /** + * Calls UpdateWebhook. + * @function updateWebhook + * @memberof google.cloud.dialogflow.cx.v3.Webhooks + * @instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest} request UpdateWebhookRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhookCallback} callback Node-style callback called with the error, if any, and Webhook + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Webhooks.prototype.updateWebhook = function updateWebhook(request, callback) { + return this.rpcCall(updateWebhook, $root.google.cloud.dialogflow.cx.v3.UpdateWebhookRequest, $root.google.cloud.dialogflow.cx.v3.Webhook, request, callback); + }, "name", { value: "UpdateWebhook" }); + + /** + * Calls UpdateWebhook. + * @function updateWebhook + * @memberof google.cloud.dialogflow.cx.v3.Webhooks + * @instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest} request UpdateWebhookRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#deleteWebhook}. + * @memberof google.cloud.dialogflow.cx.v3.Webhooks + * @typedef DeleteWebhookCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteWebhook. + * @function deleteWebhook + * @memberof google.cloud.dialogflow.cx.v3.Webhooks + * @instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest} request DeleteWebhookRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Webhooks.DeleteWebhookCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Webhooks.prototype.deleteWebhook = function deleteWebhook(request, callback) { + return this.rpcCall(deleteWebhook, $root.google.cloud.dialogflow.cx.v3.DeleteWebhookRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteWebhook" }); + + /** + * Calls DeleteWebhook. + * @function deleteWebhook + * @memberof google.cloud.dialogflow.cx.v3.Webhooks + * @instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest} request DeleteWebhookRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Webhooks; })(); - v3.GetExperimentRequest = (function() { + v3.Webhook = (function() { + + /** + * Properties of a Webhook. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IWebhook + * @property {string|null} [name] Webhook name + * @property {string|null} [displayName] Webhook displayName + * @property {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null} [genericWebService] Webhook genericWebService + * @property {google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig|null} [serviceDirectory] Webhook serviceDirectory + * @property {google.protobuf.IDuration|null} [timeout] Webhook timeout + * @property {boolean|null} [disabled] Webhook disabled + */ + + /** + * Constructs a new Webhook. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a Webhook. + * @implements IWebhook + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IWebhook=} [properties] Properties to set + */ + function Webhook(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Webhook name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @instance + */ + Webhook.prototype.name = ""; + + /** + * Webhook displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @instance + */ + Webhook.prototype.displayName = ""; + + /** + * Webhook genericWebService. + * @member {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null|undefined} genericWebService + * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @instance + */ + Webhook.prototype.genericWebService = null; + + /** + * Webhook serviceDirectory. + * @member {google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig|null|undefined} serviceDirectory + * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @instance + */ + Webhook.prototype.serviceDirectory = null; /** - * Properties of a GetExperimentRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IGetExperimentRequest - * @property {string|null} [name] GetExperimentRequest name + * Webhook timeout. + * @member {google.protobuf.IDuration|null|undefined} timeout + * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @instance */ + Webhook.prototype.timeout = null; /** - * Constructs a new GetExperimentRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a GetExperimentRequest. - * @implements IGetExperimentRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IGetExperimentRequest=} [properties] Properties to set + * Webhook disabled. + * @member {boolean} disabled + * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @instance */ - function GetExperimentRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Webhook.prototype.disabled = false; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * GetExperimentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest + * Webhook webhook. + * @member {"genericWebService"|"serviceDirectory"|undefined} webhook + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @instance */ - GetExperimentRequest.prototype.name = ""; + Object.defineProperty(Webhook.prototype, "webhook", { + get: $util.oneOfGetter($oneOfFields = ["genericWebService", "serviceDirectory"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new GetExperimentRequest instance using the specified properties. + * Creates a new Webhook instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @static - * @param {google.cloud.dialogflow.cx.v3.IGetExperimentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.GetExperimentRequest} GetExperimentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IWebhook=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Webhook} Webhook instance */ - GetExperimentRequest.create = function create(properties) { - return new GetExperimentRequest(properties); + Webhook.create = function create(properties) { + return new Webhook(properties); }; /** - * Encodes the specified GetExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetExperimentRequest.verify|verify} messages. + * Encodes the specified Webhook message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @static - * @param {google.cloud.dialogflow.cx.v3.IGetExperimentRequest} message GetExperimentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IWebhook} message Webhook message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetExperimentRequest.encode = function encode(message, writer) { + Webhook.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.genericWebService != null && Object.hasOwnProperty.call(message, "genericWebService")) + $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.encode(message.genericWebService, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.disabled); + if (message.timeout != null && Object.hasOwnProperty.call(message, "timeout")) + $root.google.protobuf.Duration.encode(message.timeout, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.serviceDirectory != null && Object.hasOwnProperty.call(message, "serviceDirectory")) + $root.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.encode(message.serviceDirectory, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetExperimentRequest.verify|verify} messages. + * Encodes the specified Webhook message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @static - * @param {google.cloud.dialogflow.cx.v3.IGetExperimentRequest} message GetExperimentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IWebhook} message Webhook message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { + Webhook.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetExperimentRequest message from the specified reader or buffer. + * Decodes a Webhook message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.GetExperimentRequest} GetExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3.Webhook} Webhook * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetExperimentRequest.decode = function decode(reader, length) { + Webhook.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetExperimentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Webhook(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; + case 2: + message.displayName = reader.string(); + break; + case 4: + message.genericWebService = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.decode(reader, reader.uint32()); + break; + case 7: + message.serviceDirectory = $root.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.decode(reader, reader.uint32()); + break; + case 6: + message.timeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 5: + message.disabled = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -61697,323 +60458,725 @@ }; /** - * Decodes a GetExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a Webhook message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.GetExperimentRequest} GetExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3.Webhook} Webhook * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetExperimentRequest.decodeDelimited = function decodeDelimited(reader) { + Webhook.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetExperimentRequest message. + * Verifies a Webhook message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetExperimentRequest.verify = function verify(message) { + Webhook.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.genericWebService != null && message.hasOwnProperty("genericWebService")) { + properties.webhook = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.verify(message.genericWebService); + if (error) + return "genericWebService." + error; + } + } + if (message.serviceDirectory != null && message.hasOwnProperty("serviceDirectory")) { + if (properties.webhook === 1) + return "webhook: multiple values"; + properties.webhook = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.verify(message.serviceDirectory); + if (error) + return "serviceDirectory." + error; + } + } + if (message.timeout != null && message.hasOwnProperty("timeout")) { + var error = $root.google.protobuf.Duration.verify(message.timeout); + if (error) + return "timeout." + error; + } + if (message.disabled != null && message.hasOwnProperty("disabled")) + if (typeof message.disabled !== "boolean") + return "disabled: boolean expected"; return null; }; /** - * Creates a GetExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Webhook message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.GetExperimentRequest} GetExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3.Webhook} Webhook */ - GetExperimentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetExperimentRequest) + Webhook.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Webhook) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.GetExperimentRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.Webhook(); if (object.name != null) message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.genericWebService != null) { + if (typeof object.genericWebService !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Webhook.genericWebService: object expected"); + message.genericWebService = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.fromObject(object.genericWebService); + } + if (object.serviceDirectory != null) { + if (typeof object.serviceDirectory !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Webhook.serviceDirectory: object expected"); + message.serviceDirectory = $root.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.fromObject(object.serviceDirectory); + } + if (object.timeout != null) { + if (typeof object.timeout !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Webhook.timeout: object expected"); + message.timeout = $root.google.protobuf.Duration.fromObject(object.timeout); + } + if (object.disabled != null) + message.disabled = Boolean(object.disabled); return message; }; - /** - * Creates a plain object from a GetExperimentRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.GetExperimentRequest} message GetExperimentRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetExperimentRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + /** + * Creates a plain object from a Webhook message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @static + * @param {google.cloud.dialogflow.cx.v3.Webhook} message Webhook + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Webhook.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.disabled = false; + object.timeout = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.genericWebService != null && message.hasOwnProperty("genericWebService")) { + object.genericWebService = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.toObject(message.genericWebService, options); + if (options.oneofs) + object.webhook = "genericWebService"; + } + if (message.disabled != null && message.hasOwnProperty("disabled")) + object.disabled = message.disabled; + if (message.timeout != null && message.hasOwnProperty("timeout")) + object.timeout = $root.google.protobuf.Duration.toObject(message.timeout, options); + if (message.serviceDirectory != null && message.hasOwnProperty("serviceDirectory")) { + object.serviceDirectory = $root.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.toObject(message.serviceDirectory, options); + if (options.oneofs) + object.webhook = "serviceDirectory"; + } + return object; + }; + + /** + * Converts this Webhook to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @instance + * @returns {Object.} JSON object + */ + Webhook.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + Webhook.GenericWebService = (function() { + + /** + * Properties of a GenericWebService. + * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @interface IGenericWebService + * @property {string|null} [uri] GenericWebService uri + * @property {string|null} [username] GenericWebService username + * @property {string|null} [password] GenericWebService password + * @property {Object.|null} [requestHeaders] GenericWebService requestHeaders + * @property {Array.|null} [allowedCaCerts] GenericWebService allowedCaCerts + */ + + /** + * Constructs a new GenericWebService. + * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @classdesc Represents a GenericWebService. + * @implements IGenericWebService + * @constructor + * @param {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService=} [properties] Properties to set + */ + function GenericWebService(properties) { + this.requestHeaders = {}; + this.allowedCaCerts = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GenericWebService uri. + * @member {string} uri + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService + * @instance + */ + GenericWebService.prototype.uri = ""; + + /** + * GenericWebService username. + * @member {string} username + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService + * @instance + */ + GenericWebService.prototype.username = ""; + + /** + * GenericWebService password. + * @member {string} password + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService + * @instance + */ + GenericWebService.prototype.password = ""; + + /** + * GenericWebService requestHeaders. + * @member {Object.} requestHeaders + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService + * @instance + */ + GenericWebService.prototype.requestHeaders = $util.emptyObject; + + /** + * GenericWebService allowedCaCerts. + * @member {Array.} allowedCaCerts + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService + * @instance + */ + GenericWebService.prototype.allowedCaCerts = $util.emptyArray; + + /** + * Creates a new GenericWebService instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService + * @static + * @param {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Webhook.GenericWebService} GenericWebService instance + */ + GenericWebService.create = function create(properties) { + return new GenericWebService(properties); + }; + + /** + * Encodes the specified GenericWebService message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService + * @static + * @param {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService} message GenericWebService message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GenericWebService.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uri != null && Object.hasOwnProperty.call(message, "uri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); + if (message.username != null && Object.hasOwnProperty.call(message, "username")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); + if (message.password != null && Object.hasOwnProperty.call(message, "password")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.password); + if (message.requestHeaders != null && Object.hasOwnProperty.call(message, "requestHeaders")) + for (var keys = Object.keys(message.requestHeaders), i = 0; i < keys.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.requestHeaders[keys[i]]).ldelim(); + if (message.allowedCaCerts != null && message.allowedCaCerts.length) + for (var i = 0; i < message.allowedCaCerts.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.allowedCaCerts[i]); + return writer; + }; + + /** + * Encodes the specified GenericWebService message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService + * @static + * @param {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService} message GenericWebService message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GenericWebService.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GenericWebService message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.Webhook.GenericWebService} GenericWebService + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GenericWebService.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.uri = reader.string(); + break; + case 2: + message.username = reader.string(); + break; + case 3: + message.password = reader.string(); + break; + case 4: + if (message.requestHeaders === $util.emptyObject) + message.requestHeaders = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.requestHeaders[key] = value; + break; + case 5: + if (!(message.allowedCaCerts && message.allowedCaCerts.length)) + message.allowedCaCerts = []; + message.allowedCaCerts.push(reader.bytes()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GenericWebService message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.Webhook.GenericWebService} GenericWebService + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GenericWebService.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GenericWebService message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GenericWebService.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uri != null && message.hasOwnProperty("uri")) + if (!$util.isString(message.uri)) + return "uri: string expected"; + if (message.username != null && message.hasOwnProperty("username")) + if (!$util.isString(message.username)) + return "username: string expected"; + if (message.password != null && message.hasOwnProperty("password")) + if (!$util.isString(message.password)) + return "password: string expected"; + if (message.requestHeaders != null && message.hasOwnProperty("requestHeaders")) { + if (!$util.isObject(message.requestHeaders)) + return "requestHeaders: object expected"; + var key = Object.keys(message.requestHeaders); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.requestHeaders[key[i]])) + return "requestHeaders: string{k:string} expected"; + } + if (message.allowedCaCerts != null && message.hasOwnProperty("allowedCaCerts")) { + if (!Array.isArray(message.allowedCaCerts)) + return "allowedCaCerts: array expected"; + for (var i = 0; i < message.allowedCaCerts.length; ++i) + if (!(message.allowedCaCerts[i] && typeof message.allowedCaCerts[i].length === "number" || $util.isString(message.allowedCaCerts[i]))) + return "allowedCaCerts: buffer[] expected"; + } + return null; + }; + + /** + * Creates a GenericWebService message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.Webhook.GenericWebService} GenericWebService + */ + GenericWebService.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService(); + if (object.uri != null) + message.uri = String(object.uri); + if (object.username != null) + message.username = String(object.username); + if (object.password != null) + message.password = String(object.password); + if (object.requestHeaders) { + if (typeof object.requestHeaders !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.requestHeaders: object expected"); + message.requestHeaders = {}; + for (var keys = Object.keys(object.requestHeaders), i = 0; i < keys.length; ++i) + message.requestHeaders[keys[i]] = String(object.requestHeaders[keys[i]]); + } + if (object.allowedCaCerts) { + if (!Array.isArray(object.allowedCaCerts)) + throw TypeError(".google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.allowedCaCerts: array expected"); + message.allowedCaCerts = []; + for (var i = 0; i < object.allowedCaCerts.length; ++i) + if (typeof object.allowedCaCerts[i] === "string") + $util.base64.decode(object.allowedCaCerts[i], message.allowedCaCerts[i] = $util.newBuffer($util.base64.length(object.allowedCaCerts[i])), 0); + else if (object.allowedCaCerts[i].length) + message.allowedCaCerts[i] = object.allowedCaCerts[i]; + } + return message; + }; + + /** + * Creates a plain object from a GenericWebService message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService + * @static + * @param {google.cloud.dialogflow.cx.v3.Webhook.GenericWebService} message GenericWebService + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GenericWebService.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.allowedCaCerts = []; + if (options.objects || options.defaults) + object.requestHeaders = {}; + if (options.defaults) { + object.uri = ""; + object.username = ""; + object.password = ""; + } + if (message.uri != null && message.hasOwnProperty("uri")) + object.uri = message.uri; + if (message.username != null && message.hasOwnProperty("username")) + object.username = message.username; + if (message.password != null && message.hasOwnProperty("password")) + object.password = message.password; + var keys2; + if (message.requestHeaders && (keys2 = Object.keys(message.requestHeaders)).length) { + object.requestHeaders = {}; + for (var j = 0; j < keys2.length; ++j) + object.requestHeaders[keys2[j]] = message.requestHeaders[keys2[j]]; + } + if (message.allowedCaCerts && message.allowedCaCerts.length) { + object.allowedCaCerts = []; + for (var j = 0; j < message.allowedCaCerts.length; ++j) + object.allowedCaCerts[j] = options.bytes === String ? $util.base64.encode(message.allowedCaCerts[j], 0, message.allowedCaCerts[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.allowedCaCerts[j]) : message.allowedCaCerts[j]; + } + return object; + }; - /** - * Converts this GetExperimentRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest - * @instance - * @returns {Object.} JSON object - */ - GetExperimentRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this GenericWebService to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService + * @instance + * @returns {Object.} JSON object + */ + GenericWebService.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return GetExperimentRequest; - })(); + return GenericWebService; + })(); - v3.CreateExperimentRequest = (function() { + Webhook.ServiceDirectoryConfig = (function() { - /** - * Properties of a CreateExperimentRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface ICreateExperimentRequest - * @property {string|null} [parent] CreateExperimentRequest parent - * @property {google.cloud.dialogflow.cx.v3.IExperiment|null} [experiment] CreateExperimentRequest experiment - */ + /** + * Properties of a ServiceDirectoryConfig. + * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @interface IServiceDirectoryConfig + * @property {string|null} [service] ServiceDirectoryConfig service + * @property {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null} [genericWebService] ServiceDirectoryConfig genericWebService + */ - /** - * Constructs a new CreateExperimentRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CreateExperimentRequest. - * @implements ICreateExperimentRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest=} [properties] Properties to set - */ - function CreateExperimentRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new ServiceDirectoryConfig. + * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @classdesc Represents a ServiceDirectoryConfig. + * @implements IServiceDirectoryConfig + * @constructor + * @param {google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig=} [properties] Properties to set + */ + function ServiceDirectoryConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * CreateExperimentRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest - * @instance - */ - CreateExperimentRequest.prototype.parent = ""; + /** + * ServiceDirectoryConfig service. + * @member {string} service + * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig + * @instance + */ + ServiceDirectoryConfig.prototype.service = ""; - /** - * CreateExperimentRequest experiment. - * @member {google.cloud.dialogflow.cx.v3.IExperiment|null|undefined} experiment - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest - * @instance - */ - CreateExperimentRequest.prototype.experiment = null; + /** + * ServiceDirectoryConfig genericWebService. + * @member {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null|undefined} genericWebService + * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig + * @instance + */ + ServiceDirectoryConfig.prototype.genericWebService = null; - /** - * Creates a new CreateExperimentRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.CreateExperimentRequest} CreateExperimentRequest instance - */ - CreateExperimentRequest.create = function create(properties) { - return new CreateExperimentRequest(properties); - }; + /** + * Creates a new ServiceDirectoryConfig instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig + * @static + * @param {google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig} ServiceDirectoryConfig instance + */ + ServiceDirectoryConfig.create = function create(properties) { + return new ServiceDirectoryConfig(properties); + }; - /** - * Encodes the specified CreateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateExperimentRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest} message CreateExperimentRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateExperimentRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.experiment != null && Object.hasOwnProperty.call(message, "experiment")) - $root.google.cloud.dialogflow.cx.v3.Experiment.encode(message.experiment, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified ServiceDirectoryConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig + * @static + * @param {google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig} message ServiceDirectoryConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceDirectoryConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.service != null && Object.hasOwnProperty.call(message, "service")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.service); + if (message.genericWebService != null && Object.hasOwnProperty.call(message, "genericWebService")) + $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.encode(message.genericWebService, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified CreateExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateExperimentRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest} message CreateExperimentRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ServiceDirectoryConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig + * @static + * @param {google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig} message ServiceDirectoryConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceDirectoryConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a CreateExperimentRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.CreateExperimentRequest} CreateExperimentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateExperimentRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateExperimentRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Decodes a ServiceDirectoryConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig} ServiceDirectoryConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceDirectoryConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.service = reader.string(); + break; + case 2: + message.genericWebService = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a CreateExperimentRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.CreateExperimentRequest} CreateExperimentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateExperimentRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a ServiceDirectoryConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig} ServiceDirectoryConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceDirectoryConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a CreateExperimentRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateExperimentRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.experiment != null && message.hasOwnProperty("experiment")) { - var error = $root.google.cloud.dialogflow.cx.v3.Experiment.verify(message.experiment); - if (error) - return "experiment." + error; - } - return null; - }; + /** + * Verifies a ServiceDirectoryConfig message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ServiceDirectoryConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.service != null && message.hasOwnProperty("service")) + if (!$util.isString(message.service)) + return "service: string expected"; + if (message.genericWebService != null && message.hasOwnProperty("genericWebService")) { + var error = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.verify(message.genericWebService); + if (error) + return "genericWebService." + error; + } + return null; + }; - /** - * Creates a CreateExperimentRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CreateExperimentRequest} CreateExperimentRequest - */ - CreateExperimentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateExperimentRequest) + /** + * Creates a ServiceDirectoryConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig} ServiceDirectoryConfig + */ + ServiceDirectoryConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig(); + if (object.service != null) + message.service = String(object.service); + if (object.genericWebService != null) { + if (typeof object.genericWebService !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.genericWebService: object expected"); + message.genericWebService = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.fromObject(object.genericWebService); + } + return message; + }; + + /** + * Creates a plain object from a ServiceDirectoryConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig + * @static + * @param {google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig} message ServiceDirectoryConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ServiceDirectoryConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.service = ""; + object.genericWebService = null; + } + if (message.service != null && message.hasOwnProperty("service")) + object.service = message.service; + if (message.genericWebService != null && message.hasOwnProperty("genericWebService")) + object.genericWebService = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.toObject(message.genericWebService, options); return object; - var message = new $root.google.cloud.dialogflow.cx.v3.CreateExperimentRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.experiment != null) { - if (typeof object.experiment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CreateExperimentRequest.experiment: object expected"); - message.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.fromObject(object.experiment); - } - return message; - }; + }; - /** - * Creates a plain object from a CreateExperimentRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.CreateExperimentRequest} message CreateExperimentRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CreateExperimentRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.experiment = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.experiment != null && message.hasOwnProperty("experiment")) - object.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.toObject(message.experiment, options); - return object; - }; + /** + * Converts this ServiceDirectoryConfig to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig + * @instance + * @returns {Object.} JSON object + */ + ServiceDirectoryConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this CreateExperimentRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest - * @instance - * @returns {Object.} JSON object - */ - CreateExperimentRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return ServiceDirectoryConfig; + })(); - return CreateExperimentRequest; + return Webhook; })(); - v3.UpdateExperimentRequest = (function() { + v3.ListWebhooksRequest = (function() { /** - * Properties of an UpdateExperimentRequest. + * Properties of a ListWebhooksRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IUpdateExperimentRequest - * @property {google.cloud.dialogflow.cx.v3.IExperiment|null} [experiment] UpdateExperimentRequest experiment - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateExperimentRequest updateMask + * @interface IListWebhooksRequest + * @property {string|null} [parent] ListWebhooksRequest parent + * @property {number|null} [pageSize] ListWebhooksRequest pageSize + * @property {string|null} [pageToken] ListWebhooksRequest pageToken */ /** - * Constructs a new UpdateExperimentRequest. + * Constructs a new ListWebhooksRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an UpdateExperimentRequest. - * @implements IUpdateExperimentRequest + * @classdesc Represents a ListWebhooksRequest. + * @implements IListWebhooksRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListWebhooksRequest=} [properties] Properties to set */ - function UpdateExperimentRequest(properties) { + function ListWebhooksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62021,88 +61184,101 @@ } /** - * UpdateExperimentRequest experiment. - * @member {google.cloud.dialogflow.cx.v3.IExperiment|null|undefined} experiment - * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest + * ListWebhooksRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * @instance + */ + ListWebhooksRequest.prototype.parent = ""; + + /** + * ListWebhooksRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest * @instance */ - UpdateExperimentRequest.prototype.experiment = null; + ListWebhooksRequest.prototype.pageSize = 0; /** - * UpdateExperimentRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest + * ListWebhooksRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest * @instance */ - UpdateExperimentRequest.prototype.updateMask = null; + ListWebhooksRequest.prototype.pageToken = ""; /** - * Creates a new UpdateExperimentRequest instance using the specified properties. + * Creates a new ListWebhooksRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.UpdateExperimentRequest} UpdateExperimentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IListWebhooksRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListWebhooksRequest} ListWebhooksRequest instance */ - UpdateExperimentRequest.create = function create(properties) { - return new UpdateExperimentRequest(properties); + ListWebhooksRequest.create = function create(properties) { + return new ListWebhooksRequest(properties); }; /** - * Encodes the specified UpdateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateExperimentRequest.verify|verify} messages. + * Encodes the specified ListWebhooksRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest} message UpdateExperimentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListWebhooksRequest} message ListWebhooksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateExperimentRequest.encode = function encode(message, writer) { + ListWebhooksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.experiment != null && Object.hasOwnProperty.call(message, "experiment")) - $root.google.cloud.dialogflow.cx.v3.Experiment.encode(message.experiment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified UpdateExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateExperimentRequest.verify|verify} messages. + * Encodes the specified ListWebhooksRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest} message UpdateExperimentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListWebhooksRequest} message ListWebhooksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListWebhooksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateExperimentRequest message from the specified reader or buffer. + * Decodes a ListWebhooksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.UpdateExperimentRequest} UpdateExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3.ListWebhooksRequest} ListWebhooksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateExperimentRequest.decode = function decode(reader, length) { + ListWebhooksRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateExperimentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListWebhooksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.decode(reader, reader.uint32()); + message.parent = reader.string(); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -62113,126 +61289,126 @@ }; /** - * Decodes an UpdateExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a ListWebhooksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.UpdateExperimentRequest} UpdateExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3.ListWebhooksRequest} ListWebhooksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateExperimentRequest.decodeDelimited = function decodeDelimited(reader) { + ListWebhooksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateExperimentRequest message. + * Verifies a ListWebhooksRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateExperimentRequest.verify = function verify(message) { + ListWebhooksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.experiment != null && message.hasOwnProperty("experiment")) { - var error = $root.google.cloud.dialogflow.cx.v3.Experiment.verify(message.experiment); - if (error) - return "experiment." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates an UpdateExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListWebhooksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.UpdateExperimentRequest} UpdateExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3.ListWebhooksRequest} ListWebhooksRequest */ - UpdateExperimentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateExperimentRequest) + ListWebhooksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListWebhooksRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.UpdateExperimentRequest(); - if (object.experiment != null) { - if (typeof object.experiment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateExperimentRequest.experiment: object expected"); - message.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.fromObject(object.experiment); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateExperimentRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.cloud.dialogflow.cx.v3.ListWebhooksRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from an UpdateExperimentRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListWebhooksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest * @static - * @param {google.cloud.dialogflow.cx.v3.UpdateExperimentRequest} message UpdateExperimentRequest + * @param {google.cloud.dialogflow.cx.v3.ListWebhooksRequest} message ListWebhooksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateExperimentRequest.toObject = function toObject(message, options) { + ListWebhooksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.experiment = null; - object.updateMask = null; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.experiment != null && message.hasOwnProperty("experiment")) - object.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.toObject(message.experiment, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this UpdateExperimentRequest to JSON. + * Converts this ListWebhooksRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest * @instance * @returns {Object.} JSON object */ - UpdateExperimentRequest.prototype.toJSON = function toJSON() { + ListWebhooksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateExperimentRequest; + return ListWebhooksRequest; })(); - v3.DeleteExperimentRequest = (function() { + v3.ListWebhooksResponse = (function() { /** - * Properties of a DeleteExperimentRequest. + * Properties of a ListWebhooksResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDeleteExperimentRequest - * @property {string|null} [name] DeleteExperimentRequest name + * @interface IListWebhooksResponse + * @property {Array.|null} [webhooks] ListWebhooksResponse webhooks + * @property {string|null} [nextPageToken] ListWebhooksResponse nextPageToken */ /** - * Constructs a new DeleteExperimentRequest. + * Constructs a new ListWebhooksResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DeleteExperimentRequest. - * @implements IDeleteExperimentRequest + * @classdesc Represents a ListWebhooksResponse. + * @implements IListWebhooksResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListWebhooksResponse=} [properties] Properties to set */ - function DeleteExperimentRequest(properties) { + function ListWebhooksResponse(properties) { + this.webhooks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62240,75 +61416,91 @@ } /** - * DeleteExperimentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest + * ListWebhooksResponse webhooks. + * @member {Array.} webhooks + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse * @instance */ - DeleteExperimentRequest.prototype.name = ""; + ListWebhooksResponse.prototype.webhooks = $util.emptyArray; /** - * Creates a new DeleteExperimentRequest instance using the specified properties. + * ListWebhooksResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse + * @instance + */ + ListWebhooksResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListWebhooksResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.DeleteExperimentRequest} DeleteExperimentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IListWebhooksResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListWebhooksResponse} ListWebhooksResponse instance */ - DeleteExperimentRequest.create = function create(properties) { - return new DeleteExperimentRequest(properties); + ListWebhooksResponse.create = function create(properties) { + return new ListWebhooksResponse(properties); }; /** - * Encodes the specified DeleteExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteExperimentRequest.verify|verify} messages. + * Encodes the specified ListWebhooksResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest} message DeleteExperimentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListWebhooksResponse} message ListWebhooksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteExperimentRequest.encode = function encode(message, writer) { + ListWebhooksResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.webhooks != null && message.webhooks.length) + for (var i = 0; i < message.webhooks.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Webhook.encode(message.webhooks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified DeleteExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteExperimentRequest.verify|verify} messages. + * Encodes the specified ListWebhooksResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest} message DeleteExperimentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListWebhooksResponse} message ListWebhooksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListWebhooksResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteExperimentRequest message from the specified reader or buffer. + * Decodes a ListWebhooksResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.DeleteExperimentRequest} DeleteExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3.ListWebhooksResponse} ListWebhooksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteExperimentRequest.decode = function decode(reader, length) { + ListWebhooksResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteExperimentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListWebhooksResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.webhooks && message.webhooks.length)) + message.webhooks = []; + message.webhooks.push($root.google.cloud.dialogflow.cx.v3.Webhook.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -62319,107 +61511,133 @@ }; /** - * Decodes a DeleteExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a ListWebhooksResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.DeleteExperimentRequest} DeleteExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3.ListWebhooksResponse} ListWebhooksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteExperimentRequest.decodeDelimited = function decodeDelimited(reader) { + ListWebhooksResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteExperimentRequest message. + * Verifies a ListWebhooksResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteExperimentRequest.verify = function verify(message) { + ListWebhooksResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.webhooks != null && message.hasOwnProperty("webhooks")) { + if (!Array.isArray(message.webhooks)) + return "webhooks: array expected"; + for (var i = 0; i < message.webhooks.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Webhook.verify(message.webhooks[i]); + if (error) + return "webhooks." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a DeleteExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListWebhooksResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DeleteExperimentRequest} DeleteExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3.ListWebhooksResponse} ListWebhooksResponse */ - DeleteExperimentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteExperimentRequest) + ListWebhooksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListWebhooksResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.DeleteExperimentRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3.ListWebhooksResponse(); + if (object.webhooks) { + if (!Array.isArray(object.webhooks)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ListWebhooksResponse.webhooks: array expected"); + message.webhooks = []; + for (var i = 0; i < object.webhooks.length; ++i) { + if (typeof object.webhooks[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ListWebhooksResponse.webhooks: object expected"); + message.webhooks[i] = $root.google.cloud.dialogflow.cx.v3.Webhook.fromObject(object.webhooks[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a DeleteExperimentRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListWebhooksResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse * @static - * @param {google.cloud.dialogflow.cx.v3.DeleteExperimentRequest} message DeleteExperimentRequest + * @param {google.cloud.dialogflow.cx.v3.ListWebhooksResponse} message ListWebhooksResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteExperimentRequest.toObject = function toObject(message, options) { + ListWebhooksResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.webhooks = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.nextPageToken = ""; + if (message.webhooks && message.webhooks.length) { + object.webhooks = []; + for (var j = 0; j < message.webhooks.length; ++j) + object.webhooks[j] = $root.google.cloud.dialogflow.cx.v3.Webhook.toObject(message.webhooks[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this DeleteExperimentRequest to JSON. + * Converts this ListWebhooksResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse * @instance * @returns {Object.} JSON object */ - DeleteExperimentRequest.prototype.toJSON = function toJSON() { + ListWebhooksResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteExperimentRequest; + return ListWebhooksResponse; })(); - v3.StartExperimentRequest = (function() { + v3.GetWebhookRequest = (function() { /** - * Properties of a StartExperimentRequest. + * Properties of a GetWebhookRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IStartExperimentRequest - * @property {string|null} [name] StartExperimentRequest name + * @interface IGetWebhookRequest + * @property {string|null} [name] GetWebhookRequest name */ /** - * Constructs a new StartExperimentRequest. + * Constructs a new GetWebhookRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a StartExperimentRequest. - * @implements IStartExperimentRequest + * @classdesc Represents a GetWebhookRequest. + * @implements IGetWebhookRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IStartExperimentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetWebhookRequest=} [properties] Properties to set */ - function StartExperimentRequest(properties) { + function GetWebhookRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62427,35 +61645,35 @@ } /** - * StartExperimentRequest name. + * GetWebhookRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest * @instance */ - StartExperimentRequest.prototype.name = ""; + GetWebhookRequest.prototype.name = ""; /** - * Creates a new StartExperimentRequest instance using the specified properties. + * Creates a new GetWebhookRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IStartExperimentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.StartExperimentRequest} StartExperimentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IGetWebhookRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetWebhookRequest} GetWebhookRequest instance */ - StartExperimentRequest.create = function create(properties) { - return new StartExperimentRequest(properties); + GetWebhookRequest.create = function create(properties) { + return new GetWebhookRequest(properties); }; /** - * Encodes the specified StartExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StartExperimentRequest.verify|verify} messages. + * Encodes the specified GetWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetWebhookRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IStartExperimentRequest} message StartExperimentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetWebhookRequest} message GetWebhookRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartExperimentRequest.encode = function encode(message, writer) { + GetWebhookRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -62464,33 +61682,33 @@ }; /** - * Encodes the specified StartExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StartExperimentRequest.verify|verify} messages. + * Encodes the specified GetWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetWebhookRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IStartExperimentRequest} message StartExperimentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetWebhookRequest} message GetWebhookRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetWebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StartExperimentRequest message from the specified reader or buffer. + * Decodes a GetWebhookRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.StartExperimentRequest} StartExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3.GetWebhookRequest} GetWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartExperimentRequest.decode = function decode(reader, length) { + GetWebhookRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.StartExperimentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetWebhookRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -62506,30 +61724,30 @@ }; /** - * Decodes a StartExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a GetWebhookRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.StartExperimentRequest} StartExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3.GetWebhookRequest} GetWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartExperimentRequest.decodeDelimited = function decodeDelimited(reader) { + GetWebhookRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StartExperimentRequest message. + * Verifies a GetWebhookRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StartExperimentRequest.verify = function verify(message) { + GetWebhookRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -62539,32 +61757,32 @@ }; /** - * Creates a StartExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetWebhookRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.StartExperimentRequest} StartExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3.GetWebhookRequest} GetWebhookRequest */ - StartExperimentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.StartExperimentRequest) + GetWebhookRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetWebhookRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.StartExperimentRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.GetWebhookRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a StartExperimentRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetWebhookRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.StartExperimentRequest} message StartExperimentRequest + * @param {google.cloud.dialogflow.cx.v3.GetWebhookRequest} message GetWebhookRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StartExperimentRequest.toObject = function toObject(message, options) { + GetWebhookRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -62576,37 +61794,38 @@ }; /** - * Converts this StartExperimentRequest to JSON. + * Converts this GetWebhookRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest * @instance * @returns {Object.} JSON object */ - StartExperimentRequest.prototype.toJSON = function toJSON() { + GetWebhookRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StartExperimentRequest; + return GetWebhookRequest; })(); - v3.StopExperimentRequest = (function() { + v3.CreateWebhookRequest = (function() { /** - * Properties of a StopExperimentRequest. + * Properties of a CreateWebhookRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IStopExperimentRequest - * @property {string|null} [name] StopExperimentRequest name + * @interface ICreateWebhookRequest + * @property {string|null} [parent] CreateWebhookRequest parent + * @property {google.cloud.dialogflow.cx.v3.IWebhook|null} [webhook] CreateWebhookRequest webhook */ /** - * Constructs a new StopExperimentRequest. + * Constructs a new CreateWebhookRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a StopExperimentRequest. - * @implements IStopExperimentRequest + * @classdesc Represents a CreateWebhookRequest. + * @implements ICreateWebhookRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICreateWebhookRequest=} [properties] Properties to set */ - function StopExperimentRequest(properties) { + function CreateWebhookRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62614,75 +61833,88 @@ } /** - * StopExperimentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest + * CreateWebhookRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @instance */ - StopExperimentRequest.prototype.name = ""; + CreateWebhookRequest.prototype.parent = ""; /** - * Creates a new StopExperimentRequest instance using the specified properties. + * CreateWebhookRequest webhook. + * @member {google.cloud.dialogflow.cx.v3.IWebhook|null|undefined} webhook + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest + * @instance + */ + CreateWebhookRequest.prototype.webhook = null; + + /** + * Creates a new CreateWebhookRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.StopExperimentRequest} StopExperimentRequest instance + * @param {google.cloud.dialogflow.cx.v3.ICreateWebhookRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateWebhookRequest} CreateWebhookRequest instance */ - StopExperimentRequest.create = function create(properties) { - return new StopExperimentRequest(properties); + CreateWebhookRequest.create = function create(properties) { + return new CreateWebhookRequest(properties); }; /** - * Encodes the specified StopExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StopExperimentRequest.verify|verify} messages. + * Encodes the specified CreateWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateWebhookRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest} message StopExperimentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateWebhookRequest} message CreateWebhookRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopExperimentRequest.encode = function encode(message, writer) { + CreateWebhookRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.webhook != null && Object.hasOwnProperty.call(message, "webhook")) + $root.google.cloud.dialogflow.cx.v3.Webhook.encode(message.webhook, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified StopExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StopExperimentRequest.verify|verify} messages. + * Encodes the specified CreateWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateWebhookRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest} message StopExperimentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateWebhookRequest} message CreateWebhookRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateWebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StopExperimentRequest message from the specified reader or buffer. + * Decodes a CreateWebhookRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.StopExperimentRequest} StopExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateWebhookRequest} CreateWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopExperimentRequest.decode = function decode(reader, length) { + CreateWebhookRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.StopExperimentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateWebhookRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); + break; + case 2: + message.webhook = $root.google.cloud.dialogflow.cx.v3.Webhook.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -62693,373 +61925,122 @@ }; /** - * Decodes a StopExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateWebhookRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.StopExperimentRequest} StopExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateWebhookRequest} CreateWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopExperimentRequest.decodeDelimited = function decodeDelimited(reader) { + CreateWebhookRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StopExperimentRequest message. + * Verifies a CreateWebhookRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StopExperimentRequest.verify = function verify(message) { + CreateWebhookRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.webhook != null && message.hasOwnProperty("webhook")) { + var error = $root.google.cloud.dialogflow.cx.v3.Webhook.verify(message.webhook); + if (error) + return "webhook." + error; + } return null; }; /** - * Creates a StopExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateWebhookRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.StopExperimentRequest} StopExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateWebhookRequest} CreateWebhookRequest */ - StopExperimentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.StopExperimentRequest) + CreateWebhookRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateWebhookRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.StopExperimentRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3.CreateWebhookRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.webhook != null) { + if (typeof object.webhook !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CreateWebhookRequest.webhook: object expected"); + message.webhook = $root.google.cloud.dialogflow.cx.v3.Webhook.fromObject(object.webhook); + } return message; }; /** - * Creates a plain object from a StopExperimentRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateWebhookRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.StopExperimentRequest} message StopExperimentRequest + * @param {google.cloud.dialogflow.cx.v3.CreateWebhookRequest} message CreateWebhookRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StopExperimentRequest.toObject = function toObject(message, options) { + CreateWebhookRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.parent = ""; + object.webhook = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.webhook != null && message.hasOwnProperty("webhook")) + object.webhook = $root.google.cloud.dialogflow.cx.v3.Webhook.toObject(message.webhook, options); return object; }; /** - * Converts this StopExperimentRequest to JSON. + * Converts this CreateWebhookRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @instance * @returns {Object.} JSON object */ - StopExperimentRequest.prototype.toJSON = function toJSON() { + CreateWebhookRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StopExperimentRequest; - })(); - - v3.Versions = (function() { - - /** - * Constructs a new Versions service. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a Versions - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Versions(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Versions.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Versions; - - /** - * Creates new Versions service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {Versions} RPC service. Useful where requests and/or responses are streamed. - */ - Versions.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#listVersions}. - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @typedef ListVersionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.ListVersionsResponse} [response] ListVersionsResponse - */ - - /** - * Calls ListVersions. - * @function listVersions - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3.IListVersionsRequest} request ListVersionsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Versions.ListVersionsCallback} callback Node-style callback called with the error, if any, and ListVersionsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Versions.prototype.listVersions = function listVersions(request, callback) { - return this.rpcCall(listVersions, $root.google.cloud.dialogflow.cx.v3.ListVersionsRequest, $root.google.cloud.dialogflow.cx.v3.ListVersionsResponse, request, callback); - }, "name", { value: "ListVersions" }); - - /** - * Calls ListVersions. - * @function listVersions - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3.IListVersionsRequest} request ListVersionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#getVersion}. - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @typedef GetVersionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.Version} [response] Version - */ - - /** - * Calls GetVersion. - * @function getVersion - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetVersionRequest} request GetVersionRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Versions.GetVersionCallback} callback Node-style callback called with the error, if any, and Version - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Versions.prototype.getVersion = function getVersion(request, callback) { - return this.rpcCall(getVersion, $root.google.cloud.dialogflow.cx.v3.GetVersionRequest, $root.google.cloud.dialogflow.cx.v3.Version, request, callback); - }, "name", { value: "GetVersion" }); - - /** - * Calls GetVersion. - * @function getVersion - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetVersionRequest} request GetVersionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#createVersion}. - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @typedef CreateVersionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls CreateVersion. - * @function createVersion - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateVersionRequest} request CreateVersionRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Versions.CreateVersionCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Versions.prototype.createVersion = function createVersion(request, callback) { - return this.rpcCall(createVersion, $root.google.cloud.dialogflow.cx.v3.CreateVersionRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateVersion" }); - - /** - * Calls CreateVersion. - * @function createVersion - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateVersionRequest} request CreateVersionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#updateVersion}. - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @typedef UpdateVersionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.Version} [response] Version - */ - - /** - * Calls UpdateVersion. - * @function updateVersion - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateVersionRequest} request UpdateVersionRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Versions.UpdateVersionCallback} callback Node-style callback called with the error, if any, and Version - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Versions.prototype.updateVersion = function updateVersion(request, callback) { - return this.rpcCall(updateVersion, $root.google.cloud.dialogflow.cx.v3.UpdateVersionRequest, $root.google.cloud.dialogflow.cx.v3.Version, request, callback); - }, "name", { value: "UpdateVersion" }); - - /** - * Calls UpdateVersion. - * @function updateVersion - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateVersionRequest} request UpdateVersionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#deleteVersion}. - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @typedef DeleteVersionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ - - /** - * Calls DeleteVersion. - * @function deleteVersion - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest} request DeleteVersionRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Versions.DeleteVersionCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Versions.prototype.deleteVersion = function deleteVersion(request, callback) { - return this.rpcCall(deleteVersion, $root.google.cloud.dialogflow.cx.v3.DeleteVersionRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteVersion" }); - - /** - * Calls DeleteVersion. - * @function deleteVersion - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest} request DeleteVersionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#loadVersion}. - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @typedef LoadVersionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls LoadVersion. - * @function loadVersion - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3.ILoadVersionRequest} request LoadVersionRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Versions.LoadVersionCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Versions.prototype.loadVersion = function loadVersion(request, callback) { - return this.rpcCall(loadVersion, $root.google.cloud.dialogflow.cx.v3.LoadVersionRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "LoadVersion" }); - - /** - * Calls LoadVersion. - * @function loadVersion - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3.ILoadVersionRequest} request LoadVersionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#compareVersions}. - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @typedef CompareVersionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.CompareVersionsResponse} [response] CompareVersionsResponse - */ - - /** - * Calls CompareVersions. - * @function compareVersions - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsRequest} request CompareVersionsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Versions.CompareVersionsCallback} callback Node-style callback called with the error, if any, and CompareVersionsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Versions.prototype.compareVersions = function compareVersions(request, callback) { - return this.rpcCall(compareVersions, $root.google.cloud.dialogflow.cx.v3.CompareVersionsRequest, $root.google.cloud.dialogflow.cx.v3.CompareVersionsResponse, request, callback); - }, "name", { value: "CompareVersions" }); - - /** - * Calls CompareVersions. - * @function compareVersions - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsRequest} request CompareVersionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return Versions; + return CreateWebhookRequest; })(); - v3.CreateVersionOperationMetadata = (function() { + v3.UpdateWebhookRequest = (function() { /** - * Properties of a CreateVersionOperationMetadata. + * Properties of an UpdateWebhookRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ICreateVersionOperationMetadata - * @property {string|null} [version] CreateVersionOperationMetadata version + * @interface IUpdateWebhookRequest + * @property {google.cloud.dialogflow.cx.v3.IWebhook|null} [webhook] UpdateWebhookRequest webhook + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateWebhookRequest updateMask */ /** - * Constructs a new CreateVersionOperationMetadata. + * Constructs a new UpdateWebhookRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CreateVersionOperationMetadata. - * @implements ICreateVersionOperationMetadata + * @classdesc Represents an UpdateWebhookRequest. + * @implements IUpdateWebhookRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest=} [properties] Properties to set */ - function CreateVersionOperationMetadata(properties) { + function UpdateWebhookRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63067,75 +62048,88 @@ } /** - * CreateVersionOperationMetadata version. - * @member {string} version - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata + * UpdateWebhookRequest webhook. + * @member {google.cloud.dialogflow.cx.v3.IWebhook|null|undefined} webhook + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest * @instance */ - CreateVersionOperationMetadata.prototype.version = ""; + UpdateWebhookRequest.prototype.webhook = null; /** - * Creates a new CreateVersionOperationMetadata instance using the specified properties. + * UpdateWebhookRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest + * @instance + */ + UpdateWebhookRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateWebhookRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata} CreateVersionOperationMetadata instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdateWebhookRequest} UpdateWebhookRequest instance */ - CreateVersionOperationMetadata.create = function create(properties) { - return new CreateVersionOperationMetadata(properties); + UpdateWebhookRequest.create = function create(properties) { + return new UpdateWebhookRequest(properties); }; /** - * Encodes the specified CreateVersionOperationMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata.verify|verify} messages. + * Encodes the specified UpdateWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateWebhookRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata} message CreateVersionOperationMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest} message UpdateWebhookRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateVersionOperationMetadata.encode = function encode(message, writer) { + UpdateWebhookRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); + if (message.webhook != null && Object.hasOwnProperty.call(message, "webhook")) + $root.google.cloud.dialogflow.cx.v3.Webhook.encode(message.webhook, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateVersionOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata.verify|verify} messages. + * Encodes the specified UpdateWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateWebhookRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata} message CreateVersionOperationMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest} message UpdateWebhookRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateVersionOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + UpdateWebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateVersionOperationMetadata message from the specified reader or buffer. + * Decodes an UpdateWebhookRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata} CreateVersionOperationMetadata + * @returns {google.cloud.dialogflow.cx.v3.UpdateWebhookRequest} UpdateWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateVersionOperationMetadata.decode = function decode(reader, length) { + UpdateWebhookRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateWebhookRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.version = reader.string(); + message.webhook = $root.google.cloud.dialogflow.cx.v3.Webhook.decode(reader, reader.uint32()); + break; + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -63146,112 +62140,127 @@ }; /** - * Decodes a CreateVersionOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes an UpdateWebhookRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata} CreateVersionOperationMetadata + * @returns {google.cloud.dialogflow.cx.v3.UpdateWebhookRequest} UpdateWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateVersionOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + UpdateWebhookRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateVersionOperationMetadata message. + * Verifies an UpdateWebhookRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateVersionOperationMetadata.verify = function verify(message) { + UpdateWebhookRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; + if (message.webhook != null && message.hasOwnProperty("webhook")) { + var error = $root.google.cloud.dialogflow.cx.v3.Webhook.verify(message.webhook); + if (error) + return "webhook." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } return null; }; /** - * Creates a CreateVersionOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateWebhookRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata} CreateVersionOperationMetadata + * @returns {google.cloud.dialogflow.cx.v3.UpdateWebhookRequest} UpdateWebhookRequest */ - CreateVersionOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata) + UpdateWebhookRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateWebhookRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata(); - if (object.version != null) - message.version = String(object.version); + var message = new $root.google.cloud.dialogflow.cx.v3.UpdateWebhookRequest(); + if (object.webhook != null) { + if (typeof object.webhook !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateWebhookRequest.webhook: object expected"); + message.webhook = $root.google.cloud.dialogflow.cx.v3.Webhook.fromObject(object.webhook); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateWebhookRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; /** - * Creates a plain object from a CreateVersionOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from an UpdateWebhookRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata} message CreateVersionOperationMetadata + * @param {google.cloud.dialogflow.cx.v3.UpdateWebhookRequest} message UpdateWebhookRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateVersionOperationMetadata.toObject = function toObject(message, options) { + UpdateWebhookRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.version = ""; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; + if (options.defaults) { + object.webhook = null; + object.updateMask = null; + } + if (message.webhook != null && message.hasOwnProperty("webhook")) + object.webhook = $root.google.cloud.dialogflow.cx.v3.Webhook.toObject(message.webhook, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this CreateVersionOperationMetadata to JSON. + * Converts this UpdateWebhookRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest * @instance * @returns {Object.} JSON object */ - CreateVersionOperationMetadata.prototype.toJSON = function toJSON() { + UpdateWebhookRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateVersionOperationMetadata; + return UpdateWebhookRequest; })(); - v3.Version = (function() { + v3.DeleteWebhookRequest = (function() { /** - * Properties of a Version. + * Properties of a DeleteWebhookRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IVersion - * @property {string|null} [name] Version name - * @property {string|null} [displayName] Version displayName - * @property {string|null} [description] Version description - * @property {google.cloud.dialogflow.cx.v3.INluSettings|null} [nluSettings] Version nluSettings - * @property {google.protobuf.ITimestamp|null} [createTime] Version createTime - * @property {google.cloud.dialogflow.cx.v3.Version.State|null} [state] Version state + * @interface IDeleteWebhookRequest + * @property {string|null} [name] DeleteWebhookRequest name + * @property {boolean|null} [force] DeleteWebhookRequest force */ /** - * Constructs a new Version. + * Constructs a new DeleteWebhookRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a Version. - * @implements IVersion + * @classdesc Represents a DeleteWebhookRequest. + * @implements IDeleteWebhookRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IVersion=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest=} [properties] Properties to set */ - function Version(properties) { + function DeleteWebhookRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63259,120 +62268,80 @@ } /** - * Version name. + * DeleteWebhookRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.Version - * @instance - */ - Version.prototype.name = ""; - - /** - * Version displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.Version - * @instance - */ - Version.prototype.displayName = ""; - - /** - * Version description. - * @member {string} description - * @memberof google.cloud.dialogflow.cx.v3.Version - * @instance - */ - Version.prototype.description = ""; - - /** - * Version nluSettings. - * @member {google.cloud.dialogflow.cx.v3.INluSettings|null|undefined} nluSettings - * @memberof google.cloud.dialogflow.cx.v3.Version - * @instance - */ - Version.prototype.nluSettings = null; - - /** - * Version createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.dialogflow.cx.v3.Version + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @instance */ - Version.prototype.createTime = null; + DeleteWebhookRequest.prototype.name = ""; /** - * Version state. - * @member {google.cloud.dialogflow.cx.v3.Version.State} state - * @memberof google.cloud.dialogflow.cx.v3.Version + * DeleteWebhookRequest force. + * @member {boolean} force + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @instance */ - Version.prototype.state = 0; + DeleteWebhookRequest.prototype.force = false; /** - * Creates a new Version instance using the specified properties. + * Creates a new DeleteWebhookRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Version + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IVersion=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Version} Version instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeleteWebhookRequest} DeleteWebhookRequest instance */ - Version.create = function create(properties) { - return new Version(properties); + DeleteWebhookRequest.create = function create(properties) { + return new DeleteWebhookRequest(properties); }; /** - * Encodes the specified Version message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Version.verify|verify} messages. + * Encodes the specified DeleteWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteWebhookRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Version + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IVersion} message Version message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest} message DeleteWebhookRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Version.encode = function encode(message, writer) { + DeleteWebhookRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); - if (message.nluSettings != null && Object.hasOwnProperty.call(message, "nluSettings")) - $root.google.cloud.dialogflow.cx.v3.NluSettings.encode(message.nluSettings, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); return writer; }; /** - * Encodes the specified Version message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Version.verify|verify} messages. + * Encodes the specified DeleteWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteWebhookRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Version + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IVersion} message Version message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest} message DeleteWebhookRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Version.encodeDelimited = function encodeDelimited(message, writer) { + DeleteWebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Version message from the specified reader or buffer. + * Decodes a DeleteWebhookRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Version + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.Version} Version + * @returns {google.cloud.dialogflow.cx.v3.DeleteWebhookRequest} DeleteWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Version.decode = function decode(reader, length) { + DeleteWebhookRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Version(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteWebhookRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -63380,19 +62349,7 @@ message.name = reader.string(); break; case 2: - message.displayName = reader.string(); - break; - case 3: - message.description = reader.string(); - break; - case 4: - message.nluSettings = $root.google.cloud.dialogflow.cx.v3.NluSettings.decode(reader, reader.uint32()); - break; - case 5: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 6: - message.state = reader.int32(); + message.force = reader.bool(); break; default: reader.skipType(tag & 7); @@ -63403,201 +62360,129 @@ }; /** - * Decodes a Version message from the specified reader or buffer, length delimited. + * Decodes a DeleteWebhookRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Version + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Version} Version + * @returns {google.cloud.dialogflow.cx.v3.DeleteWebhookRequest} DeleteWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Version.decodeDelimited = function decodeDelimited(reader) { + DeleteWebhookRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Version message. + * Verifies a DeleteWebhookRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Version + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Version.verify = function verify(message) { + DeleteWebhookRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.nluSettings != null && message.hasOwnProperty("nluSettings")) { - var error = $root.google.cloud.dialogflow.cx.v3.NluSettings.verify(message.nluSettings); - if (error) - return "nluSettings." + error; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; return null; }; /** - * Creates a Version message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteWebhookRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Version + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Version} Version + * @returns {google.cloud.dialogflow.cx.v3.DeleteWebhookRequest} DeleteWebhookRequest */ - Version.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Version) + DeleteWebhookRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteWebhookRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Version(); + var message = new $root.google.cloud.dialogflow.cx.v3.DeleteWebhookRequest(); if (object.name != null) message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.description != null) - message.description = String(object.description); - if (object.nluSettings != null) { - if (typeof object.nluSettings !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Version.nluSettings: object expected"); - message.nluSettings = $root.google.cloud.dialogflow.cx.v3.NluSettings.fromObject(object.nluSettings); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Version.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - switch (object.state) { - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "RUNNING": - case 1: - message.state = 1; - break; - case "SUCCEEDED": - case 2: - message.state = 2; - break; - case "FAILED": - case 3: - message.state = 3; - break; - } + if (object.force != null) + message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from a Version message. Also converts values to other types if specified. + * Creates a plain object from a DeleteWebhookRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Version + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.Version} message Version + * @param {google.cloud.dialogflow.cx.v3.DeleteWebhookRequest} message DeleteWebhookRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Version.toObject = function toObject(message, options) { + DeleteWebhookRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.name = ""; - object.displayName = ""; - object.description = ""; - object.nluSettings = null; - object.createTime = null; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.force = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.nluSettings != null && message.hasOwnProperty("nluSettings")) - object.nluSettings = $root.google.cloud.dialogflow.cx.v3.NluSettings.toObject(message.nluSettings, options); - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Version.State[message.state] : message.state; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; return object; }; /** - * Converts this Version to JSON. + * Converts this DeleteWebhookRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Version + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @instance * @returns {Object.} JSON object */ - Version.prototype.toJSON = function toJSON() { + DeleteWebhookRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * State enum. - * @name google.cloud.dialogflow.cx.v3.Version.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} RUNNING=1 RUNNING value - * @property {number} SUCCEEDED=2 SUCCEEDED value - * @property {number} FAILED=3 FAILED value - */ - Version.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "RUNNING"] = 1; - values[valuesById[2] = "SUCCEEDED"] = 2; - values[valuesById[3] = "FAILED"] = 3; - return values; - })(); - - return Version; + return DeleteWebhookRequest; })(); - v3.ListVersionsRequest = (function() { + v3.WebhookRequest = (function() { /** - * Properties of a ListVersionsRequest. + * Properties of a WebhookRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListVersionsRequest - * @property {string|null} [parent] ListVersionsRequest parent - * @property {number|null} [pageSize] ListVersionsRequest pageSize - * @property {string|null} [pageToken] ListVersionsRequest pageToken + * @interface IWebhookRequest + * @property {string|null} [detectIntentResponseId] WebhookRequest detectIntentResponseId + * @property {string|null} [text] WebhookRequest text + * @property {string|null} [triggerIntent] WebhookRequest triggerIntent + * @property {string|null} [transcript] WebhookRequest transcript + * @property {string|null} [triggerEvent] WebhookRequest triggerEvent + * @property {string|null} [languageCode] WebhookRequest languageCode + * @property {google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo|null} [fulfillmentInfo] WebhookRequest fulfillmentInfo + * @property {google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo|null} [intentInfo] WebhookRequest intentInfo + * @property {google.cloud.dialogflow.cx.v3.IPageInfo|null} [pageInfo] WebhookRequest pageInfo + * @property {google.cloud.dialogflow.cx.v3.ISessionInfo|null} [sessionInfo] WebhookRequest sessionInfo + * @property {Array.|null} [messages] WebhookRequest messages + * @property {google.protobuf.IStruct|null} [payload] WebhookRequest payload + * @property {google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult|null} [sentimentAnalysisResult] WebhookRequest sentimentAnalysisResult */ /** - * Constructs a new ListVersionsRequest. + * Constructs a new WebhookRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListVersionsRequest. - * @implements IListVersionsRequest + * @classdesc Represents a WebhookRequest. + * @implements IWebhookRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListVersionsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IWebhookRequest=} [properties] Properties to set */ - function ListVersionsRequest(properties) { + function WebhookRequest(properties) { + this.messages = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63605,101 +62490,248 @@ } /** - * ListVersionsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * WebhookRequest detectIntentResponseId. + * @member {string} detectIntentResponseId + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @instance */ - ListVersionsRequest.prototype.parent = ""; + WebhookRequest.prototype.detectIntentResponseId = ""; /** - * ListVersionsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * WebhookRequest text. + * @member {string|null|undefined} text + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @instance */ - ListVersionsRequest.prototype.pageSize = 0; + WebhookRequest.prototype.text = null; /** - * ListVersionsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * WebhookRequest triggerIntent. + * @member {string|null|undefined} triggerIntent + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @instance */ - ListVersionsRequest.prototype.pageToken = ""; + WebhookRequest.prototype.triggerIntent = null; /** - * Creates a new ListVersionsRequest instance using the specified properties. + * WebhookRequest transcript. + * @member {string|null|undefined} transcript + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @instance + */ + WebhookRequest.prototype.transcript = null; + + /** + * WebhookRequest triggerEvent. + * @member {string|null|undefined} triggerEvent + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @instance + */ + WebhookRequest.prototype.triggerEvent = null; + + /** + * WebhookRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @instance + */ + WebhookRequest.prototype.languageCode = ""; + + /** + * WebhookRequest fulfillmentInfo. + * @member {google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo|null|undefined} fulfillmentInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @instance + */ + WebhookRequest.prototype.fulfillmentInfo = null; + + /** + * WebhookRequest intentInfo. + * @member {google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo|null|undefined} intentInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @instance + */ + WebhookRequest.prototype.intentInfo = null; + + /** + * WebhookRequest pageInfo. + * @member {google.cloud.dialogflow.cx.v3.IPageInfo|null|undefined} pageInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @instance + */ + WebhookRequest.prototype.pageInfo = null; + + /** + * WebhookRequest sessionInfo. + * @member {google.cloud.dialogflow.cx.v3.ISessionInfo|null|undefined} sessionInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @instance + */ + WebhookRequest.prototype.sessionInfo = null; + + /** + * WebhookRequest messages. + * @member {Array.} messages + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @instance + */ + WebhookRequest.prototype.messages = $util.emptyArray; + + /** + * WebhookRequest payload. + * @member {google.protobuf.IStruct|null|undefined} payload + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @instance + */ + WebhookRequest.prototype.payload = null; + + /** + * WebhookRequest sentimentAnalysisResult. + * @member {google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult|null|undefined} sentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @instance + */ + WebhookRequest.prototype.sentimentAnalysisResult = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * WebhookRequest query. + * @member {"text"|"triggerIntent"|"transcript"|"triggerEvent"|undefined} query + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @instance + */ + Object.defineProperty(WebhookRequest.prototype, "query", { + get: $util.oneOfGetter($oneOfFields = ["text", "triggerIntent", "transcript", "triggerEvent"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new WebhookRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListVersionsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListVersionsRequest} ListVersionsRequest instance + * @param {google.cloud.dialogflow.cx.v3.IWebhookRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest} WebhookRequest instance */ - ListVersionsRequest.create = function create(properties) { - return new ListVersionsRequest(properties); + WebhookRequest.create = function create(properties) { + return new WebhookRequest(properties); }; /** - * Encodes the specified ListVersionsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsRequest.verify|verify} messages. + * Encodes the specified WebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListVersionsRequest} message ListVersionsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IWebhookRequest} message WebhookRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListVersionsRequest.encode = function encode(message, writer) { + WebhookRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.detectIntentResponseId != null && Object.hasOwnProperty.call(message, "detectIntentResponseId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.detectIntentResponseId); + if (message.intentInfo != null && Object.hasOwnProperty.call(message, "intentInfo")) + $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.encode(message.intentInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.pageInfo != null && Object.hasOwnProperty.call(message, "pageInfo")) + $root.google.cloud.dialogflow.cx.v3.PageInfo.encode(message.pageInfo, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.sessionInfo != null && Object.hasOwnProperty.call(message, "sessionInfo")) + $root.google.cloud.dialogflow.cx.v3.SessionInfo.encode(message.sessionInfo, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.fulfillmentInfo != null && Object.hasOwnProperty.call(message, "fulfillmentInfo")) + $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.encode(message.fulfillmentInfo, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.messages != null && message.messages.length) + for (var i = 0; i < message.messages.length; ++i) + $root.google.cloud.dialogflow.cx.v3.ResponseMessage.encode(message.messages[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) + $root.google.protobuf.Struct.encode(message.payload, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.sentimentAnalysisResult != null && Object.hasOwnProperty.call(message, "sentimentAnalysisResult")) + $root.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.encode(message.sentimentAnalysisResult, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.text); + if (message.triggerIntent != null && Object.hasOwnProperty.call(message, "triggerIntent")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.triggerIntent); + if (message.transcript != null && Object.hasOwnProperty.call(message, "transcript")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.transcript); + if (message.triggerEvent != null && Object.hasOwnProperty.call(message, "triggerEvent")) + writer.uint32(/* id 14, wireType 2 =*/114).string(message.triggerEvent); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 15, wireType 2 =*/122).string(message.languageCode); return writer; }; /** - * Encodes the specified ListVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsRequest.verify|verify} messages. + * Encodes the specified WebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListVersionsRequest} message ListVersionsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IWebhookRequest} message WebhookRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListVersionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + WebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListVersionsRequest message from the specified reader or buffer. + * Decodes a WebhookRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListVersionsRequest} ListVersionsRequest + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest} WebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListVersionsRequest.decode = function decode(reader, length) { + WebhookRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListVersionsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.WebhookRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.detectIntentResponseId = reader.string(); + break; + case 10: + message.text = reader.string(); + break; + case 11: + message.triggerIntent = reader.string(); + break; + case 12: + message.transcript = reader.string(); + break; + case 14: + message.triggerEvent = reader.string(); break; - case 2: - message.pageSize = reader.int32(); + case 15: + message.languageCode = reader.string(); + break; + case 6: + message.fulfillmentInfo = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.decode(reader, reader.uint32()); break; case 3: - message.pageToken = reader.string(); + message.intentInfo = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.decode(reader, reader.uint32()); + break; + case 4: + message.pageInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.decode(reader, reader.uint32()); + break; + case 5: + message.sessionInfo = $root.google.cloud.dialogflow.cx.v3.SessionInfo.decode(reader, reader.uint32()); + break; + case 7: + if (!(message.messages && message.messages.length)) + message.messages = []; + message.messages.push($root.google.cloud.dialogflow.cx.v3.ResponseMessage.decode(reader, reader.uint32())); + break; + case 8: + message.payload = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 9: + message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -63710,758 +62742,1189 @@ }; /** - * Decodes a ListVersionsRequest message from the specified reader or buffer, length delimited. + * Decodes a WebhookRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListVersionsRequest} ListVersionsRequest + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest} WebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListVersionsRequest.decodeDelimited = function decodeDelimited(reader) { + WebhookRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListVersionsRequest message. + * Verifies a WebhookRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListVersionsRequest.verify = function verify(message) { + WebhookRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + var properties = {}; + if (message.detectIntentResponseId != null && message.hasOwnProperty("detectIntentResponseId")) + if (!$util.isString(message.detectIntentResponseId)) + return "detectIntentResponseId: string expected"; + if (message.text != null && message.hasOwnProperty("text")) { + properties.query = 1; + if (!$util.isString(message.text)) + return "text: string expected"; + } + if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { + if (properties.query === 1) + return "query: multiple values"; + properties.query = 1; + if (!$util.isString(message.triggerIntent)) + return "triggerIntent: string expected"; + } + if (message.transcript != null && message.hasOwnProperty("transcript")) { + if (properties.query === 1) + return "query: multiple values"; + properties.query = 1; + if (!$util.isString(message.transcript)) + return "transcript: string expected"; + } + if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { + if (properties.query === 1) + return "query: multiple values"; + properties.query = 1; + if (!$util.isString(message.triggerEvent)) + return "triggerEvent: string expected"; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + if (message.fulfillmentInfo != null && message.hasOwnProperty("fulfillmentInfo")) { + var error = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.verify(message.fulfillmentInfo); + if (error) + return "fulfillmentInfo." + error; + } + if (message.intentInfo != null && message.hasOwnProperty("intentInfo")) { + var error = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.verify(message.intentInfo); + if (error) + return "intentInfo." + error; + } + if (message.pageInfo != null && message.hasOwnProperty("pageInfo")) { + var error = $root.google.cloud.dialogflow.cx.v3.PageInfo.verify(message.pageInfo); + if (error) + return "pageInfo." + error; + } + if (message.sessionInfo != null && message.hasOwnProperty("sessionInfo")) { + var error = $root.google.cloud.dialogflow.cx.v3.SessionInfo.verify(message.sessionInfo); + if (error) + return "sessionInfo." + error; + } + if (message.messages != null && message.hasOwnProperty("messages")) { + if (!Array.isArray(message.messages)) + return "messages: array expected"; + for (var i = 0; i < message.messages.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.verify(message.messages[i]); + if (error) + return "messages." + error; + } + } + if (message.payload != null && message.hasOwnProperty("payload")) { + var error = $root.google.protobuf.Struct.verify(message.payload); + if (error) + return "payload." + error; + } + if (message.sentimentAnalysisResult != null && message.hasOwnProperty("sentimentAnalysisResult")) { + var error = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.verify(message.sentimentAnalysisResult); + if (error) + return "sentimentAnalysisResult." + error; + } return null; }; /** - * Creates a ListVersionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a WebhookRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListVersionsRequest} ListVersionsRequest + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest} WebhookRequest */ - ListVersionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListVersionsRequest) + WebhookRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListVersionsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.dialogflow.cx.v3.WebhookRequest(); + if (object.detectIntentResponseId != null) + message.detectIntentResponseId = String(object.detectIntentResponseId); + if (object.text != null) + message.text = String(object.text); + if (object.triggerIntent != null) + message.triggerIntent = String(object.triggerIntent); + if (object.transcript != null) + message.transcript = String(object.transcript); + if (object.triggerEvent != null) + message.triggerEvent = String(object.triggerEvent); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + if (object.fulfillmentInfo != null) { + if (typeof object.fulfillmentInfo !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.fulfillmentInfo: object expected"); + message.fulfillmentInfo = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.fromObject(object.fulfillmentInfo); + } + if (object.intentInfo != null) { + if (typeof object.intentInfo !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.intentInfo: object expected"); + message.intentInfo = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.fromObject(object.intentInfo); + } + if (object.pageInfo != null) { + if (typeof object.pageInfo !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.pageInfo: object expected"); + message.pageInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.fromObject(object.pageInfo); + } + if (object.sessionInfo != null) { + if (typeof object.sessionInfo !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.sessionInfo: object expected"); + message.sessionInfo = $root.google.cloud.dialogflow.cx.v3.SessionInfo.fromObject(object.sessionInfo); + } + if (object.messages) { + if (!Array.isArray(object.messages)) + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.messages: array expected"); + message.messages = []; + for (var i = 0; i < object.messages.length; ++i) { + if (typeof object.messages[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.messages: object expected"); + message.messages[i] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.fromObject(object.messages[i]); + } + } + if (object.payload != null) { + if (typeof object.payload !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.payload: object expected"); + message.payload = $root.google.protobuf.Struct.fromObject(object.payload); + } + if (object.sentimentAnalysisResult != null) { + if (typeof object.sentimentAnalysisResult !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.sentimentAnalysisResult: object expected"); + message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.fromObject(object.sentimentAnalysisResult); + } return message; }; /** - * Creates a plain object from a ListVersionsRequest message. Also converts values to other types if specified. + * Creates a plain object from a WebhookRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ListVersionsRequest} message ListVersionsRequest + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest} message WebhookRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListVersionsRequest.toObject = function toObject(message, options) { + WebhookRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.messages = []; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.detectIntentResponseId = ""; + object.intentInfo = null; + object.pageInfo = null; + object.sessionInfo = null; + object.fulfillmentInfo = null; + object.payload = null; + object.sentimentAnalysisResult = null; + object.languageCode = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.detectIntentResponseId != null && message.hasOwnProperty("detectIntentResponseId")) + object.detectIntentResponseId = message.detectIntentResponseId; + if (message.intentInfo != null && message.hasOwnProperty("intentInfo")) + object.intentInfo = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.toObject(message.intentInfo, options); + if (message.pageInfo != null && message.hasOwnProperty("pageInfo")) + object.pageInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.toObject(message.pageInfo, options); + if (message.sessionInfo != null && message.hasOwnProperty("sessionInfo")) + object.sessionInfo = $root.google.cloud.dialogflow.cx.v3.SessionInfo.toObject(message.sessionInfo, options); + if (message.fulfillmentInfo != null && message.hasOwnProperty("fulfillmentInfo")) + object.fulfillmentInfo = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.toObject(message.fulfillmentInfo, options); + if (message.messages && message.messages.length) { + object.messages = []; + for (var j = 0; j < message.messages.length; ++j) + object.messages[j] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.toObject(message.messages[j], options); + } + if (message.payload != null && message.hasOwnProperty("payload")) + object.payload = $root.google.protobuf.Struct.toObject(message.payload, options); + if (message.sentimentAnalysisResult != null && message.hasOwnProperty("sentimentAnalysisResult")) + object.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.toObject(message.sentimentAnalysisResult, options); + if (message.text != null && message.hasOwnProperty("text")) { + object.text = message.text; + if (options.oneofs) + object.query = "text"; + } + if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { + object.triggerIntent = message.triggerIntent; + if (options.oneofs) + object.query = "triggerIntent"; + } + if (message.transcript != null && message.hasOwnProperty("transcript")) { + object.transcript = message.transcript; + if (options.oneofs) + object.query = "transcript"; + } + if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { + object.triggerEvent = message.triggerEvent; + if (options.oneofs) + object.query = "triggerEvent"; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this ListVersionsRequest to JSON. + * Converts this WebhookRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @instance * @returns {Object.} JSON object */ - ListVersionsRequest.prototype.toJSON = function toJSON() { + WebhookRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListVersionsRequest; - })(); + WebhookRequest.FulfillmentInfo = (function() { - v3.ListVersionsResponse = (function() { + /** + * Properties of a FulfillmentInfo. + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @interface IFulfillmentInfo + * @property {string|null} [tag] FulfillmentInfo tag + */ - /** - * Properties of a ListVersionsResponse. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListVersionsResponse - * @property {Array.|null} [versions] ListVersionsResponse versions - * @property {string|null} [nextPageToken] ListVersionsResponse nextPageToken - */ + /** + * Constructs a new FulfillmentInfo. + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @classdesc Represents a FulfillmentInfo. + * @implements IFulfillmentInfo + * @constructor + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo=} [properties] Properties to set + */ + function FulfillmentInfo(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new ListVersionsResponse. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListVersionsResponse. - * @implements IListVersionsResponse - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListVersionsResponse=} [properties] Properties to set - */ - function ListVersionsResponse(properties) { - this.versions = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * FulfillmentInfo tag. + * @member {string} tag + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo + * @instance + */ + FulfillmentInfo.prototype.tag = ""; + + /** + * Creates a new FulfillmentInfo instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo + * @static + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo} FulfillmentInfo instance + */ + FulfillmentInfo.create = function create(properties) { + return new FulfillmentInfo(properties); + }; + + /** + * Encodes the specified FulfillmentInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo + * @static + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo} message FulfillmentInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FulfillmentInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tag != null && Object.hasOwnProperty.call(message, "tag")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.tag); + return writer; + }; + + /** + * Encodes the specified FulfillmentInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo + * @static + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo} message FulfillmentInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FulfillmentInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FulfillmentInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo} FulfillmentInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FulfillmentInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tag = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FulfillmentInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo} FulfillmentInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FulfillmentInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FulfillmentInfo message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FulfillmentInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.tag != null && message.hasOwnProperty("tag")) + if (!$util.isString(message.tag)) + return "tag: string expected"; + return null; + }; + + /** + * Creates a FulfillmentInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo} FulfillmentInfo + */ + FulfillmentInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo(); + if (object.tag != null) + message.tag = String(object.tag); + return message; + }; + + /** + * Creates a plain object from a FulfillmentInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo + * @static + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo} message FulfillmentInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FulfillmentInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.tag = ""; + if (message.tag != null && message.hasOwnProperty("tag")) + object.tag = message.tag; + return object; + }; + + /** + * Converts this FulfillmentInfo to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo + * @instance + * @returns {Object.} JSON object + */ + FulfillmentInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return FulfillmentInfo; + })(); + + WebhookRequest.IntentInfo = (function() { + + /** + * Properties of an IntentInfo. + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @interface IIntentInfo + * @property {string|null} [lastMatchedIntent] IntentInfo lastMatchedIntent + * @property {string|null} [displayName] IntentInfo displayName + * @property {Object.|null} [parameters] IntentInfo parameters + * @property {number|null} [confidence] IntentInfo confidence + */ + + /** + * Constructs a new IntentInfo. + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @classdesc Represents an IntentInfo. + * @implements IIntentInfo + * @constructor + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo=} [properties] Properties to set + */ + function IntentInfo(properties) { + this.parameters = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * IntentInfo lastMatchedIntent. + * @member {string} lastMatchedIntent + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @instance + */ + IntentInfo.prototype.lastMatchedIntent = ""; + + /** + * IntentInfo displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @instance + */ + IntentInfo.prototype.displayName = ""; - /** - * ListVersionsResponse versions. - * @member {Array.} versions - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse - * @instance - */ - ListVersionsResponse.prototype.versions = $util.emptyArray; + /** + * IntentInfo parameters. + * @member {Object.} parameters + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @instance + */ + IntentInfo.prototype.parameters = $util.emptyObject; - /** - * ListVersionsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse - * @instance - */ - ListVersionsResponse.prototype.nextPageToken = ""; + /** + * IntentInfo confidence. + * @member {number} confidence + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @instance + */ + IntentInfo.prototype.confidence = 0; - /** - * Creates a new ListVersionsResponse instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.IListVersionsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListVersionsResponse} ListVersionsResponse instance - */ - ListVersionsResponse.create = function create(properties) { - return new ListVersionsResponse(properties); - }; + /** + * Creates a new IntentInfo instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @static + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo} IntentInfo instance + */ + IntentInfo.create = function create(properties) { + return new IntentInfo(properties); + }; - /** - * Encodes the specified ListVersionsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.IListVersionsResponse} message ListVersionsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListVersionsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.versions != null && message.versions.length) - for (var i = 0; i < message.versions.length; ++i) - $root.google.cloud.dialogflow.cx.v3.Version.encode(message.versions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - return writer; - }; + /** + * Encodes the specified IntentInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @static + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo} message IntentInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IntentInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.lastMatchedIntent != null && Object.hasOwnProperty.call(message, "lastMatchedIntent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.lastMatchedIntent); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + for (var keys = Object.keys(message.parameters), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.encode(message.parameters[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + writer.uint32(/* id 4, wireType 5 =*/37).float(message.confidence); + return writer; + }; - /** - * Encodes the specified ListVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.IListVersionsResponse} message ListVersionsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListVersionsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified IntentInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @static + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo} message IntentInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IntentInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a ListVersionsResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListVersionsResponse} ListVersionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListVersionsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListVersionsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.versions && message.versions.length)) - message.versions = []; - message.versions.push($root.google.cloud.dialogflow.cx.v3.Version.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Decodes an IntentInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo} IntentInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IntentInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.lastMatchedIntent = reader.string(); + break; + case 3: + message.displayName = reader.string(); + break; + case 2: + if (message.parameters === $util.emptyObject) + message.parameters = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.parameters[key] = value; + break; + case 4: + message.confidence = reader.float(); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a ListVersionsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListVersionsResponse} ListVersionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListVersionsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes an IntentInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo} IntentInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IntentInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a ListVersionsResponse message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListVersionsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.versions != null && message.hasOwnProperty("versions")) { - if (!Array.isArray(message.versions)) - return "versions: array expected"; - for (var i = 0; i < message.versions.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.Version.verify(message.versions[i]); - if (error) - return "versions." + error; + /** + * Verifies an IntentInfo message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IntentInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.lastMatchedIntent != null && message.hasOwnProperty("lastMatchedIntent")) + if (!$util.isString(message.lastMatchedIntent)) + return "lastMatchedIntent: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.parameters != null && message.hasOwnProperty("parameters")) { + if (!$util.isObject(message.parameters)) + return "parameters: object expected"; + var key = Object.keys(message.parameters); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.verify(message.parameters[key[i]]); + if (error) + return "parameters." + error; + } } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; + if (message.confidence != null && message.hasOwnProperty("confidence")) + if (typeof message.confidence !== "number") + return "confidence: number expected"; + return null; + }; - /** - * Creates a ListVersionsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListVersionsResponse} ListVersionsResponse - */ - ListVersionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListVersionsResponse) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListVersionsResponse(); - if (object.versions) { - if (!Array.isArray(object.versions)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ListVersionsResponse.versions: array expected"); - message.versions = []; - for (var i = 0; i < object.versions.length; ++i) { - if (typeof object.versions[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ListVersionsResponse.versions: object expected"); - message.versions[i] = $root.google.cloud.dialogflow.cx.v3.Version.fromObject(object.versions[i]); + /** + * Creates an IntentInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo} IntentInfo + */ + IntentInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo(); + if (object.lastMatchedIntent != null) + message.lastMatchedIntent = String(object.lastMatchedIntent); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.parameters) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.parameters: object expected"); + message.parameters = {}; + for (var keys = Object.keys(object.parameters), i = 0; i < keys.length; ++i) { + if (typeof object.parameters[keys[i]] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.parameters: object expected"); + message.parameters[keys[i]] = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.fromObject(object.parameters[keys[i]]); + } } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; + if (object.confidence != null) + message.confidence = Number(object.confidence); + return message; + }; - /** - * Creates a plain object from a ListVersionsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.ListVersionsResponse} message ListVersionsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListVersionsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.versions = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.versions && message.versions.length) { - object.versions = []; - for (var j = 0; j < message.versions.length; ++j) - object.versions[j] = $root.google.cloud.dialogflow.cx.v3.Version.toObject(message.versions[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; + /** + * Creates a plain object from an IntentInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @static + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo} message IntentInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IntentInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.parameters = {}; + if (options.defaults) { + object.lastMatchedIntent = ""; + object.displayName = ""; + object.confidence = 0; + } + if (message.lastMatchedIntent != null && message.hasOwnProperty("lastMatchedIntent")) + object.lastMatchedIntent = message.lastMatchedIntent; + var keys2; + if (message.parameters && (keys2 = Object.keys(message.parameters)).length) { + object.parameters = {}; + for (var j = 0; j < keys2.length; ++j) + object.parameters[keys2[j]] = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.toObject(message.parameters[keys2[j]], options); + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.confidence != null && message.hasOwnProperty("confidence")) + object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; + return object; + }; - /** - * Converts this ListVersionsResponse to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse - * @instance - * @returns {Object.} JSON object - */ - ListVersionsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this IntentInfo to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @instance + * @returns {Object.} JSON object + */ + IntentInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ListVersionsResponse; - })(); + IntentInfo.IntentParameterValue = (function() { - v3.GetVersionRequest = (function() { + /** + * Properties of an IntentParameterValue. + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @interface IIntentParameterValue + * @property {string|null} [originalValue] IntentParameterValue originalValue + * @property {google.protobuf.IValue|null} [resolvedValue] IntentParameterValue resolvedValue + */ - /** - * Properties of a GetVersionRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IGetVersionRequest - * @property {string|null} [name] GetVersionRequest name - */ + /** + * Constructs a new IntentParameterValue. + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @classdesc Represents an IntentParameterValue. + * @implements IIntentParameterValue + * @constructor + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue=} [properties] Properties to set + */ + function IntentParameterValue(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new GetVersionRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a GetVersionRequest. - * @implements IGetVersionRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IGetVersionRequest=} [properties] Properties to set - */ - function GetVersionRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * IntentParameterValue originalValue. + * @member {string} originalValue + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue + * @instance + */ + IntentParameterValue.prototype.originalValue = ""; - /** - * GetVersionRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest - * @instance - */ - GetVersionRequest.prototype.name = ""; + /** + * IntentParameterValue resolvedValue. + * @member {google.protobuf.IValue|null|undefined} resolvedValue + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue + * @instance + */ + IntentParameterValue.prototype.resolvedValue = null; - /** - * Creates a new GetVersionRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IGetVersionRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.GetVersionRequest} GetVersionRequest instance - */ - GetVersionRequest.create = function create(properties) { - return new GetVersionRequest(properties); - }; + /** + * Creates a new IntentParameterValue instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue + * @static + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue} IntentParameterValue instance + */ + IntentParameterValue.create = function create(properties) { + return new IntentParameterValue(properties); + }; - /** - * Encodes the specified GetVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetVersionRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IGetVersionRequest} message GetVersionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetVersionRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; + /** + * Encodes the specified IntentParameterValue message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue + * @static + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue} message IntentParameterValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IntentParameterValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.originalValue != null && Object.hasOwnProperty.call(message, "originalValue")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.originalValue); + if (message.resolvedValue != null && Object.hasOwnProperty.call(message, "resolvedValue")) + $root.google.protobuf.Value.encode(message.resolvedValue, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified GetVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetVersionRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IGetVersionRequest} message GetVersionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified IntentParameterValue message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue + * @static + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue} message IntentParameterValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IntentParameterValue.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a GetVersionRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.GetVersionRequest} GetVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetVersionRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetVersionRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Decodes an IntentParameterValue message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue} IntentParameterValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IntentParameterValue.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.originalValue = reader.string(); + break; + case 2: + message.resolvedValue = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Decodes a GetVersionRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.GetVersionRequest} GetVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetVersionRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes an IntentParameterValue message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue} IntentParameterValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IntentParameterValue.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a GetVersionRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetVersionRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; + /** + * Verifies an IntentParameterValue message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IntentParameterValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.originalValue != null && message.hasOwnProperty("originalValue")) + if (!$util.isString(message.originalValue)) + return "originalValue: string expected"; + if (message.resolvedValue != null && message.hasOwnProperty("resolvedValue")) { + var error = $root.google.protobuf.Value.verify(message.resolvedValue); + if (error) + return "resolvedValue." + error; + } + return null; + }; - /** - * Creates a GetVersionRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.GetVersionRequest} GetVersionRequest - */ - GetVersionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetVersionRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.GetVersionRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + /** + * Creates an IntentParameterValue message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue} IntentParameterValue + */ + IntentParameterValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue(); + if (object.originalValue != null) + message.originalValue = String(object.originalValue); + if (object.resolvedValue != null) { + if (typeof object.resolvedValue !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.resolvedValue: object expected"); + message.resolvedValue = $root.google.protobuf.Value.fromObject(object.resolvedValue); + } + return message; + }; - /** - * Creates a plain object from a GetVersionRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.GetVersionRequest} message GetVersionRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetVersionRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + /** + * Creates a plain object from an IntentParameterValue message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue + * @static + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue} message IntentParameterValue + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IntentParameterValue.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.originalValue = ""; + object.resolvedValue = null; + } + if (message.originalValue != null && message.hasOwnProperty("originalValue")) + object.originalValue = message.originalValue; + if (message.resolvedValue != null && message.hasOwnProperty("resolvedValue")) + object.resolvedValue = $root.google.protobuf.Value.toObject(message.resolvedValue, options); + return object; + }; - /** - * Converts this GetVersionRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest - * @instance - * @returns {Object.} JSON object - */ - GetVersionRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this IntentParameterValue to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue + * @instance + * @returns {Object.} JSON object + */ + IntentParameterValue.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return GetVersionRequest; - })(); + return IntentParameterValue; + })(); - v3.CreateVersionRequest = (function() { + return IntentInfo; + })(); - /** - * Properties of a CreateVersionRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface ICreateVersionRequest - * @property {string|null} [parent] CreateVersionRequest parent - * @property {google.cloud.dialogflow.cx.v3.IVersion|null} [version] CreateVersionRequest version - */ + WebhookRequest.SentimentAnalysisResult = (function() { - /** - * Constructs a new CreateVersionRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CreateVersionRequest. - * @implements ICreateVersionRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICreateVersionRequest=} [properties] Properties to set - */ - function CreateVersionRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a SentimentAnalysisResult. + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @interface ISentimentAnalysisResult + * @property {number|null} [score] SentimentAnalysisResult score + * @property {number|null} [magnitude] SentimentAnalysisResult magnitude + */ - /** - * CreateVersionRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest - * @instance - */ - CreateVersionRequest.prototype.parent = ""; + /** + * Constructs a new SentimentAnalysisResult. + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @classdesc Represents a SentimentAnalysisResult. + * @implements ISentimentAnalysisResult + * @constructor + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult=} [properties] Properties to set + */ + function SentimentAnalysisResult(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * CreateVersionRequest version. - * @member {google.cloud.dialogflow.cx.v3.IVersion|null|undefined} version - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest - * @instance - */ - CreateVersionRequest.prototype.version = null; + /** + * SentimentAnalysisResult score. + * @member {number} score + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult + * @instance + */ + SentimentAnalysisResult.prototype.score = 0; - /** - * Creates a new CreateVersionRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateVersionRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.CreateVersionRequest} CreateVersionRequest instance - */ - CreateVersionRequest.create = function create(properties) { - return new CreateVersionRequest(properties); - }; + /** + * SentimentAnalysisResult magnitude. + * @member {number} magnitude + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult + * @instance + */ + SentimentAnalysisResult.prototype.magnitude = 0; - /** - * Encodes the specified CreateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateVersionRequest} message CreateVersionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateVersionRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - $root.google.cloud.dialogflow.cx.v3.Version.encode(message.version, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Creates a new SentimentAnalysisResult instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult + * @static + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult} SentimentAnalysisResult instance + */ + SentimentAnalysisResult.create = function create(properties) { + return new SentimentAnalysisResult(properties); + }; - /** - * Encodes the specified CreateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateVersionRequest} message CreateVersionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified SentimentAnalysisResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult + * @static + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult} message SentimentAnalysisResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SentimentAnalysisResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); + if (message.magnitude != null && Object.hasOwnProperty.call(message, "magnitude")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.magnitude); + return writer; + }; - /** - * Decodes a CreateVersionRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.CreateVersionRequest} CreateVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateVersionRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateVersionRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.version = $root.google.cloud.dialogflow.cx.v3.Version.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Encodes the specified SentimentAnalysisResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult + * @static + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult} message SentimentAnalysisResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SentimentAnalysisResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SentimentAnalysisResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult} SentimentAnalysisResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SentimentAnalysisResult.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.score = reader.float(); + break; + case 2: + message.magnitude = reader.float(); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; + + /** + * Decodes a SentimentAnalysisResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult} SentimentAnalysisResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SentimentAnalysisResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a CreateVersionRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.CreateVersionRequest} CreateVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateVersionRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Verifies a SentimentAnalysisResult message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SentimentAnalysisResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.score != null && message.hasOwnProperty("score")) + if (typeof message.score !== "number") + return "score: number expected"; + if (message.magnitude != null && message.hasOwnProperty("magnitude")) + if (typeof message.magnitude !== "number") + return "magnitude: number expected"; + return null; + }; - /** - * Verifies a CreateVersionRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateVersionRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.version != null && message.hasOwnProperty("version")) { - var error = $root.google.cloud.dialogflow.cx.v3.Version.verify(message.version); - if (error) - return "version." + error; - } - return null; - }; + /** + * Creates a SentimentAnalysisResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult} SentimentAnalysisResult + */ + SentimentAnalysisResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult(); + if (object.score != null) + message.score = Number(object.score); + if (object.magnitude != null) + message.magnitude = Number(object.magnitude); + return message; + }; - /** - * Creates a CreateVersionRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CreateVersionRequest} CreateVersionRequest - */ - CreateVersionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateVersionRequest) + /** + * Creates a plain object from a SentimentAnalysisResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult + * @static + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult} message SentimentAnalysisResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SentimentAnalysisResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.score = 0; + object.magnitude = 0; + } + if (message.score != null && message.hasOwnProperty("score")) + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (message.magnitude != null && message.hasOwnProperty("magnitude")) + object.magnitude = options.json && !isFinite(message.magnitude) ? String(message.magnitude) : message.magnitude; return object; - var message = new $root.google.cloud.dialogflow.cx.v3.CreateVersionRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.version != null) { - if (typeof object.version !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CreateVersionRequest.version: object expected"); - message.version = $root.google.cloud.dialogflow.cx.v3.Version.fromObject(object.version); - } - return message; - }; + }; - /** - * Creates a plain object from a CreateVersionRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.CreateVersionRequest} message CreateVersionRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CreateVersionRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.version = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.version != null && message.hasOwnProperty("version")) - object.version = $root.google.cloud.dialogflow.cx.v3.Version.toObject(message.version, options); - return object; - }; + /** + * Converts this SentimentAnalysisResult to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult + * @instance + * @returns {Object.} JSON object + */ + SentimentAnalysisResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this CreateVersionRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest - * @instance - * @returns {Object.} JSON object - */ - CreateVersionRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return SentimentAnalysisResult; + })(); - return CreateVersionRequest; + return WebhookRequest; })(); - v3.UpdateVersionRequest = (function() { + v3.WebhookResponse = (function() { /** - * Properties of an UpdateVersionRequest. + * Properties of a WebhookResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IUpdateVersionRequest - * @property {google.cloud.dialogflow.cx.v3.IVersion|null} [version] UpdateVersionRequest version - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateVersionRequest updateMask + * @interface IWebhookResponse + * @property {google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse|null} [fulfillmentResponse] WebhookResponse fulfillmentResponse + * @property {google.cloud.dialogflow.cx.v3.IPageInfo|null} [pageInfo] WebhookResponse pageInfo + * @property {google.cloud.dialogflow.cx.v3.ISessionInfo|null} [sessionInfo] WebhookResponse sessionInfo + * @property {google.protobuf.IStruct|null} [payload] WebhookResponse payload + * @property {string|null} [targetPage] WebhookResponse targetPage + * @property {string|null} [targetFlow] WebhookResponse targetFlow */ /** - * Constructs a new UpdateVersionRequest. + * Constructs a new WebhookResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an UpdateVersionRequest. - * @implements IUpdateVersionRequest + * @classdesc Represents a WebhookResponse. + * @implements IWebhookResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IUpdateVersionRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IWebhookResponse=} [properties] Properties to set */ - function UpdateVersionRequest(properties) { + function WebhookResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64469,294 +63932,154 @@ } /** - * UpdateVersionRequest version. - * @member {google.cloud.dialogflow.cx.v3.IVersion|null|undefined} version - * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest + * WebhookResponse fulfillmentResponse. + * @member {google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse|null|undefined} fulfillmentResponse + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @instance */ - UpdateVersionRequest.prototype.version = null; + WebhookResponse.prototype.fulfillmentResponse = null; /** - * UpdateVersionRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest + * WebhookResponse pageInfo. + * @member {google.cloud.dialogflow.cx.v3.IPageInfo|null|undefined} pageInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @instance */ - UpdateVersionRequest.prototype.updateMask = null; - - /** - * Creates a new UpdateVersionRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateVersionRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.UpdateVersionRequest} UpdateVersionRequest instance - */ - UpdateVersionRequest.create = function create(properties) { - return new UpdateVersionRequest(properties); - }; - - /** - * Encodes the specified UpdateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateVersionRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateVersionRequest} message UpdateVersionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateVersionRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - $root.google.cloud.dialogflow.cx.v3.Version.encode(message.version, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified UpdateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateVersionRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateVersionRequest} message UpdateVersionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an UpdateVersionRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.UpdateVersionRequest} UpdateVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateVersionRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateVersionRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.version = $root.google.cloud.dialogflow.cx.v3.Version.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an UpdateVersionRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.UpdateVersionRequest} UpdateVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateVersionRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UpdateVersionRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UpdateVersionRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.version != null && message.hasOwnProperty("version")) { - var error = $root.google.cloud.dialogflow.cx.v3.Version.verify(message.version); - if (error) - return "version." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } - return null; - }; + WebhookResponse.prototype.pageInfo = null; /** - * Creates an UpdateVersionRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.UpdateVersionRequest} UpdateVersionRequest + * WebhookResponse sessionInfo. + * @member {google.cloud.dialogflow.cx.v3.ISessionInfo|null|undefined} sessionInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @instance */ - UpdateVersionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateVersionRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.UpdateVersionRequest(); - if (object.version != null) { - if (typeof object.version !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateVersionRequest.version: object expected"); - message.version = $root.google.cloud.dialogflow.cx.v3.Version.fromObject(object.version); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateVersionRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - return message; - }; + WebhookResponse.prototype.sessionInfo = null; /** - * Creates a plain object from an UpdateVersionRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.UpdateVersionRequest} message UpdateVersionRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * WebhookResponse payload. + * @member {google.protobuf.IStruct|null|undefined} payload + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @instance */ - UpdateVersionRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.version = null; - object.updateMask = null; - } - if (message.version != null && message.hasOwnProperty("version")) - object.version = $root.google.cloud.dialogflow.cx.v3.Version.toObject(message.version, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - return object; - }; + WebhookResponse.prototype.payload = null; /** - * Converts this UpdateVersionRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest + * WebhookResponse targetPage. + * @member {string|null|undefined} targetPage + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @instance - * @returns {Object.} JSON object */ - UpdateVersionRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return UpdateVersionRequest; - })(); - - v3.DeleteVersionRequest = (function() { + WebhookResponse.prototype.targetPage = null; /** - * Properties of a DeleteVersionRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDeleteVersionRequest - * @property {string|null} [name] DeleteVersionRequest name + * WebhookResponse targetFlow. + * @member {string|null|undefined} targetFlow + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @instance */ + WebhookResponse.prototype.targetFlow = null; - /** - * Constructs a new DeleteVersionRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DeleteVersionRequest. - * @implements IDeleteVersionRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest=} [properties] Properties to set - */ - function DeleteVersionRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * DeleteVersionRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest + * WebhookResponse transition. + * @member {"targetPage"|"targetFlow"|undefined} transition + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @instance */ - DeleteVersionRequest.prototype.name = ""; + Object.defineProperty(WebhookResponse.prototype, "transition", { + get: $util.oneOfGetter($oneOfFields = ["targetPage", "targetFlow"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new DeleteVersionRequest instance using the specified properties. + * Creates a new WebhookResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.DeleteVersionRequest} DeleteVersionRequest instance + * @param {google.cloud.dialogflow.cx.v3.IWebhookResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse} WebhookResponse instance */ - DeleteVersionRequest.create = function create(properties) { - return new DeleteVersionRequest(properties); + WebhookResponse.create = function create(properties) { + return new WebhookResponse(properties); }; /** - * Encodes the specified DeleteVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteVersionRequest.verify|verify} messages. + * Encodes the specified WebhookResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest} message DeleteVersionRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IWebhookResponse} message WebhookResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteVersionRequest.encode = function encode(message, writer) { + WebhookResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.fulfillmentResponse != null && Object.hasOwnProperty.call(message, "fulfillmentResponse")) + $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.encode(message.fulfillmentResponse, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pageInfo != null && Object.hasOwnProperty.call(message, "pageInfo")) + $root.google.cloud.dialogflow.cx.v3.PageInfo.encode(message.pageInfo, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.sessionInfo != null && Object.hasOwnProperty.call(message, "sessionInfo")) + $root.google.cloud.dialogflow.cx.v3.SessionInfo.encode(message.sessionInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) + $root.google.protobuf.Struct.encode(message.payload, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.targetPage != null && Object.hasOwnProperty.call(message, "targetPage")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.targetPage); + if (message.targetFlow != null && Object.hasOwnProperty.call(message, "targetFlow")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.targetFlow); return writer; }; /** - * Encodes the specified DeleteVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteVersionRequest.verify|verify} messages. + * Encodes the specified WebhookResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest} message DeleteVersionRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IWebhookResponse} message WebhookResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { + WebhookResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteVersionRequest message from the specified reader or buffer. + * Decodes a WebhookResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.DeleteVersionRequest} DeleteVersionRequest + * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse} WebhookResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteVersionRequest.decode = function decode(reader, length) { + WebhookResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteVersionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.WebhookResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.fulfillmentResponse = $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.decode(reader, reader.uint32()); + break; + case 2: + message.pageInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.decode(reader, reader.uint32()); + break; + case 3: + message.sessionInfo = $root.google.cloud.dialogflow.cx.v3.SessionInfo.decode(reader, reader.uint32()); + break; + case 4: + message.payload = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 5: + message.targetPage = reader.string(); + break; + case 6: + message.targetFlow = reader.string(); break; default: reader.skipType(tag & 7); @@ -64767,108 +64090,446 @@ }; /** - * Decodes a DeleteVersionRequest message from the specified reader or buffer, length delimited. + * Decodes a WebhookResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.DeleteVersionRequest} DeleteVersionRequest + * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse} WebhookResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteVersionRequest.decodeDelimited = function decodeDelimited(reader) { + WebhookResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteVersionRequest message. + * Verifies a WebhookResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteVersionRequest.verify = function verify(message) { + WebhookResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + var properties = {}; + if (message.fulfillmentResponse != null && message.hasOwnProperty("fulfillmentResponse")) { + var error = $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.verify(message.fulfillmentResponse); + if (error) + return "fulfillmentResponse." + error; + } + if (message.pageInfo != null && message.hasOwnProperty("pageInfo")) { + var error = $root.google.cloud.dialogflow.cx.v3.PageInfo.verify(message.pageInfo); + if (error) + return "pageInfo." + error; + } + if (message.sessionInfo != null && message.hasOwnProperty("sessionInfo")) { + var error = $root.google.cloud.dialogflow.cx.v3.SessionInfo.verify(message.sessionInfo); + if (error) + return "sessionInfo." + error; + } + if (message.payload != null && message.hasOwnProperty("payload")) { + var error = $root.google.protobuf.Struct.verify(message.payload); + if (error) + return "payload." + error; + } + if (message.targetPage != null && message.hasOwnProperty("targetPage")) { + properties.transition = 1; + if (!$util.isString(message.targetPage)) + return "targetPage: string expected"; + } + if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { + if (properties.transition === 1) + return "transition: multiple values"; + properties.transition = 1; + if (!$util.isString(message.targetFlow)) + return "targetFlow: string expected"; + } return null; }; /** - * Creates a DeleteVersionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a WebhookResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DeleteVersionRequest} DeleteVersionRequest + * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse} WebhookResponse */ - DeleteVersionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteVersionRequest) + WebhookResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.DeleteVersionRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3.WebhookResponse(); + if (object.fulfillmentResponse != null) { + if (typeof object.fulfillmentResponse !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookResponse.fulfillmentResponse: object expected"); + message.fulfillmentResponse = $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.fromObject(object.fulfillmentResponse); + } + if (object.pageInfo != null) { + if (typeof object.pageInfo !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookResponse.pageInfo: object expected"); + message.pageInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.fromObject(object.pageInfo); + } + if (object.sessionInfo != null) { + if (typeof object.sessionInfo !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookResponse.sessionInfo: object expected"); + message.sessionInfo = $root.google.cloud.dialogflow.cx.v3.SessionInfo.fromObject(object.sessionInfo); + } + if (object.payload != null) { + if (typeof object.payload !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookResponse.payload: object expected"); + message.payload = $root.google.protobuf.Struct.fromObject(object.payload); + } + if (object.targetPage != null) + message.targetPage = String(object.targetPage); + if (object.targetFlow != null) + message.targetFlow = String(object.targetFlow); return message; }; /** - * Creates a plain object from a DeleteVersionRequest message. Also converts values to other types if specified. + * Creates a plain object from a WebhookResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @static - * @param {google.cloud.dialogflow.cx.v3.DeleteVersionRequest} message DeleteVersionRequest + * @param {google.cloud.dialogflow.cx.v3.WebhookResponse} message WebhookResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteVersionRequest.toObject = function toObject(message, options) { + WebhookResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.fulfillmentResponse = null; + object.pageInfo = null; + object.sessionInfo = null; + object.payload = null; + } + if (message.fulfillmentResponse != null && message.hasOwnProperty("fulfillmentResponse")) + object.fulfillmentResponse = $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.toObject(message.fulfillmentResponse, options); + if (message.pageInfo != null && message.hasOwnProperty("pageInfo")) + object.pageInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.toObject(message.pageInfo, options); + if (message.sessionInfo != null && message.hasOwnProperty("sessionInfo")) + object.sessionInfo = $root.google.cloud.dialogflow.cx.v3.SessionInfo.toObject(message.sessionInfo, options); + if (message.payload != null && message.hasOwnProperty("payload")) + object.payload = $root.google.protobuf.Struct.toObject(message.payload, options); + if (message.targetPage != null && message.hasOwnProperty("targetPage")) { + object.targetPage = message.targetPage; + if (options.oneofs) + object.transition = "targetPage"; + } + if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { + object.targetFlow = message.targetFlow; + if (options.oneofs) + object.transition = "targetFlow"; + } return object; }; /** - * Converts this DeleteVersionRequest to JSON. + * Converts this WebhookResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @instance * @returns {Object.} JSON object */ - DeleteVersionRequest.prototype.toJSON = function toJSON() { + WebhookResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteVersionRequest; + WebhookResponse.FulfillmentResponse = (function() { + + /** + * Properties of a FulfillmentResponse. + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @interface IFulfillmentResponse + * @property {Array.|null} [messages] FulfillmentResponse messages + * @property {google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior|null} [mergeBehavior] FulfillmentResponse mergeBehavior + */ + + /** + * Constructs a new FulfillmentResponse. + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @classdesc Represents a FulfillmentResponse. + * @implements IFulfillmentResponse + * @constructor + * @param {google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse=} [properties] Properties to set + */ + function FulfillmentResponse(properties) { + this.messages = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FulfillmentResponse messages. + * @member {Array.} messages + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse + * @instance + */ + FulfillmentResponse.prototype.messages = $util.emptyArray; + + /** + * FulfillmentResponse mergeBehavior. + * @member {google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior} mergeBehavior + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse + * @instance + */ + FulfillmentResponse.prototype.mergeBehavior = 0; + + /** + * Creates a new FulfillmentResponse instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse} FulfillmentResponse instance + */ + FulfillmentResponse.create = function create(properties) { + return new FulfillmentResponse(properties); + }; + + /** + * Encodes the specified FulfillmentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse} message FulfillmentResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FulfillmentResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.messages != null && message.messages.length) + for (var i = 0; i < message.messages.length; ++i) + $root.google.cloud.dialogflow.cx.v3.ResponseMessage.encode(message.messages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.mergeBehavior != null && Object.hasOwnProperty.call(message, "mergeBehavior")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.mergeBehavior); + return writer; + }; + + /** + * Encodes the specified FulfillmentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse} message FulfillmentResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FulfillmentResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FulfillmentResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse} FulfillmentResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FulfillmentResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.messages && message.messages.length)) + message.messages = []; + message.messages.push($root.google.cloud.dialogflow.cx.v3.ResponseMessage.decode(reader, reader.uint32())); + break; + case 2: + message.mergeBehavior = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FulfillmentResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse} FulfillmentResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FulfillmentResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FulfillmentResponse message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FulfillmentResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.messages != null && message.hasOwnProperty("messages")) { + if (!Array.isArray(message.messages)) + return "messages: array expected"; + for (var i = 0; i < message.messages.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.verify(message.messages[i]); + if (error) + return "messages." + error; + } + } + if (message.mergeBehavior != null && message.hasOwnProperty("mergeBehavior")) + switch (message.mergeBehavior) { + default: + return "mergeBehavior: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates a FulfillmentResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse} FulfillmentResponse + */ + FulfillmentResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse(); + if (object.messages) { + if (!Array.isArray(object.messages)) + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.messages: array expected"); + message.messages = []; + for (var i = 0; i < object.messages.length; ++i) { + if (typeof object.messages[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.messages: object expected"); + message.messages[i] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.fromObject(object.messages[i]); + } + } + switch (object.mergeBehavior) { + case "MERGE_BEHAVIOR_UNSPECIFIED": + case 0: + message.mergeBehavior = 0; + break; + case "APPEND": + case 1: + message.mergeBehavior = 1; + break; + case "REPLACE": + case 2: + message.mergeBehavior = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from a FulfillmentResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse} message FulfillmentResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FulfillmentResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.messages = []; + if (options.defaults) + object.mergeBehavior = options.enums === String ? "MERGE_BEHAVIOR_UNSPECIFIED" : 0; + if (message.messages && message.messages.length) { + object.messages = []; + for (var j = 0; j < message.messages.length; ++j) + object.messages[j] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.toObject(message.messages[j], options); + } + if (message.mergeBehavior != null && message.hasOwnProperty("mergeBehavior")) + object.mergeBehavior = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior[message.mergeBehavior] : message.mergeBehavior; + return object; + }; + + /** + * Converts this FulfillmentResponse to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse + * @instance + * @returns {Object.} JSON object + */ + FulfillmentResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * MergeBehavior enum. + * @name google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior + * @enum {number} + * @property {number} MERGE_BEHAVIOR_UNSPECIFIED=0 MERGE_BEHAVIOR_UNSPECIFIED value + * @property {number} APPEND=1 APPEND value + * @property {number} REPLACE=2 REPLACE value + */ + FulfillmentResponse.MergeBehavior = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MERGE_BEHAVIOR_UNSPECIFIED"] = 0; + values[valuesById[1] = "APPEND"] = 1; + values[valuesById[2] = "REPLACE"] = 2; + return values; + })(); + + return FulfillmentResponse; + })(); + + return WebhookResponse; })(); - v3.LoadVersionRequest = (function() { + v3.PageInfo = (function() { /** - * Properties of a LoadVersionRequest. + * Properties of a PageInfo. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ILoadVersionRequest - * @property {string|null} [name] LoadVersionRequest name - * @property {boolean|null} [allowOverrideAgentResources] LoadVersionRequest allowOverrideAgentResources + * @interface IPageInfo + * @property {string|null} [currentPage] PageInfo currentPage + * @property {string|null} [displayName] PageInfo displayName + * @property {google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo|null} [formInfo] PageInfo formInfo */ /** - * Constructs a new LoadVersionRequest. + * Constructs a new PageInfo. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a LoadVersionRequest. - * @implements ILoadVersionRequest + * @classdesc Represents a PageInfo. + * @implements IPageInfo * @constructor - * @param {google.cloud.dialogflow.cx.v3.ILoadVersionRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IPageInfo=} [properties] Properties to set */ - function LoadVersionRequest(properties) { + function PageInfo(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64876,88 +64537,101 @@ } /** - * LoadVersionRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest + * PageInfo currentPage. + * @member {string} currentPage + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @instance */ - LoadVersionRequest.prototype.name = ""; + PageInfo.prototype.currentPage = ""; /** - * LoadVersionRequest allowOverrideAgentResources. - * @member {boolean} allowOverrideAgentResources - * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest + * PageInfo displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @instance */ - LoadVersionRequest.prototype.allowOverrideAgentResources = false; + PageInfo.prototype.displayName = ""; /** - * Creates a new LoadVersionRequest instance using the specified properties. + * PageInfo formInfo. + * @member {google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo|null|undefined} formInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * @instance + */ + PageInfo.prototype.formInfo = null; + + /** + * Creates a new PageInfo instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @static - * @param {google.cloud.dialogflow.cx.v3.ILoadVersionRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.LoadVersionRequest} LoadVersionRequest instance + * @param {google.cloud.dialogflow.cx.v3.IPageInfo=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.PageInfo} PageInfo instance */ - LoadVersionRequest.create = function create(properties) { - return new LoadVersionRequest(properties); + PageInfo.create = function create(properties) { + return new PageInfo(properties); }; /** - * Encodes the specified LoadVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LoadVersionRequest.verify|verify} messages. + * Encodes the specified PageInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @static - * @param {google.cloud.dialogflow.cx.v3.ILoadVersionRequest} message LoadVersionRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IPageInfo} message PageInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LoadVersionRequest.encode = function encode(message, writer) { + PageInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.allowOverrideAgentResources != null && Object.hasOwnProperty.call(message, "allowOverrideAgentResources")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowOverrideAgentResources); + if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.currentPage); + if (message.formInfo != null && Object.hasOwnProperty.call(message, "formInfo")) + $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.encode(message.formInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.displayName); return writer; }; /** - * Encodes the specified LoadVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LoadVersionRequest.verify|verify} messages. + * Encodes the specified PageInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @static - * @param {google.cloud.dialogflow.cx.v3.ILoadVersionRequest} message LoadVersionRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IPageInfo} message PageInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LoadVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { + PageInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LoadVersionRequest message from the specified reader or buffer. + * Decodes a PageInfo message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.LoadVersionRequest} LoadVersionRequest + * @returns {google.cloud.dialogflow.cx.v3.PageInfo} PageInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LoadVersionRequest.decode = function decode(reader, length) { + PageInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.LoadVersionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.PageInfo(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.currentPage = reader.string(); break; - case 2: - message.allowOverrideAgentResources = reader.bool(); + case 4: + message.displayName = reader.string(); + break; + case 3: + message.formInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -64968,350 +64642,661 @@ }; /** - * Decodes a LoadVersionRequest message from the specified reader or buffer, length delimited. + * Decodes a PageInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.LoadVersionRequest} LoadVersionRequest + * @returns {google.cloud.dialogflow.cx.v3.PageInfo} PageInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LoadVersionRequest.decodeDelimited = function decodeDelimited(reader) { + PageInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LoadVersionRequest message. + * Verifies a PageInfo message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LoadVersionRequest.verify = function verify(message) { + PageInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.allowOverrideAgentResources != null && message.hasOwnProperty("allowOverrideAgentResources")) - if (typeof message.allowOverrideAgentResources !== "boolean") - return "allowOverrideAgentResources: boolean expected"; + if (message.currentPage != null && message.hasOwnProperty("currentPage")) + if (!$util.isString(message.currentPage)) + return "currentPage: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.formInfo != null && message.hasOwnProperty("formInfo")) { + var error = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.verify(message.formInfo); + if (error) + return "formInfo." + error; + } return null; }; /** - * Creates a LoadVersionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PageInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.LoadVersionRequest} LoadVersionRequest + * @returns {google.cloud.dialogflow.cx.v3.PageInfo} PageInfo */ - LoadVersionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.LoadVersionRequest) + PageInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.PageInfo) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.LoadVersionRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.allowOverrideAgentResources != null) - message.allowOverrideAgentResources = Boolean(object.allowOverrideAgentResources); + var message = new $root.google.cloud.dialogflow.cx.v3.PageInfo(); + if (object.currentPage != null) + message.currentPage = String(object.currentPage); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.formInfo != null) { + if (typeof object.formInfo !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.PageInfo.formInfo: object expected"); + message.formInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.fromObject(object.formInfo); + } return message; }; /** - * Creates a plain object from a LoadVersionRequest message. Also converts values to other types if specified. + * Creates a plain object from a PageInfo message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @static - * @param {google.cloud.dialogflow.cx.v3.LoadVersionRequest} message LoadVersionRequest + * @param {google.cloud.dialogflow.cx.v3.PageInfo} message PageInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LoadVersionRequest.toObject = function toObject(message, options) { + PageInfo.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.allowOverrideAgentResources = false; + object.currentPage = ""; + object.formInfo = null; + object.displayName = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.allowOverrideAgentResources != null && message.hasOwnProperty("allowOverrideAgentResources")) - object.allowOverrideAgentResources = message.allowOverrideAgentResources; + if (message.currentPage != null && message.hasOwnProperty("currentPage")) + object.currentPage = message.currentPage; + if (message.formInfo != null && message.hasOwnProperty("formInfo")) + object.formInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.toObject(message.formInfo, options); + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; return object; }; /** - * Converts this LoadVersionRequest to JSON. + * Converts this PageInfo to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @instance * @returns {Object.} JSON object */ - LoadVersionRequest.prototype.toJSON = function toJSON() { + PageInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return LoadVersionRequest; - })(); + PageInfo.FormInfo = (function() { - v3.CompareVersionsRequest = (function() { + /** + * Properties of a FormInfo. + * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * @interface IFormInfo + * @property {Array.|null} [parameterInfo] FormInfo parameterInfo + */ - /** - * Properties of a CompareVersionsRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface ICompareVersionsRequest - * @property {string|null} [baseVersion] CompareVersionsRequest baseVersion - * @property {string|null} [targetVersion] CompareVersionsRequest targetVersion - * @property {string|null} [languageCode] CompareVersionsRequest languageCode - */ + /** + * Constructs a new FormInfo. + * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * @classdesc Represents a FormInfo. + * @implements IFormInfo + * @constructor + * @param {google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo=} [properties] Properties to set + */ + function FormInfo(properties) { + this.parameterInfo = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new CompareVersionsRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CompareVersionsRequest. - * @implements ICompareVersionsRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsRequest=} [properties] Properties to set - */ - function CompareVersionsRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * FormInfo parameterInfo. + * @member {Array.} parameterInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo + * @instance + */ + FormInfo.prototype.parameterInfo = $util.emptyArray; - /** - * CompareVersionsRequest baseVersion. - * @member {string} baseVersion - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest - * @instance - */ - CompareVersionsRequest.prototype.baseVersion = ""; + /** + * Creates a new FormInfo instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo + * @static + * @param {google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo} FormInfo instance + */ + FormInfo.create = function create(properties) { + return new FormInfo(properties); + }; - /** - * CompareVersionsRequest targetVersion. - * @member {string} targetVersion - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest - * @instance - */ - CompareVersionsRequest.prototype.targetVersion = ""; + /** + * Encodes the specified FormInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo + * @static + * @param {google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo} message FormInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FormInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parameterInfo != null && message.parameterInfo.length) + for (var i = 0; i < message.parameterInfo.length; ++i) + $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.encode(message.parameterInfo[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * CompareVersionsRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest - * @instance - */ - CompareVersionsRequest.prototype.languageCode = ""; + /** + * Encodes the specified FormInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo + * @static + * @param {google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo} message FormInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FormInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a new CompareVersionsRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.CompareVersionsRequest} CompareVersionsRequest instance - */ - CompareVersionsRequest.create = function create(properties) { - return new CompareVersionsRequest(properties); - }; + /** + * Decodes a FormInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo} FormInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FormInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + if (!(message.parameterInfo && message.parameterInfo.length)) + message.parameterInfo = []; + message.parameterInfo.push($root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified CompareVersionsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsRequest} message CompareVersionsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompareVersionsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.baseVersion != null && Object.hasOwnProperty.call(message, "baseVersion")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.baseVersion); - if (message.targetVersion != null && Object.hasOwnProperty.call(message, "targetVersion")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.targetVersion); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); - return writer; - }; + /** + * Decodes a FormInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo} FormInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FormInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FormInfo message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FormInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parameterInfo != null && message.hasOwnProperty("parameterInfo")) { + if (!Array.isArray(message.parameterInfo)) + return "parameterInfo: array expected"; + for (var i = 0; i < message.parameterInfo.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.verify(message.parameterInfo[i]); + if (error) + return "parameterInfo." + error; + } + } + return null; + }; + + /** + * Creates a FormInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo} FormInfo + */ + FormInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo(); + if (object.parameterInfo) { + if (!Array.isArray(object.parameterInfo)) + throw TypeError(".google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.parameterInfo: array expected"); + message.parameterInfo = []; + for (var i = 0; i < object.parameterInfo.length; ++i) { + if (typeof object.parameterInfo[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.parameterInfo: object expected"); + message.parameterInfo[i] = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.fromObject(object.parameterInfo[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a FormInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo + * @static + * @param {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo} message FormInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FormInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.parameterInfo = []; + if (message.parameterInfo && message.parameterInfo.length) { + object.parameterInfo = []; + for (var j = 0; j < message.parameterInfo.length; ++j) + object.parameterInfo[j] = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.toObject(message.parameterInfo[j], options); + } + return object; + }; + + /** + * Converts this FormInfo to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo + * @instance + * @returns {Object.} JSON object + */ + FormInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + FormInfo.ParameterInfo = (function() { + + /** + * Properties of a ParameterInfo. + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo + * @interface IParameterInfo + * @property {string|null} [displayName] ParameterInfo displayName + * @property {boolean|null} [required] ParameterInfo required + * @property {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState|null} [state] ParameterInfo state + * @property {google.protobuf.IValue|null} [value] ParameterInfo value + * @property {boolean|null} [justCollected] ParameterInfo justCollected + */ + + /** + * Constructs a new ParameterInfo. + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo + * @classdesc Represents a ParameterInfo. + * @implements IParameterInfo + * @constructor + * @param {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo=} [properties] Properties to set + */ + function ParameterInfo(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ParameterInfo displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo + * @instance + */ + ParameterInfo.prototype.displayName = ""; + + /** + * ParameterInfo required. + * @member {boolean} required + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo + * @instance + */ + ParameterInfo.prototype.required = false; + + /** + * ParameterInfo state. + * @member {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState} state + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo + * @instance + */ + ParameterInfo.prototype.state = 0; + + /** + * ParameterInfo value. + * @member {google.protobuf.IValue|null|undefined} value + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo + * @instance + */ + ParameterInfo.prototype.value = null; + + /** + * ParameterInfo justCollected. + * @member {boolean} justCollected + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo + * @instance + */ + ParameterInfo.prototype.justCollected = false; + + /** + * Creates a new ParameterInfo instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo + * @static + * @param {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo} ParameterInfo instance + */ + ParameterInfo.create = function create(properties) { + return new ParameterInfo(properties); + }; + + /** + * Encodes the specified ParameterInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo + * @static + * @param {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo} message ParameterInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ParameterInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName); + if (message.required != null && Object.hasOwnProperty.call(message, "required")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.required); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + $root.google.protobuf.Value.encode(message.value, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.justCollected != null && Object.hasOwnProperty.call(message, "justCollected")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.justCollected); + return writer; + }; + + /** + * Encodes the specified ParameterInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo + * @static + * @param {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo} message ParameterInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ParameterInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ParameterInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo} ParameterInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ParameterInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.displayName = reader.string(); + break; + case 2: + message.required = reader.bool(); + break; + case 3: + message.state = reader.int32(); + break; + case 4: + message.value = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + case 5: + message.justCollected = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ParameterInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo} ParameterInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ParameterInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified CompareVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsRequest} message CompareVersionsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompareVersionsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Verifies a ParameterInfo message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ParameterInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.required != null && message.hasOwnProperty("required")) + if (typeof message.required !== "boolean") + return "required: boolean expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.value != null && message.hasOwnProperty("value")) { + var error = $root.google.protobuf.Value.verify(message.value); + if (error) + return "value." + error; + } + if (message.justCollected != null && message.hasOwnProperty("justCollected")) + if (typeof message.justCollected !== "boolean") + return "justCollected: boolean expected"; + return null; + }; - /** - * Decodes a CompareVersionsRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.CompareVersionsRequest} CompareVersionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompareVersionsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CompareVersionsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.baseVersion = reader.string(); - break; - case 2: - message.targetVersion = reader.string(); - break; - case 3: - message.languageCode = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a ParameterInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo} ParameterInfo + */ + ParameterInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo(); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.required != null) + message.required = Boolean(object.required); + switch (object.state) { + case "PARAMETER_STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "EMPTY": + case 1: + message.state = 1; + break; + case "INVALID": + case 2: + message.state = 2; + break; + case "FILLED": + case 3: + message.state = 3; + break; + } + if (object.value != null) { + if (typeof object.value !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.value: object expected"); + message.value = $root.google.protobuf.Value.fromObject(object.value); + } + if (object.justCollected != null) + message.justCollected = Boolean(object.justCollected); + return message; + }; - /** - * Decodes a CompareVersionsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.CompareVersionsRequest} CompareVersionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompareVersionsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a plain object from a ParameterInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo + * @static + * @param {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo} message ParameterInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ParameterInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.displayName = ""; + object.required = false; + object.state = options.enums === String ? "PARAMETER_STATE_UNSPECIFIED" : 0; + object.value = null; + object.justCollected = false; + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.required != null && message.hasOwnProperty("required")) + object.required = message.required; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState[message.state] : message.state; + if (message.value != null && message.hasOwnProperty("value")) + object.value = $root.google.protobuf.Value.toObject(message.value, options); + if (message.justCollected != null && message.hasOwnProperty("justCollected")) + object.justCollected = message.justCollected; + return object; + }; - /** - * Verifies a CompareVersionsRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CompareVersionsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.baseVersion != null && message.hasOwnProperty("baseVersion")) - if (!$util.isString(message.baseVersion)) - return "baseVersion: string expected"; - if (message.targetVersion != null && message.hasOwnProperty("targetVersion")) - if (!$util.isString(message.targetVersion)) - return "targetVersion: string expected"; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; - return null; - }; + /** + * Converts this ParameterInfo to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo + * @instance + * @returns {Object.} JSON object + */ + ParameterInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a CompareVersionsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CompareVersionsRequest} CompareVersionsRequest - */ - CompareVersionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CompareVersionsRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.CompareVersionsRequest(); - if (object.baseVersion != null) - message.baseVersion = String(object.baseVersion); - if (object.targetVersion != null) - message.targetVersion = String(object.targetVersion); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); - return message; - }; + /** + * ParameterState enum. + * @name google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState + * @enum {number} + * @property {number} PARAMETER_STATE_UNSPECIFIED=0 PARAMETER_STATE_UNSPECIFIED value + * @property {number} EMPTY=1 EMPTY value + * @property {number} INVALID=2 INVALID value + * @property {number} FILLED=3 FILLED value + */ + ParameterInfo.ParameterState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PARAMETER_STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "EMPTY"] = 1; + values[valuesById[2] = "INVALID"] = 2; + values[valuesById[3] = "FILLED"] = 3; + return values; + })(); - /** - * Creates a plain object from a CompareVersionsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.CompareVersionsRequest} message CompareVersionsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CompareVersionsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.baseVersion = ""; - object.targetVersion = ""; - object.languageCode = ""; - } - if (message.baseVersion != null && message.hasOwnProperty("baseVersion")) - object.baseVersion = message.baseVersion; - if (message.targetVersion != null && message.hasOwnProperty("targetVersion")) - object.targetVersion = message.targetVersion; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; - return object; - }; + return ParameterInfo; + })(); - /** - * Converts this CompareVersionsRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest - * @instance - * @returns {Object.} JSON object - */ - CompareVersionsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return FormInfo; + })(); - return CompareVersionsRequest; + return PageInfo; })(); - v3.CompareVersionsResponse = (function() { + v3.SessionInfo = (function() { /** - * Properties of a CompareVersionsResponse. + * Properties of a SessionInfo. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ICompareVersionsResponse - * @property {string|null} [baseVersionContentJson] CompareVersionsResponse baseVersionContentJson - * @property {string|null} [targetVersionContentJson] CompareVersionsResponse targetVersionContentJson - * @property {google.protobuf.ITimestamp|null} [compareTime] CompareVersionsResponse compareTime + * @interface ISessionInfo + * @property {string|null} [session] SessionInfo session + * @property {Object.|null} [parameters] SessionInfo parameters */ /** - * Constructs a new CompareVersionsResponse. + * Constructs a new SessionInfo. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CompareVersionsResponse. - * @implements ICompareVersionsResponse + * @classdesc Represents a SessionInfo. + * @implements ISessionInfo * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ISessionInfo=} [properties] Properties to set */ - function CompareVersionsResponse(properties) { + function SessionInfo(properties) { + this.parameters = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -65319,101 +65304,110 @@ } /** - * CompareVersionsResponse baseVersionContentJson. - * @member {string} baseVersionContentJson - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse - * @instance - */ - CompareVersionsResponse.prototype.baseVersionContentJson = ""; - - /** - * CompareVersionsResponse targetVersionContentJson. - * @member {string} targetVersionContentJson - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse + * SessionInfo session. + * @member {string} session + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @instance */ - CompareVersionsResponse.prototype.targetVersionContentJson = ""; + SessionInfo.prototype.session = ""; /** - * CompareVersionsResponse compareTime. - * @member {google.protobuf.ITimestamp|null|undefined} compareTime - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse + * SessionInfo parameters. + * @member {Object.} parameters + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @instance */ - CompareVersionsResponse.prototype.compareTime = null; + SessionInfo.prototype.parameters = $util.emptyObject; /** - * Creates a new CompareVersionsResponse instance using the specified properties. + * Creates a new SessionInfo instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @static - * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.CompareVersionsResponse} CompareVersionsResponse instance + * @param {google.cloud.dialogflow.cx.v3.ISessionInfo=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.SessionInfo} SessionInfo instance */ - CompareVersionsResponse.create = function create(properties) { - return new CompareVersionsResponse(properties); + SessionInfo.create = function create(properties) { + return new SessionInfo(properties); }; /** - * Encodes the specified CompareVersionsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsResponse.verify|verify} messages. + * Encodes the specified SessionInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionInfo.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @static - * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsResponse} message CompareVersionsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ISessionInfo} message SessionInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CompareVersionsResponse.encode = function encode(message, writer) { + SessionInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.baseVersionContentJson != null && Object.hasOwnProperty.call(message, "baseVersionContentJson")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.baseVersionContentJson); - if (message.targetVersionContentJson != null && Object.hasOwnProperty.call(message, "targetVersionContentJson")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.targetVersionContentJson); - if (message.compareTime != null && Object.hasOwnProperty.call(message, "compareTime")) - $root.google.protobuf.Timestamp.encode(message.compareTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.session != null && Object.hasOwnProperty.call(message, "session")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.session); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + for (var keys = Object.keys(message.parameters), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.protobuf.Value.encode(message.parameters[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified CompareVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsResponse.verify|verify} messages. + * Encodes the specified SessionInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionInfo.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @static - * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsResponse} message CompareVersionsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ISessionInfo} message SessionInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CompareVersionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + SessionInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CompareVersionsResponse message from the specified reader or buffer. + * Decodes a SessionInfo message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.CompareVersionsResponse} CompareVersionsResponse + * @returns {google.cloud.dialogflow.cx.v3.SessionInfo} SessionInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CompareVersionsResponse.decode = function decode(reader, length) { + SessionInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CompareVersionsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.SessionInfo(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.baseVersionContentJson = reader.string(); + message.session = reader.string(); break; case 2: - message.targetVersionContentJson = reader.string(); - break; - case 3: - message.compareTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + if (message.parameters === $util.emptyObject) + message.parameters = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.parameters[key] = value; break; default: reader.skipType(tag & 7); @@ -65424,109 +65418,115 @@ }; /** - * Decodes a CompareVersionsResponse message from the specified reader or buffer, length delimited. + * Decodes a SessionInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.CompareVersionsResponse} CompareVersionsResponse + * @returns {google.cloud.dialogflow.cx.v3.SessionInfo} SessionInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CompareVersionsResponse.decodeDelimited = function decodeDelimited(reader) { + SessionInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CompareVersionsResponse message. + * Verifies a SessionInfo message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CompareVersionsResponse.verify = function verify(message) { + SessionInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.baseVersionContentJson != null && message.hasOwnProperty("baseVersionContentJson")) - if (!$util.isString(message.baseVersionContentJson)) - return "baseVersionContentJson: string expected"; - if (message.targetVersionContentJson != null && message.hasOwnProperty("targetVersionContentJson")) - if (!$util.isString(message.targetVersionContentJson)) - return "targetVersionContentJson: string expected"; - if (message.compareTime != null && message.hasOwnProperty("compareTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.compareTime); - if (error) - return "compareTime." + error; + if (message.session != null && message.hasOwnProperty("session")) + if (!$util.isString(message.session)) + return "session: string expected"; + if (message.parameters != null && message.hasOwnProperty("parameters")) { + if (!$util.isObject(message.parameters)) + return "parameters: object expected"; + var key = Object.keys(message.parameters); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.parameters[key[i]]); + if (error) + return "parameters." + error; + } } return null; }; /** - * Creates a CompareVersionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SessionInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CompareVersionsResponse} CompareVersionsResponse + * @returns {google.cloud.dialogflow.cx.v3.SessionInfo} SessionInfo */ - CompareVersionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CompareVersionsResponse) + SessionInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.SessionInfo) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.CompareVersionsResponse(); - if (object.baseVersionContentJson != null) - message.baseVersionContentJson = String(object.baseVersionContentJson); - if (object.targetVersionContentJson != null) - message.targetVersionContentJson = String(object.targetVersionContentJson); - if (object.compareTime != null) { - if (typeof object.compareTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CompareVersionsResponse.compareTime: object expected"); - message.compareTime = $root.google.protobuf.Timestamp.fromObject(object.compareTime); + var message = new $root.google.cloud.dialogflow.cx.v3.SessionInfo(); + if (object.session != null) + message.session = String(object.session); + if (object.parameters) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.SessionInfo.parameters: object expected"); + message.parameters = {}; + for (var keys = Object.keys(object.parameters), i = 0; i < keys.length; ++i) { + if (typeof object.parameters[keys[i]] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.SessionInfo.parameters: object expected"); + message.parameters[keys[i]] = $root.google.protobuf.Value.fromObject(object.parameters[keys[i]]); + } } return message; }; /** - * Creates a plain object from a CompareVersionsResponse message. Also converts values to other types if specified. + * Creates a plain object from a SessionInfo message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @static - * @param {google.cloud.dialogflow.cx.v3.CompareVersionsResponse} message CompareVersionsResponse + * @param {google.cloud.dialogflow.cx.v3.SessionInfo} message SessionInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CompareVersionsResponse.toObject = function toObject(message, options) { + SessionInfo.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.baseVersionContentJson = ""; - object.targetVersionContentJson = ""; - object.compareTime = null; + if (options.objects || options.defaults) + object.parameters = {}; + if (options.defaults) + object.session = ""; + if (message.session != null && message.hasOwnProperty("session")) + object.session = message.session; + var keys2; + if (message.parameters && (keys2 = Object.keys(message.parameters)).length) { + object.parameters = {}; + for (var j = 0; j < keys2.length; ++j) + object.parameters[keys2[j]] = $root.google.protobuf.Value.toObject(message.parameters[keys2[j]], options); } - if (message.baseVersionContentJson != null && message.hasOwnProperty("baseVersionContentJson")) - object.baseVersionContentJson = message.baseVersionContentJson; - if (message.targetVersionContentJson != null && message.hasOwnProperty("targetVersionContentJson")) - object.targetVersionContentJson = message.targetVersionContentJson; - if (message.compareTime != null && message.hasOwnProperty("compareTime")) - object.compareTime = $root.google.protobuf.Timestamp.toObject(message.compareTime, options); return object; }; /** - * Converts this CompareVersionsResponse to JSON. + * Converts this SessionInfo to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @instance * @returns {Object.} JSON object */ - CompareVersionsResponse.prototype.toJSON = function toJSON() { + SessionInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CompareVersionsResponse; + return SessionInfo; })(); return v3; @@ -79834,388 +79834,10 @@ if (message.ssml != null && message.hasOwnProperty("ssml")) { if (properties.source === 1) return "source: multiple values"; - properties.source = 1; - if (!$util.isString(message.ssml)) - return "ssml: string expected"; - } - if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) - if (typeof message.allowPlaybackInterruption !== "boolean") - return "allowPlaybackInterruption: boolean expected"; - return null; - }; - - /** - * Creates an OutputAudioText message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText} OutputAudioText - */ - OutputAudioText.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText(); - if (object.text != null) - message.text = String(object.text); - if (object.ssml != null) - message.ssml = String(object.ssml); - if (object.allowPlaybackInterruption != null) - message.allowPlaybackInterruption = Boolean(object.allowPlaybackInterruption); - return message; - }; - - /** - * Creates a plain object from an OutputAudioText message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText} message OutputAudioText - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - OutputAudioText.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.allowPlaybackInterruption = false; - if (message.text != null && message.hasOwnProperty("text")) { - object.text = message.text; - if (options.oneofs) - object.source = "text"; - } - if (message.ssml != null && message.hasOwnProperty("ssml")) { - object.ssml = message.ssml; - if (options.oneofs) - object.source = "ssml"; - } - if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) - object.allowPlaybackInterruption = message.allowPlaybackInterruption; - return object; - }; - - /** - * Converts this OutputAudioText to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText - * @instance - * @returns {Object.} JSON object - */ - OutputAudioText.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return OutputAudioText; - })(); - - ResponseMessage.EndInteraction = (function() { - - /** - * Properties of an EndInteraction. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @interface IEndInteraction - */ - - /** - * Constructs a new EndInteraction. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @classdesc Represents an EndInteraction. - * @implements IEndInteraction - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction=} [properties] Properties to set - */ - function EndInteraction(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new EndInteraction instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction} EndInteraction instance - */ - EndInteraction.create = function create(properties) { - return new EndInteraction(properties); - }; - - /** - * Encodes the specified EndInteraction message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction} message EndInteraction message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EndInteraction.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Encodes the specified EndInteraction message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction} message EndInteraction message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EndInteraction.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an EndInteraction message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction} EndInteraction - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EndInteraction.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an EndInteraction message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction} EndInteraction - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EndInteraction.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EndInteraction message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EndInteraction.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Creates an EndInteraction message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction} EndInteraction - */ - EndInteraction.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction) - return object; - return new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction(); - }; - - /** - * Creates a plain object from an EndInteraction message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction} message EndInteraction - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - EndInteraction.toObject = function toObject() { - return {}; - }; - - /** - * Converts this EndInteraction to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction - * @instance - * @returns {Object.} JSON object - */ - EndInteraction.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return EndInteraction; - })(); - - ResponseMessage.PlayAudio = (function() { - - /** - * Properties of a PlayAudio. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @interface IPlayAudio - * @property {string|null} [audioUri] PlayAudio audioUri - * @property {boolean|null} [allowPlaybackInterruption] PlayAudio allowPlaybackInterruption - */ - - /** - * Constructs a new PlayAudio. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @classdesc Represents a PlayAudio. - * @implements IPlayAudio - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio=} [properties] Properties to set - */ - function PlayAudio(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * PlayAudio audioUri. - * @member {string} audioUri - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio - * @instance - */ - PlayAudio.prototype.audioUri = ""; - - /** - * PlayAudio allowPlaybackInterruption. - * @member {boolean} allowPlaybackInterruption - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio - * @instance - */ - PlayAudio.prototype.allowPlaybackInterruption = false; - - /** - * Creates a new PlayAudio instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio} PlayAudio instance - */ - PlayAudio.create = function create(properties) { - return new PlayAudio(properties); - }; - - /** - * Encodes the specified PlayAudio message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio} message PlayAudio message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PlayAudio.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.audioUri != null && Object.hasOwnProperty.call(message, "audioUri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.audioUri); - if (message.allowPlaybackInterruption != null && Object.hasOwnProperty.call(message, "allowPlaybackInterruption")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowPlaybackInterruption); - return writer; - }; - - /** - * Encodes the specified PlayAudio message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio} message PlayAudio message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PlayAudio.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a PlayAudio message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio} PlayAudio - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PlayAudio.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.audioUri = reader.string(); - break; - case 2: - message.allowPlaybackInterruption = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a PlayAudio message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio} PlayAudio - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PlayAudio.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PlayAudio message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PlayAudio.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.audioUri != null && message.hasOwnProperty("audioUri")) - if (!$util.isString(message.audioUri)) - return "audioUri: string expected"; + properties.source = 1; + if (!$util.isString(message.ssml)) + return "ssml: string expected"; + } if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) if (typeof message.allowPlaybackInterruption !== "boolean") return "allowPlaybackInterruption: boolean expected"; @@ -80223,81 +79845,87 @@ }; /** - * Creates a PlayAudio message from a plain object. Also converts values to their respective internal types. + * Creates an OutputAudioText message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio} PlayAudio + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText} OutputAudioText */ - PlayAudio.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio) + OutputAudioText.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio(); - if (object.audioUri != null) - message.audioUri = String(object.audioUri); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText(); + if (object.text != null) + message.text = String(object.text); + if (object.ssml != null) + message.ssml = String(object.ssml); if (object.allowPlaybackInterruption != null) message.allowPlaybackInterruption = Boolean(object.allowPlaybackInterruption); return message; }; /** - * Creates a plain object from a PlayAudio message. Also converts values to other types if specified. + * Creates a plain object from an OutputAudioText message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio} message PlayAudio + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText} message OutputAudioText * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PlayAudio.toObject = function toObject(message, options) { + OutputAudioText.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.audioUri = ""; + if (options.defaults) object.allowPlaybackInterruption = false; + if (message.text != null && message.hasOwnProperty("text")) { + object.text = message.text; + if (options.oneofs) + object.source = "text"; + } + if (message.ssml != null && message.hasOwnProperty("ssml")) { + object.ssml = message.ssml; + if (options.oneofs) + object.source = "ssml"; } - if (message.audioUri != null && message.hasOwnProperty("audioUri")) - object.audioUri = message.audioUri; if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) object.allowPlaybackInterruption = message.allowPlaybackInterruption; return object; }; /** - * Converts this PlayAudio to JSON. + * Converts this OutputAudioText to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText * @instance * @returns {Object.} JSON object */ - PlayAudio.prototype.toJSON = function toJSON() { + OutputAudioText.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PlayAudio; + return OutputAudioText; })(); - ResponseMessage.MixedAudio = (function() { + ResponseMessage.EndInteraction = (function() { /** - * Properties of a MixedAudio. + * Properties of an EndInteraction. * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @interface IMixedAudio - * @property {Array.|null} [segments] MixedAudio segments + * @interface IEndInteraction */ /** - * Constructs a new MixedAudio. + * Constructs a new EndInteraction. * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @classdesc Represents a MixedAudio. - * @implements IMixedAudio + * @classdesc Represents an EndInteraction. + * @implements IEndInteraction * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction=} [properties] Properties to set */ - function MixedAudio(properties) { - this.segments = []; + function EndInteraction(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -80305,79 +79933,63 @@ } /** - * MixedAudio segments. - * @member {Array.} segments - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio - * @instance - */ - MixedAudio.prototype.segments = $util.emptyArray; - - /** - * Creates a new MixedAudio instance using the specified properties. + * Creates a new EndInteraction instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio} MixedAudio instance + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction} EndInteraction instance */ - MixedAudio.create = function create(properties) { - return new MixedAudio(properties); + EndInteraction.create = function create(properties) { + return new EndInteraction(properties); }; /** - * Encodes the specified MixedAudio message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.verify|verify} messages. + * Encodes the specified EndInteraction message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio} message MixedAudio message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction} message EndInteraction message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MixedAudio.encode = function encode(message, writer) { + EndInteraction.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.segments != null && message.segments.length) - for (var i = 0; i < message.segments.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.encode(message.segments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified MixedAudio message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.verify|verify} messages. + * Encodes the specified EndInteraction message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio} message MixedAudio message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction} message EndInteraction message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MixedAudio.encodeDelimited = function encodeDelimited(message, writer) { + EndInteraction.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MixedAudio message from the specified reader or buffer. + * Decodes an EndInteraction message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio} MixedAudio + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction} EndInteraction * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MixedAudio.decode = function decode(reader, length) { + EndInteraction.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.segments && message.segments.length)) - message.segments = []; - message.segments.push($root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.decode(reader, reader.uint32())); - break; default: reader.skipType(tag & 7); break; @@ -80387,383 +79999,95 @@ }; /** - * Decodes a MixedAudio message from the specified reader or buffer, length delimited. + * Decodes an EndInteraction message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio} MixedAudio + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction} EndInteraction * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MixedAudio.decodeDelimited = function decodeDelimited(reader) { + EndInteraction.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MixedAudio message. + * Verifies an EndInteraction message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MixedAudio.verify = function verify(message) { + EndInteraction.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.segments != null && message.hasOwnProperty("segments")) { - if (!Array.isArray(message.segments)) - return "segments: array expected"; - for (var i = 0; i < message.segments.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.verify(message.segments[i]); - if (error) - return "segments." + error; - } - } return null; }; /** - * Creates a MixedAudio message from a plain object. Also converts values to their respective internal types. + * Creates an EndInteraction message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio} MixedAudio + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction} EndInteraction */ - MixedAudio.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio) + EndInteraction.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio(); - if (object.segments) { - if (!Array.isArray(object.segments)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.segments: array expected"); - message.segments = []; - for (var i = 0; i < object.segments.length; ++i) { - if (typeof object.segments[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.segments: object expected"); - message.segments[i] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.fromObject(object.segments[i]); - } - } - return message; + return new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction(); }; /** - * Creates a plain object from a MixedAudio message. Also converts values to other types if specified. + * Creates a plain object from an EndInteraction message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio} message MixedAudio + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction} message EndInteraction * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MixedAudio.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.segments = []; - if (message.segments && message.segments.length) { - object.segments = []; - for (var j = 0; j < message.segments.length; ++j) - object.segments[j] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.toObject(message.segments[j], options); - } - return object; + EndInteraction.toObject = function toObject() { + return {}; }; /** - * Converts this MixedAudio to JSON. + * Converts this EndInteraction to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction * @instance * @returns {Object.} JSON object */ - MixedAudio.prototype.toJSON = function toJSON() { + EndInteraction.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - MixedAudio.Segment = (function() { - - /** - * Properties of a Segment. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio - * @interface ISegment - * @property {Uint8Array|null} [audio] Segment audio - * @property {string|null} [uri] Segment uri - * @property {boolean|null} [allowPlaybackInterruption] Segment allowPlaybackInterruption - */ - - /** - * Constructs a new Segment. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio - * @classdesc Represents a Segment. - * @implements ISegment - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment=} [properties] Properties to set - */ - function Segment(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Segment audio. - * @member {Uint8Array|null|undefined} audio - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment - * @instance - */ - Segment.prototype.audio = null; - - /** - * Segment uri. - * @member {string|null|undefined} uri - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment - * @instance - */ - Segment.prototype.uri = null; - - /** - * Segment allowPlaybackInterruption. - * @member {boolean} allowPlaybackInterruption - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment - * @instance - */ - Segment.prototype.allowPlaybackInterruption = false; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Segment content. - * @member {"audio"|"uri"|undefined} content - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment - * @instance - */ - Object.defineProperty(Segment.prototype, "content", { - get: $util.oneOfGetter($oneOfFields = ["audio", "uri"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Segment instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment} Segment instance - */ - Segment.create = function create(properties) { - return new Segment(properties); - }; - - /** - * Encodes the specified Segment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment} message Segment message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Segment.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.audio != null && Object.hasOwnProperty.call(message, "audio")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.audio); - if (message.uri != null && Object.hasOwnProperty.call(message, "uri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.uri); - if (message.allowPlaybackInterruption != null && Object.hasOwnProperty.call(message, "allowPlaybackInterruption")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowPlaybackInterruption); - return writer; - }; - - /** - * Encodes the specified Segment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment} message Segment message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Segment.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Segment message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment} Segment - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Segment.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.audio = reader.bytes(); - break; - case 2: - message.uri = reader.string(); - break; - case 3: - message.allowPlaybackInterruption = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Segment message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment} Segment - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Segment.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Segment message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Segment.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.audio != null && message.hasOwnProperty("audio")) { - properties.content = 1; - if (!(message.audio && typeof message.audio.length === "number" || $util.isString(message.audio))) - return "audio: buffer expected"; - } - if (message.uri != null && message.hasOwnProperty("uri")) { - if (properties.content === 1) - return "content: multiple values"; - properties.content = 1; - if (!$util.isString(message.uri)) - return "uri: string expected"; - } - if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) - if (typeof message.allowPlaybackInterruption !== "boolean") - return "allowPlaybackInterruption: boolean expected"; - return null; - }; - - /** - * Creates a Segment message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment} Segment - */ - Segment.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment(); - if (object.audio != null) - if (typeof object.audio === "string") - $util.base64.decode(object.audio, message.audio = $util.newBuffer($util.base64.length(object.audio)), 0); - else if (object.audio.length) - message.audio = object.audio; - if (object.uri != null) - message.uri = String(object.uri); - if (object.allowPlaybackInterruption != null) - message.allowPlaybackInterruption = Boolean(object.allowPlaybackInterruption); - return message; - }; - - /** - * Creates a plain object from a Segment message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment} message Segment - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Segment.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.allowPlaybackInterruption = false; - if (message.audio != null && message.hasOwnProperty("audio")) { - object.audio = options.bytes === String ? $util.base64.encode(message.audio, 0, message.audio.length) : options.bytes === Array ? Array.prototype.slice.call(message.audio) : message.audio; - if (options.oneofs) - object.content = "audio"; - } - if (message.uri != null && message.hasOwnProperty("uri")) { - object.uri = message.uri; - if (options.oneofs) - object.content = "uri"; - } - if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) - object.allowPlaybackInterruption = message.allowPlaybackInterruption; - return object; - }; - - /** - * Converts this Segment to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment - * @instance - * @returns {Object.} JSON object - */ - Segment.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Segment; - })(); - - return MixedAudio; + return EndInteraction; })(); - ResponseMessage.TelephonyTransferCall = (function() { + ResponseMessage.PlayAudio = (function() { /** - * Properties of a TelephonyTransferCall. + * Properties of a PlayAudio. * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @interface ITelephonyTransferCall - * @property {string|null} [phoneNumber] TelephonyTransferCall phoneNumber + * @interface IPlayAudio + * @property {string|null} [audioUri] PlayAudio audioUri + * @property {boolean|null} [allowPlaybackInterruption] PlayAudio allowPlaybackInterruption */ /** - * Constructs a new TelephonyTransferCall. + * Constructs a new PlayAudio. * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @classdesc Represents a TelephonyTransferCall. - * @implements ITelephonyTransferCall + * @classdesc Represents a PlayAudio. + * @implements IPlayAudio * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio=} [properties] Properties to set */ - function TelephonyTransferCall(properties) { + function PlayAudio(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -80771,89 +80095,88 @@ } /** - * TelephonyTransferCall phoneNumber. - * @member {string|null|undefined} phoneNumber - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * PlayAudio audioUri. + * @member {string} audioUri + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio * @instance */ - TelephonyTransferCall.prototype.phoneNumber = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + PlayAudio.prototype.audioUri = ""; /** - * TelephonyTransferCall endpoint. - * @member {"phoneNumber"|undefined} endpoint - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * PlayAudio allowPlaybackInterruption. + * @member {boolean} allowPlaybackInterruption + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio * @instance */ - Object.defineProperty(TelephonyTransferCall.prototype, "endpoint", { - get: $util.oneOfGetter($oneOfFields = ["phoneNumber"]), - set: $util.oneOfSetter($oneOfFields) - }); + PlayAudio.prototype.allowPlaybackInterruption = false; /** - * Creates a new TelephonyTransferCall instance using the specified properties. + * Creates a new PlayAudio instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall} TelephonyTransferCall instance + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio} PlayAudio instance */ - TelephonyTransferCall.create = function create(properties) { - return new TelephonyTransferCall(properties); + PlayAudio.create = function create(properties) { + return new PlayAudio(properties); }; /** - * Encodes the specified TelephonyTransferCall message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.verify|verify} messages. + * Encodes the specified PlayAudio message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall} message TelephonyTransferCall message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio} message PlayAudio message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TelephonyTransferCall.encode = function encode(message, writer) { + PlayAudio.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.phoneNumber != null && Object.hasOwnProperty.call(message, "phoneNumber")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.phoneNumber); + if (message.audioUri != null && Object.hasOwnProperty.call(message, "audioUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.audioUri); + if (message.allowPlaybackInterruption != null && Object.hasOwnProperty.call(message, "allowPlaybackInterruption")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowPlaybackInterruption); return writer; }; /** - * Encodes the specified TelephonyTransferCall message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.verify|verify} messages. + * Encodes the specified PlayAudio message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall} message TelephonyTransferCall message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio} message PlayAudio message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TelephonyTransferCall.encodeDelimited = function encodeDelimited(message, writer) { + PlayAudio.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TelephonyTransferCall message from the specified reader or buffer. + * Decodes a PlayAudio message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall} TelephonyTransferCall + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio} PlayAudio * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TelephonyTransferCall.decode = function decode(reader, length) { + PlayAudio.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.phoneNumber = reader.string(); + message.audioUri = reader.string(); + break; + case 2: + message.allowPlaybackInterruption = reader.bool(); break; default: reader.skipType(tag & 7); @@ -80864,991 +80187,797 @@ }; /** - * Decodes a TelephonyTransferCall message from the specified reader or buffer, length delimited. + * Decodes a PlayAudio message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall} TelephonyTransferCall + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio} PlayAudio * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TelephonyTransferCall.decodeDelimited = function decodeDelimited(reader) { + PlayAudio.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TelephonyTransferCall message. + * Verifies a PlayAudio message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TelephonyTransferCall.verify = function verify(message) { + PlayAudio.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber")) { - properties.endpoint = 1; - if (!$util.isString(message.phoneNumber)) - return "phoneNumber: string expected"; - } + if (message.audioUri != null && message.hasOwnProperty("audioUri")) + if (!$util.isString(message.audioUri)) + return "audioUri: string expected"; + if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) + if (typeof message.allowPlaybackInterruption !== "boolean") + return "allowPlaybackInterruption: boolean expected"; return null; }; /** - * Creates a TelephonyTransferCall message from a plain object. Also converts values to their respective internal types. + * Creates a PlayAudio message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall} TelephonyTransferCall + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio} PlayAudio */ - TelephonyTransferCall.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall) + PlayAudio.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall(); - if (object.phoneNumber != null) - message.phoneNumber = String(object.phoneNumber); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio(); + if (object.audioUri != null) + message.audioUri = String(object.audioUri); + if (object.allowPlaybackInterruption != null) + message.allowPlaybackInterruption = Boolean(object.allowPlaybackInterruption); return message; }; /** - * Creates a plain object from a TelephonyTransferCall message. Also converts values to other types if specified. + * Creates a plain object from a PlayAudio message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall} message TelephonyTransferCall + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio} message PlayAudio * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TelephonyTransferCall.toObject = function toObject(message, options) { + PlayAudio.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber")) { - object.phoneNumber = message.phoneNumber; - if (options.oneofs) - object.endpoint = "phoneNumber"; - } - return object; - }; - - /** - * Converts this TelephonyTransferCall to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall - * @instance - * @returns {Object.} JSON object - */ - TelephonyTransferCall.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return TelephonyTransferCall; - })(); - - return ResponseMessage; - })(); - - v3beta1.ValidationMessage = (function() { - - /** - * Properties of a ValidationMessage. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IValidationMessage - * @property {google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType|null} [resourceType] ValidationMessage resourceType - * @property {Array.|null} [resources] ValidationMessage resources - * @property {Array.|null} [resourceNames] ValidationMessage resourceNames - * @property {google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity|null} [severity] ValidationMessage severity - * @property {string|null} [detail] ValidationMessage detail - */ - - /** - * Constructs a new ValidationMessage. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ValidationMessage. - * @implements IValidationMessage - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IValidationMessage=} [properties] Properties to set - */ - function ValidationMessage(properties) { - this.resources = []; - this.resourceNames = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ValidationMessage resourceType. - * @member {google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType} resourceType - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage - * @instance - */ - ValidationMessage.prototype.resourceType = 0; - - /** - * ValidationMessage resources. - * @member {Array.} resources - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage - * @instance - */ - ValidationMessage.prototype.resources = $util.emptyArray; - - /** - * ValidationMessage resourceNames. - * @member {Array.} resourceNames - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage - * @instance - */ - ValidationMessage.prototype.resourceNames = $util.emptyArray; - - /** - * ValidationMessage severity. - * @member {google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity} severity - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage - * @instance - */ - ValidationMessage.prototype.severity = 0; - - /** - * ValidationMessage detail. - * @member {string} detail - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage - * @instance - */ - ValidationMessage.prototype.detail = ""; - - /** - * Creates a new ValidationMessage instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IValidationMessage=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ValidationMessage} ValidationMessage instance - */ - ValidationMessage.create = function create(properties) { - return new ValidationMessage(properties); - }; - - /** - * Encodes the specified ValidationMessage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidationMessage.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IValidationMessage} message ValidationMessage message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ValidationMessage.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.resourceType != null && Object.hasOwnProperty.call(message, "resourceType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); - if (message.resources != null && message.resources.length) - for (var i = 0; i < message.resources.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.resources[i]); - if (message.severity != null && Object.hasOwnProperty.call(message, "severity")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.severity); - if (message.detail != null && Object.hasOwnProperty.call(message, "detail")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.detail); - if (message.resourceNames != null && message.resourceNames.length) - for (var i = 0; i < message.resourceNames.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.ResourceName.encode(message.resourceNames[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ValidationMessage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidationMessage.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IValidationMessage} message ValidationMessage message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ValidationMessage.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ValidationMessage message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ValidationMessage} ValidationMessage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ValidationMessage.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resourceType = reader.int32(); - break; - case 2: - if (!(message.resources && message.resources.length)) - message.resources = []; - message.resources.push(reader.string()); - break; - case 6: - if (!(message.resourceNames && message.resourceNames.length)) - message.resourceNames = []; - message.resourceNames.push($root.google.cloud.dialogflow.cx.v3beta1.ResourceName.decode(reader, reader.uint32())); - break; - case 3: - message.severity = reader.int32(); - break; - case 4: - message.detail = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ValidationMessage message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ValidationMessage} ValidationMessage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ValidationMessage.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ValidationMessage message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ValidationMessage.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - switch (message.resourceType) { - default: - return "resourceType: enum value expected"; - case 0: - case 1: - case 2: - case 8: - case 9: - case 10: - case 11: - case 3: - case 12: - case 4: - case 5: - case 6: - case 13: - case 7: - break; - } - if (message.resources != null && message.hasOwnProperty("resources")) { - if (!Array.isArray(message.resources)) - return "resources: array expected"; - for (var i = 0; i < message.resources.length; ++i) - if (!$util.isString(message.resources[i])) - return "resources: string[] expected"; - } - if (message.resourceNames != null && message.hasOwnProperty("resourceNames")) { - if (!Array.isArray(message.resourceNames)) - return "resourceNames: array expected"; - for (var i = 0; i < message.resourceNames.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResourceName.verify(message.resourceNames[i]); - if (error) - return "resourceNames." + error; - } - } - if (message.severity != null && message.hasOwnProperty("severity")) - switch (message.severity) { - default: - return "severity: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.detail != null && message.hasOwnProperty("detail")) - if (!$util.isString(message.detail)) - return "detail: string expected"; - return null; - }; - - /** - * Creates a ValidationMessage message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ValidationMessage} ValidationMessage - */ - ValidationMessage.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage(); - switch (object.resourceType) { - case "RESOURCE_TYPE_UNSPECIFIED": - case 0: - message.resourceType = 0; - break; - case "AGENT": - case 1: - message.resourceType = 1; - break; - case "INTENT": - case 2: - message.resourceType = 2; - break; - case "INTENT_TRAINING_PHRASE": - case 8: - message.resourceType = 8; - break; - case "INTENT_PARAMETER": - case 9: - message.resourceType = 9; - break; - case "INTENTS": - case 10: - message.resourceType = 10; - break; - case "INTENT_TRAINING_PHRASES": - case 11: - message.resourceType = 11; - break; - case "ENTITY_TYPE": - case 3: - message.resourceType = 3; - break; - case "ENTITY_TYPES": - case 12: - message.resourceType = 12; - break; - case "WEBHOOK": - case 4: - message.resourceType = 4; - break; - case "FLOW": - case 5: - message.resourceType = 5; - break; - case "PAGE": - case 6: - message.resourceType = 6; - break; - case "PAGES": - case 13: - message.resourceType = 13; - break; - case "TRANSITION_ROUTE_GROUP": - case 7: - message.resourceType = 7; - break; - } - if (object.resources) { - if (!Array.isArray(object.resources)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ValidationMessage.resources: array expected"); - message.resources = []; - for (var i = 0; i < object.resources.length; ++i) - message.resources[i] = String(object.resources[i]); - } - if (object.resourceNames) { - if (!Array.isArray(object.resourceNames)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ValidationMessage.resourceNames: array expected"); - message.resourceNames = []; - for (var i = 0; i < object.resourceNames.length; ++i) { - if (typeof object.resourceNames[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ValidationMessage.resourceNames: object expected"); - message.resourceNames[i] = $root.google.cloud.dialogflow.cx.v3beta1.ResourceName.fromObject(object.resourceNames[i]); + if (options.defaults) { + object.audioUri = ""; + object.allowPlaybackInterruption = false; } - } - switch (object.severity) { - case "SEVERITY_UNSPECIFIED": - case 0: - message.severity = 0; - break; - case "INFO": - case 1: - message.severity = 1; - break; - case "WARNING": - case 2: - message.severity = 2; - break; - case "ERROR": - case 3: - message.severity = 3; - break; - } - if (object.detail != null) - message.detail = String(object.detail); - return message; - }; - - /** - * Creates a plain object from a ValidationMessage message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ValidationMessage} message ValidationMessage - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ValidationMessage.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.resources = []; - object.resourceNames = []; - } - if (options.defaults) { - object.resourceType = options.enums === String ? "RESOURCE_TYPE_UNSPECIFIED" : 0; - object.severity = options.enums === String ? "SEVERITY_UNSPECIFIED" : 0; - object.detail = ""; - } - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - object.resourceType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType[message.resourceType] : message.resourceType; - if (message.resources && message.resources.length) { - object.resources = []; - for (var j = 0; j < message.resources.length; ++j) - object.resources[j] = message.resources[j]; - } - if (message.severity != null && message.hasOwnProperty("severity")) - object.severity = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity[message.severity] : message.severity; - if (message.detail != null && message.hasOwnProperty("detail")) - object.detail = message.detail; - if (message.resourceNames && message.resourceNames.length) { - object.resourceNames = []; - for (var j = 0; j < message.resourceNames.length; ++j) - object.resourceNames[j] = $root.google.cloud.dialogflow.cx.v3beta1.ResourceName.toObject(message.resourceNames[j], options); - } - return object; - }; + if (message.audioUri != null && message.hasOwnProperty("audioUri")) + object.audioUri = message.audioUri; + if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) + object.allowPlaybackInterruption = message.allowPlaybackInterruption; + return object; + }; - /** - * Converts this ValidationMessage to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage - * @instance - * @returns {Object.} JSON object - */ - ValidationMessage.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this PlayAudio to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio + * @instance + * @returns {Object.} JSON object + */ + PlayAudio.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * ResourceType enum. - * @name google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType - * @enum {number} - * @property {number} RESOURCE_TYPE_UNSPECIFIED=0 RESOURCE_TYPE_UNSPECIFIED value - * @property {number} AGENT=1 AGENT value - * @property {number} INTENT=2 INTENT value - * @property {number} INTENT_TRAINING_PHRASE=8 INTENT_TRAINING_PHRASE value - * @property {number} INTENT_PARAMETER=9 INTENT_PARAMETER value - * @property {number} INTENTS=10 INTENTS value - * @property {number} INTENT_TRAINING_PHRASES=11 INTENT_TRAINING_PHRASES value - * @property {number} ENTITY_TYPE=3 ENTITY_TYPE value - * @property {number} ENTITY_TYPES=12 ENTITY_TYPES value - * @property {number} WEBHOOK=4 WEBHOOK value - * @property {number} FLOW=5 FLOW value - * @property {number} PAGE=6 PAGE value - * @property {number} PAGES=13 PAGES value - * @property {number} TRANSITION_ROUTE_GROUP=7 TRANSITION_ROUTE_GROUP value - */ - ValidationMessage.ResourceType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RESOURCE_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "AGENT"] = 1; - values[valuesById[2] = "INTENT"] = 2; - values[valuesById[8] = "INTENT_TRAINING_PHRASE"] = 8; - values[valuesById[9] = "INTENT_PARAMETER"] = 9; - values[valuesById[10] = "INTENTS"] = 10; - values[valuesById[11] = "INTENT_TRAINING_PHRASES"] = 11; - values[valuesById[3] = "ENTITY_TYPE"] = 3; - values[valuesById[12] = "ENTITY_TYPES"] = 12; - values[valuesById[4] = "WEBHOOK"] = 4; - values[valuesById[5] = "FLOW"] = 5; - values[valuesById[6] = "PAGE"] = 6; - values[valuesById[13] = "PAGES"] = 13; - values[valuesById[7] = "TRANSITION_ROUTE_GROUP"] = 7; - return values; + return PlayAudio; })(); - /** - * Severity enum. - * @name google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity - * @enum {number} - * @property {number} SEVERITY_UNSPECIFIED=0 SEVERITY_UNSPECIFIED value - * @property {number} INFO=1 INFO value - * @property {number} WARNING=2 WARNING value - * @property {number} ERROR=3 ERROR value - */ - ValidationMessage.Severity = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "SEVERITY_UNSPECIFIED"] = 0; - values[valuesById[1] = "INFO"] = 1; - values[valuesById[2] = "WARNING"] = 2; - values[valuesById[3] = "ERROR"] = 3; - return values; - })(); + ResponseMessage.MixedAudio = (function() { - return ValidationMessage; - })(); + /** + * Properties of a MixedAudio. + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @interface IMixedAudio + * @property {Array.|null} [segments] MixedAudio segments + */ - v3beta1.ResourceName = (function() { + /** + * Constructs a new MixedAudio. + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @classdesc Represents a MixedAudio. + * @implements IMixedAudio + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio=} [properties] Properties to set + */ + function MixedAudio(properties) { + this.segments = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Properties of a ResourceName. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IResourceName - * @property {string|null} [name] ResourceName name - * @property {string|null} [displayName] ResourceName displayName - */ + /** + * MixedAudio segments. + * @member {Array.} segments + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @instance + */ + MixedAudio.prototype.segments = $util.emptyArray; - /** - * Constructs a new ResourceName. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ResourceName. - * @implements IResourceName - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IResourceName=} [properties] Properties to set - */ - function ResourceName(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Creates a new MixedAudio instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio} MixedAudio instance + */ + MixedAudio.create = function create(properties) { + return new MixedAudio(properties); + }; - /** - * ResourceName name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName - * @instance - */ - ResourceName.prototype.name = ""; + /** + * Encodes the specified MixedAudio message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio} message MixedAudio message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MixedAudio.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.segments != null && message.segments.length) + for (var i = 0; i < message.segments.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.encode(message.segments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * ResourceName displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName - * @instance - */ - ResourceName.prototype.displayName = ""; + /** + * Encodes the specified MixedAudio message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio} message MixedAudio message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MixedAudio.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a new ResourceName instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IResourceName=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ResourceName} ResourceName instance - */ - ResourceName.create = function create(properties) { - return new ResourceName(properties); - }; + /** + * Decodes a MixedAudio message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio} MixedAudio + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MixedAudio.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.segments && message.segments.length)) + message.segments = []; + message.segments.push($root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified ResourceName message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResourceName.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IResourceName} message ResourceName message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResourceName.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - return writer; - }; + /** + * Decodes a MixedAudio message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio} MixedAudio + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MixedAudio.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified ResourceName message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResourceName.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IResourceName} message ResourceName message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResourceName.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Verifies a MixedAudio message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MixedAudio.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.segments != null && message.hasOwnProperty("segments")) { + if (!Array.isArray(message.segments)) + return "segments: array expected"; + for (var i = 0; i < message.segments.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.verify(message.segments[i]); + if (error) + return "segments." + error; + } + } + return null; + }; - /** - * Decodes a ResourceName message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ResourceName} ResourceName - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResourceName.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ResourceName(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.displayName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Creates a MixedAudio message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio} MixedAudio + */ + MixedAudio.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio(); + if (object.segments) { + if (!Array.isArray(object.segments)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.segments: array expected"); + message.segments = []; + for (var i = 0; i < object.segments.length; ++i) { + if (typeof object.segments[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.segments: object expected"); + message.segments[i] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.fromObject(object.segments[i]); + } } - } - return message; - }; + return message; + }; - /** - * Decodes a ResourceName message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ResourceName} ResourceName - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResourceName.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a plain object from a MixedAudio message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio} message MixedAudio + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MixedAudio.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.segments = []; + if (message.segments && message.segments.length) { + object.segments = []; + for (var j = 0; j < message.segments.length; ++j) + object.segments[j] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.toObject(message.segments[j], options); + } + return object; + }; - /** - * Verifies a ResourceName message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ResourceName.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - return null; - }; + /** + * Converts this MixedAudio to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @instance + * @returns {Object.} JSON object + */ + MixedAudio.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + MixedAudio.Segment = (function() { + + /** + * Properties of a Segment. + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @interface ISegment + * @property {Uint8Array|null} [audio] Segment audio + * @property {string|null} [uri] Segment uri + * @property {boolean|null} [allowPlaybackInterruption] Segment allowPlaybackInterruption + */ + + /** + * Constructs a new Segment. + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @classdesc Represents a Segment. + * @implements ISegment + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment=} [properties] Properties to set + */ + function Segment(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Segment audio. + * @member {Uint8Array|null|undefined} audio + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @instance + */ + Segment.prototype.audio = null; + + /** + * Segment uri. + * @member {string|null|undefined} uri + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @instance + */ + Segment.prototype.uri = null; + + /** + * Segment allowPlaybackInterruption. + * @member {boolean} allowPlaybackInterruption + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @instance + */ + Segment.prototype.allowPlaybackInterruption = false; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Segment content. + * @member {"audio"|"uri"|undefined} content + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @instance + */ + Object.defineProperty(Segment.prototype, "content", { + get: $util.oneOfGetter($oneOfFields = ["audio", "uri"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Segment instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment} Segment instance + */ + Segment.create = function create(properties) { + return new Segment(properties); + }; + + /** + * Encodes the specified Segment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment} message Segment message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Segment.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.audio != null && Object.hasOwnProperty.call(message, "audio")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.audio); + if (message.uri != null && Object.hasOwnProperty.call(message, "uri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.uri); + if (message.allowPlaybackInterruption != null && Object.hasOwnProperty.call(message, "allowPlaybackInterruption")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowPlaybackInterruption); + return writer; + }; + + /** + * Encodes the specified Segment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment} message Segment message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Segment.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a ResourceName message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ResourceName} ResourceName - */ - ResourceName.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResourceName) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResourceName(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - return message; - }; + /** + * Decodes a Segment message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment} Segment + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Segment.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.audio = reader.bytes(); + break; + case 2: + message.uri = reader.string(); + break; + case 3: + message.allowPlaybackInterruption = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a plain object from a ResourceName message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResourceName} message ResourceName - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ResourceName.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.displayName = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - return object; - }; + /** + * Decodes a Segment message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment} Segment + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Segment.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Converts this ResourceName to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName - * @instance - * @returns {Object.} JSON object - */ - ResourceName.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Verifies a Segment message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Segment.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.audio != null && message.hasOwnProperty("audio")) { + properties.content = 1; + if (!(message.audio && typeof message.audio.length === "number" || $util.isString(message.audio))) + return "audio: buffer expected"; + } + if (message.uri != null && message.hasOwnProperty("uri")) { + if (properties.content === 1) + return "content: multiple values"; + properties.content = 1; + if (!$util.isString(message.uri)) + return "uri: string expected"; + } + if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) + if (typeof message.allowPlaybackInterruption !== "boolean") + return "allowPlaybackInterruption: boolean expected"; + return null; + }; - return ResourceName; - })(); + /** + * Creates a Segment message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment} Segment + */ + Segment.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment(); + if (object.audio != null) + if (typeof object.audio === "string") + $util.base64.decode(object.audio, message.audio = $util.newBuffer($util.base64.length(object.audio)), 0); + else if (object.audio.length) + message.audio = object.audio; + if (object.uri != null) + message.uri = String(object.uri); + if (object.allowPlaybackInterruption != null) + message.allowPlaybackInterruption = Boolean(object.allowPlaybackInterruption); + return message; + }; - v3beta1.SecuritySettingsService = (function() { + /** + * Creates a plain object from a Segment message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment} message Segment + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Segment.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.allowPlaybackInterruption = false; + if (message.audio != null && message.hasOwnProperty("audio")) { + object.audio = options.bytes === String ? $util.base64.encode(message.audio, 0, message.audio.length) : options.bytes === Array ? Array.prototype.slice.call(message.audio) : message.audio; + if (options.oneofs) + object.content = "audio"; + } + if (message.uri != null && message.hasOwnProperty("uri")) { + object.uri = message.uri; + if (options.oneofs) + object.content = "uri"; + } + if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) + object.allowPlaybackInterruption = message.allowPlaybackInterruption; + return object; + }; - /** - * Constructs a new SecuritySettingsService service. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a SecuritySettingsService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function SecuritySettingsService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } + /** + * Converts this Segment to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @instance + * @returns {Object.} JSON object + */ + Segment.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - (SecuritySettingsService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = SecuritySettingsService; + return Segment; + })(); - /** - * Creates new SecuritySettingsService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {SecuritySettingsService} RPC service. Useful where requests and/or responses are streamed. - */ - SecuritySettingsService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; + return MixedAudio; + })(); - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService#createSecuritySettings}. - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService - * @typedef CreateSecuritySettingsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.SecuritySettings} [response] SecuritySettings - */ + ResponseMessage.TelephonyTransferCall = (function() { - /** - * Calls CreateSecuritySettings. - * @function createSecuritySettings - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSecuritySettingsRequest} request CreateSecuritySettingsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.CreateSecuritySettingsCallback} callback Node-style callback called with the error, if any, and SecuritySettings - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SecuritySettingsService.prototype.createSecuritySettings = function createSecuritySettings(request, callback) { - return this.rpcCall(createSecuritySettings, $root.google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest, $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings, request, callback); - }, "name", { value: "CreateSecuritySettings" }); + /** + * Properties of a TelephonyTransferCall. + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @interface ITelephonyTransferCall + * @property {string|null} [phoneNumber] TelephonyTransferCall phoneNumber + */ - /** - * Calls CreateSecuritySettings. - * @function createSecuritySettings - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSecuritySettingsRequest} request CreateSecuritySettingsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Constructs a new TelephonyTransferCall. + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @classdesc Represents a TelephonyTransferCall. + * @implements ITelephonyTransferCall + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall=} [properties] Properties to set + */ + function TelephonyTransferCall(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService#getSecuritySettings}. - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService - * @typedef GetSecuritySettingsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.SecuritySettings} [response] SecuritySettings - */ + /** + * TelephonyTransferCall phoneNumber. + * @member {string|null|undefined} phoneNumber + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @instance + */ + TelephonyTransferCall.prototype.phoneNumber = null; - /** - * Calls GetSecuritySettings. - * @function getSecuritySettings - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetSecuritySettingsRequest} request GetSecuritySettingsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.GetSecuritySettingsCallback} callback Node-style callback called with the error, if any, and SecuritySettings - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SecuritySettingsService.prototype.getSecuritySettings = function getSecuritySettings(request, callback) { - return this.rpcCall(getSecuritySettings, $root.google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest, $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings, request, callback); - }, "name", { value: "GetSecuritySettings" }); + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Calls GetSecuritySettings. - * @function getSecuritySettings - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetSecuritySettingsRequest} request GetSecuritySettingsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * TelephonyTransferCall endpoint. + * @member {"phoneNumber"|undefined} endpoint + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @instance + */ + Object.defineProperty(TelephonyTransferCall.prototype, "endpoint", { + get: $util.oneOfGetter($oneOfFields = ["phoneNumber"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService#updateSecuritySettings}. - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService - * @typedef UpdateSecuritySettingsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.SecuritySettings} [response] SecuritySettings - */ + /** + * Creates a new TelephonyTransferCall instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall} TelephonyTransferCall instance + */ + TelephonyTransferCall.create = function create(properties) { + return new TelephonyTransferCall(properties); + }; - /** - * Calls UpdateSecuritySettings. - * @function updateSecuritySettings - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSecuritySettingsRequest} request UpdateSecuritySettingsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.UpdateSecuritySettingsCallback} callback Node-style callback called with the error, if any, and SecuritySettings - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SecuritySettingsService.prototype.updateSecuritySettings = function updateSecuritySettings(request, callback) { - return this.rpcCall(updateSecuritySettings, $root.google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest, $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings, request, callback); - }, "name", { value: "UpdateSecuritySettings" }); + /** + * Encodes the specified TelephonyTransferCall message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall} message TelephonyTransferCall message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TelephonyTransferCall.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.phoneNumber != null && Object.hasOwnProperty.call(message, "phoneNumber")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.phoneNumber); + return writer; + }; - /** - * Calls UpdateSecuritySettings. - * @function updateSecuritySettings - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSecuritySettingsRequest} request UpdateSecuritySettingsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Encodes the specified TelephonyTransferCall message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall} message TelephonyTransferCall message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TelephonyTransferCall.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService#listSecuritySettings}. - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService - * @typedef ListSecuritySettingsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse} [response] ListSecuritySettingsResponse - */ + /** + * Decodes a TelephonyTransferCall message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall} TelephonyTransferCall + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TelephonyTransferCall.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.phoneNumber = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Calls ListSecuritySettings. - * @function listSecuritySettings - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsRequest} request ListSecuritySettingsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.ListSecuritySettingsCallback} callback Node-style callback called with the error, if any, and ListSecuritySettingsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SecuritySettingsService.prototype.listSecuritySettings = function listSecuritySettings(request, callback) { - return this.rpcCall(listSecuritySettings, $root.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse, request, callback); - }, "name", { value: "ListSecuritySettings" }); + /** + * Decodes a TelephonyTransferCall message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall} TelephonyTransferCall + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TelephonyTransferCall.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Calls ListSecuritySettings. - * @function listSecuritySettings - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsRequest} request ListSecuritySettingsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Verifies a TelephonyTransferCall message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TelephonyTransferCall.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber")) { + properties.endpoint = 1; + if (!$util.isString(message.phoneNumber)) + return "phoneNumber: string expected"; + } + return null; + }; + + /** + * Creates a TelephonyTransferCall message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall} TelephonyTransferCall + */ + TelephonyTransferCall.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall(); + if (object.phoneNumber != null) + message.phoneNumber = String(object.phoneNumber); + return message; + }; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService#deleteSecuritySettings}. - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService - * @typedef DeleteSecuritySettingsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ + /** + * Creates a plain object from a TelephonyTransferCall message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall} message TelephonyTransferCall + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TelephonyTransferCall.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber")) { + object.phoneNumber = message.phoneNumber; + if (options.oneofs) + object.endpoint = "phoneNumber"; + } + return object; + }; - /** - * Calls DeleteSecuritySettings. - * @function deleteSecuritySettings - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSecuritySettingsRequest} request DeleteSecuritySettingsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.DeleteSecuritySettingsCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SecuritySettingsService.prototype.deleteSecuritySettings = function deleteSecuritySettings(request, callback) { - return this.rpcCall(deleteSecuritySettings, $root.google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteSecuritySettings" }); + /** + * Converts this TelephonyTransferCall to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @instance + * @returns {Object.} JSON object + */ + TelephonyTransferCall.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Calls DeleteSecuritySettings. - * @function deleteSecuritySettings - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSecuritySettingsRequest} request DeleteSecuritySettingsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + return TelephonyTransferCall; + })(); - return SecuritySettingsService; + return ResponseMessage; })(); - v3beta1.GetSecuritySettingsRequest = (function() { + v3beta1.ValidationMessage = (function() { /** - * Properties of a GetSecuritySettingsRequest. + * Properties of a ValidationMessage. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetSecuritySettingsRequest - * @property {string|null} [name] GetSecuritySettingsRequest name + * @interface IValidationMessage + * @property {google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType|null} [resourceType] ValidationMessage resourceType + * @property {Array.|null} [resources] ValidationMessage resources + * @property {Array.|null} [resourceNames] ValidationMessage resourceNames + * @property {google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity|null} [severity] ValidationMessage severity + * @property {string|null} [detail] ValidationMessage detail */ /** - * Constructs a new GetSecuritySettingsRequest. + * Constructs a new ValidationMessage. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetSecuritySettingsRequest. - * @implements IGetSecuritySettingsRequest + * @classdesc Represents a ValidationMessage. + * @implements IValidationMessage * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetSecuritySettingsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IValidationMessage=} [properties] Properties to set */ - function GetSecuritySettingsRequest(properties) { + function ValidationMessage(properties) { + this.resources = []; + this.resourceNames = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -81856,276 +80985,133 @@ } /** - * GetSecuritySettingsRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest + * ValidationMessage resourceType. + * @member {google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType} resourceType + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage * @instance */ - GetSecuritySettingsRequest.prototype.name = ""; - - /** - * Creates a new GetSecuritySettingsRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetSecuritySettingsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest} GetSecuritySettingsRequest instance - */ - GetSecuritySettingsRequest.create = function create(properties) { - return new GetSecuritySettingsRequest(properties); - }; - - /** - * Encodes the specified GetSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetSecuritySettingsRequest} message GetSecuritySettingsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetSecuritySettingsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; - - /** - * Encodes the specified GetSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetSecuritySettingsRequest} message GetSecuritySettingsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetSecuritySettingsRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest} GetSecuritySettingsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetSecuritySettingsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetSecuritySettingsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest} GetSecuritySettingsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetSecuritySettingsRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetSecuritySettingsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; - - /** - * Creates a GetSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest} GetSecuritySettingsRequest - */ - GetSecuritySettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; - - /** - * Creates a plain object from a GetSecuritySettingsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest} message GetSecuritySettingsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetSecuritySettingsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + ValidationMessage.prototype.resourceType = 0; /** - * Converts this GetSecuritySettingsRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest + * ValidationMessage resources. + * @member {Array.} resources + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage * @instance - * @returns {Object.} JSON object - */ - GetSecuritySettingsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetSecuritySettingsRequest; - })(); - - v3beta1.UpdateSecuritySettingsRequest = (function() { - - /** - * Properties of an UpdateSecuritySettingsRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IUpdateSecuritySettingsRequest - * @property {google.cloud.dialogflow.cx.v3beta1.ISecuritySettings|null} [securitySettings] UpdateSecuritySettingsRequest securitySettings - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSecuritySettingsRequest updateMask */ + ValidationMessage.prototype.resources = $util.emptyArray; /** - * Constructs a new UpdateSecuritySettingsRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an UpdateSecuritySettingsRequest. - * @implements IUpdateSecuritySettingsRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSecuritySettingsRequest=} [properties] Properties to set + * ValidationMessage resourceNames. + * @member {Array.} resourceNames + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage + * @instance */ - function UpdateSecuritySettingsRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + ValidationMessage.prototype.resourceNames = $util.emptyArray; /** - * UpdateSecuritySettingsRequest securitySettings. - * @member {google.cloud.dialogflow.cx.v3beta1.ISecuritySettings|null|undefined} securitySettings - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest + * ValidationMessage severity. + * @member {google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity} severity + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage * @instance */ - UpdateSecuritySettingsRequest.prototype.securitySettings = null; + ValidationMessage.prototype.severity = 0; /** - * UpdateSecuritySettingsRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest + * ValidationMessage detail. + * @member {string} detail + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage * @instance */ - UpdateSecuritySettingsRequest.prototype.updateMask = null; + ValidationMessage.prototype.detail = ""; /** - * Creates a new UpdateSecuritySettingsRequest instance using the specified properties. + * Creates a new ValidationMessage instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSecuritySettingsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest} UpdateSecuritySettingsRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IValidationMessage=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ValidationMessage} ValidationMessage instance */ - UpdateSecuritySettingsRequest.create = function create(properties) { - return new UpdateSecuritySettingsRequest(properties); + ValidationMessage.create = function create(properties) { + return new ValidationMessage(properties); }; /** - * Encodes the specified UpdateSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest.verify|verify} messages. + * Encodes the specified ValidationMessage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidationMessage.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSecuritySettingsRequest} message UpdateSecuritySettingsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IValidationMessage} message ValidationMessage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateSecuritySettingsRequest.encode = function encode(message, writer) { + ValidationMessage.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.securitySettings != null && Object.hasOwnProperty.call(message, "securitySettings")) - $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.encode(message.securitySettings, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.resourceType != null && Object.hasOwnProperty.call(message, "resourceType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); + if (message.resources != null && message.resources.length) + for (var i = 0; i < message.resources.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.resources[i]); + if (message.severity != null && Object.hasOwnProperty.call(message, "severity")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.severity); + if (message.detail != null && Object.hasOwnProperty.call(message, "detail")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.detail); + if (message.resourceNames != null && message.resourceNames.length) + for (var i = 0; i < message.resourceNames.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.ResourceName.encode(message.resourceNames[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest.verify|verify} messages. + * Encodes the specified ValidationMessage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidationMessage.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSecuritySettingsRequest} message UpdateSecuritySettingsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IValidationMessage} message ValidationMessage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ValidationMessage.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateSecuritySettingsRequest message from the specified reader or buffer. + * Decodes a ValidationMessage message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest} UpdateSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ValidationMessage} ValidationMessage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateSecuritySettingsRequest.decode = function decode(reader, length) { + ValidationMessage.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.securitySettings = $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.decode(reader, reader.uint32()); + message.resourceType = reader.int32(); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + if (!(message.resources && message.resources.length)) + message.resources = []; + message.resources.push(reader.string()); + break; + case 6: + if (!(message.resourceNames && message.resourceNames.length)) + message.resourceNames = []; + message.resourceNames.push($root.google.cloud.dialogflow.cx.v3beta1.ResourceName.decode(reader, reader.uint32())); + break; + case 3: + message.severity = reader.int32(); + break; + case 4: + message.detail = reader.string(); break; default: reader.skipType(tag & 7); @@ -82136,128 +81122,324 @@ }; /** - * Decodes an UpdateSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a ValidationMessage message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest} UpdateSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ValidationMessage} ValidationMessage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { + ValidationMessage.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateSecuritySettingsRequest message. + * Verifies a ValidationMessage message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateSecuritySettingsRequest.verify = function verify(message) { + ValidationMessage.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.verify(message.securitySettings); - if (error) - return "securitySettings." + error; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + switch (message.resourceType) { + default: + return "resourceType: enum value expected"; + case 0: + case 1: + case 2: + case 8: + case 9: + case 10: + case 11: + case 3: + case 12: + case 4: + case 5: + case 6: + case 13: + case 7: + break; + } + if (message.resources != null && message.hasOwnProperty("resources")) { + if (!Array.isArray(message.resources)) + return "resources: array expected"; + for (var i = 0; i < message.resources.length; ++i) + if (!$util.isString(message.resources[i])) + return "resources: string[] expected"; } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; + if (message.resourceNames != null && message.hasOwnProperty("resourceNames")) { + if (!Array.isArray(message.resourceNames)) + return "resourceNames: array expected"; + for (var i = 0; i < message.resourceNames.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ResourceName.verify(message.resourceNames[i]); + if (error) + return "resourceNames." + error; + } } + if (message.severity != null && message.hasOwnProperty("severity")) + switch (message.severity) { + default: + return "severity: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.detail != null && message.hasOwnProperty("detail")) + if (!$util.isString(message.detail)) + return "detail: string expected"; return null; }; /** - * Creates an UpdateSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ValidationMessage message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest} UpdateSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ValidationMessage} ValidationMessage */ - UpdateSecuritySettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest) + ValidationMessage.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest(); - if (object.securitySettings != null) { - if (typeof object.securitySettings !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest.securitySettings: object expected"); - message.securitySettings = $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.fromObject(object.securitySettings); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage(); + switch (object.resourceType) { + case "RESOURCE_TYPE_UNSPECIFIED": + case 0: + message.resourceType = 0; + break; + case "AGENT": + case 1: + message.resourceType = 1; + break; + case "INTENT": + case 2: + message.resourceType = 2; + break; + case "INTENT_TRAINING_PHRASE": + case 8: + message.resourceType = 8; + break; + case "INTENT_PARAMETER": + case 9: + message.resourceType = 9; + break; + case "INTENTS": + case 10: + message.resourceType = 10; + break; + case "INTENT_TRAINING_PHRASES": + case 11: + message.resourceType = 11; + break; + case "ENTITY_TYPE": + case 3: + message.resourceType = 3; + break; + case "ENTITY_TYPES": + case 12: + message.resourceType = 12; + break; + case "WEBHOOK": + case 4: + message.resourceType = 4; + break; + case "FLOW": + case 5: + message.resourceType = 5; + break; + case "PAGE": + case 6: + message.resourceType = 6; + break; + case "PAGES": + case 13: + message.resourceType = 13; + break; + case "TRANSITION_ROUTE_GROUP": + case 7: + message.resourceType = 7; + break; + } + if (object.resources) { + if (!Array.isArray(object.resources)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ValidationMessage.resources: array expected"); + message.resources = []; + for (var i = 0; i < object.resources.length; ++i) + message.resources[i] = String(object.resources[i]); } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + if (object.resourceNames) { + if (!Array.isArray(object.resourceNames)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ValidationMessage.resourceNames: array expected"); + message.resourceNames = []; + for (var i = 0; i < object.resourceNames.length; ++i) { + if (typeof object.resourceNames[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ValidationMessage.resourceNames: object expected"); + message.resourceNames[i] = $root.google.cloud.dialogflow.cx.v3beta1.ResourceName.fromObject(object.resourceNames[i]); + } + } + switch (object.severity) { + case "SEVERITY_UNSPECIFIED": + case 0: + message.severity = 0; + break; + case "INFO": + case 1: + message.severity = 1; + break; + case "WARNING": + case 2: + message.severity = 2; + break; + case "ERROR": + case 3: + message.severity = 3; + break; } + if (object.detail != null) + message.detail = String(object.detail); return message; }; /** - * Creates a plain object from an UpdateSecuritySettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ValidationMessage message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest} message UpdateSecuritySettingsRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ValidationMessage} message ValidationMessage * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateSecuritySettingsRequest.toObject = function toObject(message, options) { + ValidationMessage.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.resources = []; + object.resourceNames = []; + } if (options.defaults) { - object.securitySettings = null; - object.updateMask = null; + object.resourceType = options.enums === String ? "RESOURCE_TYPE_UNSPECIFIED" : 0; + object.severity = options.enums === String ? "SEVERITY_UNSPECIFIED" : 0; + object.detail = ""; + } + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + object.resourceType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType[message.resourceType] : message.resourceType; + if (message.resources && message.resources.length) { + object.resources = []; + for (var j = 0; j < message.resources.length; ++j) + object.resources[j] = message.resources[j]; + } + if (message.severity != null && message.hasOwnProperty("severity")) + object.severity = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity[message.severity] : message.severity; + if (message.detail != null && message.hasOwnProperty("detail")) + object.detail = message.detail; + if (message.resourceNames && message.resourceNames.length) { + object.resourceNames = []; + for (var j = 0; j < message.resourceNames.length; ++j) + object.resourceNames[j] = $root.google.cloud.dialogflow.cx.v3beta1.ResourceName.toObject(message.resourceNames[j], options); } - if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) - object.securitySettings = $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.toObject(message.securitySettings, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this UpdateSecuritySettingsRequest to JSON. + * Converts this ValidationMessage to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage * @instance * @returns {Object.} JSON object */ - UpdateSecuritySettingsRequest.prototype.toJSON = function toJSON() { + ValidationMessage.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateSecuritySettingsRequest; + /** + * ResourceType enum. + * @name google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType + * @enum {number} + * @property {number} RESOURCE_TYPE_UNSPECIFIED=0 RESOURCE_TYPE_UNSPECIFIED value + * @property {number} AGENT=1 AGENT value + * @property {number} INTENT=2 INTENT value + * @property {number} INTENT_TRAINING_PHRASE=8 INTENT_TRAINING_PHRASE value + * @property {number} INTENT_PARAMETER=9 INTENT_PARAMETER value + * @property {number} INTENTS=10 INTENTS value + * @property {number} INTENT_TRAINING_PHRASES=11 INTENT_TRAINING_PHRASES value + * @property {number} ENTITY_TYPE=3 ENTITY_TYPE value + * @property {number} ENTITY_TYPES=12 ENTITY_TYPES value + * @property {number} WEBHOOK=4 WEBHOOK value + * @property {number} FLOW=5 FLOW value + * @property {number} PAGE=6 PAGE value + * @property {number} PAGES=13 PAGES value + * @property {number} TRANSITION_ROUTE_GROUP=7 TRANSITION_ROUTE_GROUP value + */ + ValidationMessage.ResourceType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RESOURCE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "AGENT"] = 1; + values[valuesById[2] = "INTENT"] = 2; + values[valuesById[8] = "INTENT_TRAINING_PHRASE"] = 8; + values[valuesById[9] = "INTENT_PARAMETER"] = 9; + values[valuesById[10] = "INTENTS"] = 10; + values[valuesById[11] = "INTENT_TRAINING_PHRASES"] = 11; + values[valuesById[3] = "ENTITY_TYPE"] = 3; + values[valuesById[12] = "ENTITY_TYPES"] = 12; + values[valuesById[4] = "WEBHOOK"] = 4; + values[valuesById[5] = "FLOW"] = 5; + values[valuesById[6] = "PAGE"] = 6; + values[valuesById[13] = "PAGES"] = 13; + values[valuesById[7] = "TRANSITION_ROUTE_GROUP"] = 7; + return values; + })(); + + /** + * Severity enum. + * @name google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity + * @enum {number} + * @property {number} SEVERITY_UNSPECIFIED=0 SEVERITY_UNSPECIFIED value + * @property {number} INFO=1 INFO value + * @property {number} WARNING=2 WARNING value + * @property {number} ERROR=3 ERROR value + */ + ValidationMessage.Severity = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SEVERITY_UNSPECIFIED"] = 0; + values[valuesById[1] = "INFO"] = 1; + values[valuesById[2] = "WARNING"] = 2; + values[valuesById[3] = "ERROR"] = 3; + return values; + })(); + + return ValidationMessage; })(); - v3beta1.ListSecuritySettingsRequest = (function() { + v3beta1.ResourceName = (function() { /** - * Properties of a ListSecuritySettingsRequest. + * Properties of a ResourceName. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListSecuritySettingsRequest - * @property {string|null} [parent] ListSecuritySettingsRequest parent - * @property {number|null} [pageSize] ListSecuritySettingsRequest pageSize - * @property {string|null} [pageToken] ListSecuritySettingsRequest pageToken + * @interface IResourceName + * @property {string|null} [name] ResourceName name + * @property {string|null} [displayName] ResourceName displayName */ /** - * Constructs a new ListSecuritySettingsRequest. + * Constructs a new ResourceName. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListSecuritySettingsRequest. - * @implements IListSecuritySettingsRequest + * @classdesc Represents a ResourceName. + * @implements IResourceName * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IResourceName=} [properties] Properties to set */ - function ListSecuritySettingsRequest(properties) { + function ResourceName(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -82265,101 +81447,88 @@ } /** - * ListSecuritySettingsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest - * @instance - */ - ListSecuritySettingsRequest.prototype.parent = ""; - - /** - * ListSecuritySettingsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest + * ResourceName name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName * @instance */ - ListSecuritySettingsRequest.prototype.pageSize = 0; + ResourceName.prototype.name = ""; /** - * ListSecuritySettingsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest + * ResourceName displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName * @instance */ - ListSecuritySettingsRequest.prototype.pageToken = ""; + ResourceName.prototype.displayName = ""; /** - * Creates a new ListSecuritySettingsRequest instance using the specified properties. + * Creates a new ResourceName instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest} ListSecuritySettingsRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IResourceName=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ResourceName} ResourceName instance */ - ListSecuritySettingsRequest.create = function create(properties) { - return new ListSecuritySettingsRequest(properties); + ResourceName.create = function create(properties) { + return new ResourceName(properties); }; /** - * Encodes the specified ListSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest.verify|verify} messages. + * Encodes the specified ResourceName message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResourceName.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsRequest} message ListSecuritySettingsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IResourceName} message ResourceName message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSecuritySettingsRequest.encode = function encode(message, writer) { + ResourceName.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); return writer; }; /** - * Encodes the specified ListSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest.verify|verify} messages. + * Encodes the specified ResourceName message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResourceName.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsRequest} message ListSecuritySettingsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IResourceName} message ResourceName message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ResourceName.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListSecuritySettingsRequest message from the specified reader or buffer. + * Decodes a ResourceName message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest} ListSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ResourceName} ResourceName * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSecuritySettingsRequest.decode = function decode(reader, length) { + ResourceName.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ResourceName(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.name = reader.string(); break; case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); + message.displayName = reader.string(); break; default: reader.skipType(tag & 7); @@ -82370,126 +81539,163 @@ }; /** - * Decodes a ListSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a ResourceName message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest} ListSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ResourceName} ResourceName * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { + ResourceName.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListSecuritySettingsRequest message. + * Verifies a ResourceName message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListSecuritySettingsRequest.verify = function verify(message) { + ResourceName.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; return null; }; /** - * Creates a ListSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ResourceName message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest} ListSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ResourceName} ResourceName */ - ListSecuritySettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest) + ResourceName.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResourceName) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResourceName(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); return message; }; /** - * Creates a plain object from a ListSecuritySettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ResourceName message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest} message ListSecuritySettingsRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ResourceName} message ResourceName * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListSecuritySettingsRequest.toObject = function toObject(message, options) { + ResourceName.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.name = ""; + object.displayName = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; return object; }; /** - * Converts this ListSecuritySettingsRequest to JSON. + * Converts this ResourceName to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName * @instance * @returns {Object.} JSON object */ - ListSecuritySettingsRequest.prototype.toJSON = function toJSON() { + ResourceName.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListSecuritySettingsRequest; + return ResourceName; })(); - v3beta1.ListSecuritySettingsResponse = (function() { + /** + * AudioEncoding enum. + * @name google.cloud.dialogflow.cx.v3beta1.AudioEncoding + * @enum {number} + * @property {number} AUDIO_ENCODING_UNSPECIFIED=0 AUDIO_ENCODING_UNSPECIFIED value + * @property {number} AUDIO_ENCODING_LINEAR_16=1 AUDIO_ENCODING_LINEAR_16 value + * @property {number} AUDIO_ENCODING_FLAC=2 AUDIO_ENCODING_FLAC value + * @property {number} AUDIO_ENCODING_MULAW=3 AUDIO_ENCODING_MULAW value + * @property {number} AUDIO_ENCODING_AMR=4 AUDIO_ENCODING_AMR value + * @property {number} AUDIO_ENCODING_AMR_WB=5 AUDIO_ENCODING_AMR_WB value + * @property {number} AUDIO_ENCODING_OGG_OPUS=6 AUDIO_ENCODING_OGG_OPUS value + * @property {number} AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE=7 AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE value + */ + v3beta1.AudioEncoding = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "AUDIO_ENCODING_UNSPECIFIED"] = 0; + values[valuesById[1] = "AUDIO_ENCODING_LINEAR_16"] = 1; + values[valuesById[2] = "AUDIO_ENCODING_FLAC"] = 2; + values[valuesById[3] = "AUDIO_ENCODING_MULAW"] = 3; + values[valuesById[4] = "AUDIO_ENCODING_AMR"] = 4; + values[valuesById[5] = "AUDIO_ENCODING_AMR_WB"] = 5; + values[valuesById[6] = "AUDIO_ENCODING_OGG_OPUS"] = 6; + values[valuesById[7] = "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE"] = 7; + return values; + })(); + + /** + * SpeechModelVariant enum. + * @name google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant + * @enum {number} + * @property {number} SPEECH_MODEL_VARIANT_UNSPECIFIED=0 SPEECH_MODEL_VARIANT_UNSPECIFIED value + * @property {number} USE_BEST_AVAILABLE=1 USE_BEST_AVAILABLE value + * @property {number} USE_STANDARD=2 USE_STANDARD value + * @property {number} USE_ENHANCED=3 USE_ENHANCED value + */ + v3beta1.SpeechModelVariant = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SPEECH_MODEL_VARIANT_UNSPECIFIED"] = 0; + values[valuesById[1] = "USE_BEST_AVAILABLE"] = 1; + values[valuesById[2] = "USE_STANDARD"] = 2; + values[valuesById[3] = "USE_ENHANCED"] = 3; + return values; + })(); + + v3beta1.SpeechWordInfo = (function() { /** - * Properties of a ListSecuritySettingsResponse. + * Properties of a SpeechWordInfo. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListSecuritySettingsResponse - * @property {Array.|null} [securitySettings] ListSecuritySettingsResponse securitySettings - * @property {string|null} [nextPageToken] ListSecuritySettingsResponse nextPageToken + * @interface ISpeechWordInfo + * @property {string|null} [word] SpeechWordInfo word + * @property {google.protobuf.IDuration|null} [startOffset] SpeechWordInfo startOffset + * @property {google.protobuf.IDuration|null} [endOffset] SpeechWordInfo endOffset + * @property {number|null} [confidence] SpeechWordInfo confidence */ /** - * Constructs a new ListSecuritySettingsResponse. + * Constructs a new SpeechWordInfo. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListSecuritySettingsResponse. - * @implements IListSecuritySettingsResponse + * @classdesc Represents a SpeechWordInfo. + * @implements ISpeechWordInfo * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo=} [properties] Properties to set */ - function ListSecuritySettingsResponse(properties) { - this.securitySettings = []; + function SpeechWordInfo(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -82497,91 +81703,114 @@ } /** - * ListSecuritySettingsResponse securitySettings. - * @member {Array.} securitySettings - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse + * SpeechWordInfo word. + * @member {string} word + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo * @instance */ - ListSecuritySettingsResponse.prototype.securitySettings = $util.emptyArray; + SpeechWordInfo.prototype.word = ""; /** - * ListSecuritySettingsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse + * SpeechWordInfo startOffset. + * @member {google.protobuf.IDuration|null|undefined} startOffset + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo * @instance */ - ListSecuritySettingsResponse.prototype.nextPageToken = ""; + SpeechWordInfo.prototype.startOffset = null; /** - * Creates a new ListSecuritySettingsResponse instance using the specified properties. + * SpeechWordInfo endOffset. + * @member {google.protobuf.IDuration|null|undefined} endOffset + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo + * @instance + */ + SpeechWordInfo.prototype.endOffset = null; + + /** + * SpeechWordInfo confidence. + * @member {number} confidence + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo + * @instance + */ + SpeechWordInfo.prototype.confidence = 0; + + /** + * Creates a new SpeechWordInfo instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse} ListSecuritySettingsResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo} SpeechWordInfo instance */ - ListSecuritySettingsResponse.create = function create(properties) { - return new ListSecuritySettingsResponse(properties); + SpeechWordInfo.create = function create(properties) { + return new SpeechWordInfo(properties); }; /** - * Encodes the specified ListSecuritySettingsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse.verify|verify} messages. + * Encodes the specified SpeechWordInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsResponse} message ListSecuritySettingsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo} message SpeechWordInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSecuritySettingsResponse.encode = function encode(message, writer) { + SpeechWordInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.securitySettings != null && message.securitySettings.length) - for (var i = 0; i < message.securitySettings.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.encode(message.securitySettings[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.startOffset != null && Object.hasOwnProperty.call(message, "startOffset")) + $root.google.protobuf.Duration.encode(message.startOffset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.endOffset != null && Object.hasOwnProperty.call(message, "endOffset")) + $root.google.protobuf.Duration.encode(message.endOffset, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.word != null && Object.hasOwnProperty.call(message, "word")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.word); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + writer.uint32(/* id 4, wireType 5 =*/37).float(message.confidence); return writer; }; /** - * Encodes the specified ListSecuritySettingsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse.verify|verify} messages. + * Encodes the specified SpeechWordInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsResponse} message ListSecuritySettingsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo} message SpeechWordInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSecuritySettingsResponse.encodeDelimited = function encodeDelimited(message, writer) { + SpeechWordInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListSecuritySettingsResponse message from the specified reader or buffer. + * Decodes a SpeechWordInfo message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse} ListSecuritySettingsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo} SpeechWordInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSecuritySettingsResponse.decode = function decode(reader, length) { + SpeechWordInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 3: + message.word = reader.string(); + break; case 1: - if (!(message.securitySettings && message.securitySettings.length)) - message.securitySettings = []; - message.securitySettings.push($root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.decode(reader, reader.uint32())); + message.startOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; case 2: - message.nextPageToken = reader.string(); + message.endOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 4: + message.confidence = reader.float(); break; default: reader.skipType(tag & 7); @@ -82592,134 +81821,149 @@ }; /** - * Decodes a ListSecuritySettingsResponse message from the specified reader or buffer, length delimited. + * Decodes a SpeechWordInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse} ListSecuritySettingsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo} SpeechWordInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSecuritySettingsResponse.decodeDelimited = function decodeDelimited(reader) { + SpeechWordInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListSecuritySettingsResponse message. + * Verifies a SpeechWordInfo message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListSecuritySettingsResponse.verify = function verify(message) { + SpeechWordInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) { - if (!Array.isArray(message.securitySettings)) - return "securitySettings: array expected"; - for (var i = 0; i < message.securitySettings.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.verify(message.securitySettings[i]); - if (error) - return "securitySettings." + error; - } + if (message.word != null && message.hasOwnProperty("word")) + if (!$util.isString(message.word)) + return "word: string expected"; + if (message.startOffset != null && message.hasOwnProperty("startOffset")) { + var error = $root.google.protobuf.Duration.verify(message.startOffset); + if (error) + return "startOffset." + error; + } + if (message.endOffset != null && message.hasOwnProperty("endOffset")) { + var error = $root.google.protobuf.Duration.verify(message.endOffset); + if (error) + return "endOffset." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.confidence != null && message.hasOwnProperty("confidence")) + if (typeof message.confidence !== "number") + return "confidence: number expected"; return null; }; /** - * Creates a ListSecuritySettingsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SpeechWordInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse} ListSecuritySettingsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo} SpeechWordInfo */ - ListSecuritySettingsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse) + SpeechWordInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse(); - if (object.securitySettings) { - if (!Array.isArray(object.securitySettings)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse.securitySettings: array expected"); - message.securitySettings = []; - for (var i = 0; i < object.securitySettings.length; ++i) { - if (typeof object.securitySettings[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse.securitySettings: object expected"); - message.securitySettings[i] = $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.fromObject(object.securitySettings[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo(); + if (object.word != null) + message.word = String(object.word); + if (object.startOffset != null) { + if (typeof object.startOffset !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.startOffset: object expected"); + message.startOffset = $root.google.protobuf.Duration.fromObject(object.startOffset); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + if (object.endOffset != null) { + if (typeof object.endOffset !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.endOffset: object expected"); + message.endOffset = $root.google.protobuf.Duration.fromObject(object.endOffset); + } + if (object.confidence != null) + message.confidence = Number(object.confidence); return message; }; /** - * Creates a plain object from a ListSecuritySettingsResponse message. Also converts values to other types if specified. + * Creates a plain object from a SpeechWordInfo message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse} message ListSecuritySettingsResponse + * @param {google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo} message SpeechWordInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListSecuritySettingsResponse.toObject = function toObject(message, options) { + SpeechWordInfo.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.securitySettings = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.securitySettings && message.securitySettings.length) { - object.securitySettings = []; - for (var j = 0; j < message.securitySettings.length; ++j) - object.securitySettings[j] = $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.toObject(message.securitySettings[j], options); + if (options.defaults) { + object.startOffset = null; + object.endOffset = null; + object.word = ""; + object.confidence = 0; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.startOffset != null && message.hasOwnProperty("startOffset")) + object.startOffset = $root.google.protobuf.Duration.toObject(message.startOffset, options); + if (message.endOffset != null && message.hasOwnProperty("endOffset")) + object.endOffset = $root.google.protobuf.Duration.toObject(message.endOffset, options); + if (message.word != null && message.hasOwnProperty("word")) + object.word = message.word; + if (message.confidence != null && message.hasOwnProperty("confidence")) + object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; return object; }; /** - * Converts this ListSecuritySettingsResponse to JSON. + * Converts this SpeechWordInfo to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo * @instance * @returns {Object.} JSON object */ - ListSecuritySettingsResponse.prototype.toJSON = function toJSON() { + SpeechWordInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListSecuritySettingsResponse; + return SpeechWordInfo; })(); - v3beta1.CreateSecuritySettingsRequest = (function() { + v3beta1.InputAudioConfig = (function() { /** - * Properties of a CreateSecuritySettingsRequest. + * Properties of an InputAudioConfig. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ICreateSecuritySettingsRequest - * @property {string|null} [parent] CreateSecuritySettingsRequest parent - * @property {google.cloud.dialogflow.cx.v3beta1.ISecuritySettings|null} [securitySettings] CreateSecuritySettingsRequest securitySettings + * @interface IInputAudioConfig + * @property {google.cloud.dialogflow.cx.v3beta1.AudioEncoding|null} [audioEncoding] InputAudioConfig audioEncoding + * @property {number|null} [sampleRateHertz] InputAudioConfig sampleRateHertz + * @property {boolean|null} [enableWordInfo] InputAudioConfig enableWordInfo + * @property {Array.|null} [phraseHints] InputAudioConfig phraseHints + * @property {string|null} [model] InputAudioConfig model + * @property {google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant|null} [modelVariant] InputAudioConfig modelVariant + * @property {boolean|null} [singleUtterance] InputAudioConfig singleUtterance */ /** - * Constructs a new CreateSecuritySettingsRequest. + * Constructs a new InputAudioConfig. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CreateSecuritySettingsRequest. - * @implements ICreateSecuritySettingsRequest + * @classdesc Represents an InputAudioConfig. + * @implements IInputAudioConfig * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSecuritySettingsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig=} [properties] Properties to set */ - function CreateSecuritySettingsRequest(properties) { + function InputAudioConfig(properties) { + this.phraseHints = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -82727,88 +81971,156 @@ } /** - * CreateSecuritySettingsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest + * InputAudioConfig audioEncoding. + * @member {google.cloud.dialogflow.cx.v3beta1.AudioEncoding} audioEncoding + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @instance */ - CreateSecuritySettingsRequest.prototype.parent = ""; + InputAudioConfig.prototype.audioEncoding = 0; /** - * CreateSecuritySettingsRequest securitySettings. - * @member {google.cloud.dialogflow.cx.v3beta1.ISecuritySettings|null|undefined} securitySettings - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest + * InputAudioConfig sampleRateHertz. + * @member {number} sampleRateHertz + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @instance */ - CreateSecuritySettingsRequest.prototype.securitySettings = null; + InputAudioConfig.prototype.sampleRateHertz = 0; /** - * Creates a new CreateSecuritySettingsRequest instance using the specified properties. + * InputAudioConfig enableWordInfo. + * @member {boolean} enableWordInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @instance + */ + InputAudioConfig.prototype.enableWordInfo = false; + + /** + * InputAudioConfig phraseHints. + * @member {Array.} phraseHints + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @instance + */ + InputAudioConfig.prototype.phraseHints = $util.emptyArray; + + /** + * InputAudioConfig model. + * @member {string} model + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @instance + */ + InputAudioConfig.prototype.model = ""; + + /** + * InputAudioConfig modelVariant. + * @member {google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant} modelVariant + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @instance + */ + InputAudioConfig.prototype.modelVariant = 0; + + /** + * InputAudioConfig singleUtterance. + * @member {boolean} singleUtterance + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @instance + */ + InputAudioConfig.prototype.singleUtterance = false; + + /** + * Creates a new InputAudioConfig instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSecuritySettingsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest} CreateSecuritySettingsRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.InputAudioConfig} InputAudioConfig instance */ - CreateSecuritySettingsRequest.create = function create(properties) { - return new CreateSecuritySettingsRequest(properties); + InputAudioConfig.create = function create(properties) { + return new InputAudioConfig(properties); }; /** - * Encodes the specified CreateSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest.verify|verify} messages. + * Encodes the specified InputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSecuritySettingsRequest} message CreateSecuritySettingsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig} message InputAudioConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateSecuritySettingsRequest.encode = function encode(message, writer) { + InputAudioConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.securitySettings != null && Object.hasOwnProperty.call(message, "securitySettings")) - $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.encode(message.securitySettings, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.audioEncoding != null && Object.hasOwnProperty.call(message, "audioEncoding")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.audioEncoding); + if (message.sampleRateHertz != null && Object.hasOwnProperty.call(message, "sampleRateHertz")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.sampleRateHertz); + if (message.phraseHints != null && message.phraseHints.length) + for (var i = 0; i < message.phraseHints.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.phraseHints[i]); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.model); + if (message.singleUtterance != null && Object.hasOwnProperty.call(message, "singleUtterance")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.singleUtterance); + if (message.modelVariant != null && Object.hasOwnProperty.call(message, "modelVariant")) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.modelVariant); + if (message.enableWordInfo != null && Object.hasOwnProperty.call(message, "enableWordInfo")) + writer.uint32(/* id 13, wireType 0 =*/104).bool(message.enableWordInfo); return writer; }; /** - * Encodes the specified CreateSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest.verify|verify} messages. + * Encodes the specified InputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSecuritySettingsRequest} message CreateSecuritySettingsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig} message InputAudioConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + InputAudioConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateSecuritySettingsRequest message from the specified reader or buffer. + * Decodes an InputAudioConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest} CreateSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.InputAudioConfig} InputAudioConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateSecuritySettingsRequest.decode = function decode(reader, length) { + InputAudioConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.audioEncoding = reader.int32(); break; case 2: - message.securitySettings = $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.decode(reader, reader.uint32()); + message.sampleRateHertz = reader.int32(); + break; + case 13: + message.enableWordInfo = reader.bool(); + break; + case 4: + if (!(message.phraseHints && message.phraseHints.length)) + message.phraseHints = []; + message.phraseHints.push(reader.string()); + break; + case 7: + message.model = reader.string(); + break; + case 10: + message.modelVariant = reader.int32(); + break; + case 8: + message.singleUtterance = reader.bool(); break; default: reader.skipType(tag & 7); @@ -82819,121 +82131,254 @@ }; /** - * Decodes a CreateSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * Decodes an InputAudioConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest} CreateSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.InputAudioConfig} InputAudioConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { + InputAudioConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateSecuritySettingsRequest message. + * Verifies an InputAudioConfig message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateSecuritySettingsRequest.verify = function verify(message) { + InputAudioConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.verify(message.securitySettings); - if (error) - return "securitySettings." + error; + if (message.audioEncoding != null && message.hasOwnProperty("audioEncoding")) + switch (message.audioEncoding) { + default: + return "audioEncoding: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + if (message.sampleRateHertz != null && message.hasOwnProperty("sampleRateHertz")) + if (!$util.isInteger(message.sampleRateHertz)) + return "sampleRateHertz: integer expected"; + if (message.enableWordInfo != null && message.hasOwnProperty("enableWordInfo")) + if (typeof message.enableWordInfo !== "boolean") + return "enableWordInfo: boolean expected"; + if (message.phraseHints != null && message.hasOwnProperty("phraseHints")) { + if (!Array.isArray(message.phraseHints)) + return "phraseHints: array expected"; + for (var i = 0; i < message.phraseHints.length; ++i) + if (!$util.isString(message.phraseHints[i])) + return "phraseHints: string[] expected"; } + if (message.model != null && message.hasOwnProperty("model")) + if (!$util.isString(message.model)) + return "model: string expected"; + if (message.modelVariant != null && message.hasOwnProperty("modelVariant")) + switch (message.modelVariant) { + default: + return "modelVariant: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.singleUtterance != null && message.hasOwnProperty("singleUtterance")) + if (typeof message.singleUtterance !== "boolean") + return "singleUtterance: boolean expected"; return null; }; /** - * Creates a CreateSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an InputAudioConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest} CreateSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.InputAudioConfig} InputAudioConfig */ - CreateSecuritySettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest) + InputAudioConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.securitySettings != null) { - if (typeof object.securitySettings !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest.securitySettings: object expected"); - message.securitySettings = $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.fromObject(object.securitySettings); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig(); + switch (object.audioEncoding) { + case "AUDIO_ENCODING_UNSPECIFIED": + case 0: + message.audioEncoding = 0; + break; + case "AUDIO_ENCODING_LINEAR_16": + case 1: + message.audioEncoding = 1; + break; + case "AUDIO_ENCODING_FLAC": + case 2: + message.audioEncoding = 2; + break; + case "AUDIO_ENCODING_MULAW": + case 3: + message.audioEncoding = 3; + break; + case "AUDIO_ENCODING_AMR": + case 4: + message.audioEncoding = 4; + break; + case "AUDIO_ENCODING_AMR_WB": + case 5: + message.audioEncoding = 5; + break; + case "AUDIO_ENCODING_OGG_OPUS": + case 6: + message.audioEncoding = 6; + break; + case "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE": + case 7: + message.audioEncoding = 7; + break; + } + if (object.sampleRateHertz != null) + message.sampleRateHertz = object.sampleRateHertz | 0; + if (object.enableWordInfo != null) + message.enableWordInfo = Boolean(object.enableWordInfo); + if (object.phraseHints) { + if (!Array.isArray(object.phraseHints)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.phraseHints: array expected"); + message.phraseHints = []; + for (var i = 0; i < object.phraseHints.length; ++i) + message.phraseHints[i] = String(object.phraseHints[i]); + } + if (object.model != null) + message.model = String(object.model); + switch (object.modelVariant) { + case "SPEECH_MODEL_VARIANT_UNSPECIFIED": + case 0: + message.modelVariant = 0; + break; + case "USE_BEST_AVAILABLE": + case 1: + message.modelVariant = 1; + break; + case "USE_STANDARD": + case 2: + message.modelVariant = 2; + break; + case "USE_ENHANCED": + case 3: + message.modelVariant = 3; + break; } + if (object.singleUtterance != null) + message.singleUtterance = Boolean(object.singleUtterance); return message; }; /** - * Creates a plain object from a CreateSecuritySettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from an InputAudioConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest} message CreateSecuritySettingsRequest + * @param {google.cloud.dialogflow.cx.v3beta1.InputAudioConfig} message InputAudioConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateSecuritySettingsRequest.toObject = function toObject(message, options) { + InputAudioConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.phraseHints = []; if (options.defaults) { - object.parent = ""; - object.securitySettings = null; + object.audioEncoding = options.enums === String ? "AUDIO_ENCODING_UNSPECIFIED" : 0; + object.sampleRateHertz = 0; + object.model = ""; + object.singleUtterance = false; + object.modelVariant = options.enums === String ? "SPEECH_MODEL_VARIANT_UNSPECIFIED" : 0; + object.enableWordInfo = false; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) - object.securitySettings = $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.toObject(message.securitySettings, options); + if (message.audioEncoding != null && message.hasOwnProperty("audioEncoding")) + object.audioEncoding = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.AudioEncoding[message.audioEncoding] : message.audioEncoding; + if (message.sampleRateHertz != null && message.hasOwnProperty("sampleRateHertz")) + object.sampleRateHertz = message.sampleRateHertz; + if (message.phraseHints && message.phraseHints.length) { + object.phraseHints = []; + for (var j = 0; j < message.phraseHints.length; ++j) + object.phraseHints[j] = message.phraseHints[j]; + } + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; + if (message.singleUtterance != null && message.hasOwnProperty("singleUtterance")) + object.singleUtterance = message.singleUtterance; + if (message.modelVariant != null && message.hasOwnProperty("modelVariant")) + object.modelVariant = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant[message.modelVariant] : message.modelVariant; + if (message.enableWordInfo != null && message.hasOwnProperty("enableWordInfo")) + object.enableWordInfo = message.enableWordInfo; return object; }; /** - * Converts this CreateSecuritySettingsRequest to JSON. + * Converts this InputAudioConfig to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @instance * @returns {Object.} JSON object */ - CreateSecuritySettingsRequest.prototype.toJSON = function toJSON() { + InputAudioConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateSecuritySettingsRequest; + return InputAudioConfig; })(); - v3beta1.DeleteSecuritySettingsRequest = (function() { + /** + * SsmlVoiceGender enum. + * @name google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender + * @enum {number} + * @property {number} SSML_VOICE_GENDER_UNSPECIFIED=0 SSML_VOICE_GENDER_UNSPECIFIED value + * @property {number} SSML_VOICE_GENDER_MALE=1 SSML_VOICE_GENDER_MALE value + * @property {number} SSML_VOICE_GENDER_FEMALE=2 SSML_VOICE_GENDER_FEMALE value + * @property {number} SSML_VOICE_GENDER_NEUTRAL=3 SSML_VOICE_GENDER_NEUTRAL value + */ + v3beta1.SsmlVoiceGender = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SSML_VOICE_GENDER_UNSPECIFIED"] = 0; + values[valuesById[1] = "SSML_VOICE_GENDER_MALE"] = 1; + values[valuesById[2] = "SSML_VOICE_GENDER_FEMALE"] = 2; + values[valuesById[3] = "SSML_VOICE_GENDER_NEUTRAL"] = 3; + return values; + })(); + + v3beta1.VoiceSelectionParams = (function() { /** - * Properties of a DeleteSecuritySettingsRequest. + * Properties of a VoiceSelectionParams. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDeleteSecuritySettingsRequest - * @property {string|null} [name] DeleteSecuritySettingsRequest name + * @interface IVoiceSelectionParams + * @property {string|null} [name] VoiceSelectionParams name + * @property {google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender|null} [ssmlGender] VoiceSelectionParams ssmlGender */ /** - * Constructs a new DeleteSecuritySettingsRequest. + * Constructs a new VoiceSelectionParams. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DeleteSecuritySettingsRequest. - * @implements IDeleteSecuritySettingsRequest + * @classdesc Represents a VoiceSelectionParams. + * @implements IVoiceSelectionParams * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSecuritySettingsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams=} [properties] Properties to set */ - function DeleteSecuritySettingsRequest(properties) { + function VoiceSelectionParams(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -82941,76 +82386,89 @@ } /** - * DeleteSecuritySettingsRequest name. + * VoiceSelectionParams name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams * @instance */ - DeleteSecuritySettingsRequest.prototype.name = ""; + VoiceSelectionParams.prototype.name = ""; /** - * Creates a new DeleteSecuritySettingsRequest instance using the specified properties. + * VoiceSelectionParams ssmlGender. + * @member {google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender} ssmlGender + * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + * @instance + */ + VoiceSelectionParams.prototype.ssmlGender = 0; + + /** + * Creates a new VoiceSelectionParams instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSecuritySettingsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest} DeleteSecuritySettingsRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams} VoiceSelectionParams instance */ - DeleteSecuritySettingsRequest.create = function create(properties) { - return new DeleteSecuritySettingsRequest(properties); + VoiceSelectionParams.create = function create(properties) { + return new VoiceSelectionParams(properties); }; /** - * Encodes the specified DeleteSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest.verify|verify} messages. + * Encodes the specified VoiceSelectionParams message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSecuritySettingsRequest} message DeleteSecuritySettingsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams} message VoiceSelectionParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteSecuritySettingsRequest.encode = function encode(message, writer) { + VoiceSelectionParams.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.ssmlGender != null && Object.hasOwnProperty.call(message, "ssmlGender")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.ssmlGender); return writer; }; /** - * Encodes the specified DeleteSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest.verify|verify} messages. + * Encodes the specified VoiceSelectionParams message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSecuritySettingsRequest} message DeleteSecuritySettingsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams} message VoiceSelectionParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + VoiceSelectionParams.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteSecuritySettingsRequest message from the specified reader or buffer. + * Decodes a VoiceSelectionParams message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest} DeleteSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams} VoiceSelectionParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteSecuritySettingsRequest.decode = function decode(reader, length) { + VoiceSelectionParams.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; + case 2: + message.ssmlGender = reader.int32(); + break; default: reader.skipType(tag & 7); break; @@ -83020,116 +82478,144 @@ }; /** - * Decodes a DeleteSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a VoiceSelectionParams message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest} DeleteSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams} VoiceSelectionParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { + VoiceSelectionParams.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteSecuritySettingsRequest message. + * Verifies a VoiceSelectionParams message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteSecuritySettingsRequest.verify = function verify(message) { + VoiceSelectionParams.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.ssmlGender != null && message.hasOwnProperty("ssmlGender")) + switch (message.ssmlGender) { + default: + return "ssmlGender: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } return null; }; /** - * Creates a DeleteSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VoiceSelectionParams message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest} DeleteSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams} VoiceSelectionParams */ - DeleteSecuritySettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest) + VoiceSelectionParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams(); if (object.name != null) message.name = String(object.name); + switch (object.ssmlGender) { + case "SSML_VOICE_GENDER_UNSPECIFIED": + case 0: + message.ssmlGender = 0; + break; + case "SSML_VOICE_GENDER_MALE": + case 1: + message.ssmlGender = 1; + break; + case "SSML_VOICE_GENDER_FEMALE": + case 2: + message.ssmlGender = 2; + break; + case "SSML_VOICE_GENDER_NEUTRAL": + case 3: + message.ssmlGender = 3; + break; + } return message; }; /** - * Creates a plain object from a DeleteSecuritySettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from a VoiceSelectionParams message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest} message DeleteSecuritySettingsRequest + * @param {google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams} message VoiceSelectionParams * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteSecuritySettingsRequest.toObject = function toObject(message, options) { + VoiceSelectionParams.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.name = ""; + object.ssmlGender = options.enums === String ? "SSML_VOICE_GENDER_UNSPECIFIED" : 0; + } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.ssmlGender != null && message.hasOwnProperty("ssmlGender")) + object.ssmlGender = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender[message.ssmlGender] : message.ssmlGender; return object; }; /** - * Converts this DeleteSecuritySettingsRequest to JSON. + * Converts this VoiceSelectionParams to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams * @instance * @returns {Object.} JSON object */ - DeleteSecuritySettingsRequest.prototype.toJSON = function toJSON() { + VoiceSelectionParams.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteSecuritySettingsRequest; + return VoiceSelectionParams; })(); - v3beta1.SecuritySettings = (function() { + v3beta1.SynthesizeSpeechConfig = (function() { /** - * Properties of a SecuritySettings. + * Properties of a SynthesizeSpeechConfig. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ISecuritySettings - * @property {string|null} [name] SecuritySettings name - * @property {string|null} [displayName] SecuritySettings displayName - * @property {google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionStrategy|null} [redactionStrategy] SecuritySettings redactionStrategy - * @property {google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionScope|null} [redactionScope] SecuritySettings redactionScope - * @property {string|null} [inspectTemplate] SecuritySettings inspectTemplate - * @property {string|null} [deidentifyTemplate] SecuritySettings deidentifyTemplate - * @property {number|null} [retentionWindowDays] SecuritySettings retentionWindowDays - * @property {Array.|null} [purgeDataTypes] SecuritySettings purgeDataTypes - * @property {google.cloud.dialogflow.cx.v3beta1.SecuritySettings.IInsightsExportSettings|null} [insightsExportSettings] SecuritySettings insightsExportSettings + * @interface ISynthesizeSpeechConfig + * @property {number|null} [speakingRate] SynthesizeSpeechConfig speakingRate + * @property {number|null} [pitch] SynthesizeSpeechConfig pitch + * @property {number|null} [volumeGainDb] SynthesizeSpeechConfig volumeGainDb + * @property {Array.|null} [effectsProfileId] SynthesizeSpeechConfig effectsProfileId + * @property {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams|null} [voice] SynthesizeSpeechConfig voice */ /** - * Constructs a new SecuritySettings. + * Constructs a new SynthesizeSpeechConfig. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a SecuritySettings. - * @implements ISecuritySettings + * @classdesc Represents a SynthesizeSpeechConfig. + * @implements ISynthesizeSpeechConfig * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ISecuritySettings=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig=} [properties] Properties to set */ - function SecuritySettings(properties) { - this.purgeDataTypes = []; + function SynthesizeSpeechConfig(properties) { + this.effectsProfileId = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -83137,204 +82623,130 @@ } /** - * SecuritySettings name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings - * @instance - */ - SecuritySettings.prototype.name = ""; - - /** - * SecuritySettings displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings - * @instance - */ - SecuritySettings.prototype.displayName = ""; - - /** - * SecuritySettings redactionStrategy. - * @member {google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionStrategy} redactionStrategy - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings - * @instance - */ - SecuritySettings.prototype.redactionStrategy = 0; - - /** - * SecuritySettings redactionScope. - * @member {google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionScope} redactionScope - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings - * @instance - */ - SecuritySettings.prototype.redactionScope = 0; - - /** - * SecuritySettings inspectTemplate. - * @member {string} inspectTemplate - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings - * @instance - */ - SecuritySettings.prototype.inspectTemplate = ""; - - /** - * SecuritySettings deidentifyTemplate. - * @member {string} deidentifyTemplate - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings + * SynthesizeSpeechConfig speakingRate. + * @member {number} speakingRate + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @instance */ - SecuritySettings.prototype.deidentifyTemplate = ""; + SynthesizeSpeechConfig.prototype.speakingRate = 0; /** - * SecuritySettings retentionWindowDays. - * @member {number|null|undefined} retentionWindowDays - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings + * SynthesizeSpeechConfig pitch. + * @member {number} pitch + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @instance */ - SecuritySettings.prototype.retentionWindowDays = null; + SynthesizeSpeechConfig.prototype.pitch = 0; /** - * SecuritySettings purgeDataTypes. - * @member {Array.} purgeDataTypes - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings + * SynthesizeSpeechConfig volumeGainDb. + * @member {number} volumeGainDb + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @instance */ - SecuritySettings.prototype.purgeDataTypes = $util.emptyArray; + SynthesizeSpeechConfig.prototype.volumeGainDb = 0; /** - * SecuritySettings insightsExportSettings. - * @member {google.cloud.dialogflow.cx.v3beta1.SecuritySettings.IInsightsExportSettings|null|undefined} insightsExportSettings - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings + * SynthesizeSpeechConfig effectsProfileId. + * @member {Array.} effectsProfileId + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @instance */ - SecuritySettings.prototype.insightsExportSettings = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + SynthesizeSpeechConfig.prototype.effectsProfileId = $util.emptyArray; /** - * SecuritySettings dataRetention. - * @member {"retentionWindowDays"|undefined} dataRetention - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings + * SynthesizeSpeechConfig voice. + * @member {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams|null|undefined} voice + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @instance */ - Object.defineProperty(SecuritySettings.prototype, "dataRetention", { - get: $util.oneOfGetter($oneOfFields = ["retentionWindowDays"]), - set: $util.oneOfSetter($oneOfFields) - }); + SynthesizeSpeechConfig.prototype.voice = null; /** - * Creates a new SecuritySettings instance using the specified properties. + * Creates a new SynthesizeSpeechConfig instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISecuritySettings=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.SecuritySettings} SecuritySettings instance + * @param {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig} SynthesizeSpeechConfig instance */ - SecuritySettings.create = function create(properties) { - return new SecuritySettings(properties); + SynthesizeSpeechConfig.create = function create(properties) { + return new SynthesizeSpeechConfig(properties); }; /** - * Encodes the specified SecuritySettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettings.verify|verify} messages. + * Encodes the specified SynthesizeSpeechConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISecuritySettings} message SecuritySettings message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig} message SynthesizeSpeechConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SecuritySettings.encode = function encode(message, writer) { + SynthesizeSpeechConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.redactionStrategy != null && Object.hasOwnProperty.call(message, "redactionStrategy")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.redactionStrategy); - if (message.redactionScope != null && Object.hasOwnProperty.call(message, "redactionScope")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.redactionScope); - if (message.retentionWindowDays != null && Object.hasOwnProperty.call(message, "retentionWindowDays")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.retentionWindowDays); - if (message.purgeDataTypes != null && message.purgeDataTypes.length) { - writer.uint32(/* id 8, wireType 2 =*/66).fork(); - for (var i = 0; i < message.purgeDataTypes.length; ++i) - writer.int32(message.purgeDataTypes[i]); - writer.ldelim(); - } - if (message.inspectTemplate != null && Object.hasOwnProperty.call(message, "inspectTemplate")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.inspectTemplate); - if (message.insightsExportSettings != null && Object.hasOwnProperty.call(message, "insightsExportSettings")) - $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings.encode(message.insightsExportSettings, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.deidentifyTemplate != null && Object.hasOwnProperty.call(message, "deidentifyTemplate")) - writer.uint32(/* id 17, wireType 2 =*/138).string(message.deidentifyTemplate); + if (message.speakingRate != null && Object.hasOwnProperty.call(message, "speakingRate")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.speakingRate); + if (message.pitch != null && Object.hasOwnProperty.call(message, "pitch")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.pitch); + if (message.volumeGainDb != null && Object.hasOwnProperty.call(message, "volumeGainDb")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.volumeGainDb); + if (message.voice != null && Object.hasOwnProperty.call(message, "voice")) + $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.encode(message.voice, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.effectsProfileId != null && message.effectsProfileId.length) + for (var i = 0; i < message.effectsProfileId.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.effectsProfileId[i]); return writer; }; /** - * Encodes the specified SecuritySettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettings.verify|verify} messages. + * Encodes the specified SynthesizeSpeechConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISecuritySettings} message SecuritySettings message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig} message SynthesizeSpeechConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SecuritySettings.encodeDelimited = function encodeDelimited(message, writer) { + SynthesizeSpeechConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SecuritySettings message from the specified reader or buffer. + * Decodes a SynthesizeSpeechConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.SecuritySettings} SecuritySettings + * @returns {google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig} SynthesizeSpeechConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SecuritySettings.decode = function decode(reader, length) { + SynthesizeSpeechConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.speakingRate = reader.double(); break; case 2: - message.displayName = reader.string(); + message.pitch = reader.double(); break; case 3: - message.redactionStrategy = reader.int32(); - break; - case 4: - message.redactionScope = reader.int32(); - break; - case 9: - message.inspectTemplate = reader.string(); - break; - case 17: - message.deidentifyTemplate = reader.string(); - break; - case 6: - message.retentionWindowDays = reader.int32(); + message.volumeGainDb = reader.double(); break; - case 8: - if (!(message.purgeDataTypes && message.purgeDataTypes.length)) - message.purgeDataTypes = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.purgeDataTypes.push(reader.int32()); - } else - message.purgeDataTypes.push(reader.int32()); + case 5: + if (!(message.effectsProfileId && message.effectsProfileId.length)) + message.effectsProfileId = []; + message.effectsProfileId.push(reader.string()); break; - case 13: - message.insightsExportSettings = $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings.decode(reader, reader.uint32()); + case 4: + message.voice = $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -83345,512 +82757,182 @@ }; /** - * Decodes a SecuritySettings message from the specified reader or buffer, length delimited. + * Decodes a SynthesizeSpeechConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.SecuritySettings} SecuritySettings + * @returns {google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig} SynthesizeSpeechConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SecuritySettings.decodeDelimited = function decodeDelimited(reader) { + SynthesizeSpeechConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SecuritySettings message. + * Verifies a SynthesizeSpeechConfig message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SecuritySettings.verify = function verify(message) { + SynthesizeSpeechConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.redactionStrategy != null && message.hasOwnProperty("redactionStrategy")) - switch (message.redactionStrategy) { - default: - return "redactionStrategy: enum value expected"; - case 0: - case 1: - break; - } - if (message.redactionScope != null && message.hasOwnProperty("redactionScope")) - switch (message.redactionScope) { - default: - return "redactionScope: enum value expected"; - case 0: - case 2: - break; - } - if (message.inspectTemplate != null && message.hasOwnProperty("inspectTemplate")) - if (!$util.isString(message.inspectTemplate)) - return "inspectTemplate: string expected"; - if (message.deidentifyTemplate != null && message.hasOwnProperty("deidentifyTemplate")) - if (!$util.isString(message.deidentifyTemplate)) - return "deidentifyTemplate: string expected"; - if (message.retentionWindowDays != null && message.hasOwnProperty("retentionWindowDays")) { - properties.dataRetention = 1; - if (!$util.isInteger(message.retentionWindowDays)) - return "retentionWindowDays: integer expected"; - } - if (message.purgeDataTypes != null && message.hasOwnProperty("purgeDataTypes")) { - if (!Array.isArray(message.purgeDataTypes)) - return "purgeDataTypes: array expected"; - for (var i = 0; i < message.purgeDataTypes.length; ++i) - switch (message.purgeDataTypes[i]) { - default: - return "purgeDataTypes: enum value[] expected"; - case 0: - case 1: - break; - } + if (message.speakingRate != null && message.hasOwnProperty("speakingRate")) + if (typeof message.speakingRate !== "number") + return "speakingRate: number expected"; + if (message.pitch != null && message.hasOwnProperty("pitch")) + if (typeof message.pitch !== "number") + return "pitch: number expected"; + if (message.volumeGainDb != null && message.hasOwnProperty("volumeGainDb")) + if (typeof message.volumeGainDb !== "number") + return "volumeGainDb: number expected"; + if (message.effectsProfileId != null && message.hasOwnProperty("effectsProfileId")) { + if (!Array.isArray(message.effectsProfileId)) + return "effectsProfileId: array expected"; + for (var i = 0; i < message.effectsProfileId.length; ++i) + if (!$util.isString(message.effectsProfileId[i])) + return "effectsProfileId: string[] expected"; } - if (message.insightsExportSettings != null && message.hasOwnProperty("insightsExportSettings")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings.verify(message.insightsExportSettings); + if (message.voice != null && message.hasOwnProperty("voice")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.verify(message.voice); if (error) - return "insightsExportSettings." + error; + return "voice." + error; } return null; }; /** - * Creates a SecuritySettings message from a plain object. Also converts values to their respective internal types. + * Creates a SynthesizeSpeechConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.SecuritySettings} SecuritySettings + * @returns {google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig} SynthesizeSpeechConfig */ - SecuritySettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings) + SynthesizeSpeechConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - switch (object.redactionStrategy) { - case "REDACTION_STRATEGY_UNSPECIFIED": - case 0: - message.redactionStrategy = 0; - break; - case "REDACT_WITH_SERVICE": - case 1: - message.redactionStrategy = 1; - break; - } - switch (object.redactionScope) { - case "REDACTION_SCOPE_UNSPECIFIED": - case 0: - message.redactionScope = 0; - break; - case "REDACT_DISK_STORAGE": - case 2: - message.redactionScope = 2; - break; - } - if (object.inspectTemplate != null) - message.inspectTemplate = String(object.inspectTemplate); - if (object.deidentifyTemplate != null) - message.deidentifyTemplate = String(object.deidentifyTemplate); - if (object.retentionWindowDays != null) - message.retentionWindowDays = object.retentionWindowDays | 0; - if (object.purgeDataTypes) { - if (!Array.isArray(object.purgeDataTypes)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SecuritySettings.purgeDataTypes: array expected"); - message.purgeDataTypes = []; - for (var i = 0; i < object.purgeDataTypes.length; ++i) - switch (object.purgeDataTypes[i]) { - default: - case "PURGE_DATA_TYPE_UNSPECIFIED": - case 0: - message.purgeDataTypes[i] = 0; - break; - case "DIALOGFLOW_HISTORY": - case 1: - message.purgeDataTypes[i] = 1; - break; - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig(); + if (object.speakingRate != null) + message.speakingRate = Number(object.speakingRate); + if (object.pitch != null) + message.pitch = Number(object.pitch); + if (object.volumeGainDb != null) + message.volumeGainDb = Number(object.volumeGainDb); + if (object.effectsProfileId) { + if (!Array.isArray(object.effectsProfileId)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.effectsProfileId: array expected"); + message.effectsProfileId = []; + for (var i = 0; i < object.effectsProfileId.length; ++i) + message.effectsProfileId[i] = String(object.effectsProfileId[i]); } - if (object.insightsExportSettings != null) { - if (typeof object.insightsExportSettings !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SecuritySettings.insightsExportSettings: object expected"); - message.insightsExportSettings = $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings.fromObject(object.insightsExportSettings); + if (object.voice != null) { + if (typeof object.voice !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.voice: object expected"); + message.voice = $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.fromObject(object.voice); } return message; }; /** - * Creates a plain object from a SecuritySettings message. Also converts values to other types if specified. + * Creates a plain object from a SynthesizeSpeechConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.SecuritySettings} message SecuritySettings + * @param {google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig} message SynthesizeSpeechConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SecuritySettings.toObject = function toObject(message, options) { + SynthesizeSpeechConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.purgeDataTypes = []; + object.effectsProfileId = []; if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.redactionStrategy = options.enums === String ? "REDACTION_STRATEGY_UNSPECIFIED" : 0; - object.redactionScope = options.enums === String ? "REDACTION_SCOPE_UNSPECIFIED" : 0; - object.inspectTemplate = ""; - object.insightsExportSettings = null; - object.deidentifyTemplate = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.redactionStrategy != null && message.hasOwnProperty("redactionStrategy")) - object.redactionStrategy = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionStrategy[message.redactionStrategy] : message.redactionStrategy; - if (message.redactionScope != null && message.hasOwnProperty("redactionScope")) - object.redactionScope = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionScope[message.redactionScope] : message.redactionScope; - if (message.retentionWindowDays != null && message.hasOwnProperty("retentionWindowDays")) { - object.retentionWindowDays = message.retentionWindowDays; - if (options.oneofs) - object.dataRetention = "retentionWindowDays"; + object.speakingRate = 0; + object.pitch = 0; + object.volumeGainDb = 0; + object.voice = null; } - if (message.purgeDataTypes && message.purgeDataTypes.length) { - object.purgeDataTypes = []; - for (var j = 0; j < message.purgeDataTypes.length; ++j) - object.purgeDataTypes[j] = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.PurgeDataType[message.purgeDataTypes[j]] : message.purgeDataTypes[j]; + if (message.speakingRate != null && message.hasOwnProperty("speakingRate")) + object.speakingRate = options.json && !isFinite(message.speakingRate) ? String(message.speakingRate) : message.speakingRate; + if (message.pitch != null && message.hasOwnProperty("pitch")) + object.pitch = options.json && !isFinite(message.pitch) ? String(message.pitch) : message.pitch; + if (message.volumeGainDb != null && message.hasOwnProperty("volumeGainDb")) + object.volumeGainDb = options.json && !isFinite(message.volumeGainDb) ? String(message.volumeGainDb) : message.volumeGainDb; + if (message.voice != null && message.hasOwnProperty("voice")) + object.voice = $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.toObject(message.voice, options); + if (message.effectsProfileId && message.effectsProfileId.length) { + object.effectsProfileId = []; + for (var j = 0; j < message.effectsProfileId.length; ++j) + object.effectsProfileId[j] = message.effectsProfileId[j]; } - if (message.inspectTemplate != null && message.hasOwnProperty("inspectTemplate")) - object.inspectTemplate = message.inspectTemplate; - if (message.insightsExportSettings != null && message.hasOwnProperty("insightsExportSettings")) - object.insightsExportSettings = $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings.toObject(message.insightsExportSettings, options); - if (message.deidentifyTemplate != null && message.hasOwnProperty("deidentifyTemplate")) - object.deidentifyTemplate = message.deidentifyTemplate; return object; }; /** - * Converts this SecuritySettings to JSON. + * Converts this SynthesizeSpeechConfig to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @instance * @returns {Object.} JSON object */ - SecuritySettings.prototype.toJSON = function toJSON() { + SynthesizeSpeechConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * RedactionStrategy enum. - * @name google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionStrategy - * @enum {number} - * @property {number} REDACTION_STRATEGY_UNSPECIFIED=0 REDACTION_STRATEGY_UNSPECIFIED value - * @property {number} REDACT_WITH_SERVICE=1 REDACT_WITH_SERVICE value - */ - SecuritySettings.RedactionStrategy = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "REDACTION_STRATEGY_UNSPECIFIED"] = 0; - values[valuesById[1] = "REDACT_WITH_SERVICE"] = 1; - return values; - })(); - - /** - * RedactionScope enum. - * @name google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionScope - * @enum {number} - * @property {number} REDACTION_SCOPE_UNSPECIFIED=0 REDACTION_SCOPE_UNSPECIFIED value - * @property {number} REDACT_DISK_STORAGE=2 REDACT_DISK_STORAGE value - */ - SecuritySettings.RedactionScope = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "REDACTION_SCOPE_UNSPECIFIED"] = 0; - values[valuesById[2] = "REDACT_DISK_STORAGE"] = 2; - return values; - })(); - - /** - * PurgeDataType enum. - * @name google.cloud.dialogflow.cx.v3beta1.SecuritySettings.PurgeDataType - * @enum {number} - * @property {number} PURGE_DATA_TYPE_UNSPECIFIED=0 PURGE_DATA_TYPE_UNSPECIFIED value - * @property {number} DIALOGFLOW_HISTORY=1 DIALOGFLOW_HISTORY value - */ - SecuritySettings.PurgeDataType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "PURGE_DATA_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "DIALOGFLOW_HISTORY"] = 1; - return values; - })(); - - SecuritySettings.InsightsExportSettings = (function() { - - /** - * Properties of an InsightsExportSettings. - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings - * @interface IInsightsExportSettings - * @property {boolean|null} [enableInsightsExport] InsightsExportSettings enableInsightsExport - */ - - /** - * Constructs a new InsightsExportSettings. - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings - * @classdesc Represents an InsightsExportSettings. - * @implements IInsightsExportSettings - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.SecuritySettings.IInsightsExportSettings=} [properties] Properties to set - */ - function InsightsExportSettings(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * InsightsExportSettings enableInsightsExport. - * @member {boolean} enableInsightsExport - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings - * @instance - */ - InsightsExportSettings.prototype.enableInsightsExport = false; - - /** - * Creates a new InsightsExportSettings instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.SecuritySettings.IInsightsExportSettings=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings} InsightsExportSettings instance - */ - InsightsExportSettings.create = function create(properties) { - return new InsightsExportSettings(properties); - }; - - /** - * Encodes the specified InsightsExportSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.SecuritySettings.IInsightsExportSettings} message InsightsExportSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InsightsExportSettings.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enableInsightsExport != null && Object.hasOwnProperty.call(message, "enableInsightsExport")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enableInsightsExport); - return writer; - }; - - /** - * Encodes the specified InsightsExportSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.SecuritySettings.IInsightsExportSettings} message InsightsExportSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InsightsExportSettings.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an InsightsExportSettings message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings} InsightsExportSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InsightsExportSettings.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.enableInsightsExport = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an InsightsExportSettings message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings} InsightsExportSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InsightsExportSettings.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an InsightsExportSettings message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - InsightsExportSettings.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enableInsightsExport != null && message.hasOwnProperty("enableInsightsExport")) - if (typeof message.enableInsightsExport !== "boolean") - return "enableInsightsExport: boolean expected"; - return null; - }; - - /** - * Creates an InsightsExportSettings message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings} InsightsExportSettings - */ - InsightsExportSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings(); - if (object.enableInsightsExport != null) - message.enableInsightsExport = Boolean(object.enableInsightsExport); - return message; - }; - - /** - * Creates a plain object from an InsightsExportSettings message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings} message InsightsExportSettings - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - InsightsExportSettings.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.enableInsightsExport = false; - if (message.enableInsightsExport != null && message.hasOwnProperty("enableInsightsExport")) - object.enableInsightsExport = message.enableInsightsExport; - return object; - }; - - /** - * Converts this InsightsExportSettings to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings - * @instance - * @returns {Object.} JSON object - */ - InsightsExportSettings.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return InsightsExportSettings; - })(); - - return SecuritySettings; - })(); - - /** - * AudioEncoding enum. - * @name google.cloud.dialogflow.cx.v3beta1.AudioEncoding - * @enum {number} - * @property {number} AUDIO_ENCODING_UNSPECIFIED=0 AUDIO_ENCODING_UNSPECIFIED value - * @property {number} AUDIO_ENCODING_LINEAR_16=1 AUDIO_ENCODING_LINEAR_16 value - * @property {number} AUDIO_ENCODING_FLAC=2 AUDIO_ENCODING_FLAC value - * @property {number} AUDIO_ENCODING_MULAW=3 AUDIO_ENCODING_MULAW value - * @property {number} AUDIO_ENCODING_AMR=4 AUDIO_ENCODING_AMR value - * @property {number} AUDIO_ENCODING_AMR_WB=5 AUDIO_ENCODING_AMR_WB value - * @property {number} AUDIO_ENCODING_OGG_OPUS=6 AUDIO_ENCODING_OGG_OPUS value - * @property {number} AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE=7 AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE value - */ - v3beta1.AudioEncoding = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "AUDIO_ENCODING_UNSPECIFIED"] = 0; - values[valuesById[1] = "AUDIO_ENCODING_LINEAR_16"] = 1; - values[valuesById[2] = "AUDIO_ENCODING_FLAC"] = 2; - values[valuesById[3] = "AUDIO_ENCODING_MULAW"] = 3; - values[valuesById[4] = "AUDIO_ENCODING_AMR"] = 4; - values[valuesById[5] = "AUDIO_ENCODING_AMR_WB"] = 5; - values[valuesById[6] = "AUDIO_ENCODING_OGG_OPUS"] = 6; - values[valuesById[7] = "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE"] = 7; - return values; + return SynthesizeSpeechConfig; })(); /** - * SpeechModelVariant enum. - * @name google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant + * OutputAudioEncoding enum. + * @name google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding * @enum {number} - * @property {number} SPEECH_MODEL_VARIANT_UNSPECIFIED=0 SPEECH_MODEL_VARIANT_UNSPECIFIED value - * @property {number} USE_BEST_AVAILABLE=1 USE_BEST_AVAILABLE value - * @property {number} USE_STANDARD=2 USE_STANDARD value - * @property {number} USE_ENHANCED=3 USE_ENHANCED value + * @property {number} OUTPUT_AUDIO_ENCODING_UNSPECIFIED=0 OUTPUT_AUDIO_ENCODING_UNSPECIFIED value + * @property {number} OUTPUT_AUDIO_ENCODING_LINEAR_16=1 OUTPUT_AUDIO_ENCODING_LINEAR_16 value + * @property {number} OUTPUT_AUDIO_ENCODING_MP3=2 OUTPUT_AUDIO_ENCODING_MP3 value + * @property {number} OUTPUT_AUDIO_ENCODING_MP3_64_KBPS=4 OUTPUT_AUDIO_ENCODING_MP3_64_KBPS value + * @property {number} OUTPUT_AUDIO_ENCODING_OGG_OPUS=3 OUTPUT_AUDIO_ENCODING_OGG_OPUS value + * @property {number} OUTPUT_AUDIO_ENCODING_MULAW=5 OUTPUT_AUDIO_ENCODING_MULAW value */ - v3beta1.SpeechModelVariant = (function() { + v3beta1.OutputAudioEncoding = (function() { var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "SPEECH_MODEL_VARIANT_UNSPECIFIED"] = 0; - values[valuesById[1] = "USE_BEST_AVAILABLE"] = 1; - values[valuesById[2] = "USE_STANDARD"] = 2; - values[valuesById[3] = "USE_ENHANCED"] = 3; + values[valuesById[0] = "OUTPUT_AUDIO_ENCODING_UNSPECIFIED"] = 0; + values[valuesById[1] = "OUTPUT_AUDIO_ENCODING_LINEAR_16"] = 1; + values[valuesById[2] = "OUTPUT_AUDIO_ENCODING_MP3"] = 2; + values[valuesById[4] = "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS"] = 4; + values[valuesById[3] = "OUTPUT_AUDIO_ENCODING_OGG_OPUS"] = 3; + values[valuesById[5] = "OUTPUT_AUDIO_ENCODING_MULAW"] = 5; return values; })(); - v3beta1.SpeechWordInfo = (function() { + v3beta1.OutputAudioConfig = (function() { /** - * Properties of a SpeechWordInfo. + * Properties of an OutputAudioConfig. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ISpeechWordInfo - * @property {string|null} [word] SpeechWordInfo word - * @property {google.protobuf.IDuration|null} [startOffset] SpeechWordInfo startOffset - * @property {google.protobuf.IDuration|null} [endOffset] SpeechWordInfo endOffset - * @property {number|null} [confidence] SpeechWordInfo confidence + * @interface IOutputAudioConfig + * @property {google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding|null} [audioEncoding] OutputAudioConfig audioEncoding + * @property {number|null} [sampleRateHertz] OutputAudioConfig sampleRateHertz + * @property {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig|null} [synthesizeSpeechConfig] OutputAudioConfig synthesizeSpeechConfig */ /** - * Constructs a new SpeechWordInfo. + * Constructs a new OutputAudioConfig. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a SpeechWordInfo. - * @implements ISpeechWordInfo + * @classdesc Represents an OutputAudioConfig. + * @implements IOutputAudioConfig * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig=} [properties] Properties to set */ - function SpeechWordInfo(properties) { + function OutputAudioConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -83858,114 +82940,101 @@ } /** - * SpeechWordInfo word. - * @member {string} word - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo - * @instance - */ - SpeechWordInfo.prototype.word = ""; - - /** - * SpeechWordInfo startOffset. - * @member {google.protobuf.IDuration|null|undefined} startOffset - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo + * OutputAudioConfig audioEncoding. + * @member {google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding} audioEncoding + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig * @instance */ - SpeechWordInfo.prototype.startOffset = null; + OutputAudioConfig.prototype.audioEncoding = 0; /** - * SpeechWordInfo endOffset. - * @member {google.protobuf.IDuration|null|undefined} endOffset - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo + * OutputAudioConfig sampleRateHertz. + * @member {number} sampleRateHertz + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig * @instance */ - SpeechWordInfo.prototype.endOffset = null; + OutputAudioConfig.prototype.sampleRateHertz = 0; /** - * SpeechWordInfo confidence. - * @member {number} confidence - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo + * OutputAudioConfig synthesizeSpeechConfig. + * @member {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig|null|undefined} synthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig * @instance */ - SpeechWordInfo.prototype.confidence = 0; + OutputAudioConfig.prototype.synthesizeSpeechConfig = null; /** - * Creates a new SpeechWordInfo instance using the specified properties. + * Creates a new OutputAudioConfig instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo} SpeechWordInfo instance + * @param {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} OutputAudioConfig instance */ - SpeechWordInfo.create = function create(properties) { - return new SpeechWordInfo(properties); + OutputAudioConfig.create = function create(properties) { + return new OutputAudioConfig(properties); }; /** - * Encodes the specified SpeechWordInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.verify|verify} messages. + * Encodes the specified OutputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo} message SpeechWordInfo message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig} message OutputAudioConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SpeechWordInfo.encode = function encode(message, writer) { + OutputAudioConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.startOffset != null && Object.hasOwnProperty.call(message, "startOffset")) - $root.google.protobuf.Duration.encode(message.startOffset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.endOffset != null && Object.hasOwnProperty.call(message, "endOffset")) - $root.google.protobuf.Duration.encode(message.endOffset, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.word != null && Object.hasOwnProperty.call(message, "word")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.word); - if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) - writer.uint32(/* id 4, wireType 5 =*/37).float(message.confidence); + if (message.audioEncoding != null && Object.hasOwnProperty.call(message, "audioEncoding")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.audioEncoding); + if (message.sampleRateHertz != null && Object.hasOwnProperty.call(message, "sampleRateHertz")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.sampleRateHertz); + if (message.synthesizeSpeechConfig != null && Object.hasOwnProperty.call(message, "synthesizeSpeechConfig")) + $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.encode(message.synthesizeSpeechConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified SpeechWordInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.verify|verify} messages. + * Encodes the specified OutputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo} message SpeechWordInfo message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig} message OutputAudioConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SpeechWordInfo.encodeDelimited = function encodeDelimited(message, writer) { + OutputAudioConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SpeechWordInfo message from the specified reader or buffer. + * Decodes an OutputAudioConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo} SpeechWordInfo + * @returns {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} OutputAudioConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SpeechWordInfo.decode = function decode(reader, length) { + OutputAudioConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 3: - message.word = reader.string(); - break; case 1: - message.startOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + message.audioEncoding = reader.int32(); break; case 2: - message.endOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + message.sampleRateHertz = reader.int32(); break; - case 4: - message.confidence = reader.float(); + case 3: + message.synthesizeSpeechConfig = $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -83976,306 +83045,381 @@ }; /** - * Decodes a SpeechWordInfo message from the specified reader or buffer, length delimited. + * Decodes an OutputAudioConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo} SpeechWordInfo + * @returns {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} OutputAudioConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SpeechWordInfo.decodeDelimited = function decodeDelimited(reader) { + OutputAudioConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SpeechWordInfo message. + * Verifies an OutputAudioConfig message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SpeechWordInfo.verify = function verify(message) { + OutputAudioConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.word != null && message.hasOwnProperty("word")) - if (!$util.isString(message.word)) - return "word: string expected"; - if (message.startOffset != null && message.hasOwnProperty("startOffset")) { - var error = $root.google.protobuf.Duration.verify(message.startOffset); - if (error) - return "startOffset." + error; - } - if (message.endOffset != null && message.hasOwnProperty("endOffset")) { - var error = $root.google.protobuf.Duration.verify(message.endOffset); + if (message.audioEncoding != null && message.hasOwnProperty("audioEncoding")) + switch (message.audioEncoding) { + default: + return "audioEncoding: enum value expected"; + case 0: + case 1: + case 2: + case 4: + case 3: + case 5: + break; + } + if (message.sampleRateHertz != null && message.hasOwnProperty("sampleRateHertz")) + if (!$util.isInteger(message.sampleRateHertz)) + return "sampleRateHertz: integer expected"; + if (message.synthesizeSpeechConfig != null && message.hasOwnProperty("synthesizeSpeechConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.verify(message.synthesizeSpeechConfig); if (error) - return "endOffset." + error; + return "synthesizeSpeechConfig." + error; } - if (message.confidence != null && message.hasOwnProperty("confidence")) - if (typeof message.confidence !== "number") - return "confidence: number expected"; return null; }; /** - * Creates a SpeechWordInfo message from a plain object. Also converts values to their respective internal types. + * Creates an OutputAudioConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo} SpeechWordInfo + * @returns {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} OutputAudioConfig */ - SpeechWordInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo) + OutputAudioConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo(); - if (object.word != null) - message.word = String(object.word); - if (object.startOffset != null) { - if (typeof object.startOffset !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.startOffset: object expected"); - message.startOffset = $root.google.protobuf.Duration.fromObject(object.startOffset); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig(); + switch (object.audioEncoding) { + case "OUTPUT_AUDIO_ENCODING_UNSPECIFIED": + case 0: + message.audioEncoding = 0; + break; + case "OUTPUT_AUDIO_ENCODING_LINEAR_16": + case 1: + message.audioEncoding = 1; + break; + case "OUTPUT_AUDIO_ENCODING_MP3": + case 2: + message.audioEncoding = 2; + break; + case "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS": + case 4: + message.audioEncoding = 4; + break; + case "OUTPUT_AUDIO_ENCODING_OGG_OPUS": + case 3: + message.audioEncoding = 3; + break; + case "OUTPUT_AUDIO_ENCODING_MULAW": + case 5: + message.audioEncoding = 5; + break; } - if (object.endOffset != null) { - if (typeof object.endOffset !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.endOffset: object expected"); - message.endOffset = $root.google.protobuf.Duration.fromObject(object.endOffset); + if (object.sampleRateHertz != null) + message.sampleRateHertz = object.sampleRateHertz | 0; + if (object.synthesizeSpeechConfig != null) { + if (typeof object.synthesizeSpeechConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.synthesizeSpeechConfig: object expected"); + message.synthesizeSpeechConfig = $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.fromObject(object.synthesizeSpeechConfig); } - if (object.confidence != null) - message.confidence = Number(object.confidence); return message; }; /** - * Creates a plain object from a SpeechWordInfo message. Also converts values to other types if specified. + * Creates a plain object from an OutputAudioConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo} message SpeechWordInfo + * @param {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} message OutputAudioConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SpeechWordInfo.toObject = function toObject(message, options) { + OutputAudioConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.startOffset = null; - object.endOffset = null; - object.word = ""; - object.confidence = 0; + object.audioEncoding = options.enums === String ? "OUTPUT_AUDIO_ENCODING_UNSPECIFIED" : 0; + object.sampleRateHertz = 0; + object.synthesizeSpeechConfig = null; } - if (message.startOffset != null && message.hasOwnProperty("startOffset")) - object.startOffset = $root.google.protobuf.Duration.toObject(message.startOffset, options); - if (message.endOffset != null && message.hasOwnProperty("endOffset")) - object.endOffset = $root.google.protobuf.Duration.toObject(message.endOffset, options); - if (message.word != null && message.hasOwnProperty("word")) - object.word = message.word; - if (message.confidence != null && message.hasOwnProperty("confidence")) - object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; + if (message.audioEncoding != null && message.hasOwnProperty("audioEncoding")) + object.audioEncoding = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding[message.audioEncoding] : message.audioEncoding; + if (message.sampleRateHertz != null && message.hasOwnProperty("sampleRateHertz")) + object.sampleRateHertz = message.sampleRateHertz; + if (message.synthesizeSpeechConfig != null && message.hasOwnProperty("synthesizeSpeechConfig")) + object.synthesizeSpeechConfig = $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.toObject(message.synthesizeSpeechConfig, options); return object; }; /** - * Converts this SpeechWordInfo to JSON. + * Converts this OutputAudioConfig to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig * @instance * @returns {Object.} JSON object */ - SpeechWordInfo.prototype.toJSON = function toJSON() { + OutputAudioConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SpeechWordInfo; + return OutputAudioConfig; })(); - v3beta1.InputAudioConfig = (function() { + v3beta1.Changelogs = (function() { /** - * Properties of an InputAudioConfig. + * Constructs a new Changelogs service. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IInputAudioConfig - * @property {google.cloud.dialogflow.cx.v3beta1.AudioEncoding|null} [audioEncoding] InputAudioConfig audioEncoding - * @property {number|null} [sampleRateHertz] InputAudioConfig sampleRateHertz - * @property {boolean|null} [enableWordInfo] InputAudioConfig enableWordInfo - * @property {Array.|null} [phraseHints] InputAudioConfig phraseHints - * @property {string|null} [model] InputAudioConfig model - * @property {google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant|null} [modelVariant] InputAudioConfig modelVariant - * @property {boolean|null} [singleUtterance] InputAudioConfig singleUtterance + * @classdesc Represents a Changelogs + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ + function Changelogs(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Changelogs.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Changelogs; /** - * Constructs a new InputAudioConfig. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an InputAudioConfig. - * @implements IInputAudioConfig - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig=} [properties] Properties to set + * Creates new Changelogs service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelogs + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {Changelogs} RPC service. Useful where requests and/or responses are streamed. */ - function InputAudioConfig(properties) { - this.phraseHints = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Changelogs.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * InputAudioConfig audioEncoding. - * @member {google.cloud.dialogflow.cx.v3beta1.AudioEncoding} audioEncoding - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Changelogs#listChangelogs}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelogs + * @typedef ListChangelogsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse} [response] ListChangelogsResponse + */ + + /** + * Calls ListChangelogs. + * @function listChangelogs + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelogs * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest} request ListChangelogsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Changelogs.ListChangelogsCallback} callback Node-style callback called with the error, if any, and ListChangelogsResponse + * @returns {undefined} + * @variation 1 */ - InputAudioConfig.prototype.audioEncoding = 0; + Object.defineProperty(Changelogs.prototype.listChangelogs = function listChangelogs(request, callback) { + return this.rpcCall(listChangelogs, $root.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse, request, callback); + }, "name", { value: "ListChangelogs" }); /** - * InputAudioConfig sampleRateHertz. - * @member {number} sampleRateHertz - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * Calls ListChangelogs. + * @function listChangelogs + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelogs * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest} request ListChangelogsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - InputAudioConfig.prototype.sampleRateHertz = 0; /** - * InputAudioConfig enableWordInfo. - * @member {boolean} enableWordInfo - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Changelogs#getChangelog}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelogs + * @typedef GetChangelogCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Changelog} [response] Changelog + */ + + /** + * Calls GetChangelog. + * @function getChangelog + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelogs * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest} request GetChangelogRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Changelogs.GetChangelogCallback} callback Node-style callback called with the error, if any, and Changelog + * @returns {undefined} + * @variation 1 */ - InputAudioConfig.prototype.enableWordInfo = false; + Object.defineProperty(Changelogs.prototype.getChangelog = function getChangelog(request, callback) { + return this.rpcCall(getChangelog, $root.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest, $root.google.cloud.dialogflow.cx.v3beta1.Changelog, request, callback); + }, "name", { value: "GetChangelog" }); /** - * InputAudioConfig phraseHints. - * @member {Array.} phraseHints - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * Calls GetChangelog. + * @function getChangelog + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelogs * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest} request GetChangelogRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - InputAudioConfig.prototype.phraseHints = $util.emptyArray; + + return Changelogs; + })(); + + v3beta1.ListChangelogsRequest = (function() { /** - * InputAudioConfig model. - * @member {string} model - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * Properties of a ListChangelogsRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IListChangelogsRequest + * @property {string|null} [parent] ListChangelogsRequest parent + * @property {string|null} [filter] ListChangelogsRequest filter + * @property {number|null} [pageSize] ListChangelogsRequest pageSize + * @property {string|null} [pageToken] ListChangelogsRequest pageToken + */ + + /** + * Constructs a new ListChangelogsRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a ListChangelogsRequest. + * @implements IListChangelogsRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest=} [properties] Properties to set + */ + function ListChangelogsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListChangelogsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest * @instance */ - InputAudioConfig.prototype.model = ""; + ListChangelogsRequest.prototype.parent = ""; /** - * InputAudioConfig modelVariant. - * @member {google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant} modelVariant - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * ListChangelogsRequest filter. + * @member {string} filter + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest * @instance */ - InputAudioConfig.prototype.modelVariant = 0; + ListChangelogsRequest.prototype.filter = ""; /** - * InputAudioConfig singleUtterance. - * @member {boolean} singleUtterance - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * ListChangelogsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest * @instance */ - InputAudioConfig.prototype.singleUtterance = false; + ListChangelogsRequest.prototype.pageSize = 0; /** - * Creates a new InputAudioConfig instance using the specified properties. + * ListChangelogsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * @instance + */ + ListChangelogsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListChangelogsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.InputAudioConfig} InputAudioConfig instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest} ListChangelogsRequest instance */ - InputAudioConfig.create = function create(properties) { - return new InputAudioConfig(properties); + ListChangelogsRequest.create = function create(properties) { + return new ListChangelogsRequest(properties); }; /** - * Encodes the specified InputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.verify|verify} messages. + * Encodes the specified ListChangelogsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig} message InputAudioConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest} message ListChangelogsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InputAudioConfig.encode = function encode(message, writer) { + ListChangelogsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.audioEncoding != null && Object.hasOwnProperty.call(message, "audioEncoding")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.audioEncoding); - if (message.sampleRateHertz != null && Object.hasOwnProperty.call(message, "sampleRateHertz")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.sampleRateHertz); - if (message.phraseHints != null && message.phraseHints.length) - for (var i = 0; i < message.phraseHints.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.phraseHints[i]); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.model); - if (message.singleUtterance != null && Object.hasOwnProperty.call(message, "singleUtterance")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.singleUtterance); - if (message.modelVariant != null && Object.hasOwnProperty.call(message, "modelVariant")) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.modelVariant); - if (message.enableWordInfo != null && Object.hasOwnProperty.call(message, "enableWordInfo")) - writer.uint32(/* id 13, wireType 0 =*/104).bool(message.enableWordInfo); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); return writer; }; /** - * Encodes the specified InputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.verify|verify} messages. + * Encodes the specified ListChangelogsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig} message InputAudioConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest} message ListChangelogsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InputAudioConfig.encodeDelimited = function encodeDelimited(message, writer) { + ListChangelogsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InputAudioConfig message from the specified reader or buffer. + * Decodes a ListChangelogsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.InputAudioConfig} InputAudioConfig + * @returns {google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest} ListChangelogsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InputAudioConfig.decode = function decode(reader, length) { + ListChangelogsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.audioEncoding = reader.int32(); + message.parent = reader.string(); break; case 2: - message.sampleRateHertz = reader.int32(); + message.filter = reader.string(); break; - case 13: - message.enableWordInfo = reader.bool(); + case 3: + message.pageSize = reader.int32(); break; case 4: - if (!(message.phraseHints && message.phraseHints.length)) - message.phraseHints = []; - message.phraseHints.push(reader.string()); - break; - case 7: - message.model = reader.string(); - break; - case 10: - message.modelVariant = reader.int32(); - break; - case 8: - message.singleUtterance = reader.bool(); + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -84286,254 +83430,134 @@ }; /** - * Decodes an InputAudioConfig message from the specified reader or buffer, length delimited. + * Decodes a ListChangelogsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.InputAudioConfig} InputAudioConfig + * @returns {google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest} ListChangelogsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InputAudioConfig.decodeDelimited = function decodeDelimited(reader) { + ListChangelogsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InputAudioConfig message. + * Verifies a ListChangelogsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - InputAudioConfig.verify = function verify(message) { + ListChangelogsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.audioEncoding != null && message.hasOwnProperty("audioEncoding")) - switch (message.audioEncoding) { - default: - return "audioEncoding: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - if (message.sampleRateHertz != null && message.hasOwnProperty("sampleRateHertz")) - if (!$util.isInteger(message.sampleRateHertz)) - return "sampleRateHertz: integer expected"; - if (message.enableWordInfo != null && message.hasOwnProperty("enableWordInfo")) - if (typeof message.enableWordInfo !== "boolean") - return "enableWordInfo: boolean expected"; - if (message.phraseHints != null && message.hasOwnProperty("phraseHints")) { - if (!Array.isArray(message.phraseHints)) - return "phraseHints: array expected"; - for (var i = 0; i < message.phraseHints.length; ++i) - if (!$util.isString(message.phraseHints[i])) - return "phraseHints: string[] expected"; - } - if (message.model != null && message.hasOwnProperty("model")) - if (!$util.isString(message.model)) - return "model: string expected"; - if (message.modelVariant != null && message.hasOwnProperty("modelVariant")) - switch (message.modelVariant) { - default: - return "modelVariant: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.singleUtterance != null && message.hasOwnProperty("singleUtterance")) - if (typeof message.singleUtterance !== "boolean") - return "singleUtterance: boolean expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates an InputAudioConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ListChangelogsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.InputAudioConfig} InputAudioConfig + * @returns {google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest} ListChangelogsRequest */ - InputAudioConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig) + ListChangelogsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig(); - switch (object.audioEncoding) { - case "AUDIO_ENCODING_UNSPECIFIED": - case 0: - message.audioEncoding = 0; - break; - case "AUDIO_ENCODING_LINEAR_16": - case 1: - message.audioEncoding = 1; - break; - case "AUDIO_ENCODING_FLAC": - case 2: - message.audioEncoding = 2; - break; - case "AUDIO_ENCODING_MULAW": - case 3: - message.audioEncoding = 3; - break; - case "AUDIO_ENCODING_AMR": - case 4: - message.audioEncoding = 4; - break; - case "AUDIO_ENCODING_AMR_WB": - case 5: - message.audioEncoding = 5; - break; - case "AUDIO_ENCODING_OGG_OPUS": - case 6: - message.audioEncoding = 6; - break; - case "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE": - case 7: - message.audioEncoding = 7; - break; - } - if (object.sampleRateHertz != null) - message.sampleRateHertz = object.sampleRateHertz | 0; - if (object.enableWordInfo != null) - message.enableWordInfo = Boolean(object.enableWordInfo); - if (object.phraseHints) { - if (!Array.isArray(object.phraseHints)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.phraseHints: array expected"); - message.phraseHints = []; - for (var i = 0; i < object.phraseHints.length; ++i) - message.phraseHints[i] = String(object.phraseHints[i]); - } - if (object.model != null) - message.model = String(object.model); - switch (object.modelVariant) { - case "SPEECH_MODEL_VARIANT_UNSPECIFIED": - case 0: - message.modelVariant = 0; - break; - case "USE_BEST_AVAILABLE": - case 1: - message.modelVariant = 1; - break; - case "USE_STANDARD": - case 2: - message.modelVariant = 2; - break; - case "USE_ENHANCED": - case 3: - message.modelVariant = 3; - break; - } - if (object.singleUtterance != null) - message.singleUtterance = Boolean(object.singleUtterance); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from an InputAudioConfig message. Also converts values to other types if specified. + * Creates a plain object from a ListChangelogsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.InputAudioConfig} message InputAudioConfig + * @param {google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest} message ListChangelogsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InputAudioConfig.toObject = function toObject(message, options) { + ListChangelogsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.phraseHints = []; if (options.defaults) { - object.audioEncoding = options.enums === String ? "AUDIO_ENCODING_UNSPECIFIED" : 0; - object.sampleRateHertz = 0; - object.model = ""; - object.singleUtterance = false; - object.modelVariant = options.enums === String ? "SPEECH_MODEL_VARIANT_UNSPECIFIED" : 0; - object.enableWordInfo = false; - } - if (message.audioEncoding != null && message.hasOwnProperty("audioEncoding")) - object.audioEncoding = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.AudioEncoding[message.audioEncoding] : message.audioEncoding; - if (message.sampleRateHertz != null && message.hasOwnProperty("sampleRateHertz")) - object.sampleRateHertz = message.sampleRateHertz; - if (message.phraseHints && message.phraseHints.length) { - object.phraseHints = []; - for (var j = 0; j < message.phraseHints.length; ++j) - object.phraseHints[j] = message.phraseHints[j]; + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.model != null && message.hasOwnProperty("model")) - object.model = message.model; - if (message.singleUtterance != null && message.hasOwnProperty("singleUtterance")) - object.singleUtterance = message.singleUtterance; - if (message.modelVariant != null && message.hasOwnProperty("modelVariant")) - object.modelVariant = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant[message.modelVariant] : message.modelVariant; - if (message.enableWordInfo != null && message.hasOwnProperty("enableWordInfo")) - object.enableWordInfo = message.enableWordInfo; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this InputAudioConfig to JSON. + * Converts this ListChangelogsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest * @instance * @returns {Object.} JSON object */ - InputAudioConfig.prototype.toJSON = function toJSON() { + ListChangelogsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return InputAudioConfig; - })(); - - /** - * SsmlVoiceGender enum. - * @name google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender - * @enum {number} - * @property {number} SSML_VOICE_GENDER_UNSPECIFIED=0 SSML_VOICE_GENDER_UNSPECIFIED value - * @property {number} SSML_VOICE_GENDER_MALE=1 SSML_VOICE_GENDER_MALE value - * @property {number} SSML_VOICE_GENDER_FEMALE=2 SSML_VOICE_GENDER_FEMALE value - * @property {number} SSML_VOICE_GENDER_NEUTRAL=3 SSML_VOICE_GENDER_NEUTRAL value - */ - v3beta1.SsmlVoiceGender = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "SSML_VOICE_GENDER_UNSPECIFIED"] = 0; - values[valuesById[1] = "SSML_VOICE_GENDER_MALE"] = 1; - values[valuesById[2] = "SSML_VOICE_GENDER_FEMALE"] = 2; - values[valuesById[3] = "SSML_VOICE_GENDER_NEUTRAL"] = 3; - return values; + return ListChangelogsRequest; })(); - v3beta1.VoiceSelectionParams = (function() { + v3beta1.ListChangelogsResponse = (function() { /** - * Properties of a VoiceSelectionParams. + * Properties of a ListChangelogsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IVoiceSelectionParams - * @property {string|null} [name] VoiceSelectionParams name - * @property {google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender|null} [ssmlGender] VoiceSelectionParams ssmlGender + * @interface IListChangelogsResponse + * @property {Array.|null} [changelogs] ListChangelogsResponse changelogs + * @property {string|null} [nextPageToken] ListChangelogsResponse nextPageToken */ /** - * Constructs a new VoiceSelectionParams. + * Constructs a new ListChangelogsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a VoiceSelectionParams. - * @implements IVoiceSelectionParams + * @classdesc Represents a ListChangelogsResponse. + * @implements IListChangelogsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsResponse=} [properties] Properties to set */ - function VoiceSelectionParams(properties) { + function ListChangelogsResponse(properties) { + this.changelogs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -84541,88 +83565,91 @@ } /** - * VoiceSelectionParams name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + * ListChangelogsResponse changelogs. + * @member {Array.} changelogs + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse * @instance */ - VoiceSelectionParams.prototype.name = ""; + ListChangelogsResponse.prototype.changelogs = $util.emptyArray; /** - * VoiceSelectionParams ssmlGender. - * @member {google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender} ssmlGender - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + * ListChangelogsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse * @instance */ - VoiceSelectionParams.prototype.ssmlGender = 0; + ListChangelogsResponse.prototype.nextPageToken = ""; /** - * Creates a new VoiceSelectionParams instance using the specified properties. + * Creates a new ListChangelogsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams} VoiceSelectionParams instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse} ListChangelogsResponse instance */ - VoiceSelectionParams.create = function create(properties) { - return new VoiceSelectionParams(properties); + ListChangelogsResponse.create = function create(properties) { + return new ListChangelogsResponse(properties); }; /** - * Encodes the specified VoiceSelectionParams message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.verify|verify} messages. + * Encodes the specified ListChangelogsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams} message VoiceSelectionParams message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsResponse} message ListChangelogsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VoiceSelectionParams.encode = function encode(message, writer) { + ListChangelogsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.ssmlGender != null && Object.hasOwnProperty.call(message, "ssmlGender")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.ssmlGender); + if (message.changelogs != null && message.changelogs.length) + for (var i = 0; i < message.changelogs.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Changelog.encode(message.changelogs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified VoiceSelectionParams message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.verify|verify} messages. + * Encodes the specified ListChangelogsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams} message VoiceSelectionParams message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsResponse} message ListChangelogsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VoiceSelectionParams.encodeDelimited = function encodeDelimited(message, writer) { + ListChangelogsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VoiceSelectionParams message from the specified reader or buffer. + * Decodes a ListChangelogsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams} VoiceSelectionParams + * @returns {google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse} ListChangelogsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VoiceSelectionParams.decode = function decode(reader, length) { + ListChangelogsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.changelogs && message.changelogs.length)) + message.changelogs = []; + message.changelogs.push($root.google.cloud.dialogflow.cx.v3beta1.Changelog.decode(reader, reader.uint32())); break; case 2: - message.ssmlGender = reader.int32(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -84633,144 +83660,133 @@ }; /** - * Decodes a VoiceSelectionParams message from the specified reader or buffer, length delimited. + * Decodes a ListChangelogsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams} VoiceSelectionParams + * @returns {google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse} ListChangelogsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VoiceSelectionParams.decodeDelimited = function decodeDelimited(reader) { + ListChangelogsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VoiceSelectionParams message. + * Verifies a ListChangelogsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VoiceSelectionParams.verify = function verify(message) { + ListChangelogsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.ssmlGender != null && message.hasOwnProperty("ssmlGender")) - switch (message.ssmlGender) { - default: - return "ssmlGender: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + if (message.changelogs != null && message.hasOwnProperty("changelogs")) { + if (!Array.isArray(message.changelogs)) + return "changelogs: array expected"; + for (var i = 0; i < message.changelogs.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Changelog.verify(message.changelogs[i]); + if (error) + return "changelogs." + error; } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a VoiceSelectionParams message from a plain object. Also converts values to their respective internal types. + * Creates a ListChangelogsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams} VoiceSelectionParams + * @returns {google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse} ListChangelogsResponse */ - VoiceSelectionParams.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams) + ListChangelogsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams(); - if (object.name != null) - message.name = String(object.name); - switch (object.ssmlGender) { - case "SSML_VOICE_GENDER_UNSPECIFIED": - case 0: - message.ssmlGender = 0; - break; - case "SSML_VOICE_GENDER_MALE": - case 1: - message.ssmlGender = 1; - break; - case "SSML_VOICE_GENDER_FEMALE": - case 2: - message.ssmlGender = 2; - break; - case "SSML_VOICE_GENDER_NEUTRAL": - case 3: - message.ssmlGender = 3; - break; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse(); + if (object.changelogs) { + if (!Array.isArray(object.changelogs)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse.changelogs: array expected"); + message.changelogs = []; + for (var i = 0; i < object.changelogs.length; ++i) { + if (typeof object.changelogs[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse.changelogs: object expected"); + message.changelogs[i] = $root.google.cloud.dialogflow.cx.v3beta1.Changelog.fromObject(object.changelogs[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a VoiceSelectionParams message. Also converts values to other types if specified. + * Creates a plain object from a ListChangelogsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams} message VoiceSelectionParams + * @param {google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse} message ListChangelogsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VoiceSelectionParams.toObject = function toObject(message, options) { + ListChangelogsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.ssmlGender = options.enums === String ? "SSML_VOICE_GENDER_UNSPECIFIED" : 0; + if (options.arrays || options.defaults) + object.changelogs = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.changelogs && message.changelogs.length) { + object.changelogs = []; + for (var j = 0; j < message.changelogs.length; ++j) + object.changelogs[j] = $root.google.cloud.dialogflow.cx.v3beta1.Changelog.toObject(message.changelogs[j], options); } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.ssmlGender != null && message.hasOwnProperty("ssmlGender")) - object.ssmlGender = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender[message.ssmlGender] : message.ssmlGender; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this VoiceSelectionParams to JSON. + * Converts this ListChangelogsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse * @instance * @returns {Object.} JSON object */ - VoiceSelectionParams.prototype.toJSON = function toJSON() { + ListChangelogsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return VoiceSelectionParams; + return ListChangelogsResponse; })(); - v3beta1.SynthesizeSpeechConfig = (function() { + v3beta1.GetChangelogRequest = (function() { /** - * Properties of a SynthesizeSpeechConfig. + * Properties of a GetChangelogRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ISynthesizeSpeechConfig - * @property {number|null} [speakingRate] SynthesizeSpeechConfig speakingRate - * @property {number|null} [pitch] SynthesizeSpeechConfig pitch - * @property {number|null} [volumeGainDb] SynthesizeSpeechConfig volumeGainDb - * @property {Array.|null} [effectsProfileId] SynthesizeSpeechConfig effectsProfileId - * @property {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams|null} [voice] SynthesizeSpeechConfig voice + * @interface IGetChangelogRequest + * @property {string|null} [name] GetChangelogRequest name */ /** - * Constructs a new SynthesizeSpeechConfig. + * Constructs a new GetChangelogRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a SynthesizeSpeechConfig. - * @implements ISynthesizeSpeechConfig + * @classdesc Represents a GetChangelogRequest. + * @implements IGetChangelogRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest=} [properties] Properties to set */ - function SynthesizeSpeechConfig(properties) { - this.effectsProfileId = []; + function GetChangelogRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -84778,130 +83794,75 @@ } /** - * SynthesizeSpeechConfig speakingRate. - * @member {number} speakingRate - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig - * @instance - */ - SynthesizeSpeechConfig.prototype.speakingRate = 0; - - /** - * SynthesizeSpeechConfig pitch. - * @member {number} pitch - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig - * @instance - */ - SynthesizeSpeechConfig.prototype.pitch = 0; - - /** - * SynthesizeSpeechConfig volumeGainDb. - * @member {number} volumeGainDb - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig - * @instance - */ - SynthesizeSpeechConfig.prototype.volumeGainDb = 0; - - /** - * SynthesizeSpeechConfig effectsProfileId. - * @member {Array.} effectsProfileId - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig - * @instance - */ - SynthesizeSpeechConfig.prototype.effectsProfileId = $util.emptyArray; - - /** - * SynthesizeSpeechConfig voice. - * @member {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams|null|undefined} voice - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * GetChangelogRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest * @instance */ - SynthesizeSpeechConfig.prototype.voice = null; + GetChangelogRequest.prototype.name = ""; /** - * Creates a new SynthesizeSpeechConfig instance using the specified properties. + * Creates a new GetChangelogRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig} SynthesizeSpeechConfig instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest} GetChangelogRequest instance */ - SynthesizeSpeechConfig.create = function create(properties) { - return new SynthesizeSpeechConfig(properties); + GetChangelogRequest.create = function create(properties) { + return new GetChangelogRequest(properties); }; /** - * Encodes the specified SynthesizeSpeechConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.verify|verify} messages. + * Encodes the specified GetChangelogRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig} message SynthesizeSpeechConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest} message GetChangelogRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SynthesizeSpeechConfig.encode = function encode(message, writer) { + GetChangelogRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.speakingRate != null && Object.hasOwnProperty.call(message, "speakingRate")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.speakingRate); - if (message.pitch != null && Object.hasOwnProperty.call(message, "pitch")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.pitch); - if (message.volumeGainDb != null && Object.hasOwnProperty.call(message, "volumeGainDb")) - writer.uint32(/* id 3, wireType 1 =*/25).double(message.volumeGainDb); - if (message.voice != null && Object.hasOwnProperty.call(message, "voice")) - $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.encode(message.voice, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.effectsProfileId != null && message.effectsProfileId.length) - for (var i = 0; i < message.effectsProfileId.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.effectsProfileId[i]); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified SynthesizeSpeechConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.verify|verify} messages. + * Encodes the specified GetChangelogRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig} message SynthesizeSpeechConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest} message GetChangelogRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SynthesizeSpeechConfig.encodeDelimited = function encodeDelimited(message, writer) { + GetChangelogRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SynthesizeSpeechConfig message from the specified reader or buffer. + * Decodes a GetChangelogRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig} SynthesizeSpeechConfig + * @returns {google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest} GetChangelogRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SynthesizeSpeechConfig.decode = function decode(reader, length) { + GetChangelogRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.speakingRate = reader.double(); - break; - case 2: - message.pitch = reader.double(); - break; - case 3: - message.volumeGainDb = reader.double(); - break; - case 5: - if (!(message.effectsProfileId && message.effectsProfileId.length)) - message.effectsProfileId = []; - message.effectsProfileId.push(reader.string()); - break; - case 4: - message.voice = $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -84912,182 +83873,113 @@ }; /** - * Decodes a SynthesizeSpeechConfig message from the specified reader or buffer, length delimited. + * Decodes a GetChangelogRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig} SynthesizeSpeechConfig + * @returns {google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest} GetChangelogRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SynthesizeSpeechConfig.decodeDelimited = function decodeDelimited(reader) { + GetChangelogRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SynthesizeSpeechConfig message. + * Verifies a GetChangelogRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SynthesizeSpeechConfig.verify = function verify(message) { + GetChangelogRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.speakingRate != null && message.hasOwnProperty("speakingRate")) - if (typeof message.speakingRate !== "number") - return "speakingRate: number expected"; - if (message.pitch != null && message.hasOwnProperty("pitch")) - if (typeof message.pitch !== "number") - return "pitch: number expected"; - if (message.volumeGainDb != null && message.hasOwnProperty("volumeGainDb")) - if (typeof message.volumeGainDb !== "number") - return "volumeGainDb: number expected"; - if (message.effectsProfileId != null && message.hasOwnProperty("effectsProfileId")) { - if (!Array.isArray(message.effectsProfileId)) - return "effectsProfileId: array expected"; - for (var i = 0; i < message.effectsProfileId.length; ++i) - if (!$util.isString(message.effectsProfileId[i])) - return "effectsProfileId: string[] expected"; - } - if (message.voice != null && message.hasOwnProperty("voice")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.verify(message.voice); - if (error) - return "voice." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a SynthesizeSpeechConfig message from a plain object. Also converts values to their respective internal types. + * Creates a GetChangelogRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig} SynthesizeSpeechConfig + * @returns {google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest} GetChangelogRequest */ - SynthesizeSpeechConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig) + GetChangelogRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig(); - if (object.speakingRate != null) - message.speakingRate = Number(object.speakingRate); - if (object.pitch != null) - message.pitch = Number(object.pitch); - if (object.volumeGainDb != null) - message.volumeGainDb = Number(object.volumeGainDb); - if (object.effectsProfileId) { - if (!Array.isArray(object.effectsProfileId)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.effectsProfileId: array expected"); - message.effectsProfileId = []; - for (var i = 0; i < object.effectsProfileId.length; ++i) - message.effectsProfileId[i] = String(object.effectsProfileId[i]); - } - if (object.voice != null) { - if (typeof object.voice !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.voice: object expected"); - message.voice = $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.fromObject(object.voice); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a SynthesizeSpeechConfig message. Also converts values to other types if specified. + * Creates a plain object from a GetChangelogRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig} message SynthesizeSpeechConfig + * @param {google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest} message GetChangelogRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SynthesizeSpeechConfig.toObject = function toObject(message, options) { + GetChangelogRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.effectsProfileId = []; - if (options.defaults) { - object.speakingRate = 0; - object.pitch = 0; - object.volumeGainDb = 0; - object.voice = null; - } - if (message.speakingRate != null && message.hasOwnProperty("speakingRate")) - object.speakingRate = options.json && !isFinite(message.speakingRate) ? String(message.speakingRate) : message.speakingRate; - if (message.pitch != null && message.hasOwnProperty("pitch")) - object.pitch = options.json && !isFinite(message.pitch) ? String(message.pitch) : message.pitch; - if (message.volumeGainDb != null && message.hasOwnProperty("volumeGainDb")) - object.volumeGainDb = options.json && !isFinite(message.volumeGainDb) ? String(message.volumeGainDb) : message.volumeGainDb; - if (message.voice != null && message.hasOwnProperty("voice")) - object.voice = $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.toObject(message.voice, options); - if (message.effectsProfileId && message.effectsProfileId.length) { - object.effectsProfileId = []; - for (var j = 0; j < message.effectsProfileId.length; ++j) - object.effectsProfileId[j] = message.effectsProfileId[j]; - } + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this SynthesizeSpeechConfig to JSON. + * Converts this GetChangelogRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest * @instance * @returns {Object.} JSON object */ - SynthesizeSpeechConfig.prototype.toJSON = function toJSON() { + GetChangelogRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SynthesizeSpeechConfig; - })(); - - /** - * OutputAudioEncoding enum. - * @name google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding - * @enum {number} - * @property {number} OUTPUT_AUDIO_ENCODING_UNSPECIFIED=0 OUTPUT_AUDIO_ENCODING_UNSPECIFIED value - * @property {number} OUTPUT_AUDIO_ENCODING_LINEAR_16=1 OUTPUT_AUDIO_ENCODING_LINEAR_16 value - * @property {number} OUTPUT_AUDIO_ENCODING_MP3=2 OUTPUT_AUDIO_ENCODING_MP3 value - * @property {number} OUTPUT_AUDIO_ENCODING_MP3_64_KBPS=4 OUTPUT_AUDIO_ENCODING_MP3_64_KBPS value - * @property {number} OUTPUT_AUDIO_ENCODING_OGG_OPUS=3 OUTPUT_AUDIO_ENCODING_OGG_OPUS value - * @property {number} OUTPUT_AUDIO_ENCODING_MULAW=5 OUTPUT_AUDIO_ENCODING_MULAW value - */ - v3beta1.OutputAudioEncoding = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "OUTPUT_AUDIO_ENCODING_UNSPECIFIED"] = 0; - values[valuesById[1] = "OUTPUT_AUDIO_ENCODING_LINEAR_16"] = 1; - values[valuesById[2] = "OUTPUT_AUDIO_ENCODING_MP3"] = 2; - values[valuesById[4] = "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS"] = 4; - values[valuesById[3] = "OUTPUT_AUDIO_ENCODING_OGG_OPUS"] = 3; - values[valuesById[5] = "OUTPUT_AUDIO_ENCODING_MULAW"] = 5; - return values; + return GetChangelogRequest; })(); - v3beta1.OutputAudioConfig = (function() { + v3beta1.Changelog = (function() { /** - * Properties of an OutputAudioConfig. + * Properties of a Changelog. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IOutputAudioConfig - * @property {google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding|null} [audioEncoding] OutputAudioConfig audioEncoding - * @property {number|null} [sampleRateHertz] OutputAudioConfig sampleRateHertz - * @property {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig|null} [synthesizeSpeechConfig] OutputAudioConfig synthesizeSpeechConfig + * @interface IChangelog + * @property {string|null} [name] Changelog name + * @property {string|null} [userEmail] Changelog userEmail + * @property {string|null} [displayName] Changelog displayName + * @property {string|null} [action] Changelog action + * @property {string|null} [type] Changelog type + * @property {string|null} [resource] Changelog resource + * @property {google.protobuf.ITimestamp|null} [createTime] Changelog createTime */ /** - * Constructs a new OutputAudioConfig. + * Constructs a new Changelog. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an OutputAudioConfig. - * @implements IOutputAudioConfig + * @classdesc Represents a Changelog. + * @implements IChangelog * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IChangelog=} [properties] Properties to set */ - function OutputAudioConfig(properties) { + function Changelog(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -85095,101 +83987,153 @@ } /** - * OutputAudioConfig audioEncoding. - * @member {google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding} audioEncoding - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * Changelog name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog * @instance */ - OutputAudioConfig.prototype.audioEncoding = 0; + Changelog.prototype.name = ""; /** - * OutputAudioConfig sampleRateHertz. - * @member {number} sampleRateHertz - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * Changelog userEmail. + * @member {string} userEmail + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog * @instance */ - OutputAudioConfig.prototype.sampleRateHertz = 0; + Changelog.prototype.userEmail = ""; /** - * OutputAudioConfig synthesizeSpeechConfig. - * @member {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig|null|undefined} synthesizeSpeechConfig - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * Changelog displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog * @instance */ - OutputAudioConfig.prototype.synthesizeSpeechConfig = null; + Changelog.prototype.displayName = ""; /** - * Creates a new OutputAudioConfig instance using the specified properties. + * Changelog action. + * @member {string} action + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog + * @instance + */ + Changelog.prototype.action = ""; + + /** + * Changelog type. + * @member {string} type + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog + * @instance + */ + Changelog.prototype.type = ""; + + /** + * Changelog resource. + * @member {string} resource + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog + * @instance + */ + Changelog.prototype.resource = ""; + + /** + * Changelog createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog + * @instance + */ + Changelog.prototype.createTime = null; + + /** + * Creates a new Changelog instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} OutputAudioConfig instance + * @param {google.cloud.dialogflow.cx.v3beta1.IChangelog=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Changelog} Changelog instance */ - OutputAudioConfig.create = function create(properties) { - return new OutputAudioConfig(properties); + Changelog.create = function create(properties) { + return new Changelog(properties); }; /** - * Encodes the specified OutputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify|verify} messages. + * Encodes the specified Changelog message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Changelog.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig} message OutputAudioConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IChangelog} message Changelog message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OutputAudioConfig.encode = function encode(message, writer) { + Changelog.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.audioEncoding != null && Object.hasOwnProperty.call(message, "audioEncoding")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.audioEncoding); - if (message.sampleRateHertz != null && Object.hasOwnProperty.call(message, "sampleRateHertz")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.sampleRateHertz); - if (message.synthesizeSpeechConfig != null && Object.hasOwnProperty.call(message, "synthesizeSpeechConfig")) - $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.encode(message.synthesizeSpeechConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.userEmail != null && Object.hasOwnProperty.call(message, "userEmail")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.userEmail); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.resource); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.displayName); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.type); + if (message.action != null && Object.hasOwnProperty.call(message, "action")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.action); return writer; }; /** - * Encodes the specified OutputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify|verify} messages. + * Encodes the specified Changelog message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Changelog.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig} message OutputAudioConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IChangelog} message Changelog message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OutputAudioConfig.encodeDelimited = function encodeDelimited(message, writer) { + Changelog.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an OutputAudioConfig message from the specified reader or buffer. + * Decodes a Changelog message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} OutputAudioConfig + * @returns {google.cloud.dialogflow.cx.v3beta1.Changelog} Changelog * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OutputAudioConfig.decode = function decode(reader, length) { + Changelog.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Changelog(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.audioEncoding = reader.int32(); + message.name = reader.string(); break; case 2: - message.sampleRateHertz = reader.int32(); + message.userEmail = reader.string(); + break; + case 7: + message.displayName = reader.string(); + break; + case 11: + message.action = reader.string(); + break; + case 8: + message.type = reader.string(); break; case 3: - message.synthesizeSpeechConfig = $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.decode(reader, reader.uint32()); + message.resource = reader.string(); + break; + case 4: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -85200,266 +84144,267 @@ }; /** - * Decodes an OutputAudioConfig message from the specified reader or buffer, length delimited. + * Decodes a Changelog message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} OutputAudioConfig + * @returns {google.cloud.dialogflow.cx.v3beta1.Changelog} Changelog * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OutputAudioConfig.decodeDelimited = function decodeDelimited(reader) { + Changelog.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an OutputAudioConfig message. + * Verifies a Changelog message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - OutputAudioConfig.verify = function verify(message) { + Changelog.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.audioEncoding != null && message.hasOwnProperty("audioEncoding")) - switch (message.audioEncoding) { - default: - return "audioEncoding: enum value expected"; - case 0: - case 1: - case 2: - case 4: - case 3: - case 5: - break; - } - if (message.sampleRateHertz != null && message.hasOwnProperty("sampleRateHertz")) - if (!$util.isInteger(message.sampleRateHertz)) - return "sampleRateHertz: integer expected"; - if (message.synthesizeSpeechConfig != null && message.hasOwnProperty("synthesizeSpeechConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.verify(message.synthesizeSpeechConfig); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.userEmail != null && message.hasOwnProperty("userEmail")) + if (!$util.isString(message.userEmail)) + return "userEmail: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.action != null && message.hasOwnProperty("action")) + if (!$util.isString(message.action)) + return "action: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); if (error) - return "synthesizeSpeechConfig." + error; + return "createTime." + error; } return null; }; /** - * Creates an OutputAudioConfig message from a plain object. Also converts values to their respective internal types. + * Creates a Changelog message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} OutputAudioConfig + * @returns {google.cloud.dialogflow.cx.v3beta1.Changelog} Changelog */ - OutputAudioConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig) + Changelog.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Changelog) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig(); - switch (object.audioEncoding) { - case "OUTPUT_AUDIO_ENCODING_UNSPECIFIED": - case 0: - message.audioEncoding = 0; - break; - case "OUTPUT_AUDIO_ENCODING_LINEAR_16": - case 1: - message.audioEncoding = 1; - break; - case "OUTPUT_AUDIO_ENCODING_MP3": - case 2: - message.audioEncoding = 2; - break; - case "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS": - case 4: - message.audioEncoding = 4; - break; - case "OUTPUT_AUDIO_ENCODING_OGG_OPUS": - case 3: - message.audioEncoding = 3; - break; - case "OUTPUT_AUDIO_ENCODING_MULAW": - case 5: - message.audioEncoding = 5; - break; - } - if (object.sampleRateHertz != null) - message.sampleRateHertz = object.sampleRateHertz | 0; - if (object.synthesizeSpeechConfig != null) { - if (typeof object.synthesizeSpeechConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.synthesizeSpeechConfig: object expected"); - message.synthesizeSpeechConfig = $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.fromObject(object.synthesizeSpeechConfig); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Changelog(); + if (object.name != null) + message.name = String(object.name); + if (object.userEmail != null) + message.userEmail = String(object.userEmail); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.action != null) + message.action = String(object.action); + if (object.type != null) + message.type = String(object.type); + if (object.resource != null) + message.resource = String(object.resource); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Changelog.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } return message; }; /** - * Creates a plain object from an OutputAudioConfig message. Also converts values to other types if specified. + * Creates a plain object from a Changelog message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog * @static - * @param {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} message OutputAudioConfig + * @param {google.cloud.dialogflow.cx.v3beta1.Changelog} message Changelog * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - OutputAudioConfig.toObject = function toObject(message, options) { + Changelog.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.audioEncoding = options.enums === String ? "OUTPUT_AUDIO_ENCODING_UNSPECIFIED" : 0; - object.sampleRateHertz = 0; - object.synthesizeSpeechConfig = null; + object.name = ""; + object.userEmail = ""; + object.resource = ""; + object.createTime = null; + object.displayName = ""; + object.type = ""; + object.action = ""; } - if (message.audioEncoding != null && message.hasOwnProperty("audioEncoding")) - object.audioEncoding = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding[message.audioEncoding] : message.audioEncoding; - if (message.sampleRateHertz != null && message.hasOwnProperty("sampleRateHertz")) - object.sampleRateHertz = message.sampleRateHertz; - if (message.synthesizeSpeechConfig != null && message.hasOwnProperty("synthesizeSpeechConfig")) - object.synthesizeSpeechConfig = $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.toObject(message.synthesizeSpeechConfig, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.userEmail != null && message.hasOwnProperty("userEmail")) + object.userEmail = message.userEmail; + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.action != null && message.hasOwnProperty("action")) + object.action = message.action; return object; }; /** - * Converts this OutputAudioConfig to JSON. + * Converts this Changelog to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog * @instance * @returns {Object.} JSON object */ - OutputAudioConfig.prototype.toJSON = function toJSON() { + Changelog.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return OutputAudioConfig; + return Changelog; })(); - v3beta1.Changelogs = (function() { + v3beta1.Deployments = (function() { /** - * Constructs a new Changelogs service. + * Constructs a new Deployments service. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a Changelogs + * @classdesc Represents a Deployments * @extends $protobuf.rpc.Service * @constructor * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - function Changelogs(rpcImpl, requestDelimited, responseDelimited) { + function Deployments(rpcImpl, requestDelimited, responseDelimited) { $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - (Changelogs.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Changelogs; + (Deployments.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Deployments; /** - * Creates new Changelogs service using the specified rpc implementation. + * Creates new Deployments service using the specified rpc implementation. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelogs + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployments * @static * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {Changelogs} RPC service. Useful where requests and/or responses are streamed. + * @returns {Deployments} RPC service. Useful where requests and/or responses are streamed. */ - Changelogs.create = function create(rpcImpl, requestDelimited, responseDelimited) { + Deployments.create = function create(rpcImpl, requestDelimited, responseDelimited) { return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Changelogs#listChangelogs}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelogs - * @typedef ListChangelogsCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Deployments#listDeployments}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployments + * @typedef ListDeploymentsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse} [response] ListChangelogsResponse + * @param {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse} [response] ListDeploymentsResponse */ /** - * Calls ListChangelogs. - * @function listChangelogs - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelogs + * Calls ListDeployments. + * @function listDeployments + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployments * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest} request ListChangelogsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Changelogs.ListChangelogsCallback} callback Node-style callback called with the error, if any, and ListChangelogsResponse + * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest} request ListDeploymentsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Deployments.ListDeploymentsCallback} callback Node-style callback called with the error, if any, and ListDeploymentsResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(Changelogs.prototype.listChangelogs = function listChangelogs(request, callback) { - return this.rpcCall(listChangelogs, $root.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse, request, callback); - }, "name", { value: "ListChangelogs" }); + Object.defineProperty(Deployments.prototype.listDeployments = function listDeployments(request, callback) { + return this.rpcCall(listDeployments, $root.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse, request, callback); + }, "name", { value: "ListDeployments" }); /** - * Calls ListChangelogs. - * @function listChangelogs - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelogs + * Calls ListDeployments. + * @function listDeployments + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployments * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest} request ListChangelogsRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest} request ListDeploymentsRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Changelogs#getChangelog}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelogs - * @typedef GetChangelogCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Deployments#getDeployment}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployments + * @typedef GetDeploymentCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Changelog} [response] Changelog + * @param {google.cloud.dialogflow.cx.v3beta1.Deployment} [response] Deployment */ /** - * Calls GetChangelog. - * @function getChangelog - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelogs + * Calls GetDeployment. + * @function getDeployment + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployments * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest} request GetChangelogRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Changelogs.GetChangelogCallback} callback Node-style callback called with the error, if any, and Changelog + * @param {google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest} request GetDeploymentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Deployments.GetDeploymentCallback} callback Node-style callback called with the error, if any, and Deployment * @returns {undefined} * @variation 1 */ - Object.defineProperty(Changelogs.prototype.getChangelog = function getChangelog(request, callback) { - return this.rpcCall(getChangelog, $root.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest, $root.google.cloud.dialogflow.cx.v3beta1.Changelog, request, callback); - }, "name", { value: "GetChangelog" }); + Object.defineProperty(Deployments.prototype.getDeployment = function getDeployment(request, callback) { + return this.rpcCall(getDeployment, $root.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Deployment, request, callback); + }, "name", { value: "GetDeployment" }); /** - * Calls GetChangelog. - * @function getChangelog - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelogs + * Calls GetDeployment. + * @function getDeployment + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployments * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest} request GetChangelogRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest} request GetDeploymentRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ - return Changelogs; + return Deployments; })(); - v3beta1.ListChangelogsRequest = (function() { + v3beta1.Deployment = (function() { /** - * Properties of a ListChangelogsRequest. + * Properties of a Deployment. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListChangelogsRequest - * @property {string|null} [parent] ListChangelogsRequest parent - * @property {string|null} [filter] ListChangelogsRequest filter - * @property {number|null} [pageSize] ListChangelogsRequest pageSize - * @property {string|null} [pageToken] ListChangelogsRequest pageToken + * @interface IDeployment + * @property {string|null} [name] Deployment name + * @property {string|null} [flowVersion] Deployment flowVersion + * @property {google.cloud.dialogflow.cx.v3beta1.Deployment.State|null} [state] Deployment state + * @property {google.cloud.dialogflow.cx.v3beta1.Deployment.IResult|null} [result] Deployment result + * @property {google.protobuf.ITimestamp|null} [startTime] Deployment startTime + * @property {google.protobuf.ITimestamp|null} [endTime] Deployment endTime */ /** - * Constructs a new ListChangelogsRequest. + * Constructs a new Deployment. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListChangelogsRequest. - * @implements IListChangelogsRequest + * @classdesc Represents a Deployment. + * @implements IDeployment * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployment=} [properties] Properties to set */ - function ListChangelogsRequest(properties) { + function Deployment(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -85467,114 +84412,140 @@ } /** - * ListChangelogsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * Deployment name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment * @instance */ - ListChangelogsRequest.prototype.parent = ""; + Deployment.prototype.name = ""; /** - * ListChangelogsRequest filter. - * @member {string} filter - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * Deployment flowVersion. + * @member {string} flowVersion + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment * @instance */ - ListChangelogsRequest.prototype.filter = ""; + Deployment.prototype.flowVersion = ""; /** - * ListChangelogsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * Deployment state. + * @member {google.cloud.dialogflow.cx.v3beta1.Deployment.State} state + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment * @instance */ - ListChangelogsRequest.prototype.pageSize = 0; + Deployment.prototype.state = 0; /** - * ListChangelogsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * Deployment result. + * @member {google.cloud.dialogflow.cx.v3beta1.Deployment.IResult|null|undefined} result + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment * @instance */ - ListChangelogsRequest.prototype.pageToken = ""; + Deployment.prototype.result = null; /** - * Creates a new ListChangelogsRequest instance using the specified properties. + * Deployment startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @instance + */ + Deployment.prototype.startTime = null; + + /** + * Deployment endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @instance + */ + Deployment.prototype.endTime = null; + + /** + * Creates a new Deployment instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest} ListChangelogsRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployment=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Deployment} Deployment instance */ - ListChangelogsRequest.create = function create(properties) { - return new ListChangelogsRequest(properties); + Deployment.create = function create(properties) { + return new Deployment(properties); }; /** - * Encodes the specified ListChangelogsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest.verify|verify} messages. + * Encodes the specified Deployment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Deployment.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest} message ListChangelogsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployment} message Deployment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListChangelogsRequest.encode = function encode(message, writer) { + Deployment.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.flowVersion != null && Object.hasOwnProperty.call(message, "flowVersion")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.flowVersion); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.encode(message.result, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListChangelogsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest.verify|verify} messages. + * Encodes the specified Deployment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Deployment.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest} message ListChangelogsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployment} message Deployment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListChangelogsRequest.encodeDelimited = function encodeDelimited(message, writer) { + Deployment.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListChangelogsRequest message from the specified reader or buffer. + * Decodes a Deployment message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest} ListChangelogsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.Deployment} Deployment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListChangelogsRequest.decode = function decode(reader, length) { + Deployment.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Deployment(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.name = reader.string(); break; case 2: - message.filter = reader.string(); + message.flowVersion = reader.string(); break; case 3: - message.pageSize = reader.int32(); + message.state = reader.int32(); break; case 4: - message.pageToken = reader.string(); + message.result = $root.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.decode(reader, reader.uint32()); + break; + case 5: + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 6: + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -85585,134 +84556,432 @@ }; /** - * Decodes a ListChangelogsRequest message from the specified reader or buffer, length delimited. + * Decodes a Deployment message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest} ListChangelogsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.Deployment} Deployment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListChangelogsRequest.decodeDelimited = function decodeDelimited(reader) { + Deployment.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListChangelogsRequest message. + * Verifies a Deployment message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListChangelogsRequest.verify = function verify(message) { + Deployment.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.flowVersion != null && message.hasOwnProperty("flowVersion")) + if (!$util.isString(message.flowVersion)) + return "flowVersion: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.result != null && message.hasOwnProperty("result")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.verify(message.result); + if (error) + return "result." + error; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } return null; }; /** - * Creates a ListChangelogsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Deployment message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest} ListChangelogsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.Deployment} Deployment */ - ListChangelogsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest) + Deployment.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Deployment) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Deployment(); + if (object.name != null) + message.name = String(object.name); + if (object.flowVersion != null) + message.flowVersion = String(object.flowVersion); + switch (object.state) { + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "RUNNING": + case 1: + message.state = 1; + break; + case "SUCCEEDED": + case 2: + message.state = 2; + break; + case "FAILED": + case 3: + message.state = 3; + break; + } + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Deployment.result: object expected"); + message.result = $root.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.fromObject(object.result); + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Deployment.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Deployment.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } return message; }; /** - * Creates a plain object from a ListChangelogsRequest message. Also converts values to other types if specified. + * Creates a plain object from a Deployment message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest} message ListChangelogsRequest + * @param {google.cloud.dialogflow.cx.v3beta1.Deployment} message Deployment * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListChangelogsRequest.toObject = function toObject(message, options) { + Deployment.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; + object.name = ""; + object.flowVersion = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.result = null; + object.startTime = null; + object.endTime = null; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.flowVersion != null && message.hasOwnProperty("flowVersion")) + object.flowVersion = message.flowVersion; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.Deployment.State[message.state] : message.state; + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.toObject(message.result, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); return object; }; /** - * Converts this ListChangelogsRequest to JSON. + * Converts this Deployment to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment * @instance * @returns {Object.} JSON object */ - ListChangelogsRequest.prototype.toJSON = function toJSON() { + Deployment.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListChangelogsRequest; + /** + * State enum. + * @name google.cloud.dialogflow.cx.v3beta1.Deployment.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} RUNNING=1 RUNNING value + * @property {number} SUCCEEDED=2 SUCCEEDED value + * @property {number} FAILED=3 FAILED value + */ + Deployment.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "RUNNING"] = 1; + values[valuesById[2] = "SUCCEEDED"] = 2; + values[valuesById[3] = "FAILED"] = 3; + return values; + })(); + + Deployment.Result = (function() { + + /** + * Properties of a Result. + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @interface IResult + * @property {Array.|null} [deploymentTestResults] Result deploymentTestResults + * @property {string|null} [experiment] Result experiment + */ + + /** + * Constructs a new Result. + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @classdesc Represents a Result. + * @implements IResult + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Deployment.IResult=} [properties] Properties to set + */ + function Result(properties) { + this.deploymentTestResults = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Result deploymentTestResults. + * @member {Array.} deploymentTestResults + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result + * @instance + */ + Result.prototype.deploymentTestResults = $util.emptyArray; + + /** + * Result experiment. + * @member {string} experiment + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result + * @instance + */ + Result.prototype.experiment = ""; + + /** + * Creates a new Result instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Deployment.IResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Deployment.Result} Result instance + */ + Result.create = function create(properties) { + return new Result(properties); + }; + + /** + * Encodes the specified Result message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Deployment.Result.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Deployment.IResult} message Result message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Result.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deploymentTestResults != null && message.deploymentTestResults.length) + for (var i = 0; i < message.deploymentTestResults.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.deploymentTestResults[i]); + if (message.experiment != null && Object.hasOwnProperty.call(message, "experiment")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.experiment); + return writer; + }; + + /** + * Encodes the specified Result message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Deployment.Result.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Deployment.IResult} message Result message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Result.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Result message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.Deployment.Result} Result + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Result.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Deployment.Result(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.deploymentTestResults && message.deploymentTestResults.length)) + message.deploymentTestResults = []; + message.deploymentTestResults.push(reader.string()); + break; + case 2: + message.experiment = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Result message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Deployment.Result} Result + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Result.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Result message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Result.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deploymentTestResults != null && message.hasOwnProperty("deploymentTestResults")) { + if (!Array.isArray(message.deploymentTestResults)) + return "deploymentTestResults: array expected"; + for (var i = 0; i < message.deploymentTestResults.length; ++i) + if (!$util.isString(message.deploymentTestResults[i])) + return "deploymentTestResults: string[] expected"; + } + if (message.experiment != null && message.hasOwnProperty("experiment")) + if (!$util.isString(message.experiment)) + return "experiment: string expected"; + return null; + }; + + /** + * Creates a Result message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Deployment.Result} Result + */ + Result.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Deployment.Result) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Deployment.Result(); + if (object.deploymentTestResults) { + if (!Array.isArray(object.deploymentTestResults)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Deployment.Result.deploymentTestResults: array expected"); + message.deploymentTestResults = []; + for (var i = 0; i < object.deploymentTestResults.length; ++i) + message.deploymentTestResults[i] = String(object.deploymentTestResults[i]); + } + if (object.experiment != null) + message.experiment = String(object.experiment); + return message; + }; + + /** + * Creates a plain object from a Result message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Deployment.Result} message Result + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Result.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.deploymentTestResults = []; + if (options.defaults) + object.experiment = ""; + if (message.deploymentTestResults && message.deploymentTestResults.length) { + object.deploymentTestResults = []; + for (var j = 0; j < message.deploymentTestResults.length; ++j) + object.deploymentTestResults[j] = message.deploymentTestResults[j]; + } + if (message.experiment != null && message.hasOwnProperty("experiment")) + object.experiment = message.experiment; + return object; + }; + + /** + * Converts this Result to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result + * @instance + * @returns {Object.} JSON object + */ + Result.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Result; + })(); + + return Deployment; })(); - v3beta1.ListChangelogsResponse = (function() { + v3beta1.ListDeploymentsRequest = (function() { /** - * Properties of a ListChangelogsResponse. + * Properties of a ListDeploymentsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListChangelogsResponse - * @property {Array.|null} [changelogs] ListChangelogsResponse changelogs - * @property {string|null} [nextPageToken] ListChangelogsResponse nextPageToken + * @interface IListDeploymentsRequest + * @property {string|null} [parent] ListDeploymentsRequest parent + * @property {number|null} [pageSize] ListDeploymentsRequest pageSize + * @property {string|null} [pageToken] ListDeploymentsRequest pageToken */ /** - * Constructs a new ListChangelogsResponse. + * Constructs a new ListDeploymentsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListChangelogsResponse. - * @implements IListChangelogsResponse + * @classdesc Represents a ListDeploymentsRequest. + * @implements IListDeploymentsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest=} [properties] Properties to set */ - function ListChangelogsResponse(properties) { - this.changelogs = []; + function ListDeploymentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -85720,91 +84989,101 @@ } /** - * ListChangelogsResponse changelogs. - * @member {Array.} changelogs - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse + * ListDeploymentsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest * @instance */ - ListChangelogsResponse.prototype.changelogs = $util.emptyArray; + ListDeploymentsRequest.prototype.parent = ""; /** - * ListChangelogsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse + * ListDeploymentsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest * @instance */ - ListChangelogsResponse.prototype.nextPageToken = ""; + ListDeploymentsRequest.prototype.pageSize = 0; /** - * Creates a new ListChangelogsResponse instance using the specified properties. + * ListDeploymentsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest + * @instance + */ + ListDeploymentsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListDeploymentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse} ListChangelogsResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest} ListDeploymentsRequest instance */ - ListChangelogsResponse.create = function create(properties) { - return new ListChangelogsResponse(properties); + ListDeploymentsRequest.create = function create(properties) { + return new ListDeploymentsRequest(properties); }; /** - * Encodes the specified ListChangelogsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse.verify|verify} messages. + * Encodes the specified ListDeploymentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsResponse} message ListChangelogsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest} message ListDeploymentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListChangelogsResponse.encode = function encode(message, writer) { + ListDeploymentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.changelogs != null && message.changelogs.length) - for (var i = 0; i < message.changelogs.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Changelog.encode(message.changelogs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified ListChangelogsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse.verify|verify} messages. + * Encodes the specified ListDeploymentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsResponse} message ListChangelogsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest} message ListDeploymentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListChangelogsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListDeploymentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListChangelogsResponse message from the specified reader or buffer. + * Decodes a ListDeploymentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse} ListChangelogsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest} ListDeploymentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListChangelogsResponse.decode = function decode(reader, length) { + ListDeploymentsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.changelogs && message.changelogs.length)) - message.changelogs = []; - message.changelogs.push($root.google.cloud.dialogflow.cx.v3beta1.Changelog.decode(reader, reader.uint32())); + message.parent = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -85815,133 +85094,126 @@ }; /** - * Decodes a ListChangelogsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListDeploymentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse} ListChangelogsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest} ListDeploymentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListChangelogsResponse.decodeDelimited = function decodeDelimited(reader) { + ListDeploymentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListChangelogsResponse message. + * Verifies a ListDeploymentsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListChangelogsResponse.verify = function verify(message) { + ListDeploymentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.changelogs != null && message.hasOwnProperty("changelogs")) { - if (!Array.isArray(message.changelogs)) - return "changelogs: array expected"; - for (var i = 0; i < message.changelogs.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Changelog.verify(message.changelogs[i]); - if (error) - return "changelogs." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a ListChangelogsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListDeploymentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse} ListChangelogsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest} ListDeploymentsRequest */ - ListChangelogsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse) + ListDeploymentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse(); - if (object.changelogs) { - if (!Array.isArray(object.changelogs)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse.changelogs: array expected"); - message.changelogs = []; - for (var i = 0; i < object.changelogs.length; ++i) { - if (typeof object.changelogs[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse.changelogs: object expected"); - message.changelogs[i] = $root.google.cloud.dialogflow.cx.v3beta1.Changelog.fromObject(object.changelogs[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a ListChangelogsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListDeploymentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse} message ListChangelogsResponse + * @param {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest} message ListDeploymentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListChangelogsResponse.toObject = function toObject(message, options) { + ListDeploymentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.changelogs = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.changelogs && message.changelogs.length) { - object.changelogs = []; - for (var j = 0; j < message.changelogs.length; ++j) - object.changelogs[j] = $root.google.cloud.dialogflow.cx.v3beta1.Changelog.toObject(message.changelogs[j], options); + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this ListChangelogsResponse to JSON. + * Converts this ListDeploymentsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest * @instance * @returns {Object.} JSON object */ - ListChangelogsResponse.prototype.toJSON = function toJSON() { + ListDeploymentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListChangelogsResponse; + return ListDeploymentsRequest; })(); - v3beta1.GetChangelogRequest = (function() { + v3beta1.ListDeploymentsResponse = (function() { /** - * Properties of a GetChangelogRequest. + * Properties of a ListDeploymentsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetChangelogRequest - * @property {string|null} [name] GetChangelogRequest name + * @interface IListDeploymentsResponse + * @property {Array.|null} [deployments] ListDeploymentsResponse deployments + * @property {string|null} [nextPageToken] ListDeploymentsResponse nextPageToken */ /** - * Constructs a new GetChangelogRequest. + * Constructs a new ListDeploymentsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetChangelogRequest. - * @implements IGetChangelogRequest + * @classdesc Represents a ListDeploymentsResponse. + * @implements IListDeploymentsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsResponse=} [properties] Properties to set */ - function GetChangelogRequest(properties) { + function ListDeploymentsResponse(properties) { + this.deployments = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -85949,75 +85221,91 @@ } /** - * GetChangelogRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest + * ListDeploymentsResponse deployments. + * @member {Array.} deployments + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse * @instance */ - GetChangelogRequest.prototype.name = ""; + ListDeploymentsResponse.prototype.deployments = $util.emptyArray; /** - * Creates a new GetChangelogRequest instance using the specified properties. + * ListDeploymentsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse + * @instance + */ + ListDeploymentsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListDeploymentsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest} GetChangelogRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse} ListDeploymentsResponse instance */ - GetChangelogRequest.create = function create(properties) { - return new GetChangelogRequest(properties); + ListDeploymentsResponse.create = function create(properties) { + return new ListDeploymentsResponse(properties); }; /** - * Encodes the specified GetChangelogRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest.verify|verify} messages. + * Encodes the specified ListDeploymentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest} message GetChangelogRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsResponse} message ListDeploymentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetChangelogRequest.encode = function encode(message, writer) { + ListDeploymentsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.deployments != null && message.deployments.length) + for (var i = 0; i < message.deployments.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Deployment.encode(message.deployments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified GetChangelogRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest.verify|verify} messages. + * Encodes the specified ListDeploymentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest} message GetChangelogRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsResponse} message ListDeploymentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetChangelogRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListDeploymentsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetChangelogRequest message from the specified reader or buffer. + * Decodes a ListDeploymentsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest} GetChangelogRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse} ListDeploymentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetChangelogRequest.decode = function decode(reader, length) { + ListDeploymentsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.deployments && message.deployments.length)) + message.deployments = []; + message.deployments.push($root.google.cloud.dialogflow.cx.v3beta1.Deployment.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -86028,113 +85316,133 @@ }; /** - * Decodes a GetChangelogRequest message from the specified reader or buffer, length delimited. + * Decodes a ListDeploymentsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest} GetChangelogRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse} ListDeploymentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetChangelogRequest.decodeDelimited = function decodeDelimited(reader) { + ListDeploymentsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetChangelogRequest message. + * Verifies a ListDeploymentsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetChangelogRequest.verify = function verify(message) { + ListDeploymentsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.deployments != null && message.hasOwnProperty("deployments")) { + if (!Array.isArray(message.deployments)) + return "deployments: array expected"; + for (var i = 0; i < message.deployments.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Deployment.verify(message.deployments[i]); + if (error) + return "deployments." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a GetChangelogRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListDeploymentsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest} GetChangelogRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse} ListDeploymentsResponse */ - GetChangelogRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest) + ListDeploymentsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse(); + if (object.deployments) { + if (!Array.isArray(object.deployments)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse.deployments: array expected"); + message.deployments = []; + for (var i = 0; i < object.deployments.length; ++i) { + if (typeof object.deployments[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse.deployments: object expected"); + message.deployments[i] = $root.google.cloud.dialogflow.cx.v3beta1.Deployment.fromObject(object.deployments[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a GetChangelogRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListDeploymentsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest} message GetChangelogRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse} message ListDeploymentsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetChangelogRequest.toObject = function toObject(message, options) { + ListDeploymentsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.deployments = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.nextPageToken = ""; + if (message.deployments && message.deployments.length) { + object.deployments = []; + for (var j = 0; j < message.deployments.length; ++j) + object.deployments[j] = $root.google.cloud.dialogflow.cx.v3beta1.Deployment.toObject(message.deployments[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this GetChangelogRequest to JSON. + * Converts this ListDeploymentsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse * @instance * @returns {Object.} JSON object */ - GetChangelogRequest.prototype.toJSON = function toJSON() { + ListDeploymentsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetChangelogRequest; + return ListDeploymentsResponse; })(); - v3beta1.Changelog = (function() { + v3beta1.GetDeploymentRequest = (function() { /** - * Properties of a Changelog. + * Properties of a GetDeploymentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IChangelog - * @property {string|null} [name] Changelog name - * @property {string|null} [userEmail] Changelog userEmail - * @property {string|null} [displayName] Changelog displayName - * @property {string|null} [action] Changelog action - * @property {string|null} [type] Changelog type - * @property {string|null} [resource] Changelog resource - * @property {google.protobuf.ITimestamp|null} [createTime] Changelog createTime + * @interface IGetDeploymentRequest + * @property {string|null} [name] GetDeploymentRequest name */ /** - * Constructs a new Changelog. + * Constructs a new GetDeploymentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a Changelog. - * @implements IChangelog + * @classdesc Represents a GetDeploymentRequest. + * @implements IGetDeploymentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IChangelog=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest=} [properties] Properties to set */ - function Changelog(properties) { + function GetDeploymentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -86142,154 +85450,76 @@ } /** - * Changelog name. + * GetDeploymentRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog - * @instance - */ - Changelog.prototype.name = ""; - - /** - * Changelog userEmail. - * @member {string} userEmail - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog - * @instance - */ - Changelog.prototype.userEmail = ""; - - /** - * Changelog displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog - * @instance - */ - Changelog.prototype.displayName = ""; - - /** - * Changelog action. - * @member {string} action - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog - * @instance - */ - Changelog.prototype.action = ""; - - /** - * Changelog type. - * @member {string} type - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog - * @instance - */ - Changelog.prototype.type = ""; - - /** - * Changelog resource. - * @member {string} resource - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog - * @instance - */ - Changelog.prototype.resource = ""; - - /** - * Changelog createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog + * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest * @instance */ - Changelog.prototype.createTime = null; + GetDeploymentRequest.prototype.name = ""; /** - * Creates a new Changelog instance using the specified properties. + * Creates a new GetDeploymentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog + * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IChangelog=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Changelog} Changelog instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest} GetDeploymentRequest instance */ - Changelog.create = function create(properties) { - return new Changelog(properties); + GetDeploymentRequest.create = function create(properties) { + return new GetDeploymentRequest(properties); }; /** - * Encodes the specified Changelog message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Changelog.verify|verify} messages. + * Encodes the specified GetDeploymentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog + * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IChangelog} message Changelog message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest} message GetDeploymentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Changelog.encode = function encode(message, writer) { + GetDeploymentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.userEmail != null && Object.hasOwnProperty.call(message, "userEmail")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.userEmail); - if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.resource); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.displayName); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.type); - if (message.action != null && Object.hasOwnProperty.call(message, "action")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.action); return writer; }; /** - * Encodes the specified Changelog message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Changelog.verify|verify} messages. + * Encodes the specified GetDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog + * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IChangelog} message Changelog message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest} message GetDeploymentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Changelog.encodeDelimited = function encodeDelimited(message, writer) { + GetDeploymentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Changelog message from the specified reader or buffer. + * Decodes a GetDeploymentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog + * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Changelog} Changelog + * @returns {google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest} GetDeploymentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Changelog.decode = function decode(reader, length) { + GetDeploymentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Changelog(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; - case 2: - message.userEmail = reader.string(); - break; - case 7: - message.displayName = reader.string(); - break; - case 11: - message.action = reader.string(); - break; - case 8: - message.type = reader.string(); - break; - case 3: - message.resource = reader.string(); - break; - case 4: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -86299,267 +85529,316 @@ }; /** - * Decodes a Changelog message from the specified reader or buffer, length delimited. + * Decodes a GetDeploymentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog + * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Changelog} Changelog + * @returns {google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest} GetDeploymentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Changelog.decodeDelimited = function decodeDelimited(reader) { + GetDeploymentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Changelog message. + * Verifies a GetDeploymentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog + * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Changelog.verify = function verify(message) { + GetDeploymentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.userEmail != null && message.hasOwnProperty("userEmail")) - if (!$util.isString(message.userEmail)) - return "userEmail: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.action != null && message.hasOwnProperty("action")) - if (!$util.isString(message.action)) - return "action: string expected"; - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.resource != null && message.hasOwnProperty("resource")) - if (!$util.isString(message.resource)) - return "resource: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } return null; }; /** - * Creates a Changelog message from a plain object. Also converts values to their respective internal types. + * Creates a GetDeploymentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog + * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Changelog} Changelog + * @returns {google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest} GetDeploymentRequest */ - Changelog.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Changelog) + GetDeploymentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Changelog(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest(); if (object.name != null) message.name = String(object.name); - if (object.userEmail != null) - message.userEmail = String(object.userEmail); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.action != null) - message.action = String(object.action); - if (object.type != null) - message.type = String(object.type); - if (object.resource != null) - message.resource = String(object.resource); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Changelog.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } return message; }; /** - * Creates a plain object from a Changelog message. Also converts values to other types if specified. + * Creates a plain object from a GetDeploymentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog + * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Changelog} message Changelog + * @param {google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest} message GetDeploymentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Changelog.toObject = function toObject(message, options) { + GetDeploymentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { + if (options.defaults) object.name = ""; - object.userEmail = ""; - object.resource = ""; - object.createTime = null; - object.displayName = ""; - object.type = ""; - object.action = ""; - } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.userEmail != null && message.hasOwnProperty("userEmail")) - object.userEmail = message.userEmail; - if (message.resource != null && message.hasOwnProperty("resource")) - object.resource = message.resource; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - if (message.action != null && message.hasOwnProperty("action")) - object.action = message.action; return object; }; /** - * Converts this Changelog to JSON. + * Converts this GetDeploymentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog + * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest * @instance * @returns {Object.} JSON object */ - Changelog.prototype.toJSON = function toJSON() { + GetDeploymentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Changelog; + return GetDeploymentRequest; })(); - v3beta1.Deployments = (function() { + v3beta1.EntityTypes = (function() { /** - * Constructs a new Deployments service. + * Constructs a new EntityTypes service. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a Deployments + * @classdesc Represents an EntityTypes * @extends $protobuf.rpc.Service * @constructor * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - function Deployments(rpcImpl, requestDelimited, responseDelimited) { + function EntityTypes(rpcImpl, requestDelimited, responseDelimited) { $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - (Deployments.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Deployments; + (EntityTypes.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = EntityTypes; /** - * Creates new Deployments service using the specified rpc implementation. + * Creates new EntityTypes service using the specified rpc implementation. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployments + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes * @static * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {Deployments} RPC service. Useful where requests and/or responses are streamed. + * @returns {EntityTypes} RPC service. Useful where requests and/or responses are streamed. */ - Deployments.create = function create(rpcImpl, requestDelimited, responseDelimited) { + EntityTypes.create = function create(rpcImpl, requestDelimited, responseDelimited) { return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Deployments#listDeployments}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployments - * @typedef ListDeploymentsCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#listEntityTypes}. + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @typedef ListEntityTypesCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse} [response] ListDeploymentsResponse + * @param {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse} [response] ListEntityTypesResponse */ /** - * Calls ListDeployments. - * @function listDeployments - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployments + * Calls ListEntityTypes. + * @function listEntityTypes + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest} request ListDeploymentsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Deployments.ListDeploymentsCallback} callback Node-style callback called with the error, if any, and ListDeploymentsResponse + * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest} request ListEntityTypesRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.EntityTypes.ListEntityTypesCallback} callback Node-style callback called with the error, if any, and ListEntityTypesResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(Deployments.prototype.listDeployments = function listDeployments(request, callback) { - return this.rpcCall(listDeployments, $root.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse, request, callback); - }, "name", { value: "ListDeployments" }); + Object.defineProperty(EntityTypes.prototype.listEntityTypes = function listEntityTypes(request, callback) { + return this.rpcCall(listEntityTypes, $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse, request, callback); + }, "name", { value: "ListEntityTypes" }); /** - * Calls ListDeployments. - * @function listDeployments - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployments + * Calls ListEntityTypes. + * @function listEntityTypes + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest} request ListDeploymentsRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest} request ListEntityTypesRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Deployments#getDeployment}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployments - * @typedef GetDeploymentCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#getEntityType}. + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @typedef GetEntityTypeCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Deployment} [response] Deployment + * @param {google.cloud.dialogflow.cx.v3beta1.EntityType} [response] EntityType */ /** - * Calls GetDeployment. - * @function getDeployment - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployments + * Calls GetEntityType. + * @function getEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest} request GetDeploymentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Deployments.GetDeploymentCallback} callback Node-style callback called with the error, if any, and Deployment + * @param {google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest} request GetEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.EntityTypes.GetEntityTypeCallback} callback Node-style callback called with the error, if any, and EntityType * @returns {undefined} * @variation 1 */ - Object.defineProperty(Deployments.prototype.getDeployment = function getDeployment(request, callback) { - return this.rpcCall(getDeployment, $root.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Deployment, request, callback); - }, "name", { value: "GetDeployment" }); + Object.defineProperty(EntityTypes.prototype.getEntityType = function getEntityType(request, callback) { + return this.rpcCall(getEntityType, $root.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3beta1.EntityType, request, callback); + }, "name", { value: "GetEntityType" }); /** - * Calls GetDeployment. - * @function getDeployment - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployments + * Calls GetEntityType. + * @function getEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest} request GetDeploymentRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest} request GetEntityTypeRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ - return Deployments; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#createEntityType}. + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @typedef CreateEntityTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.EntityType} [response] EntityType + */ + + /** + * Calls CreateEntityType. + * @function createEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest} request CreateEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.EntityTypes.CreateEntityTypeCallback} callback Node-style callback called with the error, if any, and EntityType + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(EntityTypes.prototype.createEntityType = function createEntityType(request, callback) { + return this.rpcCall(createEntityType, $root.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3beta1.EntityType, request, callback); + }, "name", { value: "CreateEntityType" }); + + /** + * Calls CreateEntityType. + * @function createEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest} request CreateEntityTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#updateEntityType}. + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @typedef UpdateEntityTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.EntityType} [response] EntityType + */ + + /** + * Calls UpdateEntityType. + * @function updateEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest} request UpdateEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.EntityTypes.UpdateEntityTypeCallback} callback Node-style callback called with the error, if any, and EntityType + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(EntityTypes.prototype.updateEntityType = function updateEntityType(request, callback) { + return this.rpcCall(updateEntityType, $root.google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3beta1.EntityType, request, callback); + }, "name", { value: "UpdateEntityType" }); + + /** + * Calls UpdateEntityType. + * @function updateEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest} request UpdateEntityTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#deleteEntityType}. + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @typedef DeleteEntityTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteEntityType. + * @function deleteEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest} request DeleteEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.EntityTypes.DeleteEntityTypeCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(EntityTypes.prototype.deleteEntityType = function deleteEntityType(request, callback) { + return this.rpcCall(deleteEntityType, $root.google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteEntityType" }); + + /** + * Calls DeleteEntityType. + * @function deleteEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest} request DeleteEntityTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return EntityTypes; })(); - v3beta1.Deployment = (function() { + v3beta1.EntityType = (function() { /** - * Properties of a Deployment. + * Properties of an EntityType. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDeployment - * @property {string|null} [name] Deployment name - * @property {string|null} [flowVersion] Deployment flowVersion - * @property {google.cloud.dialogflow.cx.v3beta1.Deployment.State|null} [state] Deployment state - * @property {google.cloud.dialogflow.cx.v3beta1.Deployment.IResult|null} [result] Deployment result - * @property {google.protobuf.ITimestamp|null} [startTime] Deployment startTime - * @property {google.protobuf.ITimestamp|null} [endTime] Deployment endTime + * @interface IEntityType + * @property {string|null} [name] EntityType name + * @property {string|null} [displayName] EntityType displayName + * @property {google.cloud.dialogflow.cx.v3beta1.EntityType.Kind|null} [kind] EntityType kind + * @property {google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode|null} [autoExpansionMode] EntityType autoExpansionMode + * @property {Array.|null} [entities] EntityType entities + * @property {Array.|null} [excludedPhrases] EntityType excludedPhrases + * @property {boolean|null} [enableFuzzyExtraction] EntityType enableFuzzyExtraction + * @property {boolean|null} [redact] EntityType redact */ /** - * Constructs a new Deployment. + * Constructs a new EntityType. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a Deployment. - * @implements IDeployment + * @classdesc Represents an EntityType. + * @implements IEntityType * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployment=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IEntityType=} [properties] Properties to set */ - function Deployment(properties) { + function EntityType(properties) { + this.entities = []; + this.excludedPhrases = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -86567,120 +85846,142 @@ } /** - * Deployment name. + * EntityType name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @instance */ - Deployment.prototype.name = ""; + EntityType.prototype.name = ""; /** - * Deployment flowVersion. - * @member {string} flowVersion - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * EntityType displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @instance */ - Deployment.prototype.flowVersion = ""; + EntityType.prototype.displayName = ""; /** - * Deployment state. - * @member {google.cloud.dialogflow.cx.v3beta1.Deployment.State} state - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * EntityType kind. + * @member {google.cloud.dialogflow.cx.v3beta1.EntityType.Kind} kind + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @instance */ - Deployment.prototype.state = 0; + EntityType.prototype.kind = 0; /** - * Deployment result. - * @member {google.cloud.dialogflow.cx.v3beta1.Deployment.IResult|null|undefined} result - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * EntityType autoExpansionMode. + * @member {google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode} autoExpansionMode + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @instance */ - Deployment.prototype.result = null; + EntityType.prototype.autoExpansionMode = 0; /** - * Deployment startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * EntityType entities. + * @member {Array.} entities + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @instance */ - Deployment.prototype.startTime = null; + EntityType.prototype.entities = $util.emptyArray; /** - * Deployment endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * EntityType excludedPhrases. + * @member {Array.} excludedPhrases + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @instance */ - Deployment.prototype.endTime = null; + EntityType.prototype.excludedPhrases = $util.emptyArray; /** - * Creates a new Deployment instance using the specified properties. + * EntityType enableFuzzyExtraction. + * @member {boolean} enableFuzzyExtraction + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @instance + */ + EntityType.prototype.enableFuzzyExtraction = false; + + /** + * EntityType redact. + * @member {boolean} redact + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @instance + */ + EntityType.prototype.redact = false; + + /** + * Creates a new EntityType instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployment=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Deployment} Deployment instance + * @param {google.cloud.dialogflow.cx.v3beta1.IEntityType=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType} EntityType instance */ - Deployment.create = function create(properties) { - return new Deployment(properties); + EntityType.create = function create(properties) { + return new EntityType(properties); }; /** - * Encodes the specified Deployment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Deployment.verify|verify} messages. + * Encodes the specified EntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployment} message Deployment message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IEntityType} message EntityType message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Deployment.encode = function encode(message, writer) { + EntityType.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.flowVersion != null && Object.hasOwnProperty.call(message, "flowVersion")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.flowVersion); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.encode(message.result, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.kind); + if (message.autoExpansionMode != null && Object.hasOwnProperty.call(message, "autoExpansionMode")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.autoExpansionMode); + if (message.entities != null && message.entities.length) + for (var i = 0; i < message.entities.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.encode(message.entities[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.excludedPhrases != null && message.excludedPhrases.length) + for (var i = 0; i < message.excludedPhrases.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.encode(message.excludedPhrases[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.enableFuzzyExtraction != null && Object.hasOwnProperty.call(message, "enableFuzzyExtraction")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.enableFuzzyExtraction); + if (message.redact != null && Object.hasOwnProperty.call(message, "redact")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.redact); return writer; }; /** - * Encodes the specified Deployment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Deployment.verify|verify} messages. + * Encodes the specified EntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployment} message Deployment message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IEntityType} message EntityType message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Deployment.encodeDelimited = function encodeDelimited(message, writer) { + EntityType.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Deployment message from the specified reader or buffer. + * Decodes an EntityType message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Deployment} Deployment + * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType} EntityType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Deployment.decode = function decode(reader, length) { + EntityType.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Deployment(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.EntityType(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -86688,19 +85989,29 @@ message.name = reader.string(); break; case 2: - message.flowVersion = reader.string(); + message.displayName = reader.string(); break; case 3: - message.state = reader.int32(); + message.kind = reader.int32(); break; case 4: - message.result = $root.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.decode(reader, reader.uint32()); + message.autoExpansionMode = reader.int32(); break; case 5: - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + if (!(message.entities && message.entities.length)) + message.entities = []; + message.entities.push($root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.decode(reader, reader.uint32())); break; case 6: - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + if (!(message.excludedPhrases && message.excludedPhrases.length)) + message.excludedPhrases = []; + message.excludedPhrases.push($root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.decode(reader, reader.uint32())); + break; + case 7: + message.enableFuzzyExtraction = reader.bool(); + break; + case 9: + message.redact = reader.bool(); break; default: reader.skipType(tag & 7); @@ -86711,203 +86022,267 @@ }; /** - * Decodes a Deployment message from the specified reader or buffer, length delimited. + * Decodes an EntityType message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Deployment} Deployment + * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType} EntityType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Deployment.decodeDelimited = function decodeDelimited(reader) { + EntityType.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Deployment message. + * Verifies an EntityType message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Deployment.verify = function verify(message) { + EntityType.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.flowVersion != null && message.hasOwnProperty("flowVersion")) - if (!$util.isString(message.flowVersion)) - return "flowVersion: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.kind != null && message.hasOwnProperty("kind")) + switch (message.kind) { default: - return "state: enum value expected"; + return "kind: enum value expected"; case 0: case 1: case 2: case 3: break; } - if (message.result != null && message.hasOwnProperty("result")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.verify(message.result); - if (error) - return "result." + error; - } - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; + if (message.autoExpansionMode != null && message.hasOwnProperty("autoExpansionMode")) + switch (message.autoExpansionMode) { + default: + return "autoExpansionMode: enum value expected"; + case 0: + case 1: + break; + } + if (message.entities != null && message.hasOwnProperty("entities")) { + if (!Array.isArray(message.entities)) + return "entities: array expected"; + for (var i = 0; i < message.entities.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.verify(message.entities[i]); + if (error) + return "entities." + error; + } } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; + if (message.excludedPhrases != null && message.hasOwnProperty("excludedPhrases")) { + if (!Array.isArray(message.excludedPhrases)) + return "excludedPhrases: array expected"; + for (var i = 0; i < message.excludedPhrases.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.verify(message.excludedPhrases[i]); + if (error) + return "excludedPhrases." + error; + } } + if (message.enableFuzzyExtraction != null && message.hasOwnProperty("enableFuzzyExtraction")) + if (typeof message.enableFuzzyExtraction !== "boolean") + return "enableFuzzyExtraction: boolean expected"; + if (message.redact != null && message.hasOwnProperty("redact")) + if (typeof message.redact !== "boolean") + return "redact: boolean expected"; return null; }; /** - * Creates a Deployment message from a plain object. Also converts values to their respective internal types. + * Creates an EntityType message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Deployment} Deployment + * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType} EntityType */ - Deployment.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Deployment) + EntityType.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.EntityType) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Deployment(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.EntityType(); if (object.name != null) message.name = String(object.name); - if (object.flowVersion != null) - message.flowVersion = String(object.flowVersion); - switch (object.state) { - case "STATE_UNSPECIFIED": + if (object.displayName != null) + message.displayName = String(object.displayName); + switch (object.kind) { + case "KIND_UNSPECIFIED": case 0: - message.state = 0; + message.kind = 0; break; - case "RUNNING": + case "KIND_MAP": case 1: - message.state = 1; + message.kind = 1; break; - case "SUCCEEDED": + case "KIND_LIST": case 2: - message.state = 2; + message.kind = 2; break; - case "FAILED": + case "KIND_REGEXP": case 3: - message.state = 3; + message.kind = 3; break; } - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Deployment.result: object expected"); - message.result = $root.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.fromObject(object.result); + switch (object.autoExpansionMode) { + case "AUTO_EXPANSION_MODE_UNSPECIFIED": + case 0: + message.autoExpansionMode = 0; + break; + case "AUTO_EXPANSION_MODE_DEFAULT": + case 1: + message.autoExpansionMode = 1; + break; } - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Deployment.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + if (object.entities) { + if (!Array.isArray(object.entities)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.EntityType.entities: array expected"); + message.entities = []; + for (var i = 0; i < object.entities.length; ++i) { + if (typeof object.entities[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.EntityType.entities: object expected"); + message.entities[i] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.fromObject(object.entities[i]); + } } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Deployment.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + if (object.excludedPhrases) { + if (!Array.isArray(object.excludedPhrases)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.EntityType.excludedPhrases: array expected"); + message.excludedPhrases = []; + for (var i = 0; i < object.excludedPhrases.length; ++i) { + if (typeof object.excludedPhrases[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.EntityType.excludedPhrases: object expected"); + message.excludedPhrases[i] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.fromObject(object.excludedPhrases[i]); + } } + if (object.enableFuzzyExtraction != null) + message.enableFuzzyExtraction = Boolean(object.enableFuzzyExtraction); + if (object.redact != null) + message.redact = Boolean(object.redact); return message; }; /** - * Creates a plain object from a Deployment message. Also converts values to other types if specified. + * Creates a plain object from an EntityType message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Deployment} message Deployment + * @param {google.cloud.dialogflow.cx.v3beta1.EntityType} message EntityType * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Deployment.toObject = function toObject(message, options) { + EntityType.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.entities = []; + object.excludedPhrases = []; + } if (options.defaults) { object.name = ""; - object.flowVersion = ""; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.result = null; - object.startTime = null; - object.endTime = null; + object.displayName = ""; + object.kind = options.enums === String ? "KIND_UNSPECIFIED" : 0; + object.autoExpansionMode = options.enums === String ? "AUTO_EXPANSION_MODE_UNSPECIFIED" : 0; + object.enableFuzzyExtraction = false; + object.redact = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.flowVersion != null && message.hasOwnProperty("flowVersion")) - object.flowVersion = message.flowVersion; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.Deployment.State[message.state] : message.state; - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.toObject(message.result, options); - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.kind != null && message.hasOwnProperty("kind")) + object.kind = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Kind[message.kind] : message.kind; + if (message.autoExpansionMode != null && message.hasOwnProperty("autoExpansionMode")) + object.autoExpansionMode = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode[message.autoExpansionMode] : message.autoExpansionMode; + if (message.entities && message.entities.length) { + object.entities = []; + for (var j = 0; j < message.entities.length; ++j) + object.entities[j] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.toObject(message.entities[j], options); + } + if (message.excludedPhrases && message.excludedPhrases.length) { + object.excludedPhrases = []; + for (var j = 0; j < message.excludedPhrases.length; ++j) + object.excludedPhrases[j] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.toObject(message.excludedPhrases[j], options); + } + if (message.enableFuzzyExtraction != null && message.hasOwnProperty("enableFuzzyExtraction")) + object.enableFuzzyExtraction = message.enableFuzzyExtraction; + if (message.redact != null && message.hasOwnProperty("redact")) + object.redact = message.redact; return object; }; /** - * Converts this Deployment to JSON. + * Converts this EntityType to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @instance * @returns {Object.} JSON object */ - Deployment.prototype.toJSON = function toJSON() { + EntityType.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * State enum. - * @name google.cloud.dialogflow.cx.v3beta1.Deployment.State + * Kind enum. + * @name google.cloud.dialogflow.cx.v3beta1.EntityType.Kind * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} RUNNING=1 RUNNING value - * @property {number} SUCCEEDED=2 SUCCEEDED value - * @property {number} FAILED=3 FAILED value + * @property {number} KIND_UNSPECIFIED=0 KIND_UNSPECIFIED value + * @property {number} KIND_MAP=1 KIND_MAP value + * @property {number} KIND_LIST=2 KIND_LIST value + * @property {number} KIND_REGEXP=3 KIND_REGEXP value */ - Deployment.State = (function() { + EntityType.Kind = (function() { var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "RUNNING"] = 1; - values[valuesById[2] = "SUCCEEDED"] = 2; - values[valuesById[3] = "FAILED"] = 3; + values[valuesById[0] = "KIND_UNSPECIFIED"] = 0; + values[valuesById[1] = "KIND_MAP"] = 1; + values[valuesById[2] = "KIND_LIST"] = 2; + values[valuesById[3] = "KIND_REGEXP"] = 3; return values; })(); - Deployment.Result = (function() { + /** + * AutoExpansionMode enum. + * @name google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode + * @enum {number} + * @property {number} AUTO_EXPANSION_MODE_UNSPECIFIED=0 AUTO_EXPANSION_MODE_UNSPECIFIED value + * @property {number} AUTO_EXPANSION_MODE_DEFAULT=1 AUTO_EXPANSION_MODE_DEFAULT value + */ + EntityType.AutoExpansionMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "AUTO_EXPANSION_MODE_UNSPECIFIED"] = 0; + values[valuesById[1] = "AUTO_EXPANSION_MODE_DEFAULT"] = 1; + return values; + })(); + + EntityType.Entity = (function() { /** - * Properties of a Result. - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment - * @interface IResult - * @property {Array.|null} [deploymentTestResults] Result deploymentTestResults - * @property {string|null} [experiment] Result experiment + * Properties of an Entity. + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @interface IEntity + * @property {string|null} [value] Entity value + * @property {Array.|null} [synonyms] Entity synonyms */ /** - * Constructs a new Result. - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment - * @classdesc Represents a Result. - * @implements IResult + * Constructs a new Entity. + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @classdesc Represents an Entity. + * @implements IEntity * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Deployment.IResult=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity=} [properties] Properties to set */ - function Result(properties) { - this.deploymentTestResults = []; + function Entity(properties) { + this.synonyms = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -86915,91 +86290,91 @@ } /** - * Result deploymentTestResults. - * @member {Array.} deploymentTestResults - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result + * Entity value. + * @member {string} value + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity * @instance */ - Result.prototype.deploymentTestResults = $util.emptyArray; + Entity.prototype.value = ""; /** - * Result experiment. - * @member {string} experiment - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result + * Entity synonyms. + * @member {Array.} synonyms + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity * @instance */ - Result.prototype.experiment = ""; + Entity.prototype.synonyms = $util.emptyArray; /** - * Creates a new Result instance using the specified properties. + * Creates a new Entity instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Deployment.IResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Deployment.Result} Result instance + * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.Entity} Entity instance */ - Result.create = function create(properties) { - return new Result(properties); + Entity.create = function create(properties) { + return new Entity(properties); }; /** - * Encodes the specified Result message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Deployment.Result.verify|verify} messages. + * Encodes the specified Entity message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Deployment.IResult} message Result message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity} message Entity message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Result.encode = function encode(message, writer) { + Entity.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deploymentTestResults != null && message.deploymentTestResults.length) - for (var i = 0; i < message.deploymentTestResults.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.deploymentTestResults[i]); - if (message.experiment != null && Object.hasOwnProperty.call(message, "experiment")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.experiment); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); + if (message.synonyms != null && message.synonyms.length) + for (var i = 0; i < message.synonyms.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.synonyms[i]); return writer; }; /** - * Encodes the specified Result message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Deployment.Result.verify|verify} messages. + * Encodes the specified Entity message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Deployment.IResult} message Result message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity} message Entity message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Result.encodeDelimited = function encodeDelimited(message, writer) { + Entity.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Result message from the specified reader or buffer. + * Decodes an Entity message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Deployment.Result} Result + * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.Entity} Entity * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Result.decode = function decode(reader, length) { + Entity.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Deployment.Result(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.deploymentTestResults && message.deploymentTestResults.length)) - message.deploymentTestResults = []; - message.deploymentTestResults.push(reader.string()); + message.value = reader.string(); break; case 2: - message.experiment = reader.string(); + if (!(message.synonyms && message.synonyms.length)) + message.synonyms = []; + message.synonyms.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -87010,133 +86385,321 @@ }; /** - * Decodes a Result message from the specified reader or buffer, length delimited. + * Decodes an Entity message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Deployment.Result} Result + * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.Entity} Entity * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Result.decodeDelimited = function decodeDelimited(reader) { + Entity.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Result message. + * Verifies an Entity message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Result.verify = function verify(message) { + Entity.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.deploymentTestResults != null && message.hasOwnProperty("deploymentTestResults")) { - if (!Array.isArray(message.deploymentTestResults)) - return "deploymentTestResults: array expected"; - for (var i = 0; i < message.deploymentTestResults.length; ++i) - if (!$util.isString(message.deploymentTestResults[i])) - return "deploymentTestResults: string[] expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + if (message.synonyms != null && message.hasOwnProperty("synonyms")) { + if (!Array.isArray(message.synonyms)) + return "synonyms: array expected"; + for (var i = 0; i < message.synonyms.length; ++i) + if (!$util.isString(message.synonyms[i])) + return "synonyms: string[] expected"; } - if (message.experiment != null && message.hasOwnProperty("experiment")) - if (!$util.isString(message.experiment)) - return "experiment: string expected"; return null; }; /** - * Creates a Result message from a plain object. Also converts values to their respective internal types. + * Creates an Entity message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Deployment.Result} Result + * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.Entity} Entity */ - Result.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Deployment.Result) + Entity.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Deployment.Result(); - if (object.deploymentTestResults) { - if (!Array.isArray(object.deploymentTestResults)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Deployment.Result.deploymentTestResults: array expected"); - message.deploymentTestResults = []; - for (var i = 0; i < object.deploymentTestResults.length; ++i) - message.deploymentTestResults[i] = String(object.deploymentTestResults[i]); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity(); + if (object.value != null) + message.value = String(object.value); + if (object.synonyms) { + if (!Array.isArray(object.synonyms)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.synonyms: array expected"); + message.synonyms = []; + for (var i = 0; i < object.synonyms.length; ++i) + message.synonyms[i] = String(object.synonyms[i]); } - if (object.experiment != null) - message.experiment = String(object.experiment); return message; }; /** - * Creates a plain object from a Result message. Also converts values to other types if specified. + * Creates a plain object from an Entity message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Deployment.Result} message Result + * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.Entity} message Entity * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Result.toObject = function toObject(message, options) { + Entity.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.deploymentTestResults = []; + object.synonyms = []; if (options.defaults) - object.experiment = ""; - if (message.deploymentTestResults && message.deploymentTestResults.length) { - object.deploymentTestResults = []; - for (var j = 0; j < message.deploymentTestResults.length; ++j) - object.deploymentTestResults[j] = message.deploymentTestResults[j]; + object.value = ""; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + if (message.synonyms && message.synonyms.length) { + object.synonyms = []; + for (var j = 0; j < message.synonyms.length; ++j) + object.synonyms[j] = message.synonyms[j]; } - if (message.experiment != null && message.hasOwnProperty("experiment")) - object.experiment = message.experiment; return object; }; /** - * Converts this Result to JSON. + * Converts this Entity to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity * @instance * @returns {Object.} JSON object */ - Result.prototype.toJSON = function toJSON() { + Entity.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Result; + return Entity; })(); - return Deployment; + EntityType.ExcludedPhrase = (function() { + + /** + * Properties of an ExcludedPhrase. + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @interface IExcludedPhrase + * @property {string|null} [value] ExcludedPhrase value + */ + + /** + * Constructs a new ExcludedPhrase. + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @classdesc Represents an ExcludedPhrase. + * @implements IExcludedPhrase + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase=} [properties] Properties to set + */ + function ExcludedPhrase(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExcludedPhrase value. + * @member {string} value + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @instance + */ + ExcludedPhrase.prototype.value = ""; + + /** + * Creates a new ExcludedPhrase instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase} ExcludedPhrase instance + */ + ExcludedPhrase.create = function create(properties) { + return new ExcludedPhrase(properties); + }; + + /** + * Encodes the specified ExcludedPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase} message ExcludedPhrase message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExcludedPhrase.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); + return writer; + }; + + /** + * Encodes the specified ExcludedPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase} message ExcludedPhrase message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExcludedPhrase.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExcludedPhrase message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase} ExcludedPhrase + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExcludedPhrase.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExcludedPhrase message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase} ExcludedPhrase + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExcludedPhrase.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExcludedPhrase message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExcludedPhrase.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + return null; + }; + + /** + * Creates an ExcludedPhrase message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase} ExcludedPhrase + */ + ExcludedPhrase.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase(); + if (object.value != null) + message.value = String(object.value); + return message; + }; + + /** + * Creates a plain object from an ExcludedPhrase message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase} message ExcludedPhrase + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExcludedPhrase.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.value = ""; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + return object; + }; + + /** + * Converts this ExcludedPhrase to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @instance + * @returns {Object.} JSON object + */ + ExcludedPhrase.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ExcludedPhrase; + })(); + + return EntityType; })(); - v3beta1.ListDeploymentsRequest = (function() { + v3beta1.ListEntityTypesRequest = (function() { /** - * Properties of a ListDeploymentsRequest. + * Properties of a ListEntityTypesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListDeploymentsRequest - * @property {string|null} [parent] ListDeploymentsRequest parent - * @property {number|null} [pageSize] ListDeploymentsRequest pageSize - * @property {string|null} [pageToken] ListDeploymentsRequest pageToken + * @interface IListEntityTypesRequest + * @property {string|null} [parent] ListEntityTypesRequest parent + * @property {string|null} [languageCode] ListEntityTypesRequest languageCode + * @property {number|null} [pageSize] ListEntityTypesRequest pageSize + * @property {string|null} [pageToken] ListEntityTypesRequest pageToken */ /** - * Constructs a new ListDeploymentsRequest. + * Constructs a new ListEntityTypesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListDeploymentsRequest. - * @implements IListDeploymentsRequest + * @classdesc Represents a ListEntityTypesRequest. + * @implements IListEntityTypesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest=} [properties] Properties to set */ - function ListDeploymentsRequest(properties) { + function ListEntityTypesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -87144,90 +86707,100 @@ } /** - * ListDeploymentsRequest parent. + * ListEntityTypesRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest * @instance */ - ListDeploymentsRequest.prototype.parent = ""; + ListEntityTypesRequest.prototype.parent = ""; /** - * ListDeploymentsRequest pageSize. + * ListEntityTypesRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest + * @instance + */ + ListEntityTypesRequest.prototype.languageCode = ""; + + /** + * ListEntityTypesRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest * @instance */ - ListDeploymentsRequest.prototype.pageSize = 0; + ListEntityTypesRequest.prototype.pageSize = 0; /** - * ListDeploymentsRequest pageToken. + * ListEntityTypesRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest * @instance */ - ListDeploymentsRequest.prototype.pageToken = ""; + ListEntityTypesRequest.prototype.pageToken = ""; /** - * Creates a new ListDeploymentsRequest instance using the specified properties. + * Creates a new ListEntityTypesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest} ListDeploymentsRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest} ListEntityTypesRequest instance */ - ListDeploymentsRequest.create = function create(properties) { - return new ListDeploymentsRequest(properties); + ListEntityTypesRequest.create = function create(properties) { + return new ListEntityTypesRequest(properties); }; /** - * Encodes the specified ListDeploymentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest.verify|verify} messages. + * Encodes the specified ListEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest} message ListDeploymentsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest} message ListEntityTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDeploymentsRequest.encode = function encode(message, writer) { + ListEntityTypesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); return writer; }; /** - * Encodes the specified ListDeploymentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest.verify|verify} messages. + * Encodes the specified ListEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest} message ListDeploymentsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest} message ListEntityTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDeploymentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListEntityTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDeploymentsRequest message from the specified reader or buffer. + * Decodes a ListEntityTypesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest} ListDeploymentsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest} ListEntityTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDeploymentsRequest.decode = function decode(reader, length) { + ListEntityTypesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -87235,9 +86808,12 @@ message.parent = reader.string(); break; case 2: - message.pageSize = reader.int32(); + message.languageCode = reader.string(); break; case 3: + message.pageSize = reader.int32(); + break; + case 4: message.pageToken = reader.string(); break; default: @@ -87249,35 +86825,38 @@ }; /** - * Decodes a ListDeploymentsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListEntityTypesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest} ListDeploymentsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest} ListEntityTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDeploymentsRequest.decodeDelimited = function decodeDelimited(reader) { + ListEntityTypesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListDeploymentsRequest message. + * Verifies a ListEntityTypesRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListDeploymentsRequest.verify = function verify(message) { + ListEntityTypesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; if (message.pageSize != null && message.hasOwnProperty("pageSize")) if (!$util.isInteger(message.pageSize)) return "pageSize: integer expected"; @@ -87288,19 +86867,21 @@ }; /** - * Creates a ListDeploymentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListEntityTypesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest} ListDeploymentsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest} ListEntityTypesRequest */ - ListDeploymentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest) + ListEntityTypesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest(); if (object.parent != null) message.parent = String(object.parent); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); if (object.pageSize != null) message.pageSize = object.pageSize | 0; if (object.pageToken != null) @@ -87309,25 +86890,28 @@ }; /** - * Creates a plain object from a ListDeploymentsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListEntityTypesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest} message ListDeploymentsRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest} message ListEntityTypesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDeploymentsRequest.toObject = function toObject(message, options) { + ListEntityTypesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; + object.languageCode = ""; object.pageSize = 0; object.pageToken = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; if (message.pageSize != null && message.hasOwnProperty("pageSize")) object.pageSize = message.pageSize; if (message.pageToken != null && message.hasOwnProperty("pageToken")) @@ -87336,39 +86920,39 @@ }; /** - * Converts this ListDeploymentsRequest to JSON. + * Converts this ListEntityTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest * @instance * @returns {Object.} JSON object */ - ListDeploymentsRequest.prototype.toJSON = function toJSON() { + ListEntityTypesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListDeploymentsRequest; + return ListEntityTypesRequest; })(); - v3beta1.ListDeploymentsResponse = (function() { + v3beta1.ListEntityTypesResponse = (function() { /** - * Properties of a ListDeploymentsResponse. + * Properties of a ListEntityTypesResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListDeploymentsResponse - * @property {Array.|null} [deployments] ListDeploymentsResponse deployments - * @property {string|null} [nextPageToken] ListDeploymentsResponse nextPageToken + * @interface IListEntityTypesResponse + * @property {Array.|null} [entityTypes] ListEntityTypesResponse entityTypes + * @property {string|null} [nextPageToken] ListEntityTypesResponse nextPageToken */ /** - * Constructs a new ListDeploymentsResponse. + * Constructs a new ListEntityTypesResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListDeploymentsResponse. - * @implements IListDeploymentsResponse + * @classdesc Represents a ListEntityTypesResponse. + * @implements IListEntityTypesResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse=} [properties] Properties to set */ - function ListDeploymentsResponse(properties) { - this.deployments = []; + function ListEntityTypesResponse(properties) { + this.entityTypes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -87376,88 +86960,88 @@ } /** - * ListDeploymentsResponse deployments. - * @member {Array.} deployments - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse + * ListEntityTypesResponse entityTypes. + * @member {Array.} entityTypes + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse * @instance */ - ListDeploymentsResponse.prototype.deployments = $util.emptyArray; + ListEntityTypesResponse.prototype.entityTypes = $util.emptyArray; /** - * ListDeploymentsResponse nextPageToken. + * ListEntityTypesResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse * @instance */ - ListDeploymentsResponse.prototype.nextPageToken = ""; + ListEntityTypesResponse.prototype.nextPageToken = ""; /** - * Creates a new ListDeploymentsResponse instance using the specified properties. + * Creates a new ListEntityTypesResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse} ListDeploymentsResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse} ListEntityTypesResponse instance */ - ListDeploymentsResponse.create = function create(properties) { - return new ListDeploymentsResponse(properties); + ListEntityTypesResponse.create = function create(properties) { + return new ListEntityTypesResponse(properties); }; /** - * Encodes the specified ListDeploymentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse.verify|verify} messages. + * Encodes the specified ListEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsResponse} message ListDeploymentsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse} message ListEntityTypesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDeploymentsResponse.encode = function encode(message, writer) { + ListEntityTypesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deployments != null && message.deployments.length) - for (var i = 0; i < message.deployments.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Deployment.encode(message.deployments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.entityTypes != null && message.entityTypes.length) + for (var i = 0; i < message.entityTypes.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.EntityType.encode(message.entityTypes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListDeploymentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse.verify|verify} messages. + * Encodes the specified ListEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsResponse} message ListDeploymentsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse} message ListEntityTypesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDeploymentsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListEntityTypesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDeploymentsResponse message from the specified reader or buffer. + * Decodes a ListEntityTypesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse} ListDeploymentsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse} ListEntityTypesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDeploymentsResponse.decode = function decode(reader, length) { + ListEntityTypesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.deployments && message.deployments.length)) - message.deployments = []; - message.deployments.push($root.google.cloud.dialogflow.cx.v3beta1.Deployment.decode(reader, reader.uint32())); + if (!(message.entityTypes && message.entityTypes.length)) + message.entityTypes = []; + message.entityTypes.push($root.google.cloud.dialogflow.cx.v3beta1.EntityType.decode(reader, reader.uint32())); break; case 2: message.nextPageToken = reader.string(); @@ -87471,39 +87055,39 @@ }; /** - * Decodes a ListDeploymentsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListEntityTypesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse} ListDeploymentsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse} ListEntityTypesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDeploymentsResponse.decodeDelimited = function decodeDelimited(reader) { + ListEntityTypesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListDeploymentsResponse message. + * Verifies a ListEntityTypesResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListDeploymentsResponse.verify = function verify(message) { + ListEntityTypesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.deployments != null && message.hasOwnProperty("deployments")) { - if (!Array.isArray(message.deployments)) - return "deployments: array expected"; - for (var i = 0; i < message.deployments.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Deployment.verify(message.deployments[i]); + if (message.entityTypes != null && message.hasOwnProperty("entityTypes")) { + if (!Array.isArray(message.entityTypes)) + return "entityTypes: array expected"; + for (var i = 0; i < message.entityTypes.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.verify(message.entityTypes[i]); if (error) - return "deployments." + error; + return "entityTypes." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -87513,25 +87097,25 @@ }; /** - * Creates a ListDeploymentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListEntityTypesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse} ListDeploymentsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse} ListEntityTypesResponse */ - ListDeploymentsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse) + ListEntityTypesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse(); - if (object.deployments) { - if (!Array.isArray(object.deployments)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse.deployments: array expected"); - message.deployments = []; - for (var i = 0; i < object.deployments.length; ++i) { - if (typeof object.deployments[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse.deployments: object expected"); - message.deployments[i] = $root.google.cloud.dialogflow.cx.v3beta1.Deployment.fromObject(object.deployments[i]); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse(); + if (object.entityTypes) { + if (!Array.isArray(object.entityTypes)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse.entityTypes: array expected"); + message.entityTypes = []; + for (var i = 0; i < object.entityTypes.length; ++i) { + if (typeof object.entityTypes[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse.entityTypes: object expected"); + message.entityTypes[i] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.fromObject(object.entityTypes[i]); } } if (object.nextPageToken != null) @@ -87540,26 +87124,26 @@ }; /** - * Creates a plain object from a ListDeploymentsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListEntityTypesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse} message ListDeploymentsResponse + * @param {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse} message ListEntityTypesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDeploymentsResponse.toObject = function toObject(message, options) { + ListEntityTypesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.deployments = []; + object.entityTypes = []; if (options.defaults) object.nextPageToken = ""; - if (message.deployments && message.deployments.length) { - object.deployments = []; - for (var j = 0; j < message.deployments.length; ++j) - object.deployments[j] = $root.google.cloud.dialogflow.cx.v3beta1.Deployment.toObject(message.deployments[j], options); + if (message.entityTypes && message.entityTypes.length) { + object.entityTypes = []; + for (var j = 0; j < message.entityTypes.length; ++j) + object.entityTypes[j] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.toObject(message.entityTypes[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -87567,37 +87151,249 @@ }; /** - * Converts this ListDeploymentsResponse to JSON. + * Converts this ListEntityTypesResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse * @instance * @returns {Object.} JSON object */ - ListDeploymentsResponse.prototype.toJSON = function toJSON() { + ListEntityTypesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListDeploymentsResponse; + return ListEntityTypesResponse; })(); - v3beta1.GetDeploymentRequest = (function() { + v3beta1.GetEntityTypeRequest = (function() { /** - * Properties of a GetDeploymentRequest. + * Properties of a GetEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetDeploymentRequest - * @property {string|null} [name] GetDeploymentRequest name + * @interface IGetEntityTypeRequest + * @property {string|null} [name] GetEntityTypeRequest name + * @property {string|null} [languageCode] GetEntityTypeRequest languageCode + */ + + /** + * Constructs a new GetEntityTypeRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a GetEntityTypeRequest. + * @implements IGetEntityTypeRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest=} [properties] Properties to set + */ + function GetEntityTypeRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetEntityTypeRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @instance + */ + GetEntityTypeRequest.prototype.name = ""; + + /** + * GetEntityTypeRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @instance + */ + GetEntityTypeRequest.prototype.languageCode = ""; + + /** + * Creates a new GetEntityTypeRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest} GetEntityTypeRequest instance + */ + GetEntityTypeRequest.create = function create(properties) { + return new GetEntityTypeRequest(properties); + }; + + /** + * Encodes the specified GetEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest} message GetEntityTypeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetEntityTypeRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + return writer; + }; + + /** + * Encodes the specified GetEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest} message GetEntityTypeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetEntityTypeRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest} GetEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetEntityTypeRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.languageCode = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetEntityTypeRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest} GetEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetEntityTypeRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetEntityTypeRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + return null; + }; + + /** + * Creates a GetEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest} GetEntityTypeRequest + */ + GetEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + return message; + }; + + /** + * Creates a plain object from a GetEntityTypeRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest} message GetEntityTypeRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetEntityTypeRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.languageCode = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + return object; + }; + + /** + * Converts this GetEntityTypeRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @instance + * @returns {Object.} JSON object + */ + GetEntityTypeRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetEntityTypeRequest; + })(); + + v3beta1.CreateEntityTypeRequest = (function() { + + /** + * Properties of a CreateEntityTypeRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface ICreateEntityTypeRequest + * @property {string|null} [parent] CreateEntityTypeRequest parent + * @property {google.cloud.dialogflow.cx.v3beta1.IEntityType|null} [entityType] CreateEntityTypeRequest entityType + * @property {string|null} [languageCode] CreateEntityTypeRequest languageCode */ /** - * Constructs a new GetDeploymentRequest. + * Constructs a new CreateEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetDeploymentRequest. - * @implements IGetDeploymentRequest + * @classdesc Represents a CreateEntityTypeRequest. + * @implements ICreateEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest=} [properties] Properties to set */ - function GetDeploymentRequest(properties) { + function CreateEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -87605,75 +87401,101 @@ } /** - * GetDeploymentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest + * CreateEntityTypeRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest * @instance */ - GetDeploymentRequest.prototype.name = ""; + CreateEntityTypeRequest.prototype.parent = ""; /** - * Creates a new GetDeploymentRequest instance using the specified properties. + * CreateEntityTypeRequest entityType. + * @member {google.cloud.dialogflow.cx.v3beta1.IEntityType|null|undefined} entityType + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @instance + */ + CreateEntityTypeRequest.prototype.entityType = null; + + /** + * CreateEntityTypeRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @instance + */ + CreateEntityTypeRequest.prototype.languageCode = ""; + + /** + * Creates a new CreateEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest} GetDeploymentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest} CreateEntityTypeRequest instance */ - GetDeploymentRequest.create = function create(properties) { - return new GetDeploymentRequest(properties); + CreateEntityTypeRequest.create = function create(properties) { + return new CreateEntityTypeRequest(properties); }; /** - * Encodes the specified GetDeploymentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest.verify|verify} messages. + * Encodes the specified CreateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest} message GetDeploymentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest} message CreateEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDeploymentRequest.encode = function encode(message, writer) { + CreateEntityTypeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) + $root.google.cloud.dialogflow.cx.v3beta1.EntityType.encode(message.entityType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); return writer; }; /** - * Encodes the specified GetDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest.verify|verify} messages. + * Encodes the specified CreateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest} message GetDeploymentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest} message CreateEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDeploymentRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetDeploymentRequest message from the specified reader or buffer. + * Decodes a CreateEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest} GetDeploymentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest} CreateEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDeploymentRequest.decode = function decode(reader, length) { + CreateEntityTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); + break; + case 2: + message.entityType = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.decode(reader, reader.uint32()); + break; + case 3: + message.languageCode = reader.string(); break; default: reader.skipType(tag & 7); @@ -87684,316 +87506,131 @@ }; /** - * Decodes a GetDeploymentRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest} GetDeploymentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest} CreateEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDeploymentRequest.decodeDelimited = function decodeDelimited(reader) { + CreateEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetDeploymentRequest message. + * Verifies a CreateEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetDeploymentRequest.verify = function verify(message) { + CreateEntityTypeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.entityType != null && message.hasOwnProperty("entityType")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.verify(message.entityType); + if (error) + return "entityType." + error; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates a GetDeploymentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest} GetDeploymentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest} CreateEntityTypeRequest */ - GetDeploymentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest) + CreateEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.entityType != null) { + if (typeof object.entityType !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest.entityType: object expected"); + message.entityType = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.fromObject(object.entityType); + } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a GetDeploymentRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest} message GetDeploymentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest} message CreateEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetDeploymentRequest.toObject = function toObject(message, options) { + CreateEntityTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.parent = ""; + object.entityType = null; + object.languageCode = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.entityType != null && message.hasOwnProperty("entityType")) + object.entityType = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.toObject(message.entityType, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this GetDeploymentRequest to JSON. + * Converts this CreateEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest * @instance * @returns {Object.} JSON object */ - GetDeploymentRequest.prototype.toJSON = function toJSON() { + CreateEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetDeploymentRequest; - })(); - - v3beta1.EntityTypes = (function() { - - /** - * Constructs a new EntityTypes service. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an EntityTypes - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function EntityTypes(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (EntityTypes.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = EntityTypes; - - /** - * Creates new EntityTypes service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {EntityTypes} RPC service. Useful where requests and/or responses are streamed. - */ - EntityTypes.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#listEntityTypes}. - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @typedef ListEntityTypesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse} [response] ListEntityTypesResponse - */ - - /** - * Calls ListEntityTypes. - * @function listEntityTypes - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest} request ListEntityTypesRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.EntityTypes.ListEntityTypesCallback} callback Node-style callback called with the error, if any, and ListEntityTypesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(EntityTypes.prototype.listEntityTypes = function listEntityTypes(request, callback) { - return this.rpcCall(listEntityTypes, $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse, request, callback); - }, "name", { value: "ListEntityTypes" }); - - /** - * Calls ListEntityTypes. - * @function listEntityTypes - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest} request ListEntityTypesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#getEntityType}. - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @typedef GetEntityTypeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType} [response] EntityType - */ - - /** - * Calls GetEntityType. - * @function getEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest} request GetEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.EntityTypes.GetEntityTypeCallback} callback Node-style callback called with the error, if any, and EntityType - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(EntityTypes.prototype.getEntityType = function getEntityType(request, callback) { - return this.rpcCall(getEntityType, $root.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3beta1.EntityType, request, callback); - }, "name", { value: "GetEntityType" }); - - /** - * Calls GetEntityType. - * @function getEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest} request GetEntityTypeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#createEntityType}. - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @typedef CreateEntityTypeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType} [response] EntityType - */ - - /** - * Calls CreateEntityType. - * @function createEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest} request CreateEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.EntityTypes.CreateEntityTypeCallback} callback Node-style callback called with the error, if any, and EntityType - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(EntityTypes.prototype.createEntityType = function createEntityType(request, callback) { - return this.rpcCall(createEntityType, $root.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3beta1.EntityType, request, callback); - }, "name", { value: "CreateEntityType" }); - - /** - * Calls CreateEntityType. - * @function createEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest} request CreateEntityTypeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#updateEntityType}. - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @typedef UpdateEntityTypeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType} [response] EntityType - */ - - /** - * Calls UpdateEntityType. - * @function updateEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest} request UpdateEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.EntityTypes.UpdateEntityTypeCallback} callback Node-style callback called with the error, if any, and EntityType - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(EntityTypes.prototype.updateEntityType = function updateEntityType(request, callback) { - return this.rpcCall(updateEntityType, $root.google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3beta1.EntityType, request, callback); - }, "name", { value: "UpdateEntityType" }); - - /** - * Calls UpdateEntityType. - * @function updateEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest} request UpdateEntityTypeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#deleteEntityType}. - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @typedef DeleteEntityTypeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ - - /** - * Calls DeleteEntityType. - * @function deleteEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest} request DeleteEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.EntityTypes.DeleteEntityTypeCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(EntityTypes.prototype.deleteEntityType = function deleteEntityType(request, callback) { - return this.rpcCall(deleteEntityType, $root.google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteEntityType" }); - - /** - * Calls DeleteEntityType. - * @function deleteEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest} request DeleteEntityTypeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return EntityTypes; + return CreateEntityTypeRequest; })(); - v3beta1.EntityType = (function() { + v3beta1.UpdateEntityTypeRequest = (function() { /** - * Properties of an EntityType. + * Properties of an UpdateEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IEntityType - * @property {string|null} [name] EntityType name - * @property {string|null} [displayName] EntityType displayName - * @property {google.cloud.dialogflow.cx.v3beta1.EntityType.Kind|null} [kind] EntityType kind - * @property {google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode|null} [autoExpansionMode] EntityType autoExpansionMode - * @property {Array.|null} [entities] EntityType entities - * @property {Array.|null} [excludedPhrases] EntityType excludedPhrases - * @property {boolean|null} [enableFuzzyExtraction] EntityType enableFuzzyExtraction - * @property {boolean|null} [redact] EntityType redact + * @interface IUpdateEntityTypeRequest + * @property {google.cloud.dialogflow.cx.v3beta1.IEntityType|null} [entityType] UpdateEntityTypeRequest entityType + * @property {string|null} [languageCode] UpdateEntityTypeRequest languageCode + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateEntityTypeRequest updateMask */ /** - * Constructs a new EntityType. + * Constructs a new UpdateEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an EntityType. - * @implements IEntityType + * @classdesc Represents an UpdateEntityTypeRequest. + * @implements IUpdateEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IEntityType=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest=} [properties] Properties to set */ - function EntityType(properties) { - this.entities = []; - this.excludedPhrases = []; + function UpdateEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -88001,172 +87638,101 @@ } /** - * EntityType name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType - * @instance - */ - EntityType.prototype.name = ""; - - /** - * EntityType displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType - * @instance - */ - EntityType.prototype.displayName = ""; - - /** - * EntityType kind. - * @member {google.cloud.dialogflow.cx.v3beta1.EntityType.Kind} kind - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType - * @instance - */ - EntityType.prototype.kind = 0; - - /** - * EntityType autoExpansionMode. - * @member {google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode} autoExpansionMode - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType - * @instance - */ - EntityType.prototype.autoExpansionMode = 0; - - /** - * EntityType entities. - * @member {Array.} entities - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType - * @instance - */ - EntityType.prototype.entities = $util.emptyArray; - - /** - * EntityType excludedPhrases. - * @member {Array.} excludedPhrases - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * UpdateEntityTypeRequest entityType. + * @member {google.cloud.dialogflow.cx.v3beta1.IEntityType|null|undefined} entityType + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest * @instance */ - EntityType.prototype.excludedPhrases = $util.emptyArray; + UpdateEntityTypeRequest.prototype.entityType = null; /** - * EntityType enableFuzzyExtraction. - * @member {boolean} enableFuzzyExtraction - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * UpdateEntityTypeRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest * @instance */ - EntityType.prototype.enableFuzzyExtraction = false; + UpdateEntityTypeRequest.prototype.languageCode = ""; /** - * EntityType redact. - * @member {boolean} redact - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * UpdateEntityTypeRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest * @instance */ - EntityType.prototype.redact = false; + UpdateEntityTypeRequest.prototype.updateMask = null; /** - * Creates a new EntityType instance using the specified properties. + * Creates a new UpdateEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEntityType=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType} EntityType instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest instance */ - EntityType.create = function create(properties) { - return new EntityType(properties); + UpdateEntityTypeRequest.create = function create(properties) { + return new UpdateEntityTypeRequest(properties); }; /** - * Encodes the specified EntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.verify|verify} messages. + * Encodes the specified UpdateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEntityType} message EntityType message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest} message UpdateEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EntityType.encode = function encode(message, writer) { + UpdateEntityTypeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.kind); - if (message.autoExpansionMode != null && Object.hasOwnProperty.call(message, "autoExpansionMode")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.autoExpansionMode); - if (message.entities != null && message.entities.length) - for (var i = 0; i < message.entities.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.encode(message.entities[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.excludedPhrases != null && message.excludedPhrases.length) - for (var i = 0; i < message.excludedPhrases.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.encode(message.excludedPhrases[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.enableFuzzyExtraction != null && Object.hasOwnProperty.call(message, "enableFuzzyExtraction")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.enableFuzzyExtraction); - if (message.redact != null && Object.hasOwnProperty.call(message, "redact")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.redact); + if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) + $root.google.cloud.dialogflow.cx.v3beta1.EntityType.encode(message.entityType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified EntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.verify|verify} messages. + * Encodes the specified UpdateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEntityType} message EntityType message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest} message UpdateEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EntityType.encodeDelimited = function encodeDelimited(message, writer) { + UpdateEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EntityType message from the specified reader or buffer. + * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType} EntityType + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EntityType.decode = function decode(reader, length) { + UpdateEntityTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.EntityType(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.entityType = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.decode(reader, reader.uint32()); break; case 2: - message.displayName = reader.string(); + message.languageCode = reader.string(); break; case 3: - message.kind = reader.int32(); - break; - case 4: - message.autoExpansionMode = reader.int32(); - break; - case 5: - if (!(message.entities && message.entities.length)) - message.entities = []; - message.entities.push($root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.decode(reader, reader.uint32())); - break; - case 6: - if (!(message.excludedPhrases && message.excludedPhrases.length)) - message.excludedPhrases = []; - message.excludedPhrases.push($root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.decode(reader, reader.uint32())); - break; - case 7: - message.enableFuzzyExtraction = reader.bool(); - break; - case 9: - message.redact = reader.bool(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -88177,937 +87743,682 @@ }; /** - * Decodes an EntityType message from the specified reader or buffer, length delimited. + * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType} EntityType + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EntityType.decodeDelimited = function decodeDelimited(reader) { + UpdateEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EntityType message. + * Verifies an UpdateEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EntityType.verify = function verify(message) { + UpdateEntityTypeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.kind != null && message.hasOwnProperty("kind")) - switch (message.kind) { - default: - return "kind: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.autoExpansionMode != null && message.hasOwnProperty("autoExpansionMode")) - switch (message.autoExpansionMode) { - default: - return "autoExpansionMode: enum value expected"; - case 0: - case 1: - break; - } - if (message.entities != null && message.hasOwnProperty("entities")) { - if (!Array.isArray(message.entities)) - return "entities: array expected"; - for (var i = 0; i < message.entities.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.verify(message.entities[i]); - if (error) - return "entities." + error; - } + if (message.entityType != null && message.hasOwnProperty("entityType")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.verify(message.entityType); + if (error) + return "entityType." + error; } - if (message.excludedPhrases != null && message.hasOwnProperty("excludedPhrases")) { - if (!Array.isArray(message.excludedPhrases)) - return "excludedPhrases: array expected"; - for (var i = 0; i < message.excludedPhrases.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.verify(message.excludedPhrases[i]); - if (error) - return "excludedPhrases." + error; - } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } - if (message.enableFuzzyExtraction != null && message.hasOwnProperty("enableFuzzyExtraction")) - if (typeof message.enableFuzzyExtraction !== "boolean") - return "enableFuzzyExtraction: boolean expected"; - if (message.redact != null && message.hasOwnProperty("redact")) - if (typeof message.redact !== "boolean") - return "redact: boolean expected"; return null; }; /** - * Creates an EntityType message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType} EntityType + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest */ - EntityType.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.EntityType) + UpdateEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.EntityType(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - switch (object.kind) { - case "KIND_UNSPECIFIED": - case 0: - message.kind = 0; - break; - case "KIND_MAP": - case 1: - message.kind = 1; - break; - case "KIND_LIST": - case 2: - message.kind = 2; - break; - case "KIND_REGEXP": - case 3: - message.kind = 3; - break; - } - switch (object.autoExpansionMode) { - case "AUTO_EXPANSION_MODE_UNSPECIFIED": - case 0: - message.autoExpansionMode = 0; - break; - case "AUTO_EXPANSION_MODE_DEFAULT": - case 1: - message.autoExpansionMode = 1; - break; - } - if (object.entities) { - if (!Array.isArray(object.entities)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.EntityType.entities: array expected"); - message.entities = []; - for (var i = 0; i < object.entities.length; ++i) { - if (typeof object.entities[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.EntityType.entities: object expected"); - message.entities[i] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.fromObject(object.entities[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest(); + if (object.entityType != null) { + if (typeof object.entityType !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest.entityType: object expected"); + message.entityType = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.fromObject(object.entityType); } - if (object.excludedPhrases) { - if (!Array.isArray(object.excludedPhrases)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.EntityType.excludedPhrases: array expected"); - message.excludedPhrases = []; - for (var i = 0; i < object.excludedPhrases.length; ++i) { - if (typeof object.excludedPhrases[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.EntityType.excludedPhrases: object expected"); - message.excludedPhrases[i] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.fromObject(object.excludedPhrases[i]); - } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } - if (object.enableFuzzyExtraction != null) - message.enableFuzzyExtraction = Boolean(object.enableFuzzyExtraction); - if (object.redact != null) - message.redact = Boolean(object.redact); return message; }; /** - * Creates a plain object from an EntityType message. Also converts values to other types if specified. + * Creates a plain object from an UpdateEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType} message EntityType + * @param {google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest} message UpdateEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EntityType.toObject = function toObject(message, options) { + UpdateEntityTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.entities = []; - object.excludedPhrases = []; - } if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.kind = options.enums === String ? "KIND_UNSPECIFIED" : 0; - object.autoExpansionMode = options.enums === String ? "AUTO_EXPANSION_MODE_UNSPECIFIED" : 0; - object.enableFuzzyExtraction = false; - object.redact = false; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.kind != null && message.hasOwnProperty("kind")) - object.kind = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Kind[message.kind] : message.kind; - if (message.autoExpansionMode != null && message.hasOwnProperty("autoExpansionMode")) - object.autoExpansionMode = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode[message.autoExpansionMode] : message.autoExpansionMode; - if (message.entities && message.entities.length) { - object.entities = []; - for (var j = 0; j < message.entities.length; ++j) - object.entities[j] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.toObject(message.entities[j], options); - } - if (message.excludedPhrases && message.excludedPhrases.length) { - object.excludedPhrases = []; - for (var j = 0; j < message.excludedPhrases.length; ++j) - object.excludedPhrases[j] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.toObject(message.excludedPhrases[j], options); + object.entityType = null; + object.languageCode = ""; + object.updateMask = null; } - if (message.enableFuzzyExtraction != null && message.hasOwnProperty("enableFuzzyExtraction")) - object.enableFuzzyExtraction = message.enableFuzzyExtraction; - if (message.redact != null && message.hasOwnProperty("redact")) - object.redact = message.redact; + if (message.entityType != null && message.hasOwnProperty("entityType")) + object.entityType = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.toObject(message.entityType, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this EntityType to JSON. + * Converts this UpdateEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest * @instance * @returns {Object.} JSON object */ - EntityType.prototype.toJSON = function toJSON() { + UpdateEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + return UpdateEntityTypeRequest; + })(); + + v3beta1.DeleteEntityTypeRequest = (function() { + /** - * Kind enum. - * @name google.cloud.dialogflow.cx.v3beta1.EntityType.Kind - * @enum {number} - * @property {number} KIND_UNSPECIFIED=0 KIND_UNSPECIFIED value - * @property {number} KIND_MAP=1 KIND_MAP value - * @property {number} KIND_LIST=2 KIND_LIST value - * @property {number} KIND_REGEXP=3 KIND_REGEXP value + * Properties of a DeleteEntityTypeRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IDeleteEntityTypeRequest + * @property {string|null} [name] DeleteEntityTypeRequest name + * @property {boolean|null} [force] DeleteEntityTypeRequest force */ - EntityType.Kind = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "KIND_UNSPECIFIED"] = 0; - values[valuesById[1] = "KIND_MAP"] = 1; - values[valuesById[2] = "KIND_LIST"] = 2; - values[valuesById[3] = "KIND_REGEXP"] = 3; - return values; - })(); /** - * AutoExpansionMode enum. - * @name google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode - * @enum {number} - * @property {number} AUTO_EXPANSION_MODE_UNSPECIFIED=0 AUTO_EXPANSION_MODE_UNSPECIFIED value - * @property {number} AUTO_EXPANSION_MODE_DEFAULT=1 AUTO_EXPANSION_MODE_DEFAULT value + * Constructs a new DeleteEntityTypeRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a DeleteEntityTypeRequest. + * @implements IDeleteEntityTypeRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest=} [properties] Properties to set */ - EntityType.AutoExpansionMode = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "AUTO_EXPANSION_MODE_UNSPECIFIED"] = 0; - values[valuesById[1] = "AUTO_EXPANSION_MODE_DEFAULT"] = 1; - return values; - })(); - - EntityType.Entity = (function() { - - /** - * Properties of an Entity. - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType - * @interface IEntity - * @property {string|null} [value] Entity value - * @property {Array.|null} [synonyms] Entity synonyms - */ - - /** - * Constructs a new Entity. - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType - * @classdesc Represents an Entity. - * @implements IEntity - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity=} [properties] Properties to set - */ - function Entity(properties) { - this.synonyms = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Entity value. - * @member {string} value - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity - * @instance - */ - Entity.prototype.value = ""; - - /** - * Entity synonyms. - * @member {Array.} synonyms - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity - * @instance - */ - Entity.prototype.synonyms = $util.emptyArray; + function DeleteEntityTypeRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a new Entity instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.Entity} Entity instance - */ - Entity.create = function create(properties) { - return new Entity(properties); - }; + /** + * DeleteEntityTypeRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @instance + */ + DeleteEntityTypeRequest.prototype.name = ""; - /** - * Encodes the specified Entity message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity} message Entity message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Entity.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); - if (message.synonyms != null && message.synonyms.length) - for (var i = 0; i < message.synonyms.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.synonyms[i]); - return writer; - }; + /** + * DeleteEntityTypeRequest force. + * @member {boolean} force + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @instance + */ + DeleteEntityTypeRequest.prototype.force = false; - /** - * Encodes the specified Entity message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity} message Entity message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Entity.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new DeleteEntityTypeRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest instance + */ + DeleteEntityTypeRequest.create = function create(properties) { + return new DeleteEntityTypeRequest(properties); + }; - /** - * Decodes an Entity message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.Entity} Entity - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Entity.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = reader.string(); - break; - case 2: - if (!(message.synonyms && message.synonyms.length)) - message.synonyms = []; - message.synonyms.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified DeleteEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest} message DeleteEntityTypeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteEntityTypeRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); + return writer; + }; - /** - * Decodes an Entity message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.Entity} Entity - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Entity.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified DeleteEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest} message DeleteEntityTypeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies an Entity message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Entity.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - if (message.synonyms != null && message.hasOwnProperty("synonyms")) { - if (!Array.isArray(message.synonyms)) - return "synonyms: array expected"; - for (var i = 0; i < message.synonyms.length; ++i) - if (!$util.isString(message.synonyms[i])) - return "synonyms: string[] expected"; + /** + * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteEntityTypeRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.force = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; } - return null; - }; + } + return message; + }; - /** - * Creates an Entity message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.Entity} Entity - */ - Entity.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity(); - if (object.value != null) - message.value = String(object.value); - if (object.synonyms) { - if (!Array.isArray(object.synonyms)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.synonyms: array expected"); - message.synonyms = []; - for (var i = 0; i < object.synonyms.length; ++i) - message.synonyms[i] = String(object.synonyms[i]); - } - return message; - }; + /** + * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from an Entity message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.Entity} message Entity - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Entity.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.synonyms = []; - if (options.defaults) - object.value = ""; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; - if (message.synonyms && message.synonyms.length) { - object.synonyms = []; - for (var j = 0; j < message.synonyms.length; ++j) - object.synonyms[j] = message.synonyms[j]; - } - return object; - }; + /** + * Verifies a DeleteEntityTypeRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteEntityTypeRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; + return null; + }; - /** - * Converts this Entity to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity - * @instance - * @returns {Object.} JSON object - */ - Entity.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a DeleteEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest + */ + DeleteEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.force != null) + message.force = Boolean(object.force); + return message; + }; - return Entity; - })(); + /** + * Creates a plain object from a DeleteEntityTypeRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest} message DeleteEntityTypeRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteEntityTypeRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.force = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; + return object; + }; - EntityType.ExcludedPhrase = (function() { + /** + * Converts this DeleteEntityTypeRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteEntityTypeRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Properties of an ExcludedPhrase. - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType - * @interface IExcludedPhrase - * @property {string|null} [value] ExcludedPhrase value - */ + return DeleteEntityTypeRequest; + })(); - /** - * Constructs a new ExcludedPhrase. - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType - * @classdesc Represents an ExcludedPhrase. - * @implements IExcludedPhrase - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase=} [properties] Properties to set - */ - function ExcludedPhrase(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v3beta1.Environments = (function() { - /** - * ExcludedPhrase value. - * @member {string} value - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase - * @instance - */ - ExcludedPhrase.prototype.value = ""; + /** + * Constructs a new Environments service. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents an Environments + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function Environments(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } - /** - * Creates a new ExcludedPhrase instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase} ExcludedPhrase instance - */ - ExcludedPhrase.create = function create(properties) { - return new ExcludedPhrase(properties); - }; + (Environments.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Environments; - /** - * Encodes the specified ExcludedPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase} message ExcludedPhrase message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExcludedPhrase.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); - return writer; - }; + /** + * Creates new Environments service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {Environments} RPC service. Useful where requests and/or responses are streamed. + */ + Environments.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; - /** - * Encodes the specified ExcludedPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase} message ExcludedPhrase message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExcludedPhrase.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#listEnvironments}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @typedef ListEnvironmentsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} [response] ListEnvironmentsResponse + */ - /** - * Decodes an ExcludedPhrase message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase} ExcludedPhrase - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExcludedPhrase.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Calls ListEnvironments. + * @function listEnvironments + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest} request ListEnvironmentsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Environments.ListEnvironmentsCallback} callback Node-style callback called with the error, if any, and ListEnvironmentsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.listEnvironments = function listEnvironments(request, callback) { + return this.rpcCall(listEnvironments, $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse, request, callback); + }, "name", { value: "ListEnvironments" }); - /** - * Decodes an ExcludedPhrase message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase} ExcludedPhrase - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExcludedPhrase.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Calls ListEnvironments. + * @function listEnvironments + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest} request ListEnvironmentsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Verifies an ExcludedPhrase message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExcludedPhrase.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - return null; - }; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#getEnvironment}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @typedef GetEnvironmentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Environment} [response] Environment + */ - /** - * Creates an ExcludedPhrase message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase} ExcludedPhrase - */ - ExcludedPhrase.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase(); - if (object.value != null) - message.value = String(object.value); - return message; - }; + /** + * Calls GetEnvironment. + * @function getEnvironment + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest} request GetEnvironmentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Environments.GetEnvironmentCallback} callback Node-style callback called with the error, if any, and Environment + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.getEnvironment = function getEnvironment(request, callback) { + return this.rpcCall(getEnvironment, $root.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Environment, request, callback); + }, "name", { value: "GetEnvironment" }); - /** - * Creates a plain object from an ExcludedPhrase message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase} message ExcludedPhrase - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ExcludedPhrase.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.value = ""; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; - return object; - }; + /** + * Calls GetEnvironment. + * @function getEnvironment + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest} request GetEnvironmentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Converts this ExcludedPhrase to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase - * @instance - * @returns {Object.} JSON object - */ - ExcludedPhrase.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#createEnvironment}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @typedef CreateEnvironmentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ - return ExcludedPhrase; - })(); + /** + * Calls CreateEnvironment. + * @function createEnvironment + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest} request CreateEnvironmentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Environments.CreateEnvironmentCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.createEnvironment = function createEnvironment(request, callback) { + return this.rpcCall(createEnvironment, $root.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateEnvironment" }); - return EntityType; - })(); + /** + * Calls CreateEnvironment. + * @function createEnvironment + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest} request CreateEnvironmentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - v3beta1.ListEntityTypesRequest = (function() { + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#updateEnvironment}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @typedef UpdateEnvironmentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ /** - * Properties of a ListEntityTypesRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListEntityTypesRequest - * @property {string|null} [parent] ListEntityTypesRequest parent - * @property {string|null} [languageCode] ListEntityTypesRequest languageCode - * @property {number|null} [pageSize] ListEntityTypesRequest pageSize - * @property {string|null} [pageToken] ListEntityTypesRequest pageToken + * Calls UpdateEnvironment. + * @function updateEnvironment + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest} request UpdateEnvironmentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Environments.UpdateEnvironmentCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ + Object.defineProperty(Environments.prototype.updateEnvironment = function updateEnvironment(request, callback) { + return this.rpcCall(updateEnvironment, $root.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateEnvironment" }); /** - * Constructs a new ListEntityTypesRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListEntityTypesRequest. - * @implements IListEntityTypesRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest=} [properties] Properties to set + * Calls UpdateEnvironment. + * @function updateEnvironment + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest} request UpdateEnvironmentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#deleteEnvironment}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @typedef DeleteEnvironmentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - function ListEntityTypesRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } /** - * ListEntityTypesRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest + * Calls DeleteEnvironment. + * @function deleteEnvironment + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest} request DeleteEnvironmentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Environments.DeleteEnvironmentCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - ListEntityTypesRequest.prototype.parent = ""; + Object.defineProperty(Environments.prototype.deleteEnvironment = function deleteEnvironment(request, callback) { + return this.rpcCall(deleteEnvironment, $root.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteEnvironment" }); /** - * ListEntityTypesRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest + * Calls DeleteEnvironment. + * @function deleteEnvironment + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest} request DeleteEnvironmentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListEntityTypesRequest.prototype.languageCode = ""; /** - * ListEntityTypesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#lookupEnvironmentHistory}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @typedef LookupEnvironmentHistoryCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse} [response] LookupEnvironmentHistoryResponse + */ + + /** + * Calls LookupEnvironmentHistory. + * @function lookupEnvironmentHistory + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest} request LookupEnvironmentHistoryRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Environments.LookupEnvironmentHistoryCallback} callback Node-style callback called with the error, if any, and LookupEnvironmentHistoryResponse + * @returns {undefined} + * @variation 1 */ - ListEntityTypesRequest.prototype.pageSize = 0; + Object.defineProperty(Environments.prototype.lookupEnvironmentHistory = function lookupEnvironmentHistory(request, callback) { + return this.rpcCall(lookupEnvironmentHistory, $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest, $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse, request, callback); + }, "name", { value: "LookupEnvironmentHistory" }); /** - * ListEntityTypesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest + * Calls LookupEnvironmentHistory. + * @function lookupEnvironmentHistory + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest} request LookupEnvironmentHistoryRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListEntityTypesRequest.prototype.pageToken = ""; /** - * Creates a new ListEntityTypesRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest} ListEntityTypesRequest instance + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#runContinuousTest}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @typedef RunContinuousTestCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - ListEntityTypesRequest.create = function create(properties) { - return new ListEntityTypesRequest(properties); - }; /** - * Encodes the specified ListEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest} message ListEntityTypesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls RunContinuousTest. + * @function runContinuousTest + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest} request RunContinuousTestRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Environments.RunContinuousTestCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - ListEntityTypesRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - return writer; - }; + Object.defineProperty(Environments.prototype.runContinuousTest = function runContinuousTest(request, callback) { + return this.rpcCall(runContinuousTest, $root.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "RunContinuousTest" }); /** - * Encodes the specified ListEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest} message ListEntityTypesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls RunContinuousTest. + * @function runContinuousTest + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest} request RunContinuousTestRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListEntityTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a ListEntityTypesRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest} ListEntityTypesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#listContinuousTestResults}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @typedef ListContinuousTestResultsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse} [response] ListContinuousTestResultsResponse */ - ListEntityTypesRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.languageCode = reader.string(); - break; - case 3: - message.pageSize = reader.int32(); - break; - case 4: - message.pageToken = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a ListEntityTypesRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest} ListEntityTypesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListContinuousTestResults. + * @function listContinuousTestResults + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest} request ListContinuousTestResultsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Environments.ListContinuousTestResultsCallback} callback Node-style callback called with the error, if any, and ListContinuousTestResultsResponse + * @returns {undefined} + * @variation 1 */ - ListEntityTypesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(Environments.prototype.listContinuousTestResults = function listContinuousTestResults(request, callback) { + return this.rpcCall(listContinuousTestResults, $root.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse, request, callback); + }, "name", { value: "ListContinuousTestResults" }); /** - * Verifies a ListEntityTypesRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls ListContinuousTestResults. + * @function listContinuousTestResults + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest} request ListContinuousTestResultsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListEntityTypesRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - return null; - }; /** - * Creates a ListEntityTypesRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest} ListEntityTypesRequest + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#deployFlow}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @typedef DeployFlowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - ListEntityTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - return message; - }; /** - * Creates a plain object from a ListEntityTypesRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest} message ListEntityTypesRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls DeployFlow. + * @function deployFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest} request DeployFlowRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Environments.DeployFlowCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - ListEntityTypesRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.languageCode = ""; - object.pageSize = 0; - object.pageToken = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - return object; - }; + Object.defineProperty(Environments.prototype.deployFlow = function deployFlow(request, callback) { + return this.rpcCall(deployFlow, $root.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeployFlow" }); /** - * Converts this ListEntityTypesRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest + * Calls DeployFlow. + * @function deployFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments * @instance - * @returns {Object.} JSON object + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest} request DeployFlowRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListEntityTypesRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - return ListEntityTypesRequest; + return Environments; })(); - v3beta1.ListEntityTypesResponse = (function() { + v3beta1.Environment = (function() { /** - * Properties of a ListEntityTypesResponse. + * Properties of an Environment. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListEntityTypesResponse - * @property {Array.|null} [entityTypes] ListEntityTypesResponse entityTypes - * @property {string|null} [nextPageToken] ListEntityTypesResponse nextPageToken + * @interface IEnvironment + * @property {string|null} [name] Environment name + * @property {string|null} [displayName] Environment displayName + * @property {string|null} [description] Environment description + * @property {Array.|null} [versionConfigs] Environment versionConfigs + * @property {google.protobuf.ITimestamp|null} [updateTime] Environment updateTime + * @property {google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig|null} [testCasesConfig] Environment testCasesConfig */ /** - * Constructs a new ListEntityTypesResponse. + * Constructs a new Environment. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListEntityTypesResponse. - * @implements IListEntityTypesResponse + * @classdesc Represents an Environment. + * @implements IEnvironment * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IEnvironment=} [properties] Properties to set */ - function ListEntityTypesResponse(properties) { - this.entityTypes = []; + function Environment(properties) { + this.versionConfigs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -89115,91 +88426,143 @@ } /** - * ListEntityTypesResponse entityTypes. - * @member {Array.} entityTypes - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * Environment name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @instance */ - ListEntityTypesResponse.prototype.entityTypes = $util.emptyArray; + Environment.prototype.name = ""; /** - * ListEntityTypesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * Environment displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @instance */ - ListEntityTypesResponse.prototype.nextPageToken = ""; + Environment.prototype.displayName = ""; /** - * Creates a new ListEntityTypesResponse instance using the specified properties. + * Environment description. + * @member {string} description + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @instance + */ + Environment.prototype.description = ""; + + /** + * Environment versionConfigs. + * @member {Array.} versionConfigs + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @instance + */ + Environment.prototype.versionConfigs = $util.emptyArray; + + /** + * Environment updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @instance + */ + Environment.prototype.updateTime = null; + + /** + * Environment testCasesConfig. + * @member {google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig|null|undefined} testCasesConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @instance + */ + Environment.prototype.testCasesConfig = null; + + /** + * Creates a new Environment instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse} ListEntityTypesResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IEnvironment=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Environment} Environment instance */ - ListEntityTypesResponse.create = function create(properties) { - return new ListEntityTypesResponse(properties); + Environment.create = function create(properties) { + return new Environment(properties); }; /** - * Encodes the specified ListEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse.verify|verify} messages. + * Encodes the specified Environment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse} message ListEntityTypesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IEnvironment} message Environment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEntityTypesResponse.encode = function encode(message, writer) { + Environment.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entityTypes != null && message.entityTypes.length) - for (var i = 0; i < message.entityTypes.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.EntityType.encode(message.entityTypes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.versionConfigs != null && message.versionConfigs.length) + for (var i = 0; i < message.versionConfigs.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.encode(message.versionConfigs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.testCasesConfig != null && Object.hasOwnProperty.call(message, "testCasesConfig")) + $root.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.encode(message.testCasesConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse.verify|verify} messages. + * Encodes the specified Environment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse} message ListEntityTypesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IEnvironment} message Environment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEntityTypesResponse.encodeDelimited = function encodeDelimited(message, writer) { + Environment.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListEntityTypesResponse message from the specified reader or buffer. + * Decodes an Environment message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse} ListEntityTypesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.Environment} Environment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEntityTypesResponse.decode = function decode(reader, length) { + Environment.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Environment(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.entityTypes && message.entityTypes.length)) - message.entityTypes = []; - message.entityTypes.push($root.google.cloud.dialogflow.cx.v3beta1.EntityType.decode(reader, reader.uint32())); + message.name = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + message.displayName = reader.string(); + break; + case 3: + message.description = reader.string(); + break; + case 6: + if (!(message.versionConfigs && message.versionConfigs.length)) + message.versionConfigs = []; + message.versionConfigs.push($root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.decode(reader, reader.uint32())); + break; + case 5: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 7: + message.testCasesConfig = $root.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -89210,345 +88573,614 @@ }; /** - * Decodes a ListEntityTypesResponse message from the specified reader or buffer, length delimited. + * Decodes an Environment message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse} ListEntityTypesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.Environment} Environment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEntityTypesResponse.decodeDelimited = function decodeDelimited(reader) { + Environment.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListEntityTypesResponse message. + * Verifies an Environment message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListEntityTypesResponse.verify = function verify(message) { + Environment.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.entityTypes != null && message.hasOwnProperty("entityTypes")) { - if (!Array.isArray(message.entityTypes)) - return "entityTypes: array expected"; - for (var i = 0; i < message.entityTypes.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.verify(message.entityTypes[i]); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.versionConfigs != null && message.hasOwnProperty("versionConfigs")) { + if (!Array.isArray(message.versionConfigs)) + return "versionConfigs: array expected"; + for (var i = 0; i < message.versionConfigs.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.verify(message.versionConfigs[i]); if (error) - return "entityTypes." + error; + return "versionConfigs." + error; } } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.testCasesConfig != null && message.hasOwnProperty("testCasesConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.verify(message.testCasesConfig); + if (error) + return "testCasesConfig." + error; + } return null; }; /** - * Creates a ListEntityTypesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an Environment message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse} ListEntityTypesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.Environment} Environment */ - ListEntityTypesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse) + Environment.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Environment) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse(); - if (object.entityTypes) { - if (!Array.isArray(object.entityTypes)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse.entityTypes: array expected"); - message.entityTypes = []; - for (var i = 0; i < object.entityTypes.length; ++i) { - if (typeof object.entityTypes[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse.entityTypes: object expected"); - message.entityTypes[i] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.fromObject(object.entityTypes[i]); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Environment(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.description != null) + message.description = String(object.description); + if (object.versionConfigs) { + if (!Array.isArray(object.versionConfigs)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Environment.versionConfigs: array expected"); + message.versionConfigs = []; + for (var i = 0; i < object.versionConfigs.length; ++i) { + if (typeof object.versionConfigs[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Environment.versionConfigs: object expected"); + message.versionConfigs[i] = $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.fromObject(object.versionConfigs[i]); } } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Environment.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.testCasesConfig != null) { + if (typeof object.testCasesConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Environment.testCasesConfig: object expected"); + message.testCasesConfig = $root.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.fromObject(object.testCasesConfig); + } return message; }; /** - * Creates a plain object from a ListEntityTypesResponse message. Also converts values to other types if specified. + * Creates a plain object from an Environment message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse} message ListEntityTypesResponse + * @param {google.cloud.dialogflow.cx.v3beta1.Environment} message Environment * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListEntityTypesResponse.toObject = function toObject(message, options) { + Environment.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.entityTypes = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.entityTypes && message.entityTypes.length) { - object.entityTypes = []; - for (var j = 0; j < message.entityTypes.length; ++j) - object.entityTypes[j] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.toObject(message.entityTypes[j], options); + object.versionConfigs = []; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.description = ""; + object.updateTime = null; + object.testCasesConfig = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.versionConfigs && message.versionConfigs.length) { + object.versionConfigs = []; + for (var j = 0; j < message.versionConfigs.length; ++j) + object.versionConfigs[j] = $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.toObject(message.versionConfigs[j], options); + } + if (message.testCasesConfig != null && message.hasOwnProperty("testCasesConfig")) + object.testCasesConfig = $root.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.toObject(message.testCasesConfig, options); return object; }; /** - * Converts this ListEntityTypesResponse to JSON. + * Converts this Environment to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @instance * @returns {Object.} JSON object */ - ListEntityTypesResponse.prototype.toJSON = function toJSON() { + Environment.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListEntityTypesResponse; - })(); + Environment.VersionConfig = (function() { - v3beta1.GetEntityTypeRequest = (function() { + /** + * Properties of a VersionConfig. + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @interface IVersionConfig + * @property {string|null} [version] VersionConfig version + */ - /** - * Properties of a GetEntityTypeRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetEntityTypeRequest - * @property {string|null} [name] GetEntityTypeRequest name - * @property {string|null} [languageCode] GetEntityTypeRequest languageCode - */ + /** + * Constructs a new VersionConfig. + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @classdesc Represents a VersionConfig. + * @implements IVersionConfig + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig=} [properties] Properties to set + */ + function VersionConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new GetEntityTypeRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetEntityTypeRequest. - * @implements IGetEntityTypeRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest=} [properties] Properties to set - */ - function GetEntityTypeRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * VersionConfig version. + * @member {string} version + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + * @instance + */ + VersionConfig.prototype.version = ""; - /** - * GetEntityTypeRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest - * @instance - */ - GetEntityTypeRequest.prototype.name = ""; + /** + * Creates a new VersionConfig instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig} VersionConfig instance + */ + VersionConfig.create = function create(properties) { + return new VersionConfig(properties); + }; - /** - * GetEntityTypeRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest - * @instance - */ - GetEntityTypeRequest.prototype.languageCode = ""; + /** + * Encodes the specified VersionConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig} message VersionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VersionConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); + return writer; + }; - /** - * Creates a new GetEntityTypeRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest} GetEntityTypeRequest instance - */ - GetEntityTypeRequest.create = function create(properties) { - return new GetEntityTypeRequest(properties); - }; + /** + * Encodes the specified VersionConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig} message VersionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VersionConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified GetEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest} message GetEntityTypeRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetEntityTypeRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); - return writer; - }; + /** + * Decodes a VersionConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig} VersionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VersionConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.version = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified GetEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest} message GetEntityTypeRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a VersionConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig} VersionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VersionConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a GetEntityTypeRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest} GetEntityTypeRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetEntityTypeRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.languageCode = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Verifies a VersionConfig message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VersionConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + return null; + }; + + /** + * Creates a VersionConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig} VersionConfig + */ + VersionConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig(); + if (object.version != null) + message.version = String(object.version); + return message; + }; + + /** + * Creates a plain object from a VersionConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig} message VersionConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VersionConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.version = ""; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + return object; + }; + + /** + * Converts this VersionConfig to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + * @instance + * @returns {Object.} JSON object + */ + VersionConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return VersionConfig; + })(); + + Environment.TestCasesConfig = (function() { + + /** + * Properties of a TestCasesConfig. + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @interface ITestCasesConfig + * @property {Array.|null} [testCases] TestCasesConfig testCases + * @property {boolean|null} [enableContinuousRun] TestCasesConfig enableContinuousRun + * @property {boolean|null} [enablePredeploymentRun] TestCasesConfig enablePredeploymentRun + */ + + /** + * Constructs a new TestCasesConfig. + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @classdesc Represents a TestCasesConfig. + * @implements ITestCasesConfig + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig=} [properties] Properties to set + */ + function TestCasesConfig(properties) { + this.testCases = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TestCasesConfig testCases. + * @member {Array.} testCases + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig + * @instance + */ + TestCasesConfig.prototype.testCases = $util.emptyArray; + + /** + * TestCasesConfig enableContinuousRun. + * @member {boolean} enableContinuousRun + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig + * @instance + */ + TestCasesConfig.prototype.enableContinuousRun = false; + + /** + * TestCasesConfig enablePredeploymentRun. + * @member {boolean} enablePredeploymentRun + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig + * @instance + */ + TestCasesConfig.prototype.enablePredeploymentRun = false; + + /** + * Creates a new TestCasesConfig instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig} TestCasesConfig instance + */ + TestCasesConfig.create = function create(properties) { + return new TestCasesConfig(properties); + }; + + /** + * Encodes the specified TestCasesConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig} message TestCasesConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestCasesConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.testCases != null && message.testCases.length) + for (var i = 0; i < message.testCases.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.testCases[i]); + if (message.enableContinuousRun != null && Object.hasOwnProperty.call(message, "enableContinuousRun")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enableContinuousRun); + if (message.enablePredeploymentRun != null && Object.hasOwnProperty.call(message, "enablePredeploymentRun")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.enablePredeploymentRun); + return writer; + }; + + /** + * Encodes the specified TestCasesConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig} message TestCasesConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestCasesConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TestCasesConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig} TestCasesConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestCasesConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.testCases && message.testCases.length)) + message.testCases = []; + message.testCases.push(reader.string()); + break; + case 2: + message.enableContinuousRun = reader.bool(); + break; + case 3: + message.enablePredeploymentRun = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TestCasesConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig} TestCasesConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestCasesConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TestCasesConfig message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TestCasesConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.testCases != null && message.hasOwnProperty("testCases")) { + if (!Array.isArray(message.testCases)) + return "testCases: array expected"; + for (var i = 0; i < message.testCases.length; ++i) + if (!$util.isString(message.testCases[i])) + return "testCases: string[] expected"; } - } - return message; - }; - - /** - * Decodes a GetEntityTypeRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest} GetEntityTypeRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + if (message.enableContinuousRun != null && message.hasOwnProperty("enableContinuousRun")) + if (typeof message.enableContinuousRun !== "boolean") + return "enableContinuousRun: boolean expected"; + if (message.enablePredeploymentRun != null && message.hasOwnProperty("enablePredeploymentRun")) + if (typeof message.enablePredeploymentRun !== "boolean") + return "enablePredeploymentRun: boolean expected"; + return null; + }; - /** - * Verifies a GetEntityTypeRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetEntityTypeRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; - return null; - }; + /** + * Creates a TestCasesConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig} TestCasesConfig + */ + TestCasesConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig(); + if (object.testCases) { + if (!Array.isArray(object.testCases)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.testCases: array expected"); + message.testCases = []; + for (var i = 0; i < object.testCases.length; ++i) + message.testCases[i] = String(object.testCases[i]); + } + if (object.enableContinuousRun != null) + message.enableContinuousRun = Boolean(object.enableContinuousRun); + if (object.enablePredeploymentRun != null) + message.enablePredeploymentRun = Boolean(object.enablePredeploymentRun); + return message; + }; - /** - * Creates a GetEntityTypeRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest} GetEntityTypeRequest - */ - GetEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest) + /** + * Creates a plain object from a TestCasesConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig} message TestCasesConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TestCasesConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.testCases = []; + if (options.defaults) { + object.enableContinuousRun = false; + object.enablePredeploymentRun = false; + } + if (message.testCases && message.testCases.length) { + object.testCases = []; + for (var j = 0; j < message.testCases.length; ++j) + object.testCases[j] = message.testCases[j]; + } + if (message.enableContinuousRun != null && message.hasOwnProperty("enableContinuousRun")) + object.enableContinuousRun = message.enableContinuousRun; + if (message.enablePredeploymentRun != null && message.hasOwnProperty("enablePredeploymentRun")) + object.enablePredeploymentRun = message.enablePredeploymentRun; return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); - return message; - }; + }; - /** - * Creates a plain object from a GetEntityTypeRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest} message GetEntityTypeRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetEntityTypeRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.languageCode = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; - return object; - }; + /** + * Converts this TestCasesConfig to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig + * @instance + * @returns {Object.} JSON object + */ + TestCasesConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this GetEntityTypeRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest - * @instance - * @returns {Object.} JSON object - */ - GetEntityTypeRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return TestCasesConfig; + })(); - return GetEntityTypeRequest; + return Environment; })(); - v3beta1.CreateEntityTypeRequest = (function() { + v3beta1.ListEnvironmentsRequest = (function() { /** - * Properties of a CreateEntityTypeRequest. + * Properties of a ListEnvironmentsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ICreateEntityTypeRequest - * @property {string|null} [parent] CreateEntityTypeRequest parent - * @property {google.cloud.dialogflow.cx.v3beta1.IEntityType|null} [entityType] CreateEntityTypeRequest entityType - * @property {string|null} [languageCode] CreateEntityTypeRequest languageCode + * @interface IListEnvironmentsRequest + * @property {string|null} [parent] ListEnvironmentsRequest parent + * @property {number|null} [pageSize] ListEnvironmentsRequest pageSize + * @property {string|null} [pageToken] ListEnvironmentsRequest pageToken */ /** - * Constructs a new CreateEntityTypeRequest. + * Constructs a new ListEnvironmentsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CreateEntityTypeRequest. - * @implements ICreateEntityTypeRequest + * @classdesc Represents a ListEnvironmentsRequest. + * @implements IListEnvironmentsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest=} [properties] Properties to set */ - function CreateEntityTypeRequest(properties) { + function ListEnvironmentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -89556,90 +89188,90 @@ } /** - * CreateEntityTypeRequest parent. + * ListEnvironmentsRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest * @instance */ - CreateEntityTypeRequest.prototype.parent = ""; + ListEnvironmentsRequest.prototype.parent = ""; /** - * CreateEntityTypeRequest entityType. - * @member {google.cloud.dialogflow.cx.v3beta1.IEntityType|null|undefined} entityType - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * ListEnvironmentsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest * @instance */ - CreateEntityTypeRequest.prototype.entityType = null; + ListEnvironmentsRequest.prototype.pageSize = 0; /** - * CreateEntityTypeRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * ListEnvironmentsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest * @instance */ - CreateEntityTypeRequest.prototype.languageCode = ""; + ListEnvironmentsRequest.prototype.pageToken = ""; /** - * Creates a new CreateEntityTypeRequest instance using the specified properties. + * Creates a new ListEnvironmentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest} CreateEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest} ListEnvironmentsRequest instance */ - CreateEntityTypeRequest.create = function create(properties) { - return new CreateEntityTypeRequest(properties); + ListEnvironmentsRequest.create = function create(properties) { + return new ListEnvironmentsRequest(properties); }; /** - * Encodes the specified CreateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest.verify|verify} messages. + * Encodes the specified ListEnvironmentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest} message CreateEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest} message ListEnvironmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateEntityTypeRequest.encode = function encode(message, writer) { + ListEnvironmentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) - $root.google.cloud.dialogflow.cx.v3beta1.EntityType.encode(message.entityType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified CreateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest.verify|verify} messages. + * Encodes the specified ListEnvironmentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest} message CreateEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest} message ListEnvironmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListEnvironmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateEntityTypeRequest message from the specified reader or buffer. + * Decodes a ListEnvironmentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest} CreateEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest} ListEnvironmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateEntityTypeRequest.decode = function decode(reader, length) { + ListEnvironmentsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -89647,10 +89279,10 @@ message.parent = reader.string(); break; case 2: - message.entityType = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); break; case 3: - message.languageCode = reader.string(); + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -89661,131 +89293,126 @@ }; /** - * Decodes a CreateEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a ListEnvironmentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest} CreateEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest} ListEnvironmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + ListEnvironmentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateEntityTypeRequest message. + * Verifies a ListEnvironmentsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateEntityTypeRequest.verify = function verify(message) { + ListEnvironmentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.entityType != null && message.hasOwnProperty("entityType")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.verify(message.entityType); - if (error) - return "entityType." + error; - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a CreateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListEnvironmentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest} CreateEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest} ListEnvironmentsRequest */ - CreateEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest) + ListEnvironmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.entityType != null) { - if (typeof object.entityType !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest.entityType: object expected"); - message.entityType = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.fromObject(object.entityType); - } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a CreateEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListEnvironmentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest} message CreateEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest} message ListEnvironmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateEntityTypeRequest.toObject = function toObject(message, options) { + ListEnvironmentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.entityType = null; - object.languageCode = ""; + object.pageSize = 0; + object.pageToken = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.entityType != null && message.hasOwnProperty("entityType")) - object.entityType = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.toObject(message.entityType, options); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this CreateEntityTypeRequest to JSON. + * Converts this ListEnvironmentsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest * @instance * @returns {Object.} JSON object */ - CreateEntityTypeRequest.prototype.toJSON = function toJSON() { + ListEnvironmentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateEntityTypeRequest; + return ListEnvironmentsRequest; })(); - v3beta1.UpdateEntityTypeRequest = (function() { + v3beta1.ListEnvironmentsResponse = (function() { /** - * Properties of an UpdateEntityTypeRequest. + * Properties of a ListEnvironmentsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IUpdateEntityTypeRequest - * @property {google.cloud.dialogflow.cx.v3beta1.IEntityType|null} [entityType] UpdateEntityTypeRequest entityType - * @property {string|null} [languageCode] UpdateEntityTypeRequest languageCode - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateEntityTypeRequest updateMask + * @interface IListEnvironmentsResponse + * @property {Array.|null} [environments] ListEnvironmentsResponse environments + * @property {string|null} [nextPageToken] ListEnvironmentsResponse nextPageToken */ /** - * Constructs a new UpdateEntityTypeRequest. + * Constructs a new ListEnvironmentsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an UpdateEntityTypeRequest. - * @implements IUpdateEntityTypeRequest + * @classdesc Represents a ListEnvironmentsResponse. + * @implements IListEnvironmentsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse=} [properties] Properties to set */ - function UpdateEntityTypeRequest(properties) { + function ListEnvironmentsResponse(properties) { + this.environments = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -89793,101 +89420,91 @@ } /** - * UpdateEntityTypeRequest entityType. - * @member {google.cloud.dialogflow.cx.v3beta1.IEntityType|null|undefined} entityType - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest - * @instance - */ - UpdateEntityTypeRequest.prototype.entityType = null; - - /** - * UpdateEntityTypeRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * ListEnvironmentsResponse environments. + * @member {Array.} environments + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse * @instance */ - UpdateEntityTypeRequest.prototype.languageCode = ""; + ListEnvironmentsResponse.prototype.environments = $util.emptyArray; /** - * UpdateEntityTypeRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * ListEnvironmentsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse * @instance */ - UpdateEntityTypeRequest.prototype.updateMask = null; + ListEnvironmentsResponse.prototype.nextPageToken = ""; /** - * Creates a new UpdateEntityTypeRequest instance using the specified properties. + * Creates a new ListEnvironmentsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} ListEnvironmentsResponse instance */ - UpdateEntityTypeRequest.create = function create(properties) { - return new UpdateEntityTypeRequest(properties); + ListEnvironmentsResponse.create = function create(properties) { + return new ListEnvironmentsResponse(properties); }; /** - * Encodes the specified UpdateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest.verify|verify} messages. + * Encodes the specified ListEnvironmentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest} message UpdateEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse} message ListEnvironmentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateEntityTypeRequest.encode = function encode(message, writer) { + ListEnvironmentsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) - $root.google.cloud.dialogflow.cx.v3beta1.EntityType.encode(message.entityType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.environments != null && message.environments.length) + for (var i = 0; i < message.environments.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Environment.encode(message.environments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified UpdateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest.verify|verify} messages. + * Encodes the specified ListEnvironmentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest} message UpdateEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse} message ListEnvironmentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListEnvironmentsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer. + * Decodes a ListEnvironmentsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} ListEnvironmentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateEntityTypeRequest.decode = function decode(reader, length) { + ListEnvironmentsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.entityType = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.decode(reader, reader.uint32()); + if (!(message.environments && message.environments.length)) + message.environments = []; + message.environments.push($root.google.cloud.dialogflow.cx.v3beta1.Environment.decode(reader, reader.uint32())); break; case 2: - message.languageCode = reader.string(); - break; - case 3: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -89898,135 +89515,133 @@ }; /** - * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a ListEnvironmentsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} ListEnvironmentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + ListEnvironmentsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateEntityTypeRequest message. + * Verifies a ListEnvironmentsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateEntityTypeRequest.verify = function verify(message) { + ListEnvironmentsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.entityType != null && message.hasOwnProperty("entityType")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.verify(message.entityType); - if (error) - return "entityType." + error; - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; + if (message.environments != null && message.hasOwnProperty("environments")) { + if (!Array.isArray(message.environments)) + return "environments: array expected"; + for (var i = 0; i < message.environments.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Environment.verify(message.environments[i]); + if (error) + return "environments." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an UpdateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListEnvironmentsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest - */ - UpdateEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest(); - if (object.entityType != null) { - if (typeof object.entityType !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest.entityType: object expected"); - message.entityType = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.fromObject(object.entityType); - } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} ListEnvironmentsResponse + */ + ListEnvironmentsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse(); + if (object.environments) { + if (!Array.isArray(object.environments)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse.environments: array expected"); + message.environments = []; + for (var i = 0; i < object.environments.length; ++i) { + if (typeof object.environments[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse.environments: object expected"); + message.environments[i] = $root.google.cloud.dialogflow.cx.v3beta1.Environment.fromObject(object.environments[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an UpdateEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListEnvironmentsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest} message UpdateEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} message ListEnvironmentsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateEntityTypeRequest.toObject = function toObject(message, options) { + ListEnvironmentsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.entityType = null; - object.languageCode = ""; - object.updateMask = null; + if (options.arrays || options.defaults) + object.environments = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.environments && message.environments.length) { + object.environments = []; + for (var j = 0; j < message.environments.length; ++j) + object.environments[j] = $root.google.cloud.dialogflow.cx.v3beta1.Environment.toObject(message.environments[j], options); } - if (message.entityType != null && message.hasOwnProperty("entityType")) - object.entityType = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.toObject(message.entityType, options); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this UpdateEntityTypeRequest to JSON. + * Converts this ListEnvironmentsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse * @instance * @returns {Object.} JSON object */ - UpdateEntityTypeRequest.prototype.toJSON = function toJSON() { + ListEnvironmentsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateEntityTypeRequest; + return ListEnvironmentsResponse; })(); - v3beta1.DeleteEntityTypeRequest = (function() { + v3beta1.GetEnvironmentRequest = (function() { /** - * Properties of a DeleteEntityTypeRequest. + * Properties of a GetEnvironmentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDeleteEntityTypeRequest - * @property {string|null} [name] DeleteEntityTypeRequest name - * @property {boolean|null} [force] DeleteEntityTypeRequest force + * @interface IGetEnvironmentRequest + * @property {string|null} [name] GetEnvironmentRequest name */ /** - * Constructs a new DeleteEntityTypeRequest. + * Constructs a new GetEnvironmentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DeleteEntityTypeRequest. - * @implements IDeleteEntityTypeRequest + * @classdesc Represents a GetEnvironmentRequest. + * @implements IGetEnvironmentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest=} [properties] Properties to set */ - function DeleteEntityTypeRequest(properties) { + function GetEnvironmentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -90034,89 +89649,76 @@ } /** - * DeleteEntityTypeRequest name. + * GetEnvironmentRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest - * @instance - */ - DeleteEntityTypeRequest.prototype.name = ""; - - /** - * DeleteEntityTypeRequest force. - * @member {boolean} force - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest * @instance */ - DeleteEntityTypeRequest.prototype.force = false; + GetEnvironmentRequest.prototype.name = ""; /** - * Creates a new DeleteEntityTypeRequest instance using the specified properties. + * Creates a new GetEnvironmentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest} GetEnvironmentRequest instance */ - DeleteEntityTypeRequest.create = function create(properties) { - return new DeleteEntityTypeRequest(properties); + GetEnvironmentRequest.create = function create(properties) { + return new GetEnvironmentRequest(properties); }; /** - * Encodes the specified DeleteEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest.verify|verify} messages. + * Encodes the specified GetEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest} message DeleteEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest} message GetEnvironmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteEntityTypeRequest.encode = function encode(message, writer) { + GetEnvironmentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); return writer; }; /** - * Encodes the specified DeleteEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest.verify|verify} messages. + * Encodes the specified GetEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest} message DeleteEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest} message GetEnvironmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer. + * Decodes a GetEnvironmentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest} GetEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteEntityTypeRequest.decode = function decode(reader, length) { + GetEnvironmentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; - case 2: - message.force = reader.bool(); - break; default: reader.skipType(tag & 7); break; @@ -90126,454 +89728,108 @@ }; /** - * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a GetEnvironmentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest} GetEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + GetEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteEntityTypeRequest message. + * Verifies a GetEnvironmentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteEntityTypeRequest.verify = function verify(message) { + GetEnvironmentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; return null; }; /** - * Creates a DeleteEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetEnvironmentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest} GetEnvironmentRequest */ - DeleteEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest) + GetEnvironmentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest(); if (object.name != null) message.name = String(object.name); - if (object.force != null) - message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from a DeleteEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetEnvironmentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest} message DeleteEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest} message GetEnvironmentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteEntityTypeRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.force = false; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; - return object; - }; - - /** - * Converts this DeleteEntityTypeRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest - * @instance - * @returns {Object.} JSON object - */ - DeleteEntityTypeRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return DeleteEntityTypeRequest; - })(); - - v3beta1.Environments = (function() { - - /** - * Constructs a new Environments service. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an Environments - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Environments(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Environments.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Environments; - - /** - * Creates new Environments service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {Environments} RPC service. Useful where requests and/or responses are streamed. - */ - Environments.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#listEnvironments}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @typedef ListEnvironmentsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} [response] ListEnvironmentsResponse - */ - - /** - * Calls ListEnvironments. - * @function listEnvironments - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest} request ListEnvironmentsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Environments.ListEnvironmentsCallback} callback Node-style callback called with the error, if any, and ListEnvironmentsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Environments.prototype.listEnvironments = function listEnvironments(request, callback) { - return this.rpcCall(listEnvironments, $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse, request, callback); - }, "name", { value: "ListEnvironments" }); - - /** - * Calls ListEnvironments. - * @function listEnvironments - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest} request ListEnvironmentsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#getEnvironment}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @typedef GetEnvironmentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Environment} [response] Environment - */ - - /** - * Calls GetEnvironment. - * @function getEnvironment - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest} request GetEnvironmentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Environments.GetEnvironmentCallback} callback Node-style callback called with the error, if any, and Environment - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Environments.prototype.getEnvironment = function getEnvironment(request, callback) { - return this.rpcCall(getEnvironment, $root.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Environment, request, callback); - }, "name", { value: "GetEnvironment" }); - - /** - * Calls GetEnvironment. - * @function getEnvironment - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest} request GetEnvironmentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#createEnvironment}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @typedef CreateEnvironmentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls CreateEnvironment. - * @function createEnvironment - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest} request CreateEnvironmentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Environments.CreateEnvironmentCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Environments.prototype.createEnvironment = function createEnvironment(request, callback) { - return this.rpcCall(createEnvironment, $root.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateEnvironment" }); - - /** - * Calls CreateEnvironment. - * @function createEnvironment - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest} request CreateEnvironmentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#updateEnvironment}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @typedef UpdateEnvironmentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls UpdateEnvironment. - * @function updateEnvironment - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest} request UpdateEnvironmentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Environments.UpdateEnvironmentCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Environments.prototype.updateEnvironment = function updateEnvironment(request, callback) { - return this.rpcCall(updateEnvironment, $root.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "UpdateEnvironment" }); - - /** - * Calls UpdateEnvironment. - * @function updateEnvironment - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest} request UpdateEnvironmentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#deleteEnvironment}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @typedef DeleteEnvironmentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ - - /** - * Calls DeleteEnvironment. - * @function deleteEnvironment - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest} request DeleteEnvironmentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Environments.DeleteEnvironmentCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Environments.prototype.deleteEnvironment = function deleteEnvironment(request, callback) { - return this.rpcCall(deleteEnvironment, $root.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteEnvironment" }); - - /** - * Calls DeleteEnvironment. - * @function deleteEnvironment - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest} request DeleteEnvironmentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#lookupEnvironmentHistory}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @typedef LookupEnvironmentHistoryCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse} [response] LookupEnvironmentHistoryResponse - */ - - /** - * Calls LookupEnvironmentHistory. - * @function lookupEnvironmentHistory - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest} request LookupEnvironmentHistoryRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Environments.LookupEnvironmentHistoryCallback} callback Node-style callback called with the error, if any, and LookupEnvironmentHistoryResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Environments.prototype.lookupEnvironmentHistory = function lookupEnvironmentHistory(request, callback) { - return this.rpcCall(lookupEnvironmentHistory, $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest, $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse, request, callback); - }, "name", { value: "LookupEnvironmentHistory" }); - - /** - * Calls LookupEnvironmentHistory. - * @function lookupEnvironmentHistory - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest} request LookupEnvironmentHistoryRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#runContinuousTest}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @typedef RunContinuousTestCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls RunContinuousTest. - * @function runContinuousTest - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest} request RunContinuousTestRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Environments.RunContinuousTestCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Environments.prototype.runContinuousTest = function runContinuousTest(request, callback) { - return this.rpcCall(runContinuousTest, $root.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "RunContinuousTest" }); - - /** - * Calls RunContinuousTest. - * @function runContinuousTest - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest} request RunContinuousTestRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#listContinuousTestResults}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @typedef ListContinuousTestResultsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse} [response] ListContinuousTestResultsResponse - */ - - /** - * Calls ListContinuousTestResults. - * @function listContinuousTestResults - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest} request ListContinuousTestResultsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Environments.ListContinuousTestResultsCallback} callback Node-style callback called with the error, if any, and ListContinuousTestResultsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Environments.prototype.listContinuousTestResults = function listContinuousTestResults(request, callback) { - return this.rpcCall(listContinuousTestResults, $root.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse, request, callback); - }, "name", { value: "ListContinuousTestResults" }); - - /** - * Calls ListContinuousTestResults. - * @function listContinuousTestResults - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest} request ListContinuousTestResultsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#deployFlow}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @typedef DeployFlowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls DeployFlow. - * @function deployFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest} request DeployFlowRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Environments.DeployFlowCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * @returns {Object.} Plain object */ - Object.defineProperty(Environments.prototype.deployFlow = function deployFlow(request, callback) { - return this.rpcCall(deployFlow, $root.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeployFlow" }); + GetEnvironmentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; /** - * Calls DeployFlow. - * @function deployFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * Converts this GetEnvironmentRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest} request DeployFlowRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + GetEnvironmentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Environments; + return GetEnvironmentRequest; })(); - v3beta1.Environment = (function() { + v3beta1.CreateEnvironmentRequest = (function() { /** - * Properties of an Environment. + * Properties of a CreateEnvironmentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IEnvironment - * @property {string|null} [name] Environment name - * @property {string|null} [displayName] Environment displayName - * @property {string|null} [description] Environment description - * @property {Array.|null} [versionConfigs] Environment versionConfigs - * @property {google.protobuf.ITimestamp|null} [updateTime] Environment updateTime - * @property {google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig|null} [testCasesConfig] Environment testCasesConfig + * @interface ICreateEnvironmentRequest + * @property {string|null} [parent] CreateEnvironmentRequest parent + * @property {google.cloud.dialogflow.cx.v3beta1.IEnvironment|null} [environment] CreateEnvironmentRequest environment */ /** - * Constructs a new Environment. + * Constructs a new CreateEnvironmentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an Environment. - * @implements IEnvironment + * @classdesc Represents a CreateEnvironmentRequest. + * @implements ICreateEnvironmentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IEnvironment=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest=} [properties] Properties to set */ - function Environment(properties) { - this.versionConfigs = []; + function CreateEnvironmentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -90581,143 +89837,88 @@ } /** - * Environment name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment - * @instance - */ - Environment.prototype.name = ""; - - /** - * Environment displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment - * @instance - */ - Environment.prototype.displayName = ""; - - /** - * Environment description. - * @member {string} description - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment - * @instance - */ - Environment.prototype.description = ""; - - /** - * Environment versionConfigs. - * @member {Array.} versionConfigs - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment - * @instance - */ - Environment.prototype.versionConfigs = $util.emptyArray; - - /** - * Environment updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * CreateEnvironmentRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest * @instance */ - Environment.prototype.updateTime = null; + CreateEnvironmentRequest.prototype.parent = ""; /** - * Environment testCasesConfig. - * @member {google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig|null|undefined} testCasesConfig - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * CreateEnvironmentRequest environment. + * @member {google.cloud.dialogflow.cx.v3beta1.IEnvironment|null|undefined} environment + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest * @instance */ - Environment.prototype.testCasesConfig = null; + CreateEnvironmentRequest.prototype.environment = null; /** - * Creates a new Environment instance using the specified properties. + * Creates a new CreateEnvironmentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEnvironment=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment} Environment instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest} CreateEnvironmentRequest instance */ - Environment.create = function create(properties) { - return new Environment(properties); + CreateEnvironmentRequest.create = function create(properties) { + return new CreateEnvironmentRequest(properties); }; /** - * Encodes the specified Environment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.verify|verify} messages. + * Encodes the specified CreateEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEnvironment} message Environment message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest} message CreateEnvironmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Environment.encode = function encode(message, writer) { + CreateEnvironmentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.versionConfigs != null && message.versionConfigs.length) - for (var i = 0; i < message.versionConfigs.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.encode(message.versionConfigs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.testCasesConfig != null && Object.hasOwnProperty.call(message, "testCasesConfig")) - $root.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.encode(message.testCasesConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + $root.google.cloud.dialogflow.cx.v3beta1.Environment.encode(message.environment, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified Environment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.verify|verify} messages. + * Encodes the specified CreateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEnvironment} message Environment message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest} message CreateEnvironmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Environment.encodeDelimited = function encodeDelimited(message, writer) { + CreateEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Environment message from the specified reader or buffer. + * Decodes a CreateEnvironmentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment} Environment + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest} CreateEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Environment.decode = function decode(reader, length) { + CreateEnvironmentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Environment(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); break; case 2: - message.displayName = reader.string(); - break; - case 3: - message.description = reader.string(); - break; - case 6: - if (!(message.versionConfigs && message.versionConfigs.length)) - message.versionConfigs = []; - message.versionConfigs.push($root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.decode(reader, reader.uint32())); - break; - case 5: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 7: - message.testCasesConfig = $root.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.decode(reader, reader.uint32()); + message.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -90728,614 +89929,530 @@ }; /** - * Decodes an Environment message from the specified reader or buffer, length delimited. + * Decodes a CreateEnvironmentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment} Environment + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest} CreateEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Environment.decodeDelimited = function decodeDelimited(reader) { + CreateEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Environment message. + * Verifies a CreateEnvironmentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Environment.verify = function verify(message) { + CreateEnvironmentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.versionConfigs != null && message.hasOwnProperty("versionConfigs")) { - if (!Array.isArray(message.versionConfigs)) - return "versionConfigs: array expected"; - for (var i = 0; i < message.versionConfigs.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.verify(message.versionConfigs[i]); - if (error) - return "versionConfigs." + error; - } - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.testCasesConfig != null && message.hasOwnProperty("testCasesConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.verify(message.testCasesConfig); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.environment != null && message.hasOwnProperty("environment")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Environment.verify(message.environment); if (error) - return "testCasesConfig." + error; + return "environment." + error; } return null; }; /** - * Creates an Environment message from a plain object. Also converts values to their respective internal types. + * Creates a CreateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment} Environment + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest} CreateEnvironmentRequest */ - Environment.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Environment) + CreateEnvironmentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Environment(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.description != null) - message.description = String(object.description); - if (object.versionConfigs) { - if (!Array.isArray(object.versionConfigs)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Environment.versionConfigs: array expected"); - message.versionConfigs = []; - for (var i = 0; i < object.versionConfigs.length; ++i) { - if (typeof object.versionConfigs[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Environment.versionConfigs: object expected"); - message.versionConfigs[i] = $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.fromObject(object.versionConfigs[i]); - } - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Environment.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.testCasesConfig != null) { - if (typeof object.testCasesConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Environment.testCasesConfig: object expected"); - message.testCasesConfig = $root.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.fromObject(object.testCasesConfig); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.environment != null) { + if (typeof object.environment !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest.environment: object expected"); + message.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.fromObject(object.environment); } return message; }; /** - * Creates a plain object from an Environment message. Also converts values to other types if specified. + * Creates a plain object from a CreateEnvironmentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Environment} message Environment + * @param {google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest} message CreateEnvironmentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Environment.toObject = function toObject(message, options) { + CreateEnvironmentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.versionConfigs = []; if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.description = ""; - object.updateTime = null; - object.testCasesConfig = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.versionConfigs && message.versionConfigs.length) { - object.versionConfigs = []; - for (var j = 0; j < message.versionConfigs.length; ++j) - object.versionConfigs[j] = $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.toObject(message.versionConfigs[j], options); + object.parent = ""; + object.environment = null; } - if (message.testCasesConfig != null && message.hasOwnProperty("testCasesConfig")) - object.testCasesConfig = $root.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.toObject(message.testCasesConfig, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.toObject(message.environment, options); return object; }; /** - * Converts this Environment to JSON. + * Converts this CreateEnvironmentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest * @instance * @returns {Object.} JSON object */ - Environment.prototype.toJSON = function toJSON() { + CreateEnvironmentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - Environment.VersionConfig = (function() { - - /** - * Properties of a VersionConfig. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment - * @interface IVersionConfig - * @property {string|null} [version] VersionConfig version - */ - - /** - * Constructs a new VersionConfig. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment - * @classdesc Represents a VersionConfig. - * @implements IVersionConfig - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig=} [properties] Properties to set - */ - function VersionConfig(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * VersionConfig version. - * @member {string} version - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig - * @instance - */ - VersionConfig.prototype.version = ""; + return CreateEnvironmentRequest; + })(); - /** - * Creates a new VersionConfig instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig} VersionConfig instance - */ - VersionConfig.create = function create(properties) { - return new VersionConfig(properties); - }; + v3beta1.UpdateEnvironmentRequest = (function() { - /** - * Encodes the specified VersionConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig} message VersionConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VersionConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); - return writer; - }; + /** + * Properties of an UpdateEnvironmentRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IUpdateEnvironmentRequest + * @property {google.cloud.dialogflow.cx.v3beta1.IEnvironment|null} [environment] UpdateEnvironmentRequest environment + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateEnvironmentRequest updateMask + */ - /** - * Encodes the specified VersionConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig} message VersionConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VersionConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Constructs a new UpdateEnvironmentRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents an UpdateEnvironmentRequest. + * @implements IUpdateEnvironmentRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest=} [properties] Properties to set + */ + function UpdateEnvironmentRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Decodes a VersionConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig} VersionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VersionConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.version = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * UpdateEnvironmentRequest environment. + * @member {google.cloud.dialogflow.cx.v3beta1.IEnvironment|null|undefined} environment + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @instance + */ + UpdateEnvironmentRequest.prototype.environment = null; - /** - * Decodes a VersionConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig} VersionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VersionConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * UpdateEnvironmentRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @instance + */ + UpdateEnvironmentRequest.prototype.updateMask = null; - /** - * Verifies a VersionConfig message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - VersionConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - return null; - }; + /** + * Creates a new UpdateEnvironmentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest instance + */ + UpdateEnvironmentRequest.create = function create(properties) { + return new UpdateEnvironmentRequest(properties); + }; - /** - * Creates a VersionConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig} VersionConfig - */ - VersionConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig(); - if (object.version != null) - message.version = String(object.version); - return message; - }; + /** + * Encodes the specified UpdateEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest} message UpdateEnvironmentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateEnvironmentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + $root.google.cloud.dialogflow.cx.v3beta1.Environment.encode(message.environment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Creates a plain object from a VersionConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig} message VersionConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - VersionConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.version = ""; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - return object; - }; + /** + * Encodes the specified UpdateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest} message UpdateEnvironmentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Converts this VersionConfig to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig - * @instance - * @returns {Object.} JSON object - */ - VersionConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateEnvironmentRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.decode(reader, reader.uint32()); + break; + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - return VersionConfig; - })(); + /** + * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - Environment.TestCasesConfig = (function() { + /** + * Verifies an UpdateEnvironmentRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateEnvironmentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.environment != null && message.hasOwnProperty("environment")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Environment.verify(message.environment); + if (error) + return "environment." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + return null; + }; - /** - * Properties of a TestCasesConfig. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment - * @interface ITestCasesConfig - * @property {Array.|null} [testCases] TestCasesConfig testCases - * @property {boolean|null} [enableContinuousRun] TestCasesConfig enableContinuousRun - * @property {boolean|null} [enablePredeploymentRun] TestCasesConfig enablePredeploymentRun - */ + /** + * Creates an UpdateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest + */ + UpdateEnvironmentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest(); + if (object.environment != null) { + if (typeof object.environment !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest.environment: object expected"); + message.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.fromObject(object.environment); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; - /** - * Constructs a new TestCasesConfig. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment - * @classdesc Represents a TestCasesConfig. - * @implements ITestCasesConfig - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig=} [properties] Properties to set - */ - function TestCasesConfig(properties) { - this.testCases = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Creates a plain object from an UpdateEnvironmentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest} message UpdateEnvironmentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateEnvironmentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.environment = null; + object.updateMask = null; } + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.toObject(message.environment, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; - /** - * TestCasesConfig testCases. - * @member {Array.} testCases - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig - * @instance - */ - TestCasesConfig.prototype.testCases = $util.emptyArray; + /** + * Converts this UpdateEnvironmentRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateEnvironmentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * TestCasesConfig enableContinuousRun. - * @member {boolean} enableContinuousRun - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig - * @instance - */ - TestCasesConfig.prototype.enableContinuousRun = false; + return UpdateEnvironmentRequest; + })(); - /** - * TestCasesConfig enablePredeploymentRun. - * @member {boolean} enablePredeploymentRun - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig - * @instance - */ - TestCasesConfig.prototype.enablePredeploymentRun = false; + v3beta1.DeleteEnvironmentRequest = (function() { - /** - * Creates a new TestCasesConfig instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig} TestCasesConfig instance - */ - TestCasesConfig.create = function create(properties) { - return new TestCasesConfig(properties); - }; + /** + * Properties of a DeleteEnvironmentRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IDeleteEnvironmentRequest + * @property {string|null} [name] DeleteEnvironmentRequest name + */ - /** - * Encodes the specified TestCasesConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig} message TestCasesConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TestCasesConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.testCases != null && message.testCases.length) - for (var i = 0; i < message.testCases.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.testCases[i]); - if (message.enableContinuousRun != null && Object.hasOwnProperty.call(message, "enableContinuousRun")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enableContinuousRun); - if (message.enablePredeploymentRun != null && Object.hasOwnProperty.call(message, "enablePredeploymentRun")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.enablePredeploymentRun); - return writer; - }; + /** + * Constructs a new DeleteEnvironmentRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a DeleteEnvironmentRequest. + * @implements IDeleteEnvironmentRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest=} [properties] Properties to set + */ + function DeleteEnvironmentRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified TestCasesConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig} message TestCasesConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TestCasesConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * DeleteEnvironmentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * @instance + */ + DeleteEnvironmentRequest.prototype.name = ""; - /** - * Decodes a TestCasesConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig} TestCasesConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TestCasesConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.testCases && message.testCases.length)) - message.testCases = []; - message.testCases.push(reader.string()); - break; - case 2: - message.enableContinuousRun = reader.bool(); - break; - case 3: - message.enablePredeploymentRun = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a new DeleteEnvironmentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest instance + */ + DeleteEnvironmentRequest.create = function create(properties) { + return new DeleteEnvironmentRequest(properties); + }; - /** - * Decodes a TestCasesConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig} TestCasesConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TestCasesConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified DeleteEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest} message DeleteEnvironmentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteEnvironmentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; - /** - * Verifies a TestCasesConfig message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TestCasesConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.testCases != null && message.hasOwnProperty("testCases")) { - if (!Array.isArray(message.testCases)) - return "testCases: array expected"; - for (var i = 0; i < message.testCases.length; ++i) - if (!$util.isString(message.testCases[i])) - return "testCases: string[] expected"; - } - if (message.enableContinuousRun != null && message.hasOwnProperty("enableContinuousRun")) - if (typeof message.enableContinuousRun !== "boolean") - return "enableContinuousRun: boolean expected"; - if (message.enablePredeploymentRun != null && message.hasOwnProperty("enablePredeploymentRun")) - if (typeof message.enablePredeploymentRun !== "boolean") - return "enablePredeploymentRun: boolean expected"; - return null; - }; + /** + * Encodes the specified DeleteEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest} message DeleteEnvironmentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a TestCasesConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig} TestCasesConfig - */ - TestCasesConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig(); - if (object.testCases) { - if (!Array.isArray(object.testCases)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.testCases: array expected"); - message.testCases = []; - for (var i = 0; i < object.testCases.length; ++i) - message.testCases[i] = String(object.testCases[i]); + /** + * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteEnvironmentRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; } - if (object.enableContinuousRun != null) - message.enableContinuousRun = Boolean(object.enableContinuousRun); - if (object.enablePredeploymentRun != null) - message.enablePredeploymentRun = Boolean(object.enablePredeploymentRun); - return message; - }; + } + return message; + }; - /** - * Creates a plain object from a TestCasesConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig} message TestCasesConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TestCasesConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.testCases = []; - if (options.defaults) { - object.enableContinuousRun = false; - object.enablePredeploymentRun = false; - } - if (message.testCases && message.testCases.length) { - object.testCases = []; - for (var j = 0; j < message.testCases.length; ++j) - object.testCases[j] = message.testCases[j]; - } - if (message.enableContinuousRun != null && message.hasOwnProperty("enableContinuousRun")) - object.enableContinuousRun = message.enableContinuousRun; - if (message.enablePredeploymentRun != null && message.hasOwnProperty("enablePredeploymentRun")) - object.enablePredeploymentRun = message.enablePredeploymentRun; + /** + * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteEnvironmentRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteEnvironmentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a DeleteEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest + */ + DeleteEnvironmentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest) return object; - }; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - /** - * Converts this TestCasesConfig to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig - * @instance - * @returns {Object.} JSON object - */ - TestCasesConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a DeleteEnvironmentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest} message DeleteEnvironmentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteEnvironmentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; - return TestCasesConfig; - })(); + /** + * Converts this DeleteEnvironmentRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteEnvironmentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Environment; + return DeleteEnvironmentRequest; })(); - v3beta1.ListEnvironmentsRequest = (function() { + v3beta1.LookupEnvironmentHistoryRequest = (function() { /** - * Properties of a ListEnvironmentsRequest. + * Properties of a LookupEnvironmentHistoryRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListEnvironmentsRequest - * @property {string|null} [parent] ListEnvironmentsRequest parent - * @property {number|null} [pageSize] ListEnvironmentsRequest pageSize - * @property {string|null} [pageToken] ListEnvironmentsRequest pageToken + * @interface ILookupEnvironmentHistoryRequest + * @property {string|null} [name] LookupEnvironmentHistoryRequest name + * @property {number|null} [pageSize] LookupEnvironmentHistoryRequest pageSize + * @property {string|null} [pageToken] LookupEnvironmentHistoryRequest pageToken */ /** - * Constructs a new ListEnvironmentsRequest. + * Constructs a new LookupEnvironmentHistoryRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListEnvironmentsRequest. - * @implements IListEnvironmentsRequest + * @classdesc Represents a LookupEnvironmentHistoryRequest. + * @implements ILookupEnvironmentHistoryRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest=} [properties] Properties to set */ - function ListEnvironmentsRequest(properties) { + function LookupEnvironmentHistoryRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -91343,55 +90460,55 @@ } /** - * ListEnvironmentsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * LookupEnvironmentHistoryRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest * @instance */ - ListEnvironmentsRequest.prototype.parent = ""; + LookupEnvironmentHistoryRequest.prototype.name = ""; /** - * ListEnvironmentsRequest pageSize. + * LookupEnvironmentHistoryRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest * @instance */ - ListEnvironmentsRequest.prototype.pageSize = 0; + LookupEnvironmentHistoryRequest.prototype.pageSize = 0; /** - * ListEnvironmentsRequest pageToken. + * LookupEnvironmentHistoryRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest * @instance */ - ListEnvironmentsRequest.prototype.pageToken = ""; + LookupEnvironmentHistoryRequest.prototype.pageToken = ""; /** - * Creates a new ListEnvironmentsRequest instance using the specified properties. + * Creates a new LookupEnvironmentHistoryRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest} ListEnvironmentsRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest instance */ - ListEnvironmentsRequest.create = function create(properties) { - return new ListEnvironmentsRequest(properties); + LookupEnvironmentHistoryRequest.create = function create(properties) { + return new LookupEnvironmentHistoryRequest(properties); }; /** - * Encodes the specified ListEnvironmentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest.verify|verify} messages. + * Encodes the specified LookupEnvironmentHistoryRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest} message ListEnvironmentsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest} message LookupEnvironmentHistoryRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEnvironmentsRequest.encode = function encode(message, writer) { + LookupEnvironmentHistoryRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -91400,38 +90517,38 @@ }; /** - * Encodes the specified ListEnvironmentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest.verify|verify} messages. + * Encodes the specified LookupEnvironmentHistoryRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest} message ListEnvironmentsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest} message LookupEnvironmentHistoryRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEnvironmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + LookupEnvironmentHistoryRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListEnvironmentsRequest message from the specified reader or buffer. + * Decodes a LookupEnvironmentHistoryRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest} ListEnvironmentsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEnvironmentsRequest.decode = function decode(reader, length) { + LookupEnvironmentHistoryRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.name = reader.string(); break; case 2: message.pageSize = reader.int32(); @@ -91448,35 +90565,35 @@ }; /** - * Decodes a ListEnvironmentsRequest message from the specified reader or buffer, length delimited. + * Decodes a LookupEnvironmentHistoryRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest} ListEnvironmentsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEnvironmentsRequest.decodeDelimited = function decodeDelimited(reader) { + LookupEnvironmentHistoryRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListEnvironmentsRequest message. + * Verifies a LookupEnvironmentHistoryRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListEnvironmentsRequest.verify = function verify(message) { + LookupEnvironmentHistoryRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; if (message.pageSize != null && message.hasOwnProperty("pageSize")) if (!$util.isInteger(message.pageSize)) return "pageSize: integer expected"; @@ -91487,19 +90604,19 @@ }; /** - * Creates a ListEnvironmentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a LookupEnvironmentHistoryRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest} ListEnvironmentsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest */ - ListEnvironmentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest) + LookupEnvironmentHistoryRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest(); - if (object.parent != null) - message.parent = String(object.parent); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest(); + if (object.name != null) + message.name = String(object.name); if (object.pageSize != null) message.pageSize = object.pageSize | 0; if (object.pageToken != null) @@ -91508,25 +90625,25 @@ }; /** - * Creates a plain object from a ListEnvironmentsRequest message. Also converts values to other types if specified. + * Creates a plain object from a LookupEnvironmentHistoryRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest} message ListEnvironmentsRequest + * @param {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest} message LookupEnvironmentHistoryRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListEnvironmentsRequest.toObject = function toObject(message, options) { + LookupEnvironmentHistoryRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; + object.name = ""; object.pageSize = 0; object.pageToken = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; if (message.pageSize != null && message.hasOwnProperty("pageSize")) object.pageSize = message.pageSize; if (message.pageToken != null && message.hasOwnProperty("pageToken")) @@ -91535,38 +90652,38 @@ }; /** - * Converts this ListEnvironmentsRequest to JSON. + * Converts this LookupEnvironmentHistoryRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest * @instance * @returns {Object.} JSON object */ - ListEnvironmentsRequest.prototype.toJSON = function toJSON() { + LookupEnvironmentHistoryRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListEnvironmentsRequest; + return LookupEnvironmentHistoryRequest; })(); - v3beta1.ListEnvironmentsResponse = (function() { + v3beta1.LookupEnvironmentHistoryResponse = (function() { /** - * Properties of a ListEnvironmentsResponse. + * Properties of a LookupEnvironmentHistoryResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListEnvironmentsResponse - * @property {Array.|null} [environments] ListEnvironmentsResponse environments - * @property {string|null} [nextPageToken] ListEnvironmentsResponse nextPageToken + * @interface ILookupEnvironmentHistoryResponse + * @property {Array.|null} [environments] LookupEnvironmentHistoryResponse environments + * @property {string|null} [nextPageToken] LookupEnvironmentHistoryResponse nextPageToken */ /** - * Constructs a new ListEnvironmentsResponse. + * Constructs a new LookupEnvironmentHistoryResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListEnvironmentsResponse. - * @implements IListEnvironmentsResponse + * @classdesc Represents a LookupEnvironmentHistoryResponse. + * @implements ILookupEnvironmentHistoryResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse=} [properties] Properties to set */ - function ListEnvironmentsResponse(properties) { + function LookupEnvironmentHistoryResponse(properties) { this.environments = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -91575,91 +90692,350 @@ } /** - * ListEnvironmentsResponse environments. + * LookupEnvironmentHistoryResponse environments. * @member {Array.} environments - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse * @instance */ - ListEnvironmentsResponse.prototype.environments = $util.emptyArray; + LookupEnvironmentHistoryResponse.prototype.environments = $util.emptyArray; /** - * ListEnvironmentsResponse nextPageToken. + * LookupEnvironmentHistoryResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse * @instance */ - ListEnvironmentsResponse.prototype.nextPageToken = ""; + LookupEnvironmentHistoryResponse.prototype.nextPageToken = ""; /** - * Creates a new ListEnvironmentsResponse instance using the specified properties. + * Creates a new LookupEnvironmentHistoryResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} ListEnvironmentsResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse instance */ - ListEnvironmentsResponse.create = function create(properties) { - return new ListEnvironmentsResponse(properties); + LookupEnvironmentHistoryResponse.create = function create(properties) { + return new LookupEnvironmentHistoryResponse(properties); }; /** - * Encodes the specified ListEnvironmentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse.verify|verify} messages. + * Encodes the specified LookupEnvironmentHistoryResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse} message ListEnvironmentsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse} message LookupEnvironmentHistoryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEnvironmentsResponse.encode = function encode(message, writer) { + LookupEnvironmentHistoryResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.environments != null && message.environments.length) + for (var i = 0; i < message.environments.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Environment.encode(message.environments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; + + /** + * Encodes the specified LookupEnvironmentHistoryResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse} message LookupEnvironmentHistoryResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LookupEnvironmentHistoryResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LookupEnvironmentHistoryResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LookupEnvironmentHistoryResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.environments && message.environments.length)) + message.environments = []; + message.environments.push($root.google.cloud.dialogflow.cx.v3beta1.Environment.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LookupEnvironmentHistoryResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LookupEnvironmentHistoryResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LookupEnvironmentHistoryResponse message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LookupEnvironmentHistoryResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.environments != null && message.hasOwnProperty("environments")) { + if (!Array.isArray(message.environments)) + return "environments: array expected"; + for (var i = 0; i < message.environments.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Environment.verify(message.environments[i]); + if (error) + return "environments." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a LookupEnvironmentHistoryResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse + */ + LookupEnvironmentHistoryResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse(); + if (object.environments) { + if (!Array.isArray(object.environments)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse.environments: array expected"); + message.environments = []; + for (var i = 0; i < object.environments.length; ++i) { + if (typeof object.environments[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse.environments: object expected"); + message.environments[i] = $root.google.cloud.dialogflow.cx.v3beta1.Environment.fromObject(object.environments[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a LookupEnvironmentHistoryResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse} message LookupEnvironmentHistoryResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LookupEnvironmentHistoryResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.environments = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.environments && message.environments.length) { + object.environments = []; + for (var j = 0; j < message.environments.length; ++j) + object.environments[j] = $root.google.cloud.dialogflow.cx.v3beta1.Environment.toObject(message.environments[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this LookupEnvironmentHistoryResponse to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @instance + * @returns {Object.} JSON object + */ + LookupEnvironmentHistoryResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return LookupEnvironmentHistoryResponse; + })(); + + v3beta1.ContinuousTestResult = (function() { + + /** + * Properties of a ContinuousTestResult. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IContinuousTestResult + * @property {string|null} [name] ContinuousTestResult name + * @property {google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult|null} [result] ContinuousTestResult result + * @property {Array.|null} [testCaseResults] ContinuousTestResult testCaseResults + * @property {google.protobuf.ITimestamp|null} [runTime] ContinuousTestResult runTime + */ + + /** + * Constructs a new ContinuousTestResult. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a ContinuousTestResult. + * @implements IContinuousTestResult + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult=} [properties] Properties to set + */ + function ContinuousTestResult(properties) { + this.testCaseResults = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ContinuousTestResult name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @instance + */ + ContinuousTestResult.prototype.name = ""; + + /** + * ContinuousTestResult result. + * @member {google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult} result + * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @instance + */ + ContinuousTestResult.prototype.result = 0; + + /** + * ContinuousTestResult testCaseResults. + * @member {Array.} testCaseResults + * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @instance + */ + ContinuousTestResult.prototype.testCaseResults = $util.emptyArray; + + /** + * ContinuousTestResult runTime. + * @member {google.protobuf.ITimestamp|null|undefined} runTime + * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @instance + */ + ContinuousTestResult.prototype.runTime = null; + + /** + * Creates a new ContinuousTestResult instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult} ContinuousTestResult instance + */ + ContinuousTestResult.create = function create(properties) { + return new ContinuousTestResult(properties); + }; + + /** + * Encodes the specified ContinuousTestResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult} message ContinuousTestResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ContinuousTestResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.environments != null && message.environments.length) - for (var i = 0; i < message.environments.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Environment.encode(message.environments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.result); + if (message.testCaseResults != null && message.testCaseResults.length) + for (var i = 0; i < message.testCaseResults.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.testCaseResults[i]); + if (message.runTime != null && Object.hasOwnProperty.call(message, "runTime")) + $root.google.protobuf.Timestamp.encode(message.runTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListEnvironmentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse.verify|verify} messages. + * Encodes the specified ContinuousTestResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse} message ListEnvironmentsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult} message ContinuousTestResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEnvironmentsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ContinuousTestResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListEnvironmentsResponse message from the specified reader or buffer. + * Decodes a ContinuousTestResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} ListEnvironmentsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult} ContinuousTestResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEnvironmentsResponse.decode = function decode(reader, length) { + ContinuousTestResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.environments && message.environments.length)) - message.environments = []; - message.environments.push($root.google.cloud.dialogflow.cx.v3beta1.Environment.decode(reader, reader.uint32())); + message.name = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + message.result = reader.int32(); + break; + case 3: + if (!(message.testCaseResults && message.testCaseResults.length)) + message.testCaseResults = []; + message.testCaseResults.push(reader.string()); + break; + case 4: + message.runTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -91670,133 +91046,184 @@ }; /** - * Decodes a ListEnvironmentsResponse message from the specified reader or buffer, length delimited. + * Decodes a ContinuousTestResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} ListEnvironmentsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult} ContinuousTestResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEnvironmentsResponse.decodeDelimited = function decodeDelimited(reader) { + ContinuousTestResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListEnvironmentsResponse message. + * Verifies a ContinuousTestResult message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListEnvironmentsResponse.verify = function verify(message) { + ContinuousTestResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.environments != null && message.hasOwnProperty("environments")) { - if (!Array.isArray(message.environments)) - return "environments: array expected"; - for (var i = 0; i < message.environments.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Environment.verify(message.environments[i]); - if (error) - return "environments." + error; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.result != null && message.hasOwnProperty("result")) + switch (message.result) { + default: + return "result: enum value expected"; + case 0: + case 1: + case 2: + break; } + if (message.testCaseResults != null && message.hasOwnProperty("testCaseResults")) { + if (!Array.isArray(message.testCaseResults)) + return "testCaseResults: array expected"; + for (var i = 0; i < message.testCaseResults.length; ++i) + if (!$util.isString(message.testCaseResults[i])) + return "testCaseResults: string[] expected"; + } + if (message.runTime != null && message.hasOwnProperty("runTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.runTime); + if (error) + return "runTime." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListEnvironmentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ContinuousTestResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} ListEnvironmentsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult} ContinuousTestResult */ - ListEnvironmentsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse) + ContinuousTestResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse(); - if (object.environments) { - if (!Array.isArray(object.environments)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse.environments: array expected"); - message.environments = []; - for (var i = 0; i < object.environments.length; ++i) { - if (typeof object.environments[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse.environments: object expected"); - message.environments[i] = $root.google.cloud.dialogflow.cx.v3beta1.Environment.fromObject(object.environments[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult(); + if (object.name != null) + message.name = String(object.name); + switch (object.result) { + case "AGGREGATED_TEST_RESULT_UNSPECIFIED": + case 0: + message.result = 0; + break; + case "PASSED": + case 1: + message.result = 1; + break; + case "FAILED": + case 2: + message.result = 2; + break; + } + if (object.testCaseResults) { + if (!Array.isArray(object.testCaseResults)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.testCaseResults: array expected"); + message.testCaseResults = []; + for (var i = 0; i < object.testCaseResults.length; ++i) + message.testCaseResults[i] = String(object.testCaseResults[i]); + } + if (object.runTime != null) { + if (typeof object.runTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.runTime: object expected"); + message.runTime = $root.google.protobuf.Timestamp.fromObject(object.runTime); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListEnvironmentsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ContinuousTestResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} message ListEnvironmentsResponse + * @param {google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult} message ContinuousTestResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListEnvironmentsResponse.toObject = function toObject(message, options) { + ContinuousTestResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.environments = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.environments && message.environments.length) { - object.environments = []; - for (var j = 0; j < message.environments.length; ++j) - object.environments[j] = $root.google.cloud.dialogflow.cx.v3beta1.Environment.toObject(message.environments[j], options); + object.testCaseResults = []; + if (options.defaults) { + object.name = ""; + object.result = options.enums === String ? "AGGREGATED_TEST_RESULT_UNSPECIFIED" : 0; + object.runTime = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.result != null && message.hasOwnProperty("result")) + object.result = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult[message.result] : message.result; + if (message.testCaseResults && message.testCaseResults.length) { + object.testCaseResults = []; + for (var j = 0; j < message.testCaseResults.length; ++j) + object.testCaseResults[j] = message.testCaseResults[j]; + } + if (message.runTime != null && message.hasOwnProperty("runTime")) + object.runTime = $root.google.protobuf.Timestamp.toObject(message.runTime, options); return object; }; /** - * Converts this ListEnvironmentsResponse to JSON. + * Converts this ContinuousTestResult to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult * @instance * @returns {Object.} JSON object */ - ListEnvironmentsResponse.prototype.toJSON = function toJSON() { + ContinuousTestResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListEnvironmentsResponse; + /** + * AggregatedTestResult enum. + * @name google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult + * @enum {number} + * @property {number} AGGREGATED_TEST_RESULT_UNSPECIFIED=0 AGGREGATED_TEST_RESULT_UNSPECIFIED value + * @property {number} PASSED=1 PASSED value + * @property {number} FAILED=2 FAILED value + */ + ContinuousTestResult.AggregatedTestResult = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "AGGREGATED_TEST_RESULT_UNSPECIFIED"] = 0; + values[valuesById[1] = "PASSED"] = 1; + values[valuesById[2] = "FAILED"] = 2; + return values; + })(); + + return ContinuousTestResult; })(); - v3beta1.GetEnvironmentRequest = (function() { + v3beta1.RunContinuousTestRequest = (function() { /** - * Properties of a GetEnvironmentRequest. + * Properties of a RunContinuousTestRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetEnvironmentRequest - * @property {string|null} [name] GetEnvironmentRequest name + * @interface IRunContinuousTestRequest + * @property {string|null} [environment] RunContinuousTestRequest environment */ /** - * Constructs a new GetEnvironmentRequest. + * Constructs a new RunContinuousTestRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetEnvironmentRequest. - * @implements IGetEnvironmentRequest + * @classdesc Represents a RunContinuousTestRequest. + * @implements IRunContinuousTestRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest=} [properties] Properties to set */ - function GetEnvironmentRequest(properties) { + function RunContinuousTestRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -91804,75 +91231,75 @@ } /** - * GetEnvironmentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * RunContinuousTestRequest environment. + * @member {string} environment + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest * @instance */ - GetEnvironmentRequest.prototype.name = ""; + RunContinuousTestRequest.prototype.environment = ""; /** - * Creates a new GetEnvironmentRequest instance using the specified properties. + * Creates a new RunContinuousTestRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest} GetEnvironmentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest} RunContinuousTestRequest instance */ - GetEnvironmentRequest.create = function create(properties) { - return new GetEnvironmentRequest(properties); + RunContinuousTestRequest.create = function create(properties) { + return new RunContinuousTestRequest(properties); }; /** - * Encodes the specified GetEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest.verify|verify} messages. + * Encodes the specified RunContinuousTestRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest} message GetEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest} message RunContinuousTestRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetEnvironmentRequest.encode = function encode(message, writer) { + RunContinuousTestRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.environment); return writer; }; /** - * Encodes the specified GetEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest.verify|verify} messages. + * Encodes the specified RunContinuousTestRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest} message GetEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest} message RunContinuousTestRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + RunContinuousTestRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetEnvironmentRequest message from the specified reader or buffer. + * Decodes a RunContinuousTestRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest} GetEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest} RunContinuousTestRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetEnvironmentRequest.decode = function decode(reader, length) { + RunContinuousTestRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.environment = reader.string(); break; default: reader.skipType(tag & 7); @@ -91883,108 +91310,107 @@ }; /** - * Decodes a GetEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes a RunContinuousTestRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest} GetEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest} RunContinuousTestRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { + RunContinuousTestRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetEnvironmentRequest message. + * Verifies a RunContinuousTestRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetEnvironmentRequest.verify = function verify(message) { + RunContinuousTestRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.environment != null && message.hasOwnProperty("environment")) + if (!$util.isString(message.environment)) + return "environment: string expected"; return null; }; /** - * Creates a GetEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RunContinuousTestRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest} GetEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest} RunContinuousTestRequest */ - GetEnvironmentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest) + RunContinuousTestRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest(); + if (object.environment != null) + message.environment = String(object.environment); return message; }; /** - * Creates a plain object from a GetEnvironmentRequest message. Also converts values to other types if specified. + * Creates a plain object from a RunContinuousTestRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest} message GetEnvironmentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest} message RunContinuousTestRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetEnvironmentRequest.toObject = function toObject(message, options) { + RunContinuousTestRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.environment = ""; + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = message.environment; return object; }; /** - * Converts this GetEnvironmentRequest to JSON. + * Converts this RunContinuousTestRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest * @instance * @returns {Object.} JSON object */ - GetEnvironmentRequest.prototype.toJSON = function toJSON() { + RunContinuousTestRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetEnvironmentRequest; + return RunContinuousTestRequest; })(); - v3beta1.CreateEnvironmentRequest = (function() { + v3beta1.RunContinuousTestResponse = (function() { /** - * Properties of a CreateEnvironmentRequest. + * Properties of a RunContinuousTestResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ICreateEnvironmentRequest - * @property {string|null} [parent] CreateEnvironmentRequest parent - * @property {google.cloud.dialogflow.cx.v3beta1.IEnvironment|null} [environment] CreateEnvironmentRequest environment + * @interface IRunContinuousTestResponse + * @property {google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult|null} [continuousTestResult] RunContinuousTestResponse continuousTestResult */ /** - * Constructs a new CreateEnvironmentRequest. + * Constructs a new RunContinuousTestResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CreateEnvironmentRequest. - * @implements ICreateEnvironmentRequest + * @classdesc Represents a RunContinuousTestResponse. + * @implements IRunContinuousTestResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestResponse=} [properties] Properties to set */ - function CreateEnvironmentRequest(properties) { + function RunContinuousTestResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -91992,88 +91418,75 @@ } /** - * CreateEnvironmentRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest - * @instance - */ - CreateEnvironmentRequest.prototype.parent = ""; - - /** - * CreateEnvironmentRequest environment. - * @member {google.cloud.dialogflow.cx.v3beta1.IEnvironment|null|undefined} environment - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * RunContinuousTestResponse continuousTestResult. + * @member {google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult|null|undefined} continuousTestResult + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse * @instance */ - CreateEnvironmentRequest.prototype.environment = null; + RunContinuousTestResponse.prototype.continuousTestResult = null; /** - * Creates a new CreateEnvironmentRequest instance using the specified properties. + * Creates a new RunContinuousTestResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest} CreateEnvironmentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse} RunContinuousTestResponse instance */ - CreateEnvironmentRequest.create = function create(properties) { - return new CreateEnvironmentRequest(properties); + RunContinuousTestResponse.create = function create(properties) { + return new RunContinuousTestResponse(properties); }; /** - * Encodes the specified CreateEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest.verify|verify} messages. + * Encodes the specified RunContinuousTestResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest} message CreateEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestResponse} message RunContinuousTestResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateEnvironmentRequest.encode = function encode(message, writer) { + RunContinuousTestResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - $root.google.cloud.dialogflow.cx.v3beta1.Environment.encode(message.environment, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.continuousTestResult != null && Object.hasOwnProperty.call(message, "continuousTestResult")) + $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.encode(message.continuousTestResult, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest.verify|verify} messages. + * Encodes the specified RunContinuousTestResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest} message CreateEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestResponse} message RunContinuousTestResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + RunContinuousTestResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateEnvironmentRequest message from the specified reader or buffer. + * Decodes a RunContinuousTestResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest} CreateEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse} RunContinuousTestResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateEnvironmentRequest.decode = function decode(reader, length) { + RunContinuousTestResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - message.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.decode(reader, reader.uint32()); + message.continuousTestResult = $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -92084,122 +91497,113 @@ }; /** - * Decodes a CreateEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes a RunContinuousTestResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest} CreateEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse} RunContinuousTestResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { + RunContinuousTestResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateEnvironmentRequest message. + * Verifies a RunContinuousTestResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateEnvironmentRequest.verify = function verify(message) { + RunContinuousTestResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.environment != null && message.hasOwnProperty("environment")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Environment.verify(message.environment); + if (message.continuousTestResult != null && message.hasOwnProperty("continuousTestResult")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.verify(message.continuousTestResult); if (error) - return "environment." + error; + return "continuousTestResult." + error; } return null; }; /** - * Creates a CreateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RunContinuousTestResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest} CreateEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse} RunContinuousTestResponse */ - CreateEnvironmentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest) + RunContinuousTestResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.environment != null) { - if (typeof object.environment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest.environment: object expected"); - message.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.fromObject(object.environment); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse(); + if (object.continuousTestResult != null) { + if (typeof object.continuousTestResult !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse.continuousTestResult: object expected"); + message.continuousTestResult = $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.fromObject(object.continuousTestResult); } return message; }; /** - * Creates a plain object from a CreateEnvironmentRequest message. Also converts values to other types if specified. + * Creates a plain object from a RunContinuousTestResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest} message CreateEnvironmentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse} message RunContinuousTestResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateEnvironmentRequest.toObject = function toObject(message, options) { + RunContinuousTestResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.environment = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.toObject(message.environment, options); + if (options.defaults) + object.continuousTestResult = null; + if (message.continuousTestResult != null && message.hasOwnProperty("continuousTestResult")) + object.continuousTestResult = $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.toObject(message.continuousTestResult, options); return object; }; /** - * Converts this CreateEnvironmentRequest to JSON. + * Converts this RunContinuousTestResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse * @instance * @returns {Object.} JSON object */ - CreateEnvironmentRequest.prototype.toJSON = function toJSON() { + RunContinuousTestResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateEnvironmentRequest; + return RunContinuousTestResponse; })(); - v3beta1.UpdateEnvironmentRequest = (function() { + v3beta1.RunContinuousTestMetadata = (function() { /** - * Properties of an UpdateEnvironmentRequest. + * Properties of a RunContinuousTestMetadata. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IUpdateEnvironmentRequest - * @property {google.cloud.dialogflow.cx.v3beta1.IEnvironment|null} [environment] UpdateEnvironmentRequest environment - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateEnvironmentRequest updateMask + * @interface IRunContinuousTestMetadata + * @property {Array.|null} [errors] RunContinuousTestMetadata errors */ /** - * Constructs a new UpdateEnvironmentRequest. + * Constructs a new RunContinuousTestMetadata. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an UpdateEnvironmentRequest. - * @implements IUpdateEnvironmentRequest + * @classdesc Represents a RunContinuousTestMetadata. + * @implements IRunContinuousTestMetadata * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestMetadata=} [properties] Properties to set */ - function UpdateEnvironmentRequest(properties) { + function RunContinuousTestMetadata(properties) { + this.errors = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -92207,88 +91611,78 @@ } /** - * UpdateEnvironmentRequest environment. - * @member {google.cloud.dialogflow.cx.v3beta1.IEnvironment|null|undefined} environment - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest - * @instance - */ - UpdateEnvironmentRequest.prototype.environment = null; - - /** - * UpdateEnvironmentRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * RunContinuousTestMetadata errors. + * @member {Array.} errors + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata * @instance */ - UpdateEnvironmentRequest.prototype.updateMask = null; + RunContinuousTestMetadata.prototype.errors = $util.emptyArray; /** - * Creates a new UpdateEnvironmentRequest instance using the specified properties. + * Creates a new RunContinuousTestMetadata instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestMetadata=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata} RunContinuousTestMetadata instance */ - UpdateEnvironmentRequest.create = function create(properties) { - return new UpdateEnvironmentRequest(properties); + RunContinuousTestMetadata.create = function create(properties) { + return new RunContinuousTestMetadata(properties); }; /** - * Encodes the specified UpdateEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest.verify|verify} messages. + * Encodes the specified RunContinuousTestMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest} message UpdateEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestMetadata} message RunContinuousTestMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateEnvironmentRequest.encode = function encode(message, writer) { + RunContinuousTestMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - $root.google.cloud.dialogflow.cx.v3beta1.Environment.encode(message.environment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.errors != null && message.errors.length) + for (var i = 0; i < message.errors.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.TestError.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest.verify|verify} messages. + * Encodes the specified RunContinuousTestMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest} message UpdateEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestMetadata} message RunContinuousTestMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + RunContinuousTestMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer. + * Decodes a RunContinuousTestMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata} RunContinuousTestMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateEnvironmentRequest.decode = function decode(reader, length) { + RunContinuousTestMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + if (!(message.errors && message.errors.length)) + message.errors = []; + message.errors.push($root.google.cloud.dialogflow.cx.v3beta1.TestError.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -92299,126 +91693,126 @@ }; /** - * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes a RunContinuousTestMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata} RunContinuousTestMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { + RunContinuousTestMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateEnvironmentRequest message. + * Verifies a RunContinuousTestMetadata message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateEnvironmentRequest.verify = function verify(message) { + RunContinuousTestMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.environment != null && message.hasOwnProperty("environment")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Environment.verify(message.environment); - if (error) - return "environment." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; + if (message.errors != null && message.hasOwnProperty("errors")) { + if (!Array.isArray(message.errors)) + return "errors: array expected"; + for (var i = 0; i < message.errors.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TestError.verify(message.errors[i]); + if (error) + return "errors." + error; + } } return null; }; /** - * Creates an UpdateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RunContinuousTestMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata} RunContinuousTestMetadata */ - UpdateEnvironmentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest) + RunContinuousTestMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest(); - if (object.environment != null) { - if (typeof object.environment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest.environment: object expected"); - message.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.fromObject(object.environment); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata(); + if (object.errors) { + if (!Array.isArray(object.errors)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata.errors: array expected"); + message.errors = []; + for (var i = 0; i < object.errors.length; ++i) { + if (typeof object.errors[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata.errors: object expected"); + message.errors[i] = $root.google.cloud.dialogflow.cx.v3beta1.TestError.fromObject(object.errors[i]); + } } return message; }; /** - * Creates a plain object from an UpdateEnvironmentRequest message. Also converts values to other types if specified. + * Creates a plain object from a RunContinuousTestMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest} message UpdateEnvironmentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata} message RunContinuousTestMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateEnvironmentRequest.toObject = function toObject(message, options) { + RunContinuousTestMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.environment = null; - object.updateMask = null; + if (options.arrays || options.defaults) + object.errors = []; + if (message.errors && message.errors.length) { + object.errors = []; + for (var j = 0; j < message.errors.length; ++j) + object.errors[j] = $root.google.cloud.dialogflow.cx.v3beta1.TestError.toObject(message.errors[j], options); } - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.toObject(message.environment, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this UpdateEnvironmentRequest to JSON. + * Converts this RunContinuousTestMetadata to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata * @instance * @returns {Object.} JSON object */ - UpdateEnvironmentRequest.prototype.toJSON = function toJSON() { + RunContinuousTestMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateEnvironmentRequest; + return RunContinuousTestMetadata; })(); - v3beta1.DeleteEnvironmentRequest = (function() { + v3beta1.ListContinuousTestResultsRequest = (function() { /** - * Properties of a DeleteEnvironmentRequest. + * Properties of a ListContinuousTestResultsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDeleteEnvironmentRequest - * @property {string|null} [name] DeleteEnvironmentRequest name + * @interface IListContinuousTestResultsRequest + * @property {string|null} [parent] ListContinuousTestResultsRequest parent + * @property {number|null} [pageSize] ListContinuousTestResultsRequest pageSize + * @property {string|null} [pageToken] ListContinuousTestResultsRequest pageToken */ /** - * Constructs a new DeleteEnvironmentRequest. + * Constructs a new ListContinuousTestResultsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DeleteEnvironmentRequest. - * @implements IDeleteEnvironmentRequest + * @classdesc Represents a ListContinuousTestResultsRequest. + * @implements IListContinuousTestResultsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest=} [properties] Properties to set */ - function DeleteEnvironmentRequest(properties) { + function ListContinuousTestResultsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -92426,75 +91820,101 @@ } /** - * DeleteEnvironmentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * ListContinuousTestResultsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest * @instance */ - DeleteEnvironmentRequest.prototype.name = ""; + ListContinuousTestResultsRequest.prototype.parent = ""; /** - * Creates a new DeleteEnvironmentRequest instance using the specified properties. + * ListContinuousTestResultsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest + * @instance + */ + ListContinuousTestResultsRequest.prototype.pageSize = 0; + + /** + * ListContinuousTestResultsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest + * @instance + */ + ListContinuousTestResultsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListContinuousTestResultsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest} ListContinuousTestResultsRequest instance */ - DeleteEnvironmentRequest.create = function create(properties) { - return new DeleteEnvironmentRequest(properties); + ListContinuousTestResultsRequest.create = function create(properties) { + return new ListContinuousTestResultsRequest(properties); }; /** - * Encodes the specified DeleteEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest.verify|verify} messages. + * Encodes the specified ListContinuousTestResultsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest} message DeleteEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest} message ListContinuousTestResultsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteEnvironmentRequest.encode = function encode(message, writer) { + ListContinuousTestResultsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified DeleteEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest.verify|verify} messages. + * Encodes the specified ListContinuousTestResultsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest} message DeleteEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest} message ListContinuousTestResultsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListContinuousTestResultsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer. + * Decodes a ListContinuousTestResultsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest} ListContinuousTestResultsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteEnvironmentRequest.decode = function decode(reader, length) { + ListContinuousTestResultsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); + break; + case 2: + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -92505,109 +91925,126 @@ }; /** - * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes a ListContinuousTestResultsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest} ListContinuousTestResultsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { + ListContinuousTestResultsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteEnvironmentRequest message. + * Verifies a ListContinuousTestResultsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteEnvironmentRequest.verify = function verify(message) { + ListContinuousTestResultsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a DeleteEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListContinuousTestResultsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest} ListContinuousTestResultsRequest */ - DeleteEnvironmentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest) + ListContinuousTestResultsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a DeleteEnvironmentRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListContinuousTestResultsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest} message DeleteEnvironmentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest} message ListContinuousTestResultsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteEnvironmentRequest.toObject = function toObject(message, options) { + ListContinuousTestResultsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this DeleteEnvironmentRequest to JSON. + * Converts this ListContinuousTestResultsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest * @instance * @returns {Object.} JSON object */ - DeleteEnvironmentRequest.prototype.toJSON = function toJSON() { + ListContinuousTestResultsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteEnvironmentRequest; + return ListContinuousTestResultsRequest; })(); - v3beta1.LookupEnvironmentHistoryRequest = (function() { + v3beta1.ListContinuousTestResultsResponse = (function() { /** - * Properties of a LookupEnvironmentHistoryRequest. + * Properties of a ListContinuousTestResultsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ILookupEnvironmentHistoryRequest - * @property {string|null} [name] LookupEnvironmentHistoryRequest name - * @property {number|null} [pageSize] LookupEnvironmentHistoryRequest pageSize - * @property {string|null} [pageToken] LookupEnvironmentHistoryRequest pageToken + * @interface IListContinuousTestResultsResponse + * @property {Array.|null} [continuousTestResults] ListContinuousTestResultsResponse continuousTestResults + * @property {string|null} [nextPageToken] ListContinuousTestResultsResponse nextPageToken */ /** - * Constructs a new LookupEnvironmentHistoryRequest. + * Constructs a new ListContinuousTestResultsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a LookupEnvironmentHistoryRequest. - * @implements ILookupEnvironmentHistoryRequest + * @classdesc Represents a ListContinuousTestResultsResponse. + * @implements IListContinuousTestResultsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsResponse=} [properties] Properties to set */ - function LookupEnvironmentHistoryRequest(properties) { + function ListContinuousTestResultsResponse(properties) { + this.continuousTestResults = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -92615,101 +92052,91 @@ } /** - * LookupEnvironmentHistoryRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest - * @instance - */ - LookupEnvironmentHistoryRequest.prototype.name = ""; - - /** - * LookupEnvironmentHistoryRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * ListContinuousTestResultsResponse continuousTestResults. + * @member {Array.} continuousTestResults + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse * @instance */ - LookupEnvironmentHistoryRequest.prototype.pageSize = 0; + ListContinuousTestResultsResponse.prototype.continuousTestResults = $util.emptyArray; /** - * LookupEnvironmentHistoryRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * ListContinuousTestResultsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse * @instance */ - LookupEnvironmentHistoryRequest.prototype.pageToken = ""; + ListContinuousTestResultsResponse.prototype.nextPageToken = ""; /** - * Creates a new LookupEnvironmentHistoryRequest instance using the specified properties. + * Creates a new ListContinuousTestResultsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse} ListContinuousTestResultsResponse instance */ - LookupEnvironmentHistoryRequest.create = function create(properties) { - return new LookupEnvironmentHistoryRequest(properties); + ListContinuousTestResultsResponse.create = function create(properties) { + return new ListContinuousTestResultsResponse(properties); }; /** - * Encodes the specified LookupEnvironmentHistoryRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest.verify|verify} messages. + * Encodes the specified ListContinuousTestResultsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest} message LookupEnvironmentHistoryRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsResponse} message ListContinuousTestResultsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LookupEnvironmentHistoryRequest.encode = function encode(message, writer) { + ListContinuousTestResultsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.continuousTestResults != null && message.continuousTestResults.length) + for (var i = 0; i < message.continuousTestResults.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.encode(message.continuousTestResults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified LookupEnvironmentHistoryRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest.verify|verify} messages. + * Encodes the specified ListContinuousTestResultsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest} message LookupEnvironmentHistoryRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsResponse} message ListContinuousTestResultsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LookupEnvironmentHistoryRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListContinuousTestResultsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LookupEnvironmentHistoryRequest message from the specified reader or buffer. + * Decodes a ListContinuousTestResultsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse} ListContinuousTestResultsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LookupEnvironmentHistoryRequest.decode = function decode(reader, length) { + ListContinuousTestResultsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.continuousTestResults && message.continuousTestResults.length)) + message.continuousTestResults = []; + message.continuousTestResults.push($root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.decode(reader, reader.uint32())); break; case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -92720,126 +92147,134 @@ }; /** - * Decodes a LookupEnvironmentHistoryRequest message from the specified reader or buffer, length delimited. + * Decodes a ListContinuousTestResultsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse} ListContinuousTestResultsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LookupEnvironmentHistoryRequest.decodeDelimited = function decodeDelimited(reader) { + ListContinuousTestResultsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LookupEnvironmentHistoryRequest message. + * Verifies a ListContinuousTestResultsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LookupEnvironmentHistoryRequest.verify = function verify(message) { + ListContinuousTestResultsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.continuousTestResults != null && message.hasOwnProperty("continuousTestResults")) { + if (!Array.isArray(message.continuousTestResults)) + return "continuousTestResults: array expected"; + for (var i = 0; i < message.continuousTestResults.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.verify(message.continuousTestResults[i]); + if (error) + return "continuousTestResults." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a LookupEnvironmentHistoryRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListContinuousTestResultsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse} ListContinuousTestResultsResponse */ - LookupEnvironmentHistoryRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest) + ListContinuousTestResultsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse(); + if (object.continuousTestResults) { + if (!Array.isArray(object.continuousTestResults)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse.continuousTestResults: array expected"); + message.continuousTestResults = []; + for (var i = 0; i < object.continuousTestResults.length; ++i) { + if (typeof object.continuousTestResults[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse.continuousTestResults: object expected"); + message.continuousTestResults[i] = $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.fromObject(object.continuousTestResults[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a LookupEnvironmentHistoryRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListContinuousTestResultsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest} message LookupEnvironmentHistoryRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse} message ListContinuousTestResultsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LookupEnvironmentHistoryRequest.toObject = function toObject(message, options) { + ListContinuousTestResultsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.pageSize = 0; - object.pageToken = ""; + if (options.arrays || options.defaults) + object.continuousTestResults = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.continuousTestResults && message.continuousTestResults.length) { + object.continuousTestResults = []; + for (var j = 0; j < message.continuousTestResults.length; ++j) + object.continuousTestResults[j] = $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.toObject(message.continuousTestResults[j], options); } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this LookupEnvironmentHistoryRequest to JSON. + * Converts this ListContinuousTestResultsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse * @instance * @returns {Object.} JSON object */ - LookupEnvironmentHistoryRequest.prototype.toJSON = function toJSON() { + ListContinuousTestResultsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return LookupEnvironmentHistoryRequest; + return ListContinuousTestResultsResponse; })(); - v3beta1.LookupEnvironmentHistoryResponse = (function() { + v3beta1.DeployFlowRequest = (function() { /** - * Properties of a LookupEnvironmentHistoryResponse. + * Properties of a DeployFlowRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ILookupEnvironmentHistoryResponse - * @property {Array.|null} [environments] LookupEnvironmentHistoryResponse environments - * @property {string|null} [nextPageToken] LookupEnvironmentHistoryResponse nextPageToken + * @interface IDeployFlowRequest + * @property {string|null} [environment] DeployFlowRequest environment + * @property {string|null} [flowVersion] DeployFlowRequest flowVersion */ /** - * Constructs a new LookupEnvironmentHistoryResponse. + * Constructs a new DeployFlowRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a LookupEnvironmentHistoryResponse. - * @implements ILookupEnvironmentHistoryResponse + * @classdesc Represents a DeployFlowRequest. + * @implements IDeployFlowRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest=} [properties] Properties to set */ - function LookupEnvironmentHistoryResponse(properties) { - this.environments = []; + function DeployFlowRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -92847,91 +92282,88 @@ } /** - * LookupEnvironmentHistoryResponse environments. - * @member {Array.} environments - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * DeployFlowRequest environment. + * @member {string} environment + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest * @instance */ - LookupEnvironmentHistoryResponse.prototype.environments = $util.emptyArray; + DeployFlowRequest.prototype.environment = ""; /** - * LookupEnvironmentHistoryResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * DeployFlowRequest flowVersion. + * @member {string} flowVersion + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest * @instance */ - LookupEnvironmentHistoryResponse.prototype.nextPageToken = ""; + DeployFlowRequest.prototype.flowVersion = ""; /** - * Creates a new LookupEnvironmentHistoryResponse instance using the specified properties. + * Creates a new DeployFlowRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest} DeployFlowRequest instance */ - LookupEnvironmentHistoryResponse.create = function create(properties) { - return new LookupEnvironmentHistoryResponse(properties); + DeployFlowRequest.create = function create(properties) { + return new DeployFlowRequest(properties); }; /** - * Encodes the specified LookupEnvironmentHistoryResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse.verify|verify} messages. + * Encodes the specified DeployFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse} message LookupEnvironmentHistoryResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest} message DeployFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LookupEnvironmentHistoryResponse.encode = function encode(message, writer) { + DeployFlowRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.environments != null && message.environments.length) - for (var i = 0; i < message.environments.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Environment.encode(message.environments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.environment); + if (message.flowVersion != null && Object.hasOwnProperty.call(message, "flowVersion")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.flowVersion); return writer; }; /** - * Encodes the specified LookupEnvironmentHistoryResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse.verify|verify} messages. + * Encodes the specified DeployFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse} message LookupEnvironmentHistoryResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest} message DeployFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LookupEnvironmentHistoryResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeployFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LookupEnvironmentHistoryResponse message from the specified reader or buffer. + * Decodes a DeployFlowRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest} DeployFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LookupEnvironmentHistoryResponse.decode = function decode(reader, length) { + DeployFlowRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.environments && message.environments.length)) - message.environments = []; - message.environments.push($root.google.cloud.dialogflow.cx.v3beta1.Environment.decode(reader, reader.uint32())); + message.environment = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + message.flowVersion = reader.string(); break; default: reader.skipType(tag & 7); @@ -92942,137 +92374,117 @@ }; /** - * Decodes a LookupEnvironmentHistoryResponse message from the specified reader or buffer, length delimited. + * Decodes a DeployFlowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest} DeployFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LookupEnvironmentHistoryResponse.decodeDelimited = function decodeDelimited(reader) { + DeployFlowRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LookupEnvironmentHistoryResponse message. + * Verifies a DeployFlowRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LookupEnvironmentHistoryResponse.verify = function verify(message) { + DeployFlowRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.environments != null && message.hasOwnProperty("environments")) { - if (!Array.isArray(message.environments)) - return "environments: array expected"; - for (var i = 0; i < message.environments.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Environment.verify(message.environments[i]); - if (error) - return "environments." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.environment != null && message.hasOwnProperty("environment")) + if (!$util.isString(message.environment)) + return "environment: string expected"; + if (message.flowVersion != null && message.hasOwnProperty("flowVersion")) + if (!$util.isString(message.flowVersion)) + return "flowVersion: string expected"; return null; }; /** - * Creates a LookupEnvironmentHistoryResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeployFlowRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest} DeployFlowRequest */ - LookupEnvironmentHistoryResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse) + DeployFlowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse(); - if (object.environments) { - if (!Array.isArray(object.environments)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse.environments: array expected"); - message.environments = []; - for (var i = 0; i < object.environments.length; ++i) { - if (typeof object.environments[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse.environments: object expected"); - message.environments[i] = $root.google.cloud.dialogflow.cx.v3beta1.Environment.fromObject(object.environments[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest(); + if (object.environment != null) + message.environment = String(object.environment); + if (object.flowVersion != null) + message.flowVersion = String(object.flowVersion); return message; }; /** - * Creates a plain object from a LookupEnvironmentHistoryResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeployFlowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse} message LookupEnvironmentHistoryResponse + * @param {google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest} message DeployFlowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LookupEnvironmentHistoryResponse.toObject = function toObject(message, options) { + DeployFlowRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.environments = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.environments && message.environments.length) { - object.environments = []; - for (var j = 0; j < message.environments.length; ++j) - object.environments[j] = $root.google.cloud.dialogflow.cx.v3beta1.Environment.toObject(message.environments[j], options); + if (options.defaults) { + object.environment = ""; + object.flowVersion = ""; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = message.environment; + if (message.flowVersion != null && message.hasOwnProperty("flowVersion")) + object.flowVersion = message.flowVersion; return object; }; /** - * Converts this LookupEnvironmentHistoryResponse to JSON. + * Converts this DeployFlowRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest * @instance * @returns {Object.} JSON object */ - LookupEnvironmentHistoryResponse.prototype.toJSON = function toJSON() { + DeployFlowRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return LookupEnvironmentHistoryResponse; + return DeployFlowRequest; })(); - v3beta1.ContinuousTestResult = (function() { + v3beta1.DeployFlowResponse = (function() { /** - * Properties of a ContinuousTestResult. + * Properties of a DeployFlowResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IContinuousTestResult - * @property {string|null} [name] ContinuousTestResult name - * @property {google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult|null} [result] ContinuousTestResult result - * @property {Array.|null} [testCaseResults] ContinuousTestResult testCaseResults - * @property {google.protobuf.ITimestamp|null} [runTime] ContinuousTestResult runTime + * @interface IDeployFlowResponse + * @property {google.cloud.dialogflow.cx.v3beta1.IEnvironment|null} [environment] DeployFlowResponse environment + * @property {string|null} [deployment] DeployFlowResponse deployment */ /** - * Constructs a new ContinuousTestResult. + * Constructs a new DeployFlowResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ContinuousTestResult. - * @implements IContinuousTestResult + * @classdesc Represents a DeployFlowResponse. + * @implements IDeployFlowResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowResponse=} [properties] Properties to set */ - function ContinuousTestResult(properties) { - this.testCaseResults = []; + function DeployFlowResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -93080,117 +92492,88 @@ } /** - * ContinuousTestResult name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult - * @instance - */ - ContinuousTestResult.prototype.name = ""; - - /** - * ContinuousTestResult result. - * @member {google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult} result - * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult - * @instance - */ - ContinuousTestResult.prototype.result = 0; - - /** - * ContinuousTestResult testCaseResults. - * @member {Array.} testCaseResults - * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * DeployFlowResponse environment. + * @member {google.cloud.dialogflow.cx.v3beta1.IEnvironment|null|undefined} environment + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse * @instance */ - ContinuousTestResult.prototype.testCaseResults = $util.emptyArray; + DeployFlowResponse.prototype.environment = null; /** - * ContinuousTestResult runTime. - * @member {google.protobuf.ITimestamp|null|undefined} runTime - * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * DeployFlowResponse deployment. + * @member {string} deployment + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse * @instance */ - ContinuousTestResult.prototype.runTime = null; + DeployFlowResponse.prototype.deployment = ""; /** - * Creates a new ContinuousTestResult instance using the specified properties. + * Creates a new DeployFlowResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult} ContinuousTestResult instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse} DeployFlowResponse instance */ - ContinuousTestResult.create = function create(properties) { - return new ContinuousTestResult(properties); + DeployFlowResponse.create = function create(properties) { + return new DeployFlowResponse(properties); }; /** - * Encodes the specified ContinuousTestResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.verify|verify} messages. + * Encodes the specified DeployFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult} message ContinuousTestResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowResponse} message DeployFlowResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ContinuousTestResult.encode = function encode(message, writer) { + DeployFlowResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.result); - if (message.testCaseResults != null && message.testCaseResults.length) - for (var i = 0; i < message.testCaseResults.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.testCaseResults[i]); - if (message.runTime != null && Object.hasOwnProperty.call(message, "runTime")) - $root.google.protobuf.Timestamp.encode(message.runTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + $root.google.cloud.dialogflow.cx.v3beta1.Environment.encode(message.environment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.deployment != null && Object.hasOwnProperty.call(message, "deployment")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployment); return writer; }; /** - * Encodes the specified ContinuousTestResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.verify|verify} messages. + * Encodes the specified DeployFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult} message ContinuousTestResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowResponse} message DeployFlowResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ContinuousTestResult.encodeDelimited = function encodeDelimited(message, writer) { + DeployFlowResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ContinuousTestResult message from the specified reader or buffer. + * Decodes a DeployFlowResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult} ContinuousTestResult + * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse} DeployFlowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ContinuousTestResult.decode = function decode(reader, length) { + DeployFlowResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.decode(reader, reader.uint32()); break; case 2: - message.result = reader.int32(); - break; - case 3: - if (!(message.testCaseResults && message.testCaseResults.length)) - message.testCaseResults = []; - message.testCaseResults.push(reader.string()); - break; - case 4: - message.runTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.deployment = reader.string(); break; default: reader.skipType(tag & 7); @@ -93201,184 +92584,122 @@ }; /** - * Decodes a ContinuousTestResult message from the specified reader or buffer, length delimited. + * Decodes a DeployFlowResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult} ContinuousTestResult + * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse} DeployFlowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ContinuousTestResult.decodeDelimited = function decodeDelimited(reader) { + DeployFlowResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ContinuousTestResult message. + * Verifies a DeployFlowResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ContinuousTestResult.verify = function verify(message) { + DeployFlowResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.result != null && message.hasOwnProperty("result")) - switch (message.result) { - default: - return "result: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.testCaseResults != null && message.hasOwnProperty("testCaseResults")) { - if (!Array.isArray(message.testCaseResults)) - return "testCaseResults: array expected"; - for (var i = 0; i < message.testCaseResults.length; ++i) - if (!$util.isString(message.testCaseResults[i])) - return "testCaseResults: string[] expected"; - } - if (message.runTime != null && message.hasOwnProperty("runTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.runTime); + if (message.environment != null && message.hasOwnProperty("environment")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Environment.verify(message.environment); if (error) - return "runTime." + error; + return "environment." + error; } + if (message.deployment != null && message.hasOwnProperty("deployment")) + if (!$util.isString(message.deployment)) + return "deployment: string expected"; return null; }; /** - * Creates a ContinuousTestResult message from a plain object. Also converts values to their respective internal types. + * Creates a DeployFlowResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult} ContinuousTestResult + * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse} DeployFlowResponse */ - ContinuousTestResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult) + DeployFlowResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult(); - if (object.name != null) - message.name = String(object.name); - switch (object.result) { - case "AGGREGATED_TEST_RESULT_UNSPECIFIED": - case 0: - message.result = 0; - break; - case "PASSED": - case 1: - message.result = 1; - break; - case "FAILED": - case 2: - message.result = 2; - break; - } - if (object.testCaseResults) { - if (!Array.isArray(object.testCaseResults)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.testCaseResults: array expected"); - message.testCaseResults = []; - for (var i = 0; i < object.testCaseResults.length; ++i) - message.testCaseResults[i] = String(object.testCaseResults[i]); - } - if (object.runTime != null) { - if (typeof object.runTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.runTime: object expected"); - message.runTime = $root.google.protobuf.Timestamp.fromObject(object.runTime); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse(); + if (object.environment != null) { + if (typeof object.environment !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse.environment: object expected"); + message.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.fromObject(object.environment); } + if (object.deployment != null) + message.deployment = String(object.deployment); return message; }; /** - * Creates a plain object from a ContinuousTestResult message. Also converts values to other types if specified. + * Creates a plain object from a DeployFlowResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult} message ContinuousTestResult + * @param {google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse} message DeployFlowResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ContinuousTestResult.toObject = function toObject(message, options) { + DeployFlowResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.testCaseResults = []; if (options.defaults) { - object.name = ""; - object.result = options.enums === String ? "AGGREGATED_TEST_RESULT_UNSPECIFIED" : 0; - object.runTime = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.result != null && message.hasOwnProperty("result")) - object.result = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult[message.result] : message.result; - if (message.testCaseResults && message.testCaseResults.length) { - object.testCaseResults = []; - for (var j = 0; j < message.testCaseResults.length; ++j) - object.testCaseResults[j] = message.testCaseResults[j]; + object.environment = null; + object.deployment = ""; } - if (message.runTime != null && message.hasOwnProperty("runTime")) - object.runTime = $root.google.protobuf.Timestamp.toObject(message.runTime, options); + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.toObject(message.environment, options); + if (message.deployment != null && message.hasOwnProperty("deployment")) + object.deployment = message.deployment; return object; }; /** - * Converts this ContinuousTestResult to JSON. + * Converts this DeployFlowResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse * @instance * @returns {Object.} JSON object */ - ContinuousTestResult.prototype.toJSON = function toJSON() { + DeployFlowResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * AggregatedTestResult enum. - * @name google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult - * @enum {number} - * @property {number} AGGREGATED_TEST_RESULT_UNSPECIFIED=0 AGGREGATED_TEST_RESULT_UNSPECIFIED value - * @property {number} PASSED=1 PASSED value - * @property {number} FAILED=2 FAILED value - */ - ContinuousTestResult.AggregatedTestResult = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "AGGREGATED_TEST_RESULT_UNSPECIFIED"] = 0; - values[valuesById[1] = "PASSED"] = 1; - values[valuesById[2] = "FAILED"] = 2; - return values; - })(); - - return ContinuousTestResult; + return DeployFlowResponse; })(); - v3beta1.RunContinuousTestRequest = (function() { + v3beta1.DeployFlowMetadata = (function() { /** - * Properties of a RunContinuousTestRequest. + * Properties of a DeployFlowMetadata. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IRunContinuousTestRequest - * @property {string|null} [environment] RunContinuousTestRequest environment + * @interface IDeployFlowMetadata + * @property {Array.|null} [testErrors] DeployFlowMetadata testErrors */ /** - * Constructs a new RunContinuousTestRequest. + * Constructs a new DeployFlowMetadata. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a RunContinuousTestRequest. - * @implements IRunContinuousTestRequest + * @classdesc Represents a DeployFlowMetadata. + * @implements IDeployFlowMetadata * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowMetadata=} [properties] Properties to set */ - function RunContinuousTestRequest(properties) { + function DeployFlowMetadata(properties) { + this.testErrors = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -93386,75 +92707,78 @@ } /** - * RunContinuousTestRequest environment. - * @member {string} environment - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest + * DeployFlowMetadata testErrors. + * @member {Array.} testErrors + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata * @instance */ - RunContinuousTestRequest.prototype.environment = ""; + DeployFlowMetadata.prototype.testErrors = $util.emptyArray; /** - * Creates a new RunContinuousTestRequest instance using the specified properties. + * Creates a new DeployFlowMetadata instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest} RunContinuousTestRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowMetadata=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata} DeployFlowMetadata instance */ - RunContinuousTestRequest.create = function create(properties) { - return new RunContinuousTestRequest(properties); + DeployFlowMetadata.create = function create(properties) { + return new DeployFlowMetadata(properties); }; /** - * Encodes the specified RunContinuousTestRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest.verify|verify} messages. + * Encodes the specified DeployFlowMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest} message RunContinuousTestRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowMetadata} message DeployFlowMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunContinuousTestRequest.encode = function encode(message, writer) { + DeployFlowMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.environment); + if (message.testErrors != null && message.testErrors.length) + for (var i = 0; i < message.testErrors.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.TestError.encode(message.testErrors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified RunContinuousTestRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest.verify|verify} messages. + * Encodes the specified DeployFlowMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest} message RunContinuousTestRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowMetadata} message DeployFlowMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunContinuousTestRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeployFlowMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RunContinuousTestRequest message from the specified reader or buffer. + * Decodes a DeployFlowMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest} RunContinuousTestRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata} DeployFlowMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunContinuousTestRequest.decode = function decode(reader, length) { + DeployFlowMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.environment = reader.string(); + if (!(message.testErrors && message.testErrors.length)) + message.testErrors = []; + message.testErrors.push($root.google.cloud.dialogflow.cx.v3beta1.TestError.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -93465,107 +92789,564 @@ }; /** - * Decodes a RunContinuousTestRequest message from the specified reader or buffer, length delimited. + * Decodes a DeployFlowMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest} RunContinuousTestRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata} DeployFlowMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunContinuousTestRequest.decodeDelimited = function decodeDelimited(reader) { + DeployFlowMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RunContinuousTestRequest message. + * Verifies a DeployFlowMetadata message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RunContinuousTestRequest.verify = function verify(message) { + DeployFlowMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.environment != null && message.hasOwnProperty("environment")) - if (!$util.isString(message.environment)) - return "environment: string expected"; + if (message.testErrors != null && message.hasOwnProperty("testErrors")) { + if (!Array.isArray(message.testErrors)) + return "testErrors: array expected"; + for (var i = 0; i < message.testErrors.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TestError.verify(message.testErrors[i]); + if (error) + return "testErrors." + error; + } + } return null; }; /** - * Creates a RunContinuousTestRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeployFlowMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest} RunContinuousTestRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata} DeployFlowMetadata */ - RunContinuousTestRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest) + DeployFlowMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest(); - if (object.environment != null) - message.environment = String(object.environment); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata(); + if (object.testErrors) { + if (!Array.isArray(object.testErrors)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata.testErrors: array expected"); + message.testErrors = []; + for (var i = 0; i < object.testErrors.length; ++i) { + if (typeof object.testErrors[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata.testErrors: object expected"); + message.testErrors[i] = $root.google.cloud.dialogflow.cx.v3beta1.TestError.fromObject(object.testErrors[i]); + } + } return message; }; /** - * Creates a plain object from a RunContinuousTestRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeployFlowMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest} message RunContinuousTestRequest + * @param {google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata} message DeployFlowMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RunContinuousTestRequest.toObject = function toObject(message, options) { + DeployFlowMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.environment = ""; - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = message.environment; + if (options.arrays || options.defaults) + object.testErrors = []; + if (message.testErrors && message.testErrors.length) { + object.testErrors = []; + for (var j = 0; j < message.testErrors.length; ++j) + object.testErrors[j] = $root.google.cloud.dialogflow.cx.v3beta1.TestError.toObject(message.testErrors[j], options); + } return object; }; /** - * Converts this RunContinuousTestRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest + * Converts this DeployFlowMetadata to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata + * @instance + * @returns {Object.} JSON object + */ + DeployFlowMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeployFlowMetadata; + })(); + + v3beta1.TestCases = (function() { + + /** + * Constructs a new TestCases service. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a TestCases + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function TestCases(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (TestCases.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = TestCases; + + /** + * Creates new TestCases service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {TestCases} RPC service. Useful where requests and/or responses are streamed. + */ + TestCases.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#listTestCases}. + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @typedef ListTestCasesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse} [response] ListTestCasesResponse + */ + + /** + * Calls ListTestCases. + * @function listTestCases + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest} request ListTestCasesRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.ListTestCasesCallback} callback Node-style callback called with the error, if any, and ListTestCasesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(TestCases.prototype.listTestCases = function listTestCases(request, callback) { + return this.rpcCall(listTestCases, $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse, request, callback); + }, "name", { value: "ListTestCases" }); + + /** + * Calls ListTestCases. + * @function listTestCases + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest} request ListTestCasesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#batchDeleteTestCases}. + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @typedef BatchDeleteTestCasesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls BatchDeleteTestCases. + * @function batchDeleteTestCases + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest} request BatchDeleteTestCasesRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.BatchDeleteTestCasesCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(TestCases.prototype.batchDeleteTestCases = function batchDeleteTestCases(request, callback) { + return this.rpcCall(batchDeleteTestCases, $root.google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "BatchDeleteTestCases" }); + + /** + * Calls BatchDeleteTestCases. + * @function batchDeleteTestCases + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest} request BatchDeleteTestCasesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#getTestCase}. + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @typedef GetTestCaseCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.TestCase} [response] TestCase + */ + + /** + * Calls GetTestCase. + * @function getTestCase + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest} request GetTestCaseRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.GetTestCaseCallback} callback Node-style callback called with the error, if any, and TestCase + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(TestCases.prototype.getTestCase = function getTestCase(request, callback) { + return this.rpcCall(getTestCase, $root.google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest, $root.google.cloud.dialogflow.cx.v3beta1.TestCase, request, callback); + }, "name", { value: "GetTestCase" }); + + /** + * Calls GetTestCase. + * @function getTestCase + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest} request GetTestCaseRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#createTestCase}. + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @typedef CreateTestCaseCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.TestCase} [response] TestCase + */ + + /** + * Calls CreateTestCase. + * @function createTestCase + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest} request CreateTestCaseRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.CreateTestCaseCallback} callback Node-style callback called with the error, if any, and TestCase + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(TestCases.prototype.createTestCase = function createTestCase(request, callback) { + return this.rpcCall(createTestCase, $root.google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest, $root.google.cloud.dialogflow.cx.v3beta1.TestCase, request, callback); + }, "name", { value: "CreateTestCase" }); + + /** + * Calls CreateTestCase. + * @function createTestCase + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest} request CreateTestCaseRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#updateTestCase}. + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @typedef UpdateTestCaseCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.TestCase} [response] TestCase + */ + + /** + * Calls UpdateTestCase. + * @function updateTestCase + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest} request UpdateTestCaseRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.UpdateTestCaseCallback} callback Node-style callback called with the error, if any, and TestCase + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(TestCases.prototype.updateTestCase = function updateTestCase(request, callback) { + return this.rpcCall(updateTestCase, $root.google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest, $root.google.cloud.dialogflow.cx.v3beta1.TestCase, request, callback); + }, "name", { value: "UpdateTestCase" }); + + /** + * Calls UpdateTestCase. + * @function updateTestCase + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest} request UpdateTestCaseRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#runTestCase}. + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @typedef RunTestCaseCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls RunTestCase. + * @function runTestCase + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest} request RunTestCaseRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.RunTestCaseCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(TestCases.prototype.runTestCase = function runTestCase(request, callback) { + return this.rpcCall(runTestCase, $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "RunTestCase" }); + + /** + * Calls RunTestCase. + * @function runTestCase + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest} request RunTestCaseRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#batchRunTestCases}. + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @typedef BatchRunTestCasesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls BatchRunTestCases. + * @function batchRunTestCases + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest} request BatchRunTestCasesRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.BatchRunTestCasesCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(TestCases.prototype.batchRunTestCases = function batchRunTestCases(request, callback) { + return this.rpcCall(batchRunTestCases, $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "BatchRunTestCases" }); + + /** + * Calls BatchRunTestCases. + * @function batchRunTestCases + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest} request BatchRunTestCasesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#calculateCoverage}. + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @typedef CalculateCoverageCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse} [response] CalculateCoverageResponse + */ + + /** + * Calls CalculateCoverage. + * @function calculateCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest} request CalculateCoverageRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.CalculateCoverageCallback} callback Node-style callback called with the error, if any, and CalculateCoverageResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(TestCases.prototype.calculateCoverage = function calculateCoverage(request, callback) { + return this.rpcCall(calculateCoverage, $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest, $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse, request, callback); + }, "name", { value: "CalculateCoverage" }); + + /** + * Calls CalculateCoverage. + * @function calculateCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest} request CalculateCoverageRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#importTestCases}. + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @typedef ImportTestCasesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls ImportTestCases. + * @function importTestCases + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest} request ImportTestCasesRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.ImportTestCasesCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(TestCases.prototype.importTestCases = function importTestCases(request, callback) { + return this.rpcCall(importTestCases, $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "ImportTestCases" }); + + /** + * Calls ImportTestCases. + * @function importTestCases + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest} request ImportTestCasesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#exportTestCases}. + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @typedef ExportTestCasesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls ExportTestCases. + * @function exportTestCases + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest} request ExportTestCasesRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.ExportTestCasesCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(TestCases.prototype.exportTestCases = function exportTestCases(request, callback) { + return this.rpcCall(exportTestCases, $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "ExportTestCases" }); + + /** + * Calls ExportTestCases. + * @function exportTestCases + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest} request ExportTestCasesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#listTestCaseResults}. + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @typedef ListTestCaseResultsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse} [response] ListTestCaseResultsResponse + */ + + /** + * Calls ListTestCaseResults. + * @function listTestCaseResults + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest} request ListTestCaseResultsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.ListTestCaseResultsCallback} callback Node-style callback called with the error, if any, and ListTestCaseResultsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(TestCases.prototype.listTestCaseResults = function listTestCaseResults(request, callback) { + return this.rpcCall(listTestCaseResults, $root.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse, request, callback); + }, "name", { value: "ListTestCaseResults" }); + + /** + * Calls ListTestCaseResults. + * @function listTestCaseResults + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest} request ListTestCaseResultsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#getTestCaseResult}. + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @typedef GetTestCaseResultCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.TestCaseResult} [response] TestCaseResult + */ + + /** + * Calls GetTestCaseResult. + * @function getTestCaseResult + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest} request GetTestCaseResultRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.GetTestCaseResultCallback} callback Node-style callback called with the error, if any, and TestCaseResult + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(TestCases.prototype.getTestCaseResult = function getTestCaseResult(request, callback) { + return this.rpcCall(getTestCaseResult, $root.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest, $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult, request, callback); + }, "name", { value: "GetTestCaseResult" }); + + /** + * Calls GetTestCaseResult. + * @function getTestCaseResult + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases * @instance - * @returns {Object.} JSON object + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest} request GetTestCaseResultRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - RunContinuousTestRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - return RunContinuousTestRequest; + return TestCases; })(); - v3beta1.RunContinuousTestResponse = (function() { + v3beta1.TestCase = (function() { /** - * Properties of a RunContinuousTestResponse. + * Properties of a TestCase. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IRunContinuousTestResponse - * @property {google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult|null} [continuousTestResult] RunContinuousTestResponse continuousTestResult + * @interface ITestCase + * @property {string|null} [name] TestCase name + * @property {Array.|null} [tags] TestCase tags + * @property {string|null} [displayName] TestCase displayName + * @property {string|null} [notes] TestCase notes + * @property {google.cloud.dialogflow.cx.v3beta1.ITestConfig|null} [testConfig] TestCase testConfig + * @property {Array.|null} [testCaseConversationTurns] TestCase testCaseConversationTurns + * @property {google.protobuf.ITimestamp|null} [creationTime] TestCase creationTime + * @property {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null} [lastTestResult] TestCase lastTestResult */ /** - * Constructs a new RunContinuousTestResponse. + * Constructs a new TestCase. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a RunContinuousTestResponse. - * @implements IRunContinuousTestResponse + * @classdesc Represents a TestCase. + * @implements ITestCase * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ITestCase=} [properties] Properties to set */ - function RunContinuousTestResponse(properties) { + function TestCase(properties) { + this.tags = []; + this.testCaseConversationTurns = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -93573,271 +93354,172 @@ } /** - * RunContinuousTestResponse continuousTestResult. - * @member {google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult|null|undefined} continuousTestResult - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse + * TestCase name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase * @instance */ - RunContinuousTestResponse.prototype.continuousTestResult = null; - - /** - * Creates a new RunContinuousTestResponse instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse} RunContinuousTestResponse instance - */ - RunContinuousTestResponse.create = function create(properties) { - return new RunContinuousTestResponse(properties); - }; - - /** - * Encodes the specified RunContinuousTestResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestResponse} message RunContinuousTestResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RunContinuousTestResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.continuousTestResult != null && Object.hasOwnProperty.call(message, "continuousTestResult")) - $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.encode(message.continuousTestResult, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified RunContinuousTestResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestResponse} message RunContinuousTestResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RunContinuousTestResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RunContinuousTestResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse} RunContinuousTestResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RunContinuousTestResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.continuousTestResult = $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RunContinuousTestResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse} RunContinuousTestResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RunContinuousTestResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + TestCase.prototype.name = ""; /** - * Verifies a RunContinuousTestResponse message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * TestCase tags. + * @member {Array.} tags + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase + * @instance */ - RunContinuousTestResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.continuousTestResult != null && message.hasOwnProperty("continuousTestResult")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.verify(message.continuousTestResult); - if (error) - return "continuousTestResult." + error; - } - return null; - }; + TestCase.prototype.tags = $util.emptyArray; /** - * Creates a RunContinuousTestResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse} RunContinuousTestResponse + * TestCase displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase + * @instance */ - RunContinuousTestResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse(); - if (object.continuousTestResult != null) { - if (typeof object.continuousTestResult !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse.continuousTestResult: object expected"); - message.continuousTestResult = $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.fromObject(object.continuousTestResult); - } - return message; - }; + TestCase.prototype.displayName = ""; /** - * Creates a plain object from a RunContinuousTestResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse} message RunContinuousTestResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * TestCase notes. + * @member {string} notes + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase + * @instance */ - RunContinuousTestResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.continuousTestResult = null; - if (message.continuousTestResult != null && message.hasOwnProperty("continuousTestResult")) - object.continuousTestResult = $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.toObject(message.continuousTestResult, options); - return object; - }; + TestCase.prototype.notes = ""; /** - * Converts this RunContinuousTestResponse to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse + * TestCase testConfig. + * @member {google.cloud.dialogflow.cx.v3beta1.ITestConfig|null|undefined} testConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase * @instance - * @returns {Object.} JSON object */ - RunContinuousTestResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return RunContinuousTestResponse; - })(); - - v3beta1.RunContinuousTestMetadata = (function() { + TestCase.prototype.testConfig = null; /** - * Properties of a RunContinuousTestMetadata. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IRunContinuousTestMetadata - * @property {Array.|null} [errors] RunContinuousTestMetadata errors + * TestCase testCaseConversationTurns. + * @member {Array.} testCaseConversationTurns + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase + * @instance */ + TestCase.prototype.testCaseConversationTurns = $util.emptyArray; /** - * Constructs a new RunContinuousTestMetadata. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a RunContinuousTestMetadata. - * @implements IRunContinuousTestMetadata - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestMetadata=} [properties] Properties to set + * TestCase creationTime. + * @member {google.protobuf.ITimestamp|null|undefined} creationTime + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase + * @instance */ - function RunContinuousTestMetadata(properties) { - this.errors = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + TestCase.prototype.creationTime = null; /** - * RunContinuousTestMetadata errors. - * @member {Array.} errors - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata + * TestCase lastTestResult. + * @member {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null|undefined} lastTestResult + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase * @instance */ - RunContinuousTestMetadata.prototype.errors = $util.emptyArray; + TestCase.prototype.lastTestResult = null; /** - * Creates a new RunContinuousTestMetadata instance using the specified properties. + * Creates a new TestCase instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestMetadata=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata} RunContinuousTestMetadata instance + * @param {google.cloud.dialogflow.cx.v3beta1.ITestCase=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TestCase} TestCase instance */ - RunContinuousTestMetadata.create = function create(properties) { - return new RunContinuousTestMetadata(properties); + TestCase.create = function create(properties) { + return new TestCase(properties); }; /** - * Encodes the specified RunContinuousTestMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata.verify|verify} messages. + * Encodes the specified TestCase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCase.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestMetadata} message RunContinuousTestMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITestCase} message TestCase message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunContinuousTestMetadata.encode = function encode(message, writer) { + TestCase.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.errors != null && message.errors.length) - for (var i = 0; i < message.errors.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.TestError.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.tags != null && message.tags.length) + for (var i = 0; i < message.tags.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.tags[i]); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); + if (message.notes != null && Object.hasOwnProperty.call(message, "notes")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.notes); + if (message.testCaseConversationTurns != null && message.testCaseConversationTurns.length) + for (var i = 0; i < message.testCaseConversationTurns.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.encode(message.testCaseConversationTurns[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.creationTime != null && Object.hasOwnProperty.call(message, "creationTime")) + $root.google.protobuf.Timestamp.encode(message.creationTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.lastTestResult != null && Object.hasOwnProperty.call(message, "lastTestResult")) + $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.encode(message.lastTestResult, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.testConfig != null && Object.hasOwnProperty.call(message, "testConfig")) + $root.google.cloud.dialogflow.cx.v3beta1.TestConfig.encode(message.testConfig, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); return writer; }; /** - * Encodes the specified RunContinuousTestMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata.verify|verify} messages. + * Encodes the specified TestCase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCase.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestMetadata} message RunContinuousTestMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITestCase} message TestCase message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunContinuousTestMetadata.encodeDelimited = function encodeDelimited(message, writer) { + TestCase.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RunContinuousTestMetadata message from the specified reader or buffer. + * Decodes a TestCase message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata} RunContinuousTestMetadata + * @returns {google.cloud.dialogflow.cx.v3beta1.TestCase} TestCase * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunContinuousTestMetadata.decode = function decode(reader, length) { + TestCase.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TestCase(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.errors && message.errors.length)) - message.errors = []; - message.errors.push($root.google.cloud.dialogflow.cx.v3beta1.TestError.decode(reader, reader.uint32())); + message.name = reader.string(); + break; + case 2: + if (!(message.tags && message.tags.length)) + message.tags = []; + message.tags.push(reader.string()); + break; + case 3: + message.displayName = reader.string(); + break; + case 4: + message.notes = reader.string(); + break; + case 13: + message.testConfig = $root.google.cloud.dialogflow.cx.v3beta1.TestConfig.decode(reader, reader.uint32()); + break; + case 5: + if (!(message.testCaseConversationTurns && message.testCaseConversationTurns.length)) + message.testCaseConversationTurns = []; + message.testCaseConversationTurns.push($root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.decode(reader, reader.uint32())); + break; + case 10: + message.creationTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 12: + message.lastTestResult = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -93848,126 +93530,215 @@ }; /** - * Decodes a RunContinuousTestMetadata message from the specified reader or buffer, length delimited. + * Decodes a TestCase message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata} RunContinuousTestMetadata + * @returns {google.cloud.dialogflow.cx.v3beta1.TestCase} TestCase * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunContinuousTestMetadata.decodeDelimited = function decodeDelimited(reader) { + TestCase.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RunContinuousTestMetadata message. + * Verifies a TestCase message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RunContinuousTestMetadata.verify = function verify(message) { + TestCase.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.errors != null && message.hasOwnProperty("errors")) { - if (!Array.isArray(message.errors)) - return "errors: array expected"; - for (var i = 0; i < message.errors.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TestError.verify(message.errors[i]); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!Array.isArray(message.tags)) + return "tags: array expected"; + for (var i = 0; i < message.tags.length; ++i) + if (!$util.isString(message.tags[i])) + return "tags: string[] expected"; + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.notes != null && message.hasOwnProperty("notes")) + if (!$util.isString(message.notes)) + return "notes: string expected"; + if (message.testConfig != null && message.hasOwnProperty("testConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TestConfig.verify(message.testConfig); + if (error) + return "testConfig." + error; + } + if (message.testCaseConversationTurns != null && message.hasOwnProperty("testCaseConversationTurns")) { + if (!Array.isArray(message.testCaseConversationTurns)) + return "testCaseConversationTurns: array expected"; + for (var i = 0; i < message.testCaseConversationTurns.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.verify(message.testCaseConversationTurns[i]); if (error) - return "errors." + error; + return "testCaseConversationTurns." + error; } } + if (message.creationTime != null && message.hasOwnProperty("creationTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.creationTime); + if (error) + return "creationTime." + error; + } + if (message.lastTestResult != null && message.hasOwnProperty("lastTestResult")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.verify(message.lastTestResult); + if (error) + return "lastTestResult." + error; + } return null; }; /** - * Creates a RunContinuousTestMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a TestCase message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata} RunContinuousTestMetadata + * @returns {google.cloud.dialogflow.cx.v3beta1.TestCase} TestCase */ - RunContinuousTestMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata) + TestCase.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TestCase) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata(); - if (object.errors) { - if (!Array.isArray(object.errors)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata.errors: array expected"); - message.errors = []; - for (var i = 0; i < object.errors.length; ++i) { - if (typeof object.errors[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata.errors: object expected"); - message.errors[i] = $root.google.cloud.dialogflow.cx.v3beta1.TestError.fromObject(object.errors[i]); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TestCase(); + if (object.name != null) + message.name = String(object.name); + if (object.tags) { + if (!Array.isArray(object.tags)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCase.tags: array expected"); + message.tags = []; + for (var i = 0; i < object.tags.length; ++i) + message.tags[i] = String(object.tags[i]); + } + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.notes != null) + message.notes = String(object.notes); + if (object.testConfig != null) { + if (typeof object.testConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCase.testConfig: object expected"); + message.testConfig = $root.google.cloud.dialogflow.cx.v3beta1.TestConfig.fromObject(object.testConfig); + } + if (object.testCaseConversationTurns) { + if (!Array.isArray(object.testCaseConversationTurns)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCase.testCaseConversationTurns: array expected"); + message.testCaseConversationTurns = []; + for (var i = 0; i < object.testCaseConversationTurns.length; ++i) { + if (typeof object.testCaseConversationTurns[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCase.testCaseConversationTurns: object expected"); + message.testCaseConversationTurns[i] = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.fromObject(object.testCaseConversationTurns[i]); } } + if (object.creationTime != null) { + if (typeof object.creationTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCase.creationTime: object expected"); + message.creationTime = $root.google.protobuf.Timestamp.fromObject(object.creationTime); + } + if (object.lastTestResult != null) { + if (typeof object.lastTestResult !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCase.lastTestResult: object expected"); + message.lastTestResult = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.fromObject(object.lastTestResult); + } return message; }; /** - * Creates a plain object from a RunContinuousTestMetadata message. Also converts values to other types if specified. + * Creates a plain object from a TestCase message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase * @static - * @param {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata} message RunContinuousTestMetadata + * @param {google.cloud.dialogflow.cx.v3beta1.TestCase} message TestCase * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RunContinuousTestMetadata.toObject = function toObject(message, options) { + TestCase.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.errors = []; - if (message.errors && message.errors.length) { - object.errors = []; - for (var j = 0; j < message.errors.length; ++j) - object.errors[j] = $root.google.cloud.dialogflow.cx.v3beta1.TestError.toObject(message.errors[j], options); + if (options.arrays || options.defaults) { + object.tags = []; + object.testCaseConversationTurns = []; + } + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.notes = ""; + object.creationTime = null; + object.lastTestResult = null; + object.testConfig = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.tags && message.tags.length) { + object.tags = []; + for (var j = 0; j < message.tags.length; ++j) + object.tags[j] = message.tags[j]; + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.notes != null && message.hasOwnProperty("notes")) + object.notes = message.notes; + if (message.testCaseConversationTurns && message.testCaseConversationTurns.length) { + object.testCaseConversationTurns = []; + for (var j = 0; j < message.testCaseConversationTurns.length; ++j) + object.testCaseConversationTurns[j] = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.toObject(message.testCaseConversationTurns[j], options); } + if (message.creationTime != null && message.hasOwnProperty("creationTime")) + object.creationTime = $root.google.protobuf.Timestamp.toObject(message.creationTime, options); + if (message.lastTestResult != null && message.hasOwnProperty("lastTestResult")) + object.lastTestResult = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.toObject(message.lastTestResult, options); + if (message.testConfig != null && message.hasOwnProperty("testConfig")) + object.testConfig = $root.google.cloud.dialogflow.cx.v3beta1.TestConfig.toObject(message.testConfig, options); return object; }; /** - * Converts this RunContinuousTestMetadata to JSON. + * Converts this TestCase to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase * @instance * @returns {Object.} JSON object */ - RunContinuousTestMetadata.prototype.toJSON = function toJSON() { + TestCase.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RunContinuousTestMetadata; + return TestCase; })(); - v3beta1.ListContinuousTestResultsRequest = (function() { + v3beta1.TestCaseResult = (function() { /** - * Properties of a ListContinuousTestResultsRequest. + * Properties of a TestCaseResult. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListContinuousTestResultsRequest - * @property {string|null} [parent] ListContinuousTestResultsRequest parent - * @property {number|null} [pageSize] ListContinuousTestResultsRequest pageSize - * @property {string|null} [pageToken] ListContinuousTestResultsRequest pageToken + * @interface ITestCaseResult + * @property {string|null} [name] TestCaseResult name + * @property {string|null} [environment] TestCaseResult environment + * @property {Array.|null} [conversationTurns] TestCaseResult conversationTurns + * @property {google.cloud.dialogflow.cx.v3beta1.TestResult|null} [testResult] TestCaseResult testResult + * @property {google.protobuf.ITimestamp|null} [testTime] TestCaseResult testTime */ /** - * Constructs a new ListContinuousTestResultsRequest. + * Constructs a new TestCaseResult. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListContinuousTestResultsRequest. - * @implements IListContinuousTestResultsRequest + * @classdesc Represents a TestCaseResult. + * @implements ITestCaseResult * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult=} [properties] Properties to set */ - function ListContinuousTestResultsRequest(properties) { + function TestCaseResult(properties) { + this.conversationTurns = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -93975,101 +93746,130 @@ } /** - * ListContinuousTestResultsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest + * TestCaseResult name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult * @instance */ - ListContinuousTestResultsRequest.prototype.parent = ""; + TestCaseResult.prototype.name = ""; /** - * ListContinuousTestResultsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest + * TestCaseResult environment. + * @member {string} environment + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult * @instance */ - ListContinuousTestResultsRequest.prototype.pageSize = 0; + TestCaseResult.prototype.environment = ""; /** - * ListContinuousTestResultsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest + * TestCaseResult conversationTurns. + * @member {Array.} conversationTurns + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult * @instance */ - ListContinuousTestResultsRequest.prototype.pageToken = ""; + TestCaseResult.prototype.conversationTurns = $util.emptyArray; /** - * Creates a new ListContinuousTestResultsRequest instance using the specified properties. + * TestCaseResult testResult. + * @member {google.cloud.dialogflow.cx.v3beta1.TestResult} testResult + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult + * @instance + */ + TestCaseResult.prototype.testResult = 0; + + /** + * TestCaseResult testTime. + * @member {google.protobuf.ITimestamp|null|undefined} testTime + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult + * @instance + */ + TestCaseResult.prototype.testTime = null; + + /** + * Creates a new TestCaseResult instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest} ListContinuousTestResultsRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseResult} TestCaseResult instance */ - ListContinuousTestResultsRequest.create = function create(properties) { - return new ListContinuousTestResultsRequest(properties); + TestCaseResult.create = function create(properties) { + return new TestCaseResult(properties); }; /** - * Encodes the specified ListContinuousTestResultsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest.verify|verify} messages. + * Encodes the specified TestCaseResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCaseResult.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest} message ListContinuousTestResultsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult} message TestCaseResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListContinuousTestResultsRequest.encode = function encode(message, writer) { + TestCaseResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.environment); + if (message.conversationTurns != null && message.conversationTurns.length) + for (var i = 0; i < message.conversationTurns.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.encode(message.conversationTurns[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.testResult != null && Object.hasOwnProperty.call(message, "testResult")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.testResult); + if (message.testTime != null && Object.hasOwnProperty.call(message, "testTime")) + $root.google.protobuf.Timestamp.encode(message.testTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListContinuousTestResultsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest.verify|verify} messages. + * Encodes the specified TestCaseResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCaseResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest} message ListContinuousTestResultsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult} message TestCaseResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListContinuousTestResultsRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestCaseResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListContinuousTestResultsRequest message from the specified reader or buffer. + * Decodes a TestCaseResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest} ListContinuousTestResultsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseResult} TestCaseResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListContinuousTestResultsRequest.decode = function decode(reader, length) { + TestCaseResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.name = reader.string(); break; case 2: - message.pageSize = reader.int32(); + message.environment = reader.string(); break; case 3: - message.pageToken = reader.string(); + if (!(message.conversationTurns && message.conversationTurns.length)) + message.conversationTurns = []; + message.conversationTurns.push($root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.decode(reader, reader.uint32())); + break; + case 4: + message.testResult = reader.int32(); + break; + case 5: + message.testTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -94080,126 +93880,183 @@ }; /** - * Decodes a ListContinuousTestResultsRequest message from the specified reader or buffer, length delimited. + * Decodes a TestCaseResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest} ListContinuousTestResultsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseResult} TestCaseResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListContinuousTestResultsRequest.decodeDelimited = function decodeDelimited(reader) { + TestCaseResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListContinuousTestResultsRequest message. + * Verifies a TestCaseResult message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListContinuousTestResultsRequest.verify = function verify(message) { + TestCaseResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.environment != null && message.hasOwnProperty("environment")) + if (!$util.isString(message.environment)) + return "environment: string expected"; + if (message.conversationTurns != null && message.hasOwnProperty("conversationTurns")) { + if (!Array.isArray(message.conversationTurns)) + return "conversationTurns: array expected"; + for (var i = 0; i < message.conversationTurns.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.verify(message.conversationTurns[i]); + if (error) + return "conversationTurns." + error; + } + } + if (message.testResult != null && message.hasOwnProperty("testResult")) + switch (message.testResult) { + default: + return "testResult: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.testTime != null && message.hasOwnProperty("testTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.testTime); + if (error) + return "testTime." + error; + } return null; }; /** - * Creates a ListContinuousTestResultsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestCaseResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest} ListContinuousTestResultsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseResult} TestCaseResult */ - ListContinuousTestResultsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest) + TestCaseResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult(); + if (object.name != null) + message.name = String(object.name); + if (object.environment != null) + message.environment = String(object.environment); + if (object.conversationTurns) { + if (!Array.isArray(object.conversationTurns)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCaseResult.conversationTurns: array expected"); + message.conversationTurns = []; + for (var i = 0; i < object.conversationTurns.length; ++i) { + if (typeof object.conversationTurns[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCaseResult.conversationTurns: object expected"); + message.conversationTurns[i] = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.fromObject(object.conversationTurns[i]); + } + } + switch (object.testResult) { + case "TEST_RESULT_UNSPECIFIED": + case 0: + message.testResult = 0; + break; + case "PASSED": + case 1: + message.testResult = 1; + break; + case "FAILED": + case 2: + message.testResult = 2; + break; + } + if (object.testTime != null) { + if (typeof object.testTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCaseResult.testTime: object expected"); + message.testTime = $root.google.protobuf.Timestamp.fromObject(object.testTime); + } return message; }; /** - * Creates a plain object from a ListContinuousTestResultsRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestCaseResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest} message ListContinuousTestResultsRequest + * @param {google.cloud.dialogflow.cx.v3beta1.TestCaseResult} message TestCaseResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListContinuousTestResultsRequest.toObject = function toObject(message, options) { + TestCaseResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.conversationTurns = []; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.name = ""; + object.environment = ""; + object.testResult = options.enums === String ? "TEST_RESULT_UNSPECIFIED" : 0; + object.testTime = null; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = message.environment; + if (message.conversationTurns && message.conversationTurns.length) { + object.conversationTurns = []; + for (var j = 0; j < message.conversationTurns.length; ++j) + object.conversationTurns[j] = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.toObject(message.conversationTurns[j], options); + } + if (message.testResult != null && message.hasOwnProperty("testResult")) + object.testResult = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.TestResult[message.testResult] : message.testResult; + if (message.testTime != null && message.hasOwnProperty("testTime")) + object.testTime = $root.google.protobuf.Timestamp.toObject(message.testTime, options); return object; }; /** - * Converts this ListContinuousTestResultsRequest to JSON. + * Converts this TestCaseResult to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult * @instance * @returns {Object.} JSON object */ - ListContinuousTestResultsRequest.prototype.toJSON = function toJSON() { + TestCaseResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListContinuousTestResultsRequest; + return TestCaseResult; })(); - v3beta1.ListContinuousTestResultsResponse = (function() { + v3beta1.TestConfig = (function() { /** - * Properties of a ListContinuousTestResultsResponse. + * Properties of a TestConfig. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListContinuousTestResultsResponse - * @property {Array.|null} [continuousTestResults] ListContinuousTestResultsResponse continuousTestResults - * @property {string|null} [nextPageToken] ListContinuousTestResultsResponse nextPageToken + * @interface ITestConfig + * @property {Array.|null} [trackingParameters] TestConfig trackingParameters + * @property {string|null} [flow] TestConfig flow */ /** - * Constructs a new ListContinuousTestResultsResponse. + * Constructs a new TestConfig. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListContinuousTestResultsResponse. - * @implements IListContinuousTestResultsResponse + * @classdesc Represents a TestConfig. + * @implements ITestConfig * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ITestConfig=} [properties] Properties to set */ - function ListContinuousTestResultsResponse(properties) { - this.continuousTestResults = []; + function TestConfig(properties) { + this.trackingParameters = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -94207,91 +94064,91 @@ } /** - * ListContinuousTestResultsResponse continuousTestResults. - * @member {Array.} continuousTestResults - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse + * TestConfig trackingParameters. + * @member {Array.} trackingParameters + * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig * @instance */ - ListContinuousTestResultsResponse.prototype.continuousTestResults = $util.emptyArray; + TestConfig.prototype.trackingParameters = $util.emptyArray; /** - * ListContinuousTestResultsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse + * TestConfig flow. + * @member {string} flow + * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig * @instance */ - ListContinuousTestResultsResponse.prototype.nextPageToken = ""; + TestConfig.prototype.flow = ""; /** - * Creates a new ListContinuousTestResultsResponse instance using the specified properties. + * Creates a new TestConfig instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse} ListContinuousTestResultsResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.ITestConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TestConfig} TestConfig instance */ - ListContinuousTestResultsResponse.create = function create(properties) { - return new ListContinuousTestResultsResponse(properties); + TestConfig.create = function create(properties) { + return new TestConfig(properties); }; /** - * Encodes the specified ListContinuousTestResultsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse.verify|verify} messages. + * Encodes the specified TestConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsResponse} message ListContinuousTestResultsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITestConfig} message TestConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListContinuousTestResultsResponse.encode = function encode(message, writer) { + TestConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.continuousTestResults != null && message.continuousTestResults.length) - for (var i = 0; i < message.continuousTestResults.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.encode(message.continuousTestResults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.trackingParameters != null && message.trackingParameters.length) + for (var i = 0; i < message.trackingParameters.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.trackingParameters[i]); + if (message.flow != null && Object.hasOwnProperty.call(message, "flow")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.flow); return writer; }; /** - * Encodes the specified ListContinuousTestResultsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse.verify|verify} messages. + * Encodes the specified TestConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsResponse} message ListContinuousTestResultsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITestConfig} message TestConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListContinuousTestResultsResponse.encodeDelimited = function encodeDelimited(message, writer) { + TestConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListContinuousTestResultsResponse message from the specified reader or buffer. + * Decodes a TestConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse} ListContinuousTestResultsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.TestConfig} TestConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListContinuousTestResultsResponse.decode = function decode(reader, length) { + TestConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TestConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.continuousTestResults && message.continuousTestResults.length)) - message.continuousTestResults = []; - message.continuousTestResults.push($root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.decode(reader, reader.uint32())); + if (!(message.trackingParameters && message.trackingParameters.length)) + message.trackingParameters = []; + message.trackingParameters.push(reader.string()); break; case 2: - message.nextPageToken = reader.string(); + message.flow = reader.string(); break; default: reader.skipType(tag & 7); @@ -94302,134 +94159,129 @@ }; /** - * Decodes a ListContinuousTestResultsResponse message from the specified reader or buffer, length delimited. + * Decodes a TestConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse} ListContinuousTestResultsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.TestConfig} TestConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListContinuousTestResultsResponse.decodeDelimited = function decodeDelimited(reader) { + TestConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListContinuousTestResultsResponse message. + * Verifies a TestConfig message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListContinuousTestResultsResponse.verify = function verify(message) { + TestConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.continuousTestResults != null && message.hasOwnProperty("continuousTestResults")) { - if (!Array.isArray(message.continuousTestResults)) - return "continuousTestResults: array expected"; - for (var i = 0; i < message.continuousTestResults.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.verify(message.continuousTestResults[i]); - if (error) - return "continuousTestResults." + error; - } + if (message.trackingParameters != null && message.hasOwnProperty("trackingParameters")) { + if (!Array.isArray(message.trackingParameters)) + return "trackingParameters: array expected"; + for (var i = 0; i < message.trackingParameters.length; ++i) + if (!$util.isString(message.trackingParameters[i])) + return "trackingParameters: string[] expected"; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.flow != null && message.hasOwnProperty("flow")) + if (!$util.isString(message.flow)) + return "flow: string expected"; return null; }; /** - * Creates a ListContinuousTestResultsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TestConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse} ListContinuousTestResultsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.TestConfig} TestConfig */ - ListContinuousTestResultsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse) + TestConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TestConfig) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse(); - if (object.continuousTestResults) { - if (!Array.isArray(object.continuousTestResults)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse.continuousTestResults: array expected"); - message.continuousTestResults = []; - for (var i = 0; i < object.continuousTestResults.length; ++i) { - if (typeof object.continuousTestResults[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse.continuousTestResults: object expected"); - message.continuousTestResults[i] = $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.fromObject(object.continuousTestResults[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TestConfig(); + if (object.trackingParameters) { + if (!Array.isArray(object.trackingParameters)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestConfig.trackingParameters: array expected"); + message.trackingParameters = []; + for (var i = 0; i < object.trackingParameters.length; ++i) + message.trackingParameters[i] = String(object.trackingParameters[i]); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + if (object.flow != null) + message.flow = String(object.flow); return message; }; /** - * Creates a plain object from a ListContinuousTestResultsResponse message. Also converts values to other types if specified. + * Creates a plain object from a TestConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse} message ListContinuousTestResultsResponse + * @param {google.cloud.dialogflow.cx.v3beta1.TestConfig} message TestConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListContinuousTestResultsResponse.toObject = function toObject(message, options) { + TestConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.continuousTestResults = []; + object.trackingParameters = []; if (options.defaults) - object.nextPageToken = ""; - if (message.continuousTestResults && message.continuousTestResults.length) { - object.continuousTestResults = []; - for (var j = 0; j < message.continuousTestResults.length; ++j) - object.continuousTestResults[j] = $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.toObject(message.continuousTestResults[j], options); + object.flow = ""; + if (message.trackingParameters && message.trackingParameters.length) { + object.trackingParameters = []; + for (var j = 0; j < message.trackingParameters.length; ++j) + object.trackingParameters[j] = message.trackingParameters[j]; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.flow != null && message.hasOwnProperty("flow")) + object.flow = message.flow; return object; }; /** - * Converts this ListContinuousTestResultsResponse to JSON. + * Converts this TestConfig to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig * @instance * @returns {Object.} JSON object */ - ListContinuousTestResultsResponse.prototype.toJSON = function toJSON() { + TestConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListContinuousTestResultsResponse; + return TestConfig; })(); - v3beta1.DeployFlowRequest = (function() { + v3beta1.ConversationTurn = (function() { /** - * Properties of a DeployFlowRequest. + * Properties of a ConversationTurn. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDeployFlowRequest - * @property {string|null} [environment] DeployFlowRequest environment - * @property {string|null} [flowVersion] DeployFlowRequest flowVersion + * @interface IConversationTurn + * @property {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput|null} [userInput] ConversationTurn userInput + * @property {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput|null} [virtualAgentOutput] ConversationTurn virtualAgentOutput */ /** - * Constructs a new DeployFlowRequest. + * Constructs a new ConversationTurn. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DeployFlowRequest. - * @implements IDeployFlowRequest + * @classdesc Represents a ConversationTurn. + * @implements IConversationTurn * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IConversationTurn=} [properties] Properties to set */ - function DeployFlowRequest(properties) { + function ConversationTurn(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -94437,88 +94289,88 @@ } /** - * DeployFlowRequest environment. - * @member {string} environment - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest + * ConversationTurn userInput. + * @member {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput|null|undefined} userInput + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn * @instance */ - DeployFlowRequest.prototype.environment = ""; + ConversationTurn.prototype.userInput = null; /** - * DeployFlowRequest flowVersion. - * @member {string} flowVersion - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest + * ConversationTurn virtualAgentOutput. + * @member {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput|null|undefined} virtualAgentOutput + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn * @instance */ - DeployFlowRequest.prototype.flowVersion = ""; + ConversationTurn.prototype.virtualAgentOutput = null; /** - * Creates a new DeployFlowRequest instance using the specified properties. + * Creates a new ConversationTurn instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest} DeployFlowRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IConversationTurn=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn} ConversationTurn instance */ - DeployFlowRequest.create = function create(properties) { - return new DeployFlowRequest(properties); + ConversationTurn.create = function create(properties) { + return new ConversationTurn(properties); }; /** - * Encodes the specified DeployFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest.verify|verify} messages. + * Encodes the specified ConversationTurn message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest} message DeployFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IConversationTurn} message ConversationTurn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployFlowRequest.encode = function encode(message, writer) { + ConversationTurn.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.environment); - if (message.flowVersion != null && Object.hasOwnProperty.call(message, "flowVersion")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.flowVersion); + if (message.userInput != null && Object.hasOwnProperty.call(message, "userInput")) + $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.encode(message.userInput, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.virtualAgentOutput != null && Object.hasOwnProperty.call(message, "virtualAgentOutput")) + $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.encode(message.virtualAgentOutput, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeployFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest.verify|verify} messages. + * Encodes the specified ConversationTurn message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest} message DeployFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IConversationTurn} message ConversationTurn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { + ConversationTurn.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployFlowRequest message from the specified reader or buffer. + * Decodes a ConversationTurn message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest} DeployFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn} ConversationTurn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployFlowRequest.decode = function decode(reader, length) { + ConversationTurn.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.environment = reader.string(); + message.userInput = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.decode(reader, reader.uint32()); break; case 2: - message.flowVersion = reader.string(); + message.virtualAgentOutput = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -94529,332 +94381,780 @@ }; /** - * Decodes a DeployFlowRequest message from the specified reader or buffer, length delimited. + * Decodes a ConversationTurn message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest} DeployFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn} ConversationTurn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployFlowRequest.decodeDelimited = function decodeDelimited(reader) { + ConversationTurn.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeployFlowRequest message. + * Verifies a ConversationTurn message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeployFlowRequest.verify = function verify(message) { + ConversationTurn.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.environment != null && message.hasOwnProperty("environment")) - if (!$util.isString(message.environment)) - return "environment: string expected"; - if (message.flowVersion != null && message.hasOwnProperty("flowVersion")) - if (!$util.isString(message.flowVersion)) - return "flowVersion: string expected"; + if (message.userInput != null && message.hasOwnProperty("userInput")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.verify(message.userInput); + if (error) + return "userInput." + error; + } + if (message.virtualAgentOutput != null && message.hasOwnProperty("virtualAgentOutput")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.verify(message.virtualAgentOutput); + if (error) + return "virtualAgentOutput." + error; + } return null; }; /** - * Creates a DeployFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ConversationTurn message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest} DeployFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn} ConversationTurn */ - DeployFlowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest) + ConversationTurn.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest(); - if (object.environment != null) - message.environment = String(object.environment); - if (object.flowVersion != null) - message.flowVersion = String(object.flowVersion); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn(); + if (object.userInput != null) { + if (typeof object.userInput !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.userInput: object expected"); + message.userInput = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.fromObject(object.userInput); + } + if (object.virtualAgentOutput != null) { + if (typeof object.virtualAgentOutput !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.virtualAgentOutput: object expected"); + message.virtualAgentOutput = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.fromObject(object.virtualAgentOutput); + } return message; }; /** - * Creates a plain object from a DeployFlowRequest message. Also converts values to other types if specified. + * Creates a plain object from a ConversationTurn message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest} message DeployFlowRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn} message ConversationTurn * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployFlowRequest.toObject = function toObject(message, options) { + ConversationTurn.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.environment = ""; - object.flowVersion = ""; + object.userInput = null; + object.virtualAgentOutput = null; } - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = message.environment; - if (message.flowVersion != null && message.hasOwnProperty("flowVersion")) - object.flowVersion = message.flowVersion; + if (message.userInput != null && message.hasOwnProperty("userInput")) + object.userInput = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.toObject(message.userInput, options); + if (message.virtualAgentOutput != null && message.hasOwnProperty("virtualAgentOutput")) + object.virtualAgentOutput = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.toObject(message.virtualAgentOutput, options); return object; }; /** - * Converts this DeployFlowRequest to JSON. + * Converts this ConversationTurn to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn * @instance * @returns {Object.} JSON object */ - DeployFlowRequest.prototype.toJSON = function toJSON() { + ConversationTurn.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeployFlowRequest; - })(); + ConversationTurn.UserInput = (function() { - v3beta1.DeployFlowResponse = (function() { + /** + * Properties of a UserInput. + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn + * @interface IUserInput + * @property {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null} [input] UserInput input + * @property {google.protobuf.IStruct|null} [injectedParameters] UserInput injectedParameters + * @property {boolean|null} [isWebhookEnabled] UserInput isWebhookEnabled + * @property {boolean|null} [enableSentimentAnalysis] UserInput enableSentimentAnalysis + */ - /** - * Properties of a DeployFlowResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDeployFlowResponse - * @property {google.cloud.dialogflow.cx.v3beta1.IEnvironment|null} [environment] DeployFlowResponse environment - * @property {string|null} [deployment] DeployFlowResponse deployment - */ + /** + * Constructs a new UserInput. + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn + * @classdesc Represents a UserInput. + * @implements IUserInput + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput=} [properties] Properties to set + */ + function UserInput(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new DeployFlowResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DeployFlowResponse. - * @implements IDeployFlowResponse - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowResponse=} [properties] Properties to set - */ - function DeployFlowResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * UserInput input. + * @member {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null|undefined} input + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput + * @instance + */ + UserInput.prototype.input = null; - /** - * DeployFlowResponse environment. - * @member {google.cloud.dialogflow.cx.v3beta1.IEnvironment|null|undefined} environment - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse - * @instance - */ - DeployFlowResponse.prototype.environment = null; + /** + * UserInput injectedParameters. + * @member {google.protobuf.IStruct|null|undefined} injectedParameters + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput + * @instance + */ + UserInput.prototype.injectedParameters = null; - /** - * DeployFlowResponse deployment. - * @member {string} deployment - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse - * @instance - */ - DeployFlowResponse.prototype.deployment = ""; + /** + * UserInput isWebhookEnabled. + * @member {boolean} isWebhookEnabled + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput + * @instance + */ + UserInput.prototype.isWebhookEnabled = false; + + /** + * UserInput enableSentimentAnalysis. + * @member {boolean} enableSentimentAnalysis + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput + * @instance + */ + UserInput.prototype.enableSentimentAnalysis = false; + + /** + * Creates a new UserInput instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput} UserInput instance + */ + UserInput.create = function create(properties) { + return new UserInput(properties); + }; + + /** + * Encodes the specified UserInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput} message UserInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UserInput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.injectedParameters != null && Object.hasOwnProperty.call(message, "injectedParameters")) + $root.google.protobuf.Struct.encode(message.injectedParameters, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.isWebhookEnabled != null && Object.hasOwnProperty.call(message, "isWebhookEnabled")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isWebhookEnabled); + if (message.input != null && Object.hasOwnProperty.call(message, "input")) + $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.encode(message.input, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.enableSentimentAnalysis != null && Object.hasOwnProperty.call(message, "enableSentimentAnalysis")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.enableSentimentAnalysis); + return writer; + }; + + /** + * Encodes the specified UserInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput} message UserInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UserInput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a UserInput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput} UserInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UserInput.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 5: + message.input = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.decode(reader, reader.uint32()); + break; + case 2: + message.injectedParameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 3: + message.isWebhookEnabled = reader.bool(); + break; + case 7: + message.enableSentimentAnalysis = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a UserInput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput} UserInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UserInput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a UserInput message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UserInput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.input != null && message.hasOwnProperty("input")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.verify(message.input); + if (error) + return "input." + error; + } + if (message.injectedParameters != null && message.hasOwnProperty("injectedParameters")) { + var error = $root.google.protobuf.Struct.verify(message.injectedParameters); + if (error) + return "injectedParameters." + error; + } + if (message.isWebhookEnabled != null && message.hasOwnProperty("isWebhookEnabled")) + if (typeof message.isWebhookEnabled !== "boolean") + return "isWebhookEnabled: boolean expected"; + if (message.enableSentimentAnalysis != null && message.hasOwnProperty("enableSentimentAnalysis")) + if (typeof message.enableSentimentAnalysis !== "boolean") + return "enableSentimentAnalysis: boolean expected"; + return null; + }; + + /** + * Creates a UserInput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput} UserInput + */ + UserInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput(); + if (object.input != null) { + if (typeof object.input !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.input: object expected"); + message.input = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.fromObject(object.input); + } + if (object.injectedParameters != null) { + if (typeof object.injectedParameters !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.injectedParameters: object expected"); + message.injectedParameters = $root.google.protobuf.Struct.fromObject(object.injectedParameters); + } + if (object.isWebhookEnabled != null) + message.isWebhookEnabled = Boolean(object.isWebhookEnabled); + if (object.enableSentimentAnalysis != null) + message.enableSentimentAnalysis = Boolean(object.enableSentimentAnalysis); + return message; + }; + + /** + * Creates a plain object from a UserInput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput} message UserInput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UserInput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.injectedParameters = null; + object.isWebhookEnabled = false; + object.input = null; + object.enableSentimentAnalysis = false; + } + if (message.injectedParameters != null && message.hasOwnProperty("injectedParameters")) + object.injectedParameters = $root.google.protobuf.Struct.toObject(message.injectedParameters, options); + if (message.isWebhookEnabled != null && message.hasOwnProperty("isWebhookEnabled")) + object.isWebhookEnabled = message.isWebhookEnabled; + if (message.input != null && message.hasOwnProperty("input")) + object.input = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.toObject(message.input, options); + if (message.enableSentimentAnalysis != null && message.hasOwnProperty("enableSentimentAnalysis")) + object.enableSentimentAnalysis = message.enableSentimentAnalysis; + return object; + }; + + /** + * Converts this UserInput to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput + * @instance + * @returns {Object.} JSON object + */ + UserInput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UserInput; + })(); + + ConversationTurn.VirtualAgentOutput = (function() { + + /** + * Properties of a VirtualAgentOutput. + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn + * @interface IVirtualAgentOutput + * @property {google.protobuf.IStruct|null} [sessionParameters] VirtualAgentOutput sessionParameters + * @property {Array.|null} [differences] VirtualAgentOutput differences + * @property {google.protobuf.IStruct|null} [diagnosticInfo] VirtualAgentOutput diagnosticInfo + * @property {google.cloud.dialogflow.cx.v3beta1.IIntent|null} [triggeredIntent] VirtualAgentOutput triggeredIntent + * @property {google.cloud.dialogflow.cx.v3beta1.IPage|null} [currentPage] VirtualAgentOutput currentPage + * @property {Array.|null} [textResponses] VirtualAgentOutput textResponses + * @property {google.rpc.IStatus|null} [status] VirtualAgentOutput status + */ + + /** + * Constructs a new VirtualAgentOutput. + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn + * @classdesc Represents a VirtualAgentOutput. + * @implements IVirtualAgentOutput + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput=} [properties] Properties to set + */ + function VirtualAgentOutput(properties) { + this.differences = []; + this.textResponses = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * VirtualAgentOutput sessionParameters. + * @member {google.protobuf.IStruct|null|undefined} sessionParameters + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @instance + */ + VirtualAgentOutput.prototype.sessionParameters = null; + + /** + * VirtualAgentOutput differences. + * @member {Array.} differences + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @instance + */ + VirtualAgentOutput.prototype.differences = $util.emptyArray; + + /** + * VirtualAgentOutput diagnosticInfo. + * @member {google.protobuf.IStruct|null|undefined} diagnosticInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @instance + */ + VirtualAgentOutput.prototype.diagnosticInfo = null; + + /** + * VirtualAgentOutput triggeredIntent. + * @member {google.cloud.dialogflow.cx.v3beta1.IIntent|null|undefined} triggeredIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @instance + */ + VirtualAgentOutput.prototype.triggeredIntent = null; + + /** + * VirtualAgentOutput currentPage. + * @member {google.cloud.dialogflow.cx.v3beta1.IPage|null|undefined} currentPage + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @instance + */ + VirtualAgentOutput.prototype.currentPage = null; + + /** + * VirtualAgentOutput textResponses. + * @member {Array.} textResponses + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @instance + */ + VirtualAgentOutput.prototype.textResponses = $util.emptyArray; - /** - * Creates a new DeployFlowResponse instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse} DeployFlowResponse instance - */ - DeployFlowResponse.create = function create(properties) { - return new DeployFlowResponse(properties); - }; + /** + * VirtualAgentOutput status. + * @member {google.rpc.IStatus|null|undefined} status + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @instance + */ + VirtualAgentOutput.prototype.status = null; - /** - * Encodes the specified DeployFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowResponse} message DeployFlowResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeployFlowResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - $root.google.cloud.dialogflow.cx.v3beta1.Environment.encode(message.environment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.deployment != null && Object.hasOwnProperty.call(message, "deployment")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployment); - return writer; - }; + /** + * Creates a new VirtualAgentOutput instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput} VirtualAgentOutput instance + */ + VirtualAgentOutput.create = function create(properties) { + return new VirtualAgentOutput(properties); + }; - /** - * Encodes the specified DeployFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowResponse} message DeployFlowResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeployFlowResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified VirtualAgentOutput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput} message VirtualAgentOutput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VirtualAgentOutput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sessionParameters != null && Object.hasOwnProperty.call(message, "sessionParameters")) + $root.google.protobuf.Struct.encode(message.sessionParameters, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.differences != null && message.differences.length) + for (var i = 0; i < message.differences.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.encode(message.differences[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.diagnosticInfo != null && Object.hasOwnProperty.call(message, "diagnosticInfo")) + $root.google.protobuf.Struct.encode(message.diagnosticInfo, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.triggeredIntent != null && Object.hasOwnProperty.call(message, "triggeredIntent")) + $root.google.cloud.dialogflow.cx.v3beta1.Intent.encode(message.triggeredIntent, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) + $root.google.cloud.dialogflow.cx.v3beta1.Page.encode(message.currentPage, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.textResponses != null && message.textResponses.length) + for (var i = 0; i < message.textResponses.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.encode(message.textResponses[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + return writer; + }; - /** - * Decodes a DeployFlowResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse} DeployFlowResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeployFlowResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.decode(reader, reader.uint32()); - break; - case 2: - message.deployment = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Encodes the specified VirtualAgentOutput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput} message VirtualAgentOutput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VirtualAgentOutput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VirtualAgentOutput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput} VirtualAgentOutput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VirtualAgentOutput.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 4: + message.sessionParameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 5: + if (!(message.differences && message.differences.length)) + message.differences = []; + message.differences.push($root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.decode(reader, reader.uint32())); + break; + case 6: + message.diagnosticInfo = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 7: + message.triggeredIntent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.decode(reader, reader.uint32()); + break; + case 8: + message.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.decode(reader, reader.uint32()); + break; + case 9: + if (!(message.textResponses && message.textResponses.length)) + message.textResponses = []; + message.textResponses.push($root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.decode(reader, reader.uint32())); + break; + case 10: + message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a DeployFlowResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse} DeployFlowResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeployFlowResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a VirtualAgentOutput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput} VirtualAgentOutput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VirtualAgentOutput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a DeployFlowResponse message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeployFlowResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.environment != null && message.hasOwnProperty("environment")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Environment.verify(message.environment); - if (error) - return "environment." + error; - } - if (message.deployment != null && message.hasOwnProperty("deployment")) - if (!$util.isString(message.deployment)) - return "deployment: string expected"; - return null; - }; + /** + * Verifies a VirtualAgentOutput message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VirtualAgentOutput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.sessionParameters != null && message.hasOwnProperty("sessionParameters")) { + var error = $root.google.protobuf.Struct.verify(message.sessionParameters); + if (error) + return "sessionParameters." + error; + } + if (message.differences != null && message.hasOwnProperty("differences")) { + if (!Array.isArray(message.differences)) + return "differences: array expected"; + for (var i = 0; i < message.differences.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.verify(message.differences[i]); + if (error) + return "differences." + error; + } + } + if (message.diagnosticInfo != null && message.hasOwnProperty("diagnosticInfo")) { + var error = $root.google.protobuf.Struct.verify(message.diagnosticInfo); + if (error) + return "diagnosticInfo." + error; + } + if (message.triggeredIntent != null && message.hasOwnProperty("triggeredIntent")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.verify(message.triggeredIntent); + if (error) + return "triggeredIntent." + error; + } + if (message.currentPage != null && message.hasOwnProperty("currentPage")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Page.verify(message.currentPage); + if (error) + return "currentPage." + error; + } + if (message.textResponses != null && message.hasOwnProperty("textResponses")) { + if (!Array.isArray(message.textResponses)) + return "textResponses: array expected"; + for (var i = 0; i < message.textResponses.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.verify(message.textResponses[i]); + if (error) + return "textResponses." + error; + } + } + if (message.status != null && message.hasOwnProperty("status")) { + var error = $root.google.rpc.Status.verify(message.status); + if (error) + return "status." + error; + } + return null; + }; - /** - * Creates a DeployFlowResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse} DeployFlowResponse - */ - DeployFlowResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse) + /** + * Creates a VirtualAgentOutput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput} VirtualAgentOutput + */ + VirtualAgentOutput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput(); + if (object.sessionParameters != null) { + if (typeof object.sessionParameters !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.sessionParameters: object expected"); + message.sessionParameters = $root.google.protobuf.Struct.fromObject(object.sessionParameters); + } + if (object.differences) { + if (!Array.isArray(object.differences)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.differences: array expected"); + message.differences = []; + for (var i = 0; i < object.differences.length; ++i) { + if (typeof object.differences[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.differences: object expected"); + message.differences[i] = $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.fromObject(object.differences[i]); + } + } + if (object.diagnosticInfo != null) { + if (typeof object.diagnosticInfo !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.diagnosticInfo: object expected"); + message.diagnosticInfo = $root.google.protobuf.Struct.fromObject(object.diagnosticInfo); + } + if (object.triggeredIntent != null) { + if (typeof object.triggeredIntent !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.triggeredIntent: object expected"); + message.triggeredIntent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.fromObject(object.triggeredIntent); + } + if (object.currentPage != null) { + if (typeof object.currentPage !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.currentPage: object expected"); + message.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.fromObject(object.currentPage); + } + if (object.textResponses) { + if (!Array.isArray(object.textResponses)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.textResponses: array expected"); + message.textResponses = []; + for (var i = 0; i < object.textResponses.length; ++i) { + if (typeof object.textResponses[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.textResponses: object expected"); + message.textResponses[i] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.fromObject(object.textResponses[i]); + } + } + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.status: object expected"); + message.status = $root.google.rpc.Status.fromObject(object.status); + } + return message; + }; + + /** + * Creates a plain object from a VirtualAgentOutput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput} message VirtualAgentOutput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VirtualAgentOutput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.differences = []; + object.textResponses = []; + } + if (options.defaults) { + object.sessionParameters = null; + object.diagnosticInfo = null; + object.triggeredIntent = null; + object.currentPage = null; + object.status = null; + } + if (message.sessionParameters != null && message.hasOwnProperty("sessionParameters")) + object.sessionParameters = $root.google.protobuf.Struct.toObject(message.sessionParameters, options); + if (message.differences && message.differences.length) { + object.differences = []; + for (var j = 0; j < message.differences.length; ++j) + object.differences[j] = $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.toObject(message.differences[j], options); + } + if (message.diagnosticInfo != null && message.hasOwnProperty("diagnosticInfo")) + object.diagnosticInfo = $root.google.protobuf.Struct.toObject(message.diagnosticInfo, options); + if (message.triggeredIntent != null && message.hasOwnProperty("triggeredIntent")) + object.triggeredIntent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.toObject(message.triggeredIntent, options); + if (message.currentPage != null && message.hasOwnProperty("currentPage")) + object.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.toObject(message.currentPage, options); + if (message.textResponses && message.textResponses.length) { + object.textResponses = []; + for (var j = 0; j < message.textResponses.length; ++j) + object.textResponses[j] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.toObject(message.textResponses[j], options); + } + if (message.status != null && message.hasOwnProperty("status")) + object.status = $root.google.rpc.Status.toObject(message.status, options); return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse(); - if (object.environment != null) { - if (typeof object.environment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse.environment: object expected"); - message.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.fromObject(object.environment); - } - if (object.deployment != null) - message.deployment = String(object.deployment); - return message; - }; + }; - /** - * Creates a plain object from a DeployFlowResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse} message DeployFlowResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeployFlowResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.environment = null; - object.deployment = ""; - } - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.toObject(message.environment, options); - if (message.deployment != null && message.hasOwnProperty("deployment")) - object.deployment = message.deployment; - return object; - }; + /** + * Converts this VirtualAgentOutput to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @instance + * @returns {Object.} JSON object + */ + VirtualAgentOutput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this DeployFlowResponse to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse - * @instance - * @returns {Object.} JSON object - */ - DeployFlowResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return VirtualAgentOutput; + })(); - return DeployFlowResponse; + return ConversationTurn; })(); - v3beta1.DeployFlowMetadata = (function() { + v3beta1.TestRunDifference = (function() { /** - * Properties of a DeployFlowMetadata. + * Properties of a TestRunDifference. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDeployFlowMetadata - * @property {Array.|null} [testErrors] DeployFlowMetadata testErrors + * @interface ITestRunDifference + * @property {google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType|null} [type] TestRunDifference type + * @property {string|null} [description] TestRunDifference description */ /** - * Constructs a new DeployFlowMetadata. + * Constructs a new TestRunDifference. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DeployFlowMetadata. - * @implements IDeployFlowMetadata + * @classdesc Represents a TestRunDifference. + * @implements ITestRunDifference * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowMetadata=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ITestRunDifference=} [properties] Properties to set */ - function DeployFlowMetadata(properties) { - this.testErrors = []; + function TestRunDifference(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -94862,78 +95162,88 @@ } /** - * DeployFlowMetadata testErrors. - * @member {Array.} testErrors - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata + * TestRunDifference type. + * @member {google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType} type + * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference * @instance */ - DeployFlowMetadata.prototype.testErrors = $util.emptyArray; + TestRunDifference.prototype.type = 0; /** - * Creates a new DeployFlowMetadata instance using the specified properties. + * TestRunDifference description. + * @member {string} description + * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @instance + */ + TestRunDifference.prototype.description = ""; + + /** + * Creates a new TestRunDifference instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowMetadata=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata} DeployFlowMetadata instance + * @param {google.cloud.dialogflow.cx.v3beta1.ITestRunDifference=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TestRunDifference} TestRunDifference instance */ - DeployFlowMetadata.create = function create(properties) { - return new DeployFlowMetadata(properties); + TestRunDifference.create = function create(properties) { + return new TestRunDifference(properties); }; /** - * Encodes the specified DeployFlowMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata.verify|verify} messages. + * Encodes the specified TestRunDifference message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestRunDifference.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowMetadata} message DeployFlowMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITestRunDifference} message TestRunDifference message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployFlowMetadata.encode = function encode(message, writer) { + TestRunDifference.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.testErrors != null && message.testErrors.length) - for (var i = 0; i < message.testErrors.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.TestError.encode(message.testErrors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); return writer; }; /** - * Encodes the specified DeployFlowMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata.verify|verify} messages. + * Encodes the specified TestRunDifference message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestRunDifference.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowMetadata} message DeployFlowMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITestRunDifference} message TestRunDifference message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployFlowMetadata.encodeDelimited = function encodeDelimited(message, writer) { + TestRunDifference.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployFlowMetadata message from the specified reader or buffer. + * Decodes a TestRunDifference message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata} DeployFlowMetadata + * @returns {google.cloud.dialogflow.cx.v3beta1.TestRunDifference} TestRunDifference * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployFlowMetadata.decode = function decode(reader, length) { + TestRunDifference.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.testErrors && message.testErrors.length)) - message.testErrors = []; - message.testErrors.push($root.google.cloud.dialogflow.cx.v3beta1.TestError.decode(reader, reader.uint32())); + message.type = reader.int32(); + break; + case 2: + message.description = reader.string(); break; default: reader.skipType(tag & 7); @@ -94944,956 +95254,987 @@ }; /** - * Decodes a DeployFlowMetadata message from the specified reader or buffer, length delimited. + * Decodes a TestRunDifference message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata} DeployFlowMetadata + * @returns {google.cloud.dialogflow.cx.v3beta1.TestRunDifference} TestRunDifference * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployFlowMetadata.decodeDelimited = function decodeDelimited(reader) { + TestRunDifference.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeployFlowMetadata message. + * Verifies a TestRunDifference message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeployFlowMetadata.verify = function verify(message) { + TestRunDifference.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.testErrors != null && message.hasOwnProperty("testErrors")) { - if (!Array.isArray(message.testErrors)) - return "testErrors: array expected"; - for (var i = 0; i < message.testErrors.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TestError.verify(message.testErrors[i]); - if (error) - return "testErrors." + error; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } - } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; return null; }; /** - * Creates a DeployFlowMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a TestRunDifference message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata} DeployFlowMetadata + * @returns {google.cloud.dialogflow.cx.v3beta1.TestRunDifference} TestRunDifference */ - DeployFlowMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata) + TestRunDifference.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata(); - if (object.testErrors) { - if (!Array.isArray(object.testErrors)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata.testErrors: array expected"); - message.testErrors = []; - for (var i = 0; i < object.testErrors.length; ++i) { - if (typeof object.testErrors[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata.testErrors: object expected"); - message.testErrors[i] = $root.google.cloud.dialogflow.cx.v3beta1.TestError.fromObject(object.testErrors[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference(); + switch (object.type) { + case "DIFF_TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "INTENT": + case 1: + message.type = 1; + break; + case "PAGE": + case 2: + message.type = 2; + break; + case "PARAMETERS": + case 3: + message.type = 3; + break; + case "UTTERANCE": + case 4: + message.type = 4; + break; } + if (object.description != null) + message.description = String(object.description); return message; }; /** - * Creates a plain object from a DeployFlowMetadata message. Also converts values to other types if specified. + * Creates a plain object from a TestRunDifference message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata} message DeployFlowMetadata + * @param {google.cloud.dialogflow.cx.v3beta1.TestRunDifference} message TestRunDifference * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployFlowMetadata.toObject = function toObject(message, options) { + TestRunDifference.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.testErrors = []; - if (message.testErrors && message.testErrors.length) { - object.testErrors = []; - for (var j = 0; j < message.testErrors.length; ++j) - object.testErrors[j] = $root.google.cloud.dialogflow.cx.v3beta1.TestError.toObject(message.testErrors[j], options); + if (options.defaults) { + object.type = options.enums === String ? "DIFF_TYPE_UNSPECIFIED" : 0; + object.description = ""; } + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType[message.type] : message.type; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; return object; }; /** - * Converts this DeployFlowMetadata to JSON. + * Converts this TestRunDifference to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference * @instance * @returns {Object.} JSON object */ - DeployFlowMetadata.prototype.toJSON = function toJSON() { + TestRunDifference.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeployFlowMetadata; - })(); - - v3beta1.TestCases = (function() { - - /** - * Constructs a new TestCases service. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TestCases - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function TestCases(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (TestCases.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = TestCases; - - /** - * Creates new TestCases service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {TestCases} RPC service. Useful where requests and/or responses are streamed. - */ - TestCases.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#listTestCases}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @typedef ListTestCasesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse} [response] ListTestCasesResponse - */ - - /** - * Calls ListTestCases. - * @function listTestCases - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest} request ListTestCasesRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.ListTestCasesCallback} callback Node-style callback called with the error, if any, and ListTestCasesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.listTestCases = function listTestCases(request, callback) { - return this.rpcCall(listTestCases, $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse, request, callback); - }, "name", { value: "ListTestCases" }); - - /** - * Calls ListTestCases. - * @function listTestCases - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest} request ListTestCasesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#batchDeleteTestCases}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @typedef BatchDeleteTestCasesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ - - /** - * Calls BatchDeleteTestCases. - * @function batchDeleteTestCases - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest} request BatchDeleteTestCasesRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.BatchDeleteTestCasesCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.batchDeleteTestCases = function batchDeleteTestCases(request, callback) { - return this.rpcCall(batchDeleteTestCases, $root.google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "BatchDeleteTestCases" }); - - /** - * Calls BatchDeleteTestCases. - * @function batchDeleteTestCases - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest} request BatchDeleteTestCasesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#getTestCase}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @typedef GetTestCaseCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.TestCase} [response] TestCase - */ - - /** - * Calls GetTestCase. - * @function getTestCase - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest} request GetTestCaseRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.GetTestCaseCallback} callback Node-style callback called with the error, if any, and TestCase - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.getTestCase = function getTestCase(request, callback) { - return this.rpcCall(getTestCase, $root.google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest, $root.google.cloud.dialogflow.cx.v3beta1.TestCase, request, callback); - }, "name", { value: "GetTestCase" }); - - /** - * Calls GetTestCase. - * @function getTestCase - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest} request GetTestCaseRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#createTestCase}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @typedef CreateTestCaseCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.TestCase} [response] TestCase - */ - - /** - * Calls CreateTestCase. - * @function createTestCase - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest} request CreateTestCaseRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.CreateTestCaseCallback} callback Node-style callback called with the error, if any, and TestCase - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.createTestCase = function createTestCase(request, callback) { - return this.rpcCall(createTestCase, $root.google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest, $root.google.cloud.dialogflow.cx.v3beta1.TestCase, request, callback); - }, "name", { value: "CreateTestCase" }); - - /** - * Calls CreateTestCase. - * @function createTestCase - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest} request CreateTestCaseRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#updateTestCase}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @typedef UpdateTestCaseCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.TestCase} [response] TestCase - */ - - /** - * Calls UpdateTestCase. - * @function updateTestCase - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest} request UpdateTestCaseRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.UpdateTestCaseCallback} callback Node-style callback called with the error, if any, and TestCase - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.updateTestCase = function updateTestCase(request, callback) { - return this.rpcCall(updateTestCase, $root.google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest, $root.google.cloud.dialogflow.cx.v3beta1.TestCase, request, callback); - }, "name", { value: "UpdateTestCase" }); - - /** - * Calls UpdateTestCase. - * @function updateTestCase - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest} request UpdateTestCaseRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#runTestCase}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @typedef RunTestCaseCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls RunTestCase. - * @function runTestCase - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest} request RunTestCaseRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.RunTestCaseCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.runTestCase = function runTestCase(request, callback) { - return this.rpcCall(runTestCase, $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "RunTestCase" }); - - /** - * Calls RunTestCase. - * @function runTestCase - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest} request RunTestCaseRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#batchRunTestCases}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @typedef BatchRunTestCasesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - /** - * Calls BatchRunTestCases. - * @function batchRunTestCases - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest} request BatchRunTestCasesRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.BatchRunTestCasesCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.batchRunTestCases = function batchRunTestCases(request, callback) { - return this.rpcCall(batchRunTestCases, $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "BatchRunTestCases" }); - - /** - * Calls BatchRunTestCases. - * @function batchRunTestCases - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest} request BatchRunTestCasesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * DiffType enum. + * @name google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType + * @enum {number} + * @property {number} DIFF_TYPE_UNSPECIFIED=0 DIFF_TYPE_UNSPECIFIED value + * @property {number} INTENT=1 INTENT value + * @property {number} PAGE=2 PAGE value + * @property {number} PARAMETERS=3 PARAMETERS value + * @property {number} UTTERANCE=4 UTTERANCE value */ + TestRunDifference.DiffType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DIFF_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "INTENT"] = 1; + values[valuesById[2] = "PAGE"] = 2; + values[valuesById[3] = "PARAMETERS"] = 3; + values[valuesById[4] = "UTTERANCE"] = 4; + return values; + })(); - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#calculateCoverage}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @typedef CalculateCoverageCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse} [response] CalculateCoverageResponse - */ + return TestRunDifference; + })(); - /** - * Calls CalculateCoverage. - * @function calculateCoverage - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest} request CalculateCoverageRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.CalculateCoverageCallback} callback Node-style callback called with the error, if any, and CalculateCoverageResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.calculateCoverage = function calculateCoverage(request, callback) { - return this.rpcCall(calculateCoverage, $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest, $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse, request, callback); - }, "name", { value: "CalculateCoverage" }); + v3beta1.TransitionCoverage = (function() { /** - * Calls CalculateCoverage. - * @function calculateCoverage - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest} request CalculateCoverageRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of a TransitionCoverage. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface ITransitionCoverage + * @property {Array.|null} [transitions] TransitionCoverage transitions + * @property {number|null} [coverageScore] TransitionCoverage coverageScore */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#importTestCases}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @typedef ImportTestCasesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Constructs a new TransitionCoverage. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a TransitionCoverage. + * @implements ITransitionCoverage + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage=} [properties] Properties to set */ + function TransitionCoverage(properties) { + this.transitions = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls ImportTestCases. - * @function importTestCases - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * TransitionCoverage transitions. + * @member {Array.} transitions + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest} request ImportTestCasesRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.ImportTestCasesCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(TestCases.prototype.importTestCases = function importTestCases(request, callback) { - return this.rpcCall(importTestCases, $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "ImportTestCases" }); + TransitionCoverage.prototype.transitions = $util.emptyArray; /** - * Calls ImportTestCases. - * @function importTestCases - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * TransitionCoverage coverageScore. + * @member {number} coverageScore + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest} request ImportTestCasesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + TransitionCoverage.prototype.coverageScore = 0; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#exportTestCases}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @typedef ExportTestCasesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Creates a new TransitionCoverage instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage} TransitionCoverage instance */ + TransitionCoverage.create = function create(properties) { + return new TransitionCoverage(properties); + }; /** - * Calls ExportTestCases. - * @function exportTestCases - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest} request ExportTestCasesRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.ExportTestCasesCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Encodes the specified TransitionCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage} message TransitionCoverage message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(TestCases.prototype.exportTestCases = function exportTestCases(request, callback) { - return this.rpcCall(exportTestCases, $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "ExportTestCases" }); + TransitionCoverage.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.transitions != null && message.transitions.length) + for (var i = 0; i < message.transitions.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.encode(message.transitions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.coverageScore != null && Object.hasOwnProperty.call(message, "coverageScore")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.coverageScore); + return writer; + }; /** - * Calls ExportTestCases. - * @function exportTestCases - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest} request ExportTestCasesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified TransitionCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage} message TransitionCoverage message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + TransitionCoverage.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#listTestCaseResults}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @typedef ListTestCaseResultsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse} [response] ListTestCaseResultsResponse + * Decodes a TransitionCoverage message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage} TransitionCoverage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + TransitionCoverage.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.transitions && message.transitions.length)) + message.transitions = []; + message.transitions.push($root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.decode(reader, reader.uint32())); + break; + case 2: + message.coverageScore = reader.float(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls ListTestCaseResults. - * @function listTestCaseResults - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest} request ListTestCaseResultsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.ListTestCaseResultsCallback} callback Node-style callback called with the error, if any, and ListTestCaseResultsResponse - * @returns {undefined} - * @variation 1 + * Decodes a TransitionCoverage message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage} TransitionCoverage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(TestCases.prototype.listTestCaseResults = function listTestCaseResults(request, callback) { - return this.rpcCall(listTestCaseResults, $root.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse, request, callback); - }, "name", { value: "ListTestCaseResults" }); + TransitionCoverage.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls ListTestCaseResults. - * @function listTestCaseResults - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest} request ListTestCaseResultsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a TransitionCoverage message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + TransitionCoverage.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.transitions != null && message.hasOwnProperty("transitions")) { + if (!Array.isArray(message.transitions)) + return "transitions: array expected"; + for (var i = 0; i < message.transitions.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.verify(message.transitions[i]); + if (error) + return "transitions." + error; + } + } + if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + if (typeof message.coverageScore !== "number") + return "coverageScore: number expected"; + return null; + }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases#getTestCaseResult}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @typedef GetTestCaseResultCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.TestCaseResult} [response] TestCaseResult + * Creates a TransitionCoverage message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage} TransitionCoverage */ + TransitionCoverage.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage(); + if (object.transitions) { + if (!Array.isArray(object.transitions)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.transitions: array expected"); + message.transitions = []; + for (var i = 0; i < object.transitions.length; ++i) { + if (typeof object.transitions[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.transitions: object expected"); + message.transitions[i] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.fromObject(object.transitions[i]); + } + } + if (object.coverageScore != null) + message.coverageScore = Number(object.coverageScore); + return message; + }; /** - * Calls GetTestCaseResult. - * @function getTestCaseResult - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest} request GetTestCaseResultRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.GetTestCaseResultCallback} callback Node-style callback called with the error, if any, and TestCaseResult - * @returns {undefined} - * @variation 1 + * Creates a plain object from a TransitionCoverage message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage} message TransitionCoverage + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(TestCases.prototype.getTestCaseResult = function getTestCaseResult(request, callback) { - return this.rpcCall(getTestCaseResult, $root.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest, $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult, request, callback); - }, "name", { value: "GetTestCaseResult" }); + TransitionCoverage.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.transitions = []; + if (options.defaults) + object.coverageScore = 0; + if (message.transitions && message.transitions.length) { + object.transitions = []; + for (var j = 0; j < message.transitions.length; ++j) + object.transitions[j] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.toObject(message.transitions[j], options); + } + if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; + return object; + }; /** - * Calls GetTestCaseResult. - * @function getTestCaseResult - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * Converts this TransitionCoverage to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest} request GetTestCaseResultRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + TransitionCoverage.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return TestCases; - })(); + TransitionCoverage.TransitionNode = (function() { - v3beta1.TestCase = (function() { + /** + * Properties of a TransitionNode. + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @interface ITransitionNode + * @property {google.cloud.dialogflow.cx.v3beta1.IPage|null} [page] TransitionNode page + * @property {google.cloud.dialogflow.cx.v3beta1.IFlow|null} [flow] TransitionNode flow + */ - /** - * Properties of a TestCase. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ITestCase - * @property {string|null} [name] TestCase name - * @property {Array.|null} [tags] TestCase tags - * @property {string|null} [displayName] TestCase displayName - * @property {string|null} [notes] TestCase notes - * @property {google.cloud.dialogflow.cx.v3beta1.ITestConfig|null} [testConfig] TestCase testConfig - * @property {Array.|null} [testCaseConversationTurns] TestCase testCaseConversationTurns - * @property {google.protobuf.ITimestamp|null} [creationTime] TestCase creationTime - * @property {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null} [lastTestResult] TestCase lastTestResult - */ + /** + * Constructs a new TransitionNode. + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @classdesc Represents a TransitionNode. + * @implements ITransitionNode + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode=} [properties] Properties to set + */ + function TransitionNode(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new TestCase. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TestCase. - * @implements ITestCase - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITestCase=} [properties] Properties to set - */ - function TestCase(properties) { - this.tags = []; - this.testCaseConversationTurns = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * TransitionNode page. + * @member {google.cloud.dialogflow.cx.v3beta1.IPage|null|undefined} page + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode + * @instance + */ + TransitionNode.prototype.page = null; + + /** + * TransitionNode flow. + * @member {google.cloud.dialogflow.cx.v3beta1.IFlow|null|undefined} flow + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode + * @instance + */ + TransitionNode.prototype.flow = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * TransitionNode kind. + * @member {"page"|"flow"|undefined} kind + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode + * @instance + */ + Object.defineProperty(TransitionNode.prototype, "kind", { + get: $util.oneOfGetter($oneOfFields = ["page", "flow"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new TransitionNode instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode} TransitionNode instance + */ + TransitionNode.create = function create(properties) { + return new TransitionNode(properties); + }; + + /** + * Encodes the specified TransitionNode message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode} message TransitionNode message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TransitionNode.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.page != null && Object.hasOwnProperty.call(message, "page")) + $root.google.cloud.dialogflow.cx.v3beta1.Page.encode(message.page, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.flow != null && Object.hasOwnProperty.call(message, "flow")) + $root.google.cloud.dialogflow.cx.v3beta1.Flow.encode(message.flow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified TransitionNode message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode} message TransitionNode message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TransitionNode.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TransitionNode message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode} TransitionNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TransitionNode.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.decode(reader, reader.uint32()); + break; + case 2: + message.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TransitionNode message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode} TransitionNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TransitionNode.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TransitionNode message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TransitionNode.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.page != null && message.hasOwnProperty("page")) { + properties.kind = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Page.verify(message.page); + if (error) + return "page." + error; + } + } + if (message.flow != null && message.hasOwnProperty("flow")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Flow.verify(message.flow); + if (error) + return "flow." + error; + } + } + return null; + }; + + /** + * Creates a TransitionNode message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode} TransitionNode + */ + TransitionNode.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode(); + if (object.page != null) { + if (typeof object.page !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.page: object expected"); + message.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.fromObject(object.page); + } + if (object.flow != null) { + if (typeof object.flow !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.flow: object expected"); + message.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.fromObject(object.flow); + } + return message; + }; + + /** + * Creates a plain object from a TransitionNode message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode} message TransitionNode + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TransitionNode.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.page != null && message.hasOwnProperty("page")) { + object.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.toObject(message.page, options); + if (options.oneofs) + object.kind = "page"; + } + if (message.flow != null && message.hasOwnProperty("flow")) { + object.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.toObject(message.flow, options); + if (options.oneofs) + object.kind = "flow"; + } + return object; + }; + + /** + * Converts this TransitionNode to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode + * @instance + * @returns {Object.} JSON object + */ + TransitionNode.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return TransitionNode; + })(); + + TransitionCoverage.Transition = (function() { + + /** + * Properties of a Transition. + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @interface ITransition + * @property {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null} [source] Transition source + * @property {number|null} [index] Transition index + * @property {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null} [target] Transition target + * @property {boolean|null} [covered] Transition covered + * @property {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null} [transitionRoute] Transition transitionRoute + * @property {google.cloud.dialogflow.cx.v3beta1.IEventHandler|null} [eventHandler] Transition eventHandler + */ + + /** + * Constructs a new Transition. + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @classdesc Represents a Transition. + * @implements ITransition + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition=} [properties] Properties to set + */ + function Transition(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * TestCase name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase - * @instance - */ - TestCase.prototype.name = ""; + /** + * Transition source. + * @member {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null|undefined} source + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition + * @instance + */ + Transition.prototype.source = null; - /** - * TestCase tags. - * @member {Array.} tags - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase - * @instance - */ - TestCase.prototype.tags = $util.emptyArray; + /** + * Transition index. + * @member {number} index + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition + * @instance + */ + Transition.prototype.index = 0; - /** - * TestCase displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase - * @instance - */ - TestCase.prototype.displayName = ""; + /** + * Transition target. + * @member {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null|undefined} target + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition + * @instance + */ + Transition.prototype.target = null; - /** - * TestCase notes. - * @member {string} notes - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase - * @instance - */ - TestCase.prototype.notes = ""; + /** + * Transition covered. + * @member {boolean} covered + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition + * @instance + */ + Transition.prototype.covered = false; - /** - * TestCase testConfig. - * @member {google.cloud.dialogflow.cx.v3beta1.ITestConfig|null|undefined} testConfig - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase - * @instance - */ - TestCase.prototype.testConfig = null; + /** + * Transition transitionRoute. + * @member {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null|undefined} transitionRoute + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition + * @instance + */ + Transition.prototype.transitionRoute = null; - /** - * TestCase testCaseConversationTurns. - * @member {Array.} testCaseConversationTurns - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase - * @instance - */ - TestCase.prototype.testCaseConversationTurns = $util.emptyArray; + /** + * Transition eventHandler. + * @member {google.cloud.dialogflow.cx.v3beta1.IEventHandler|null|undefined} eventHandler + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition + * @instance + */ + Transition.prototype.eventHandler = null; - /** - * TestCase creationTime. - * @member {google.protobuf.ITimestamp|null|undefined} creationTime - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase - * @instance - */ - TestCase.prototype.creationTime = null; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * TestCase lastTestResult. - * @member {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null|undefined} lastTestResult - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase - * @instance - */ - TestCase.prototype.lastTestResult = null; + /** + * Transition detail. + * @member {"transitionRoute"|"eventHandler"|undefined} detail + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition + * @instance + */ + Object.defineProperty(Transition.prototype, "detail", { + get: $util.oneOfGetter($oneOfFields = ["transitionRoute", "eventHandler"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Creates a new TestCase instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestCase=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TestCase} TestCase instance - */ - TestCase.create = function create(properties) { - return new TestCase(properties); - }; + /** + * Creates a new Transition instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition} Transition instance + */ + Transition.create = function create(properties) { + return new Transition(properties); + }; - /** - * Encodes the specified TestCase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCase.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestCase} message TestCase message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TestCase.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.tags != null && message.tags.length) - for (var i = 0; i < message.tags.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.tags[i]); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); - if (message.notes != null && Object.hasOwnProperty.call(message, "notes")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.notes); - if (message.testCaseConversationTurns != null && message.testCaseConversationTurns.length) - for (var i = 0; i < message.testCaseConversationTurns.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.encode(message.testCaseConversationTurns[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.creationTime != null && Object.hasOwnProperty.call(message, "creationTime")) - $root.google.protobuf.Timestamp.encode(message.creationTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.lastTestResult != null && Object.hasOwnProperty.call(message, "lastTestResult")) - $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.encode(message.lastTestResult, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.testConfig != null && Object.hasOwnProperty.call(message, "testConfig")) - $root.google.cloud.dialogflow.cx.v3beta1.TestConfig.encode(message.testConfig, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified Transition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition} message Transition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Transition.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.source != null && Object.hasOwnProperty.call(message, "source")) + $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.encode(message.source, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.encode(message.target, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.covered != null && Object.hasOwnProperty.call(message, "covered")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.covered); + if (message.index != null && Object.hasOwnProperty.call(message, "index")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.index); + if (message.transitionRoute != null && Object.hasOwnProperty.call(message, "transitionRoute")) + $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.encode(message.transitionRoute, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.eventHandler != null && Object.hasOwnProperty.call(message, "eventHandler")) + $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.encode(message.eventHandler, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified TestCase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCase.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestCase} message TestCase message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TestCase.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Transition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition} message Transition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Transition.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a TestCase message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.TestCase} TestCase - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TestCase.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TestCase(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - if (!(message.tags && message.tags.length)) - message.tags = []; - message.tags.push(reader.string()); - break; - case 3: - message.displayName = reader.string(); - break; - case 4: - message.notes = reader.string(); - break; - case 13: - message.testConfig = $root.google.cloud.dialogflow.cx.v3beta1.TestConfig.decode(reader, reader.uint32()); - break; - case 5: - if (!(message.testCaseConversationTurns && message.testCaseConversationTurns.length)) - message.testCaseConversationTurns = []; - message.testCaseConversationTurns.push($root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.decode(reader, reader.uint32())); - break; - case 10: - message.creationTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 12: - message.lastTestResult = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Decodes a Transition message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition} Transition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Transition.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.source = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.decode(reader, reader.uint32()); + break; + case 4: + message.index = reader.int32(); + break; + case 2: + message.target = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.decode(reader, reader.uint32()); + break; + case 3: + message.covered = reader.bool(); + break; + case 5: + message.transitionRoute = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.decode(reader, reader.uint32()); + break; + case 6: + message.eventHandler = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a TestCase message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TestCase} TestCase - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TestCase.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a Transition message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition} Transition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Transition.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a TestCase message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TestCase.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.tags != null && message.hasOwnProperty("tags")) { - if (!Array.isArray(message.tags)) - return "tags: array expected"; - for (var i = 0; i < message.tags.length; ++i) - if (!$util.isString(message.tags[i])) - return "tags: string[] expected"; - } - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.notes != null && message.hasOwnProperty("notes")) - if (!$util.isString(message.notes)) - return "notes: string expected"; - if (message.testConfig != null && message.hasOwnProperty("testConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TestConfig.verify(message.testConfig); - if (error) - return "testConfig." + error; - } - if (message.testCaseConversationTurns != null && message.hasOwnProperty("testCaseConversationTurns")) { - if (!Array.isArray(message.testCaseConversationTurns)) - return "testCaseConversationTurns: array expected"; - for (var i = 0; i < message.testCaseConversationTurns.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.verify(message.testCaseConversationTurns[i]); + /** + * Verifies a Transition message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Transition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.source != null && message.hasOwnProperty("source")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.verify(message.source); if (error) - return "testCaseConversationTurns." + error; + return "source." + error; } - } - if (message.creationTime != null && message.hasOwnProperty("creationTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.creationTime); - if (error) - return "creationTime." + error; - } - if (message.lastTestResult != null && message.hasOwnProperty("lastTestResult")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.verify(message.lastTestResult); - if (error) - return "lastTestResult." + error; - } - return null; - }; + if (message.index != null && message.hasOwnProperty("index")) + if (!$util.isInteger(message.index)) + return "index: integer expected"; + if (message.target != null && message.hasOwnProperty("target")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.verify(message.target); + if (error) + return "target." + error; + } + if (message.covered != null && message.hasOwnProperty("covered")) + if (typeof message.covered !== "boolean") + return "covered: boolean expected"; + if (message.transitionRoute != null && message.hasOwnProperty("transitionRoute")) { + properties.detail = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify(message.transitionRoute); + if (error) + return "transitionRoute." + error; + } + } + if (message.eventHandler != null && message.hasOwnProperty("eventHandler")) { + if (properties.detail === 1) + return "detail: multiple values"; + properties.detail = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.verify(message.eventHandler); + if (error) + return "eventHandler." + error; + } + } + return null; + }; - /** - * Creates a TestCase message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TestCase} TestCase - */ - TestCase.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TestCase) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TestCase(); - if (object.name != null) - message.name = String(object.name); - if (object.tags) { - if (!Array.isArray(object.tags)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCase.tags: array expected"); - message.tags = []; - for (var i = 0; i < object.tags.length; ++i) - message.tags[i] = String(object.tags[i]); - } - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.notes != null) - message.notes = String(object.notes); - if (object.testConfig != null) { - if (typeof object.testConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCase.testConfig: object expected"); - message.testConfig = $root.google.cloud.dialogflow.cx.v3beta1.TestConfig.fromObject(object.testConfig); - } - if (object.testCaseConversationTurns) { - if (!Array.isArray(object.testCaseConversationTurns)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCase.testCaseConversationTurns: array expected"); - message.testCaseConversationTurns = []; - for (var i = 0; i < object.testCaseConversationTurns.length; ++i) { - if (typeof object.testCaseConversationTurns[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCase.testCaseConversationTurns: object expected"); - message.testCaseConversationTurns[i] = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.fromObject(object.testCaseConversationTurns[i]); + /** + * Creates a Transition message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition} Transition + */ + Transition.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition(); + if (object.source != null) { + if (typeof object.source !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.source: object expected"); + message.source = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.fromObject(object.source); + } + if (object.index != null) + message.index = object.index | 0; + if (object.target != null) { + if (typeof object.target !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.target: object expected"); + message.target = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.fromObject(object.target); + } + if (object.covered != null) + message.covered = Boolean(object.covered); + if (object.transitionRoute != null) { + if (typeof object.transitionRoute !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.transitionRoute: object expected"); + message.transitionRoute = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.fromObject(object.transitionRoute); + } + if (object.eventHandler != null) { + if (typeof object.eventHandler !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.eventHandler: object expected"); + message.eventHandler = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.fromObject(object.eventHandler); } - } - if (object.creationTime != null) { - if (typeof object.creationTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCase.creationTime: object expected"); - message.creationTime = $root.google.protobuf.Timestamp.fromObject(object.creationTime); - } - if (object.lastTestResult != null) { - if (typeof object.lastTestResult !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCase.lastTestResult: object expected"); - message.lastTestResult = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.fromObject(object.lastTestResult); - } - return message; - }; + return message; + }; - /** - * Creates a plain object from a TestCase message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TestCase} message TestCase - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TestCase.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.tags = []; - object.testCaseConversationTurns = []; - } - if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.notes = ""; - object.creationTime = null; - object.lastTestResult = null; - object.testConfig = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.tags && message.tags.length) { - object.tags = []; - for (var j = 0; j < message.tags.length; ++j) - object.tags[j] = message.tags[j]; - } - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.notes != null && message.hasOwnProperty("notes")) - object.notes = message.notes; - if (message.testCaseConversationTurns && message.testCaseConversationTurns.length) { - object.testCaseConversationTurns = []; - for (var j = 0; j < message.testCaseConversationTurns.length; ++j) - object.testCaseConversationTurns[j] = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.toObject(message.testCaseConversationTurns[j], options); - } - if (message.creationTime != null && message.hasOwnProperty("creationTime")) - object.creationTime = $root.google.protobuf.Timestamp.toObject(message.creationTime, options); - if (message.lastTestResult != null && message.hasOwnProperty("lastTestResult")) - object.lastTestResult = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.toObject(message.lastTestResult, options); - if (message.testConfig != null && message.hasOwnProperty("testConfig")) - object.testConfig = $root.google.cloud.dialogflow.cx.v3beta1.TestConfig.toObject(message.testConfig, options); - return object; - }; + /** + * Creates a plain object from a Transition message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition} message Transition + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Transition.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.source = null; + object.target = null; + object.covered = false; + object.index = 0; + } + if (message.source != null && message.hasOwnProperty("source")) + object.source = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.toObject(message.source, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.toObject(message.target, options); + if (message.covered != null && message.hasOwnProperty("covered")) + object.covered = message.covered; + if (message.index != null && message.hasOwnProperty("index")) + object.index = message.index; + if (message.transitionRoute != null && message.hasOwnProperty("transitionRoute")) { + object.transitionRoute = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.toObject(message.transitionRoute, options); + if (options.oneofs) + object.detail = "transitionRoute"; + } + if (message.eventHandler != null && message.hasOwnProperty("eventHandler")) { + object.eventHandler = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.toObject(message.eventHandler, options); + if (options.oneofs) + object.detail = "eventHandler"; + } + return object; + }; - /** - * Converts this TestCase to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase - * @instance - * @returns {Object.} JSON object - */ - TestCase.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this Transition to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition + * @instance + * @returns {Object.} JSON object + */ + Transition.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return TestCase; + return Transition; + })(); + + return TransitionCoverage; })(); - v3beta1.TestCaseResult = (function() { + v3beta1.TransitionRouteGroupCoverage = (function() { /** - * Properties of a TestCaseResult. + * Properties of a TransitionRouteGroupCoverage. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ITestCaseResult - * @property {string|null} [name] TestCaseResult name - * @property {string|null} [environment] TestCaseResult environment - * @property {Array.|null} [conversationTurns] TestCaseResult conversationTurns - * @property {google.cloud.dialogflow.cx.v3beta1.TestResult|null} [testResult] TestCaseResult testResult - * @property {google.protobuf.ITimestamp|null} [testTime] TestCaseResult testTime + * @interface ITransitionRouteGroupCoverage + * @property {Array.|null} [coverages] TransitionRouteGroupCoverage coverages + * @property {number|null} [coverageScore] TransitionRouteGroupCoverage coverageScore */ /** - * Constructs a new TestCaseResult. + * Constructs a new TransitionRouteGroupCoverage. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TestCaseResult. - * @implements ITestCaseResult + * @classdesc Represents a TransitionRouteGroupCoverage. + * @implements ITransitionRouteGroupCoverage * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage=} [properties] Properties to set */ - function TestCaseResult(properties) { - this.conversationTurns = []; + function TransitionRouteGroupCoverage(properties) { + this.coverages = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -95901,130 +96242,91 @@ } /** - * TestCaseResult name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult - * @instance - */ - TestCaseResult.prototype.name = ""; - - /** - * TestCaseResult environment. - * @member {string} environment - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult - * @instance - */ - TestCaseResult.prototype.environment = ""; - - /** - * TestCaseResult conversationTurns. - * @member {Array.} conversationTurns - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult - * @instance - */ - TestCaseResult.prototype.conversationTurns = $util.emptyArray; - - /** - * TestCaseResult testResult. - * @member {google.cloud.dialogflow.cx.v3beta1.TestResult} testResult - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult + * TransitionRouteGroupCoverage coverages. + * @member {Array.} coverages + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage * @instance */ - TestCaseResult.prototype.testResult = 0; + TransitionRouteGroupCoverage.prototype.coverages = $util.emptyArray; /** - * TestCaseResult testTime. - * @member {google.protobuf.ITimestamp|null|undefined} testTime - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult + * TransitionRouteGroupCoverage coverageScore. + * @member {number} coverageScore + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage * @instance */ - TestCaseResult.prototype.testTime = null; + TransitionRouteGroupCoverage.prototype.coverageScore = 0; /** - * Creates a new TestCaseResult instance using the specified properties. + * Creates a new TransitionRouteGroupCoverage instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseResult} TestCaseResult instance + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage instance */ - TestCaseResult.create = function create(properties) { - return new TestCaseResult(properties); + TransitionRouteGroupCoverage.create = function create(properties) { + return new TransitionRouteGroupCoverage(properties); }; /** - * Encodes the specified TestCaseResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCaseResult.verify|verify} messages. + * Encodes the specified TransitionRouteGroupCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult} message TestCaseResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage} message TransitionRouteGroupCoverage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestCaseResult.encode = function encode(message, writer) { + TransitionRouteGroupCoverage.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.environment); - if (message.conversationTurns != null && message.conversationTurns.length) - for (var i = 0; i < message.conversationTurns.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.encode(message.conversationTurns[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.testResult != null && Object.hasOwnProperty.call(message, "testResult")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.testResult); - if (message.testTime != null && Object.hasOwnProperty.call(message, "testTime")) - $root.google.protobuf.Timestamp.encode(message.testTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.coverages != null && message.coverages.length) + for (var i = 0; i < message.coverages.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.encode(message.coverages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.coverageScore != null && Object.hasOwnProperty.call(message, "coverageScore")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.coverageScore); return writer; }; /** - * Encodes the specified TestCaseResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCaseResult.verify|verify} messages. + * Encodes the specified TransitionRouteGroupCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult} message TestCaseResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage} message TransitionRouteGroupCoverage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestCaseResult.encodeDelimited = function encodeDelimited(message, writer) { + TransitionRouteGroupCoverage.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestCaseResult message from the specified reader or buffer. + * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseResult} TestCaseResult + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestCaseResult.decode = function decode(reader, length) { + TransitionRouteGroupCoverage.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.coverages && message.coverages.length)) + message.coverages = []; + message.coverages.push($root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.decode(reader, reader.uint32())); break; case 2: - message.environment = reader.string(); - break; - case 3: - if (!(message.conversationTurns && message.conversationTurns.length)) - message.conversationTurns = []; - message.conversationTurns.push($root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.decode(reader, reader.uint32())); - break; - case 4: - message.testResult = reader.int32(); - break; - case 5: - message.testTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.coverageScore = reader.float(); break; default: reader.skipType(tag & 7); @@ -96035,408 +96337,609 @@ }; /** - * Decodes a TestCaseResult message from the specified reader or buffer, length delimited. + * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseResult} TestCaseResult + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestCaseResult.decodeDelimited = function decodeDelimited(reader) { + TransitionRouteGroupCoverage.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestCaseResult message. + * Verifies a TransitionRouteGroupCoverage message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestCaseResult.verify = function verify(message) { + TransitionRouteGroupCoverage.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.environment != null && message.hasOwnProperty("environment")) - if (!$util.isString(message.environment)) - return "environment: string expected"; - if (message.conversationTurns != null && message.hasOwnProperty("conversationTurns")) { - if (!Array.isArray(message.conversationTurns)) - return "conversationTurns: array expected"; - for (var i = 0; i < message.conversationTurns.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.verify(message.conversationTurns[i]); + if (message.coverages != null && message.hasOwnProperty("coverages")) { + if (!Array.isArray(message.coverages)) + return "coverages: array expected"; + for (var i = 0; i < message.coverages.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.verify(message.coverages[i]); + if (error) + return "coverages." + error; + } + } + if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + if (typeof message.coverageScore !== "number") + return "coverageScore: number expected"; + return null; + }; + + /** + * Creates a TransitionRouteGroupCoverage message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage + */ + TransitionRouteGroupCoverage.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage(); + if (object.coverages) { + if (!Array.isArray(object.coverages)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.coverages: array expected"); + message.coverages = []; + for (var i = 0; i < object.coverages.length; ++i) { + if (typeof object.coverages[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.coverages: object expected"); + message.coverages[i] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.fromObject(object.coverages[i]); + } + } + if (object.coverageScore != null) + message.coverageScore = Number(object.coverageScore); + return message; + }; + + /** + * Creates a plain object from a TransitionRouteGroupCoverage message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage} message TransitionRouteGroupCoverage + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TransitionRouteGroupCoverage.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.coverages = []; + if (options.defaults) + object.coverageScore = 0; + if (message.coverages && message.coverages.length) { + object.coverages = []; + for (var j = 0; j < message.coverages.length; ++j) + object.coverages[j] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.toObject(message.coverages[j], options); + } + if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; + return object; + }; + + /** + * Converts this TransitionRouteGroupCoverage to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @instance + * @returns {Object.} JSON object + */ + TransitionRouteGroupCoverage.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + TransitionRouteGroupCoverage.Coverage = (function() { + + /** + * Properties of a Coverage. + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @interface ICoverage + * @property {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null} [routeGroup] Coverage routeGroup + * @property {Array.|null} [transitions] Coverage transitions + * @property {number|null} [coverageScore] Coverage coverageScore + */ + + /** + * Constructs a new Coverage. + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @classdesc Represents a Coverage. + * @implements ICoverage + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage=} [properties] Properties to set + */ + function Coverage(properties) { + this.transitions = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Coverage routeGroup. + * @member {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null|undefined} routeGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage + * @instance + */ + Coverage.prototype.routeGroup = null; + + /** + * Coverage transitions. + * @member {Array.} transitions + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage + * @instance + */ + Coverage.prototype.transitions = $util.emptyArray; + + /** + * Coverage coverageScore. + * @member {number} coverageScore + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage + * @instance + */ + Coverage.prototype.coverageScore = 0; + + /** + * Creates a new Coverage instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage} Coverage instance + */ + Coverage.create = function create(properties) { + return new Coverage(properties); + }; + + /** + * Encodes the specified Coverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage} message Coverage message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Coverage.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.routeGroup != null && Object.hasOwnProperty.call(message, "routeGroup")) + $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.encode(message.routeGroup, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.transitions != null && message.transitions.length) + for (var i = 0; i < message.transitions.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.encode(message.transitions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.coverageScore != null && Object.hasOwnProperty.call(message, "coverageScore")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.coverageScore); + return writer; + }; + + /** + * Encodes the specified Coverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage} message Coverage message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Coverage.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Coverage message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage} Coverage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Coverage.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.routeGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.decode(reader, reader.uint32()); + break; + case 2: + if (!(message.transitions && message.transitions.length)) + message.transitions = []; + message.transitions.push($root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.decode(reader, reader.uint32())); + break; + case 3: + message.coverageScore = reader.float(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Coverage message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage} Coverage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Coverage.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Coverage message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Coverage.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.routeGroup != null && message.hasOwnProperty("routeGroup")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify(message.routeGroup); if (error) - return "conversationTurns." + error; + return "routeGroup." + error; } - } - if (message.testResult != null && message.hasOwnProperty("testResult")) - switch (message.testResult) { - default: - return "testResult: enum value expected"; - case 0: - case 1: - case 2: - break; + if (message.transitions != null && message.hasOwnProperty("transitions")) { + if (!Array.isArray(message.transitions)) + return "transitions: array expected"; + for (var i = 0; i < message.transitions.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.verify(message.transitions[i]); + if (error) + return "transitions." + error; + } } - if (message.testTime != null && message.hasOwnProperty("testTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.testTime); - if (error) - return "testTime." + error; - } - return null; - }; + if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + if (typeof message.coverageScore !== "number") + return "coverageScore: number expected"; + return null; + }; - /** - * Creates a TestCaseResult message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseResult} TestCaseResult - */ - TestCaseResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult(); - if (object.name != null) - message.name = String(object.name); - if (object.environment != null) - message.environment = String(object.environment); - if (object.conversationTurns) { - if (!Array.isArray(object.conversationTurns)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCaseResult.conversationTurns: array expected"); - message.conversationTurns = []; - for (var i = 0; i < object.conversationTurns.length; ++i) { - if (typeof object.conversationTurns[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCaseResult.conversationTurns: object expected"); - message.conversationTurns[i] = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.fromObject(object.conversationTurns[i]); + /** + * Creates a Coverage message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage} Coverage + */ + Coverage.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage(); + if (object.routeGroup != null) { + if (typeof object.routeGroup !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.routeGroup: object expected"); + message.routeGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.fromObject(object.routeGroup); } - } - switch (object.testResult) { - case "TEST_RESULT_UNSPECIFIED": - case 0: - message.testResult = 0; - break; - case "PASSED": - case 1: - message.testResult = 1; - break; - case "FAILED": - case 2: - message.testResult = 2; - break; - } - if (object.testTime != null) { - if (typeof object.testTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCaseResult.testTime: object expected"); - message.testTime = $root.google.protobuf.Timestamp.fromObject(object.testTime); - } - return message; - }; + if (object.transitions) { + if (!Array.isArray(object.transitions)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.transitions: array expected"); + message.transitions = []; + for (var i = 0; i < object.transitions.length; ++i) { + if (typeof object.transitions[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.transitions: object expected"); + message.transitions[i] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.fromObject(object.transitions[i]); + } + } + if (object.coverageScore != null) + message.coverageScore = Number(object.coverageScore); + return message; + }; - /** - * Creates a plain object from a TestCaseResult message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TestCaseResult} message TestCaseResult - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TestCaseResult.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.conversationTurns = []; - if (options.defaults) { - object.name = ""; - object.environment = ""; - object.testResult = options.enums === String ? "TEST_RESULT_UNSPECIFIED" : 0; - object.testTime = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = message.environment; - if (message.conversationTurns && message.conversationTurns.length) { - object.conversationTurns = []; - for (var j = 0; j < message.conversationTurns.length; ++j) - object.conversationTurns[j] = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.toObject(message.conversationTurns[j], options); - } - if (message.testResult != null && message.hasOwnProperty("testResult")) - object.testResult = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.TestResult[message.testResult] : message.testResult; - if (message.testTime != null && message.hasOwnProperty("testTime")) - object.testTime = $root.google.protobuf.Timestamp.toObject(message.testTime, options); - return object; - }; + /** + * Creates a plain object from a Coverage message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage} message Coverage + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Coverage.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.transitions = []; + if (options.defaults) { + object.routeGroup = null; + object.coverageScore = 0; + } + if (message.routeGroup != null && message.hasOwnProperty("routeGroup")) + object.routeGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.toObject(message.routeGroup, options); + if (message.transitions && message.transitions.length) { + object.transitions = []; + for (var j = 0; j < message.transitions.length; ++j) + object.transitions[j] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.toObject(message.transitions[j], options); + } + if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; + return object; + }; - /** - * Converts this TestCaseResult to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult - * @instance - * @returns {Object.} JSON object - */ - TestCaseResult.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this Coverage to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage + * @instance + * @returns {Object.} JSON object + */ + Coverage.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return TestCaseResult; - })(); + Coverage.Transition = (function() { - v3beta1.TestConfig = (function() { + /** + * Properties of a Transition. + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage + * @interface ITransition + * @property {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null} [transitionRoute] Transition transitionRoute + * @property {boolean|null} [covered] Transition covered + */ - /** - * Properties of a TestConfig. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ITestConfig - * @property {Array.|null} [trackingParameters] TestConfig trackingParameters - * @property {string|null} [flow] TestConfig flow - */ + /** + * Constructs a new Transition. + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage + * @classdesc Represents a Transition. + * @implements ITransition + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition=} [properties] Properties to set + */ + function Transition(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new TestConfig. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TestConfig. - * @implements ITestConfig - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITestConfig=} [properties] Properties to set - */ - function TestConfig(properties) { - this.trackingParameters = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Transition transitionRoute. + * @member {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null|undefined} transitionRoute + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition + * @instance + */ + Transition.prototype.transitionRoute = null; - /** - * TestConfig trackingParameters. - * @member {Array.} trackingParameters - * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig - * @instance - */ - TestConfig.prototype.trackingParameters = $util.emptyArray; + /** + * Transition covered. + * @member {boolean} covered + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition + * @instance + */ + Transition.prototype.covered = false; - /** - * TestConfig flow. - * @member {string} flow - * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig - * @instance - */ - TestConfig.prototype.flow = ""; + /** + * Creates a new Transition instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition} Transition instance + */ + Transition.create = function create(properties) { + return new Transition(properties); + }; - /** - * Creates a new TestConfig instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestConfig=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TestConfig} TestConfig instance - */ - TestConfig.create = function create(properties) { - return new TestConfig(properties); - }; + /** + * Encodes the specified Transition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition} message Transition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Transition.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.transitionRoute != null && Object.hasOwnProperty.call(message, "transitionRoute")) + $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.encode(message.transitionRoute, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.covered != null && Object.hasOwnProperty.call(message, "covered")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.covered); + return writer; + }; - /** - * Encodes the specified TestConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestConfig} message TestConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TestConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.trackingParameters != null && message.trackingParameters.length) - for (var i = 0; i < message.trackingParameters.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.trackingParameters[i]); - if (message.flow != null && Object.hasOwnProperty.call(message, "flow")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.flow); - return writer; - }; + /** + * Encodes the specified Transition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition} message Transition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Transition.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified TestConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestConfig} message TestConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TestConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a Transition message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition} Transition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Transition.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.transitionRoute = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.decode(reader, reader.uint32()); + break; + case 2: + message.covered = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Decodes a TestConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.TestConfig} TestConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TestConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TestConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.trackingParameters && message.trackingParameters.length)) - message.trackingParameters = []; - message.trackingParameters.push(reader.string()); - break; - case 2: - message.flow = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Decodes a Transition message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition} Transition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Transition.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a TestConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TestConfig} TestConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TestConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Verifies a Transition message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Transition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.transitionRoute != null && message.hasOwnProperty("transitionRoute")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify(message.transitionRoute); + if (error) + return "transitionRoute." + error; + } + if (message.covered != null && message.hasOwnProperty("covered")) + if (typeof message.covered !== "boolean") + return "covered: boolean expected"; + return null; + }; + + /** + * Creates a Transition message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition} Transition + */ + Transition.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition(); + if (object.transitionRoute != null) { + if (typeof object.transitionRoute !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.transitionRoute: object expected"); + message.transitionRoute = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.fromObject(object.transitionRoute); + } + if (object.covered != null) + message.covered = Boolean(object.covered); + return message; + }; - /** - * Verifies a TestConfig message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TestConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.trackingParameters != null && message.hasOwnProperty("trackingParameters")) { - if (!Array.isArray(message.trackingParameters)) - return "trackingParameters: array expected"; - for (var i = 0; i < message.trackingParameters.length; ++i) - if (!$util.isString(message.trackingParameters[i])) - return "trackingParameters: string[] expected"; - } - if (message.flow != null && message.hasOwnProperty("flow")) - if (!$util.isString(message.flow)) - return "flow: string expected"; - return null; - }; + /** + * Creates a plain object from a Transition message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition} message Transition + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Transition.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.transitionRoute = null; + object.covered = false; + } + if (message.transitionRoute != null && message.hasOwnProperty("transitionRoute")) + object.transitionRoute = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.toObject(message.transitionRoute, options); + if (message.covered != null && message.hasOwnProperty("covered")) + object.covered = message.covered; + return object; + }; - /** - * Creates a TestConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TestConfig} TestConfig - */ - TestConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TestConfig) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TestConfig(); - if (object.trackingParameters) { - if (!Array.isArray(object.trackingParameters)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestConfig.trackingParameters: array expected"); - message.trackingParameters = []; - for (var i = 0; i < object.trackingParameters.length; ++i) - message.trackingParameters[i] = String(object.trackingParameters[i]); - } - if (object.flow != null) - message.flow = String(object.flow); - return message; - }; + /** + * Converts this Transition to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition + * @instance + * @returns {Object.} JSON object + */ + Transition.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a plain object from a TestConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TestConfig} message TestConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TestConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.trackingParameters = []; - if (options.defaults) - object.flow = ""; - if (message.trackingParameters && message.trackingParameters.length) { - object.trackingParameters = []; - for (var j = 0; j < message.trackingParameters.length; ++j) - object.trackingParameters[j] = message.trackingParameters[j]; - } - if (message.flow != null && message.hasOwnProperty("flow")) - object.flow = message.flow; - return object; - }; + return Transition; + })(); - /** - * Converts this TestConfig to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig - * @instance - * @returns {Object.} JSON object - */ - TestConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return Coverage; + })(); - return TestConfig; + return TransitionRouteGroupCoverage; })(); - v3beta1.ConversationTurn = (function() { + v3beta1.IntentCoverage = (function() { /** - * Properties of a ConversationTurn. + * Properties of an IntentCoverage. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IConversationTurn - * @property {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput|null} [userInput] ConversationTurn userInput - * @property {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput|null} [virtualAgentOutput] ConversationTurn virtualAgentOutput + * @interface IIntentCoverage + * @property {Array.|null} [intents] IntentCoverage intents + * @property {number|null} [coverageScore] IntentCoverage coverageScore */ /** - * Constructs a new ConversationTurn. + * Constructs a new IntentCoverage. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ConversationTurn. - * @implements IConversationTurn + * @classdesc Represents an IntentCoverage. + * @implements IIntentCoverage * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IConversationTurn=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IIntentCoverage=} [properties] Properties to set */ - function ConversationTurn(properties) { + function IntentCoverage(properties) { + this.intents = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -96444,88 +96947,91 @@ } /** - * ConversationTurn userInput. - * @member {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput|null|undefined} userInput - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn + * IntentCoverage intents. + * @member {Array.} intents + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage * @instance */ - ConversationTurn.prototype.userInput = null; + IntentCoverage.prototype.intents = $util.emptyArray; /** - * ConversationTurn virtualAgentOutput. - * @member {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput|null|undefined} virtualAgentOutput - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn + * IntentCoverage coverageScore. + * @member {number} coverageScore + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage * @instance */ - ConversationTurn.prototype.virtualAgentOutput = null; + IntentCoverage.prototype.coverageScore = 0; /** - * Creates a new ConversationTurn instance using the specified properties. + * Creates a new IntentCoverage instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IConversationTurn=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn} ConversationTurn instance + * @param {google.cloud.dialogflow.cx.v3beta1.IIntentCoverage=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage} IntentCoverage instance */ - ConversationTurn.create = function create(properties) { - return new ConversationTurn(properties); + IntentCoverage.create = function create(properties) { + return new IntentCoverage(properties); }; /** - * Encodes the specified ConversationTurn message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.verify|verify} messages. + * Encodes the specified IntentCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentCoverage.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IConversationTurn} message ConversationTurn message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IIntentCoverage} message IntentCoverage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConversationTurn.encode = function encode(message, writer) { + IntentCoverage.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.userInput != null && Object.hasOwnProperty.call(message, "userInput")) - $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.encode(message.userInput, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.virtualAgentOutput != null && Object.hasOwnProperty.call(message, "virtualAgentOutput")) - $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.encode(message.virtualAgentOutput, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.intents != null && message.intents.length) + for (var i = 0; i < message.intents.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.encode(message.intents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.coverageScore != null && Object.hasOwnProperty.call(message, "coverageScore")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.coverageScore); return writer; }; /** - * Encodes the specified ConversationTurn message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.verify|verify} messages. + * Encodes the specified IntentCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentCoverage.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IConversationTurn} message ConversationTurn message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IIntentCoverage} message IntentCoverage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConversationTurn.encodeDelimited = function encodeDelimited(message, writer) { + IntentCoverage.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConversationTurn message from the specified reader or buffer. + * Decodes an IntentCoverage message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn} ConversationTurn + * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage} IntentCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConversationTurn.decode = function decode(reader, length) { + IntentCoverage.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.userInput = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.decode(reader, reader.uint32()); + if (!(message.intents && message.intents.length)) + message.intents = []; + message.intents.push($root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.decode(reader, reader.uint32())); break; case 2: - message.virtualAgentOutput = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.decode(reader, reader.uint32()); + message.coverageScore = reader.float(); break; default: reader.skipType(tag & 7); @@ -96536,395 +97042,131 @@ }; /** - * Decodes a ConversationTurn message from the specified reader or buffer, length delimited. + * Decodes an IntentCoverage message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn} ConversationTurn + * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage} IntentCoverage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConversationTurn.decodeDelimited = function decodeDelimited(reader) { + IntentCoverage.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConversationTurn message. + * Verifies an IntentCoverage message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConversationTurn.verify = function verify(message) { + IntentCoverage.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.userInput != null && message.hasOwnProperty("userInput")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.verify(message.userInput); - if (error) - return "userInput." + error; - } - if (message.virtualAgentOutput != null && message.hasOwnProperty("virtualAgentOutput")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.verify(message.virtualAgentOutput); - if (error) - return "virtualAgentOutput." + error; - } - return null; - }; - - /** - * Creates a ConversationTurn message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn} ConversationTurn - */ - ConversationTurn.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn(); - if (object.userInput != null) { - if (typeof object.userInput !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.userInput: object expected"); - message.userInput = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.fromObject(object.userInput); - } - if (object.virtualAgentOutput != null) { - if (typeof object.virtualAgentOutput !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.virtualAgentOutput: object expected"); - message.virtualAgentOutput = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.fromObject(object.virtualAgentOutput); - } - return message; - }; - - /** - * Creates a plain object from a ConversationTurn message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn} message ConversationTurn - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ConversationTurn.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.userInput = null; - object.virtualAgentOutput = null; - } - if (message.userInput != null && message.hasOwnProperty("userInput")) - object.userInput = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.toObject(message.userInput, options); - if (message.virtualAgentOutput != null && message.hasOwnProperty("virtualAgentOutput")) - object.virtualAgentOutput = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.toObject(message.virtualAgentOutput, options); - return object; - }; - - /** - * Converts this ConversationTurn to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn - * @instance - * @returns {Object.} JSON object - */ - ConversationTurn.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - ConversationTurn.UserInput = (function() { - - /** - * Properties of a UserInput. - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn - * @interface IUserInput - * @property {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null} [input] UserInput input - * @property {google.protobuf.IStruct|null} [injectedParameters] UserInput injectedParameters - * @property {boolean|null} [isWebhookEnabled] UserInput isWebhookEnabled - * @property {boolean|null} [enableSentimentAnalysis] UserInput enableSentimentAnalysis - */ - - /** - * Constructs a new UserInput. - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn - * @classdesc Represents a UserInput. - * @implements IUserInput - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput=} [properties] Properties to set - */ - function UserInput(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * UserInput input. - * @member {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null|undefined} input - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput - * @instance - */ - UserInput.prototype.input = null; - - /** - * UserInput injectedParameters. - * @member {google.protobuf.IStruct|null|undefined} injectedParameters - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput - * @instance - */ - UserInput.prototype.injectedParameters = null; - - /** - * UserInput isWebhookEnabled. - * @member {boolean} isWebhookEnabled - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput - * @instance - */ - UserInput.prototype.isWebhookEnabled = false; - - /** - * UserInput enableSentimentAnalysis. - * @member {boolean} enableSentimentAnalysis - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput - * @instance - */ - UserInput.prototype.enableSentimentAnalysis = false; - - /** - * Creates a new UserInput instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput} UserInput instance - */ - UserInput.create = function create(properties) { - return new UserInput(properties); - }; - - /** - * Encodes the specified UserInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput} message UserInput message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserInput.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.injectedParameters != null && Object.hasOwnProperty.call(message, "injectedParameters")) - $root.google.protobuf.Struct.encode(message.injectedParameters, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.isWebhookEnabled != null && Object.hasOwnProperty.call(message, "isWebhookEnabled")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isWebhookEnabled); - if (message.input != null && Object.hasOwnProperty.call(message, "input")) - $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.encode(message.input, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.enableSentimentAnalysis != null && Object.hasOwnProperty.call(message, "enableSentimentAnalysis")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.enableSentimentAnalysis); - return writer; - }; - - /** - * Encodes the specified UserInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput} message UserInput message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserInput.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a UserInput message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput} UserInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserInput.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 5: - message.input = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.decode(reader, reader.uint32()); - break; - case 2: - message.injectedParameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 3: - message.isWebhookEnabled = reader.bool(); - break; - case 7: - message.enableSentimentAnalysis = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a UserInput message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput} UserInput - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserInput.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a UserInput message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UserInput.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.input != null && message.hasOwnProperty("input")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.verify(message.input); - if (error) - return "input." + error; - } - if (message.injectedParameters != null && message.hasOwnProperty("injectedParameters")) { - var error = $root.google.protobuf.Struct.verify(message.injectedParameters); - if (error) - return "injectedParameters." + error; - } - if (message.isWebhookEnabled != null && message.hasOwnProperty("isWebhookEnabled")) - if (typeof message.isWebhookEnabled !== "boolean") - return "isWebhookEnabled: boolean expected"; - if (message.enableSentimentAnalysis != null && message.hasOwnProperty("enableSentimentAnalysis")) - if (typeof message.enableSentimentAnalysis !== "boolean") - return "enableSentimentAnalysis: boolean expected"; - return null; - }; - - /** - * Creates a UserInput message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput} UserInput - */ - UserInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput(); - if (object.input != null) { - if (typeof object.input !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.input: object expected"); - message.input = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.fromObject(object.input); - } - if (object.injectedParameters != null) { - if (typeof object.injectedParameters !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.injectedParameters: object expected"); - message.injectedParameters = $root.google.protobuf.Struct.fromObject(object.injectedParameters); + if (message.intents != null && message.hasOwnProperty("intents")) { + if (!Array.isArray(message.intents)) + return "intents: array expected"; + for (var i = 0; i < message.intents.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.verify(message.intents[i]); + if (error) + return "intents." + error; } - if (object.isWebhookEnabled != null) - message.isWebhookEnabled = Boolean(object.isWebhookEnabled); - if (object.enableSentimentAnalysis != null) - message.enableSentimentAnalysis = Boolean(object.enableSentimentAnalysis); - return message; - }; + } + if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + if (typeof message.coverageScore !== "number") + return "coverageScore: number expected"; + return null; + }; - /** - * Creates a plain object from a UserInput message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput} message UserInput - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UserInput.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.injectedParameters = null; - object.isWebhookEnabled = false; - object.input = null; - object.enableSentimentAnalysis = false; - } - if (message.injectedParameters != null && message.hasOwnProperty("injectedParameters")) - object.injectedParameters = $root.google.protobuf.Struct.toObject(message.injectedParameters, options); - if (message.isWebhookEnabled != null && message.hasOwnProperty("isWebhookEnabled")) - object.isWebhookEnabled = message.isWebhookEnabled; - if (message.input != null && message.hasOwnProperty("input")) - object.input = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.toObject(message.input, options); - if (message.enableSentimentAnalysis != null && message.hasOwnProperty("enableSentimentAnalysis")) - object.enableSentimentAnalysis = message.enableSentimentAnalysis; + /** + * Creates an IntentCoverage message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage} IntentCoverage + */ + IntentCoverage.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage) return object; - }; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage(); + if (object.intents) { + if (!Array.isArray(object.intents)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.IntentCoverage.intents: array expected"); + message.intents = []; + for (var i = 0; i < object.intents.length; ++i) { + if (typeof object.intents[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.IntentCoverage.intents: object expected"); + message.intents[i] = $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.fromObject(object.intents[i]); + } + } + if (object.coverageScore != null) + message.coverageScore = Number(object.coverageScore); + return message; + }; - /** - * Converts this UserInput to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput - * @instance - * @returns {Object.} JSON object - */ - UserInput.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from an IntentCoverage message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IntentCoverage} message IntentCoverage + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IntentCoverage.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.intents = []; + if (options.defaults) + object.coverageScore = 0; + if (message.intents && message.intents.length) { + object.intents = []; + for (var j = 0; j < message.intents.length; ++j) + object.intents[j] = $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.toObject(message.intents[j], options); + } + if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; + return object; + }; - return UserInput; - })(); + /** + * Converts this IntentCoverage to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage + * @instance + * @returns {Object.} JSON object + */ + IntentCoverage.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - ConversationTurn.VirtualAgentOutput = (function() { + IntentCoverage.Intent = (function() { /** - * Properties of a VirtualAgentOutput. - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn - * @interface IVirtualAgentOutput - * @property {google.protobuf.IStruct|null} [sessionParameters] VirtualAgentOutput sessionParameters - * @property {Array.|null} [differences] VirtualAgentOutput differences - * @property {google.protobuf.IStruct|null} [diagnosticInfo] VirtualAgentOutput diagnosticInfo - * @property {google.cloud.dialogflow.cx.v3beta1.IIntent|null} [triggeredIntent] VirtualAgentOutput triggeredIntent - * @property {google.cloud.dialogflow.cx.v3beta1.IPage|null} [currentPage] VirtualAgentOutput currentPage - * @property {Array.|null} [textResponses] VirtualAgentOutput textResponses - * @property {google.rpc.IStatus|null} [status] VirtualAgentOutput status + * Properties of an Intent. + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage + * @interface IIntent + * @property {string|null} [intent] Intent intent + * @property {boolean|null} [covered] Intent covered */ /** - * Constructs a new VirtualAgentOutput. - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn - * @classdesc Represents a VirtualAgentOutput. - * @implements IVirtualAgentOutput + * Constructs a new Intent. + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage + * @classdesc Represents an Intent. + * @implements IIntent * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent=} [properties] Properties to set */ - function VirtualAgentOutput(properties) { - this.differences = []; - this.textResponses = []; + function Intent(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -96932,159 +97174,88 @@ } /** - * VirtualAgentOutput sessionParameters. - * @member {google.protobuf.IStruct|null|undefined} sessionParameters - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput - * @instance - */ - VirtualAgentOutput.prototype.sessionParameters = null; - - /** - * VirtualAgentOutput differences. - * @member {Array.} differences - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput - * @instance - */ - VirtualAgentOutput.prototype.differences = $util.emptyArray; - - /** - * VirtualAgentOutput diagnosticInfo. - * @member {google.protobuf.IStruct|null|undefined} diagnosticInfo - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput - * @instance - */ - VirtualAgentOutput.prototype.diagnosticInfo = null; - - /** - * VirtualAgentOutput triggeredIntent. - * @member {google.cloud.dialogflow.cx.v3beta1.IIntent|null|undefined} triggeredIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput - * @instance - */ - VirtualAgentOutput.prototype.triggeredIntent = null; - - /** - * VirtualAgentOutput currentPage. - * @member {google.cloud.dialogflow.cx.v3beta1.IPage|null|undefined} currentPage - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput - * @instance - */ - VirtualAgentOutput.prototype.currentPage = null; - - /** - * VirtualAgentOutput textResponses. - * @member {Array.} textResponses - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * Intent intent. + * @member {string} intent + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent * @instance */ - VirtualAgentOutput.prototype.textResponses = $util.emptyArray; + Intent.prototype.intent = ""; /** - * VirtualAgentOutput status. - * @member {google.rpc.IStatus|null|undefined} status - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * Intent covered. + * @member {boolean} covered + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent * @instance */ - VirtualAgentOutput.prototype.status = null; + Intent.prototype.covered = false; /** - * Creates a new VirtualAgentOutput instance using the specified properties. + * Creates a new Intent instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput} VirtualAgentOutput instance + * @param {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent} Intent instance */ - VirtualAgentOutput.create = function create(properties) { - return new VirtualAgentOutput(properties); + Intent.create = function create(properties) { + return new Intent(properties); }; /** - * Encodes the specified VirtualAgentOutput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.verify|verify} messages. + * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput} message VirtualAgentOutput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent} message Intent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VirtualAgentOutput.encode = function encode(message, writer) { + Intent.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sessionParameters != null && Object.hasOwnProperty.call(message, "sessionParameters")) - $root.google.protobuf.Struct.encode(message.sessionParameters, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.differences != null && message.differences.length) - for (var i = 0; i < message.differences.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.encode(message.differences[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.diagnosticInfo != null && Object.hasOwnProperty.call(message, "diagnosticInfo")) - $root.google.protobuf.Struct.encode(message.diagnosticInfo, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.triggeredIntent != null && Object.hasOwnProperty.call(message, "triggeredIntent")) - $root.google.cloud.dialogflow.cx.v3beta1.Intent.encode(message.triggeredIntent, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) - $root.google.cloud.dialogflow.cx.v3beta1.Page.encode(message.currentPage, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.textResponses != null && message.textResponses.length) - for (var i = 0; i < message.textResponses.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.encode(message.textResponses[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.intent); + if (message.covered != null && Object.hasOwnProperty.call(message, "covered")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.covered); return writer; }; /** - * Encodes the specified VirtualAgentOutput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.verify|verify} messages. + * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput} message VirtualAgentOutput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent} message Intent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VirtualAgentOutput.encodeDelimited = function encodeDelimited(message, writer) { + Intent.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VirtualAgentOutput message from the specified reader or buffer. + * Decodes an Intent message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput} VirtualAgentOutput + * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent} Intent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VirtualAgentOutput.decode = function decode(reader, length) { + Intent.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 4: - message.sessionParameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 5: - if (!(message.differences && message.differences.length)) - message.differences = []; - message.differences.push($root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.decode(reader, reader.uint32())); - break; - case 6: - message.diagnosticInfo = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 7: - message.triggeredIntent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.decode(reader, reader.uint32()); - break; - case 8: - message.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.decode(reader, reader.uint32()); - break; - case 9: - if (!(message.textResponses && message.textResponses.length)) - message.textResponses = []; - message.textResponses.push($root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.decode(reader, reader.uint32())); + case 1: + message.intent = reader.string(); break; - case 10: - message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); + case 2: + message.covered = reader.bool(); break; default: reader.skipType(tag & 7); @@ -97095,221 +97266,120 @@ }; /** - * Decodes a VirtualAgentOutput message from the specified reader or buffer, length delimited. + * Decodes an Intent message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput} VirtualAgentOutput + * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent} Intent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VirtualAgentOutput.decodeDelimited = function decodeDelimited(reader) { + Intent.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VirtualAgentOutput message. + * Verifies an Intent message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VirtualAgentOutput.verify = function verify(message) { + Intent.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sessionParameters != null && message.hasOwnProperty("sessionParameters")) { - var error = $root.google.protobuf.Struct.verify(message.sessionParameters); - if (error) - return "sessionParameters." + error; - } - if (message.differences != null && message.hasOwnProperty("differences")) { - if (!Array.isArray(message.differences)) - return "differences: array expected"; - for (var i = 0; i < message.differences.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.verify(message.differences[i]); - if (error) - return "differences." + error; - } - } - if (message.diagnosticInfo != null && message.hasOwnProperty("diagnosticInfo")) { - var error = $root.google.protobuf.Struct.verify(message.diagnosticInfo); - if (error) - return "diagnosticInfo." + error; - } - if (message.triggeredIntent != null && message.hasOwnProperty("triggeredIntent")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.verify(message.triggeredIntent); - if (error) - return "triggeredIntent." + error; - } - if (message.currentPage != null && message.hasOwnProperty("currentPage")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Page.verify(message.currentPage); - if (error) - return "currentPage." + error; - } - if (message.textResponses != null && message.hasOwnProperty("textResponses")) { - if (!Array.isArray(message.textResponses)) - return "textResponses: array expected"; - for (var i = 0; i < message.textResponses.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.verify(message.textResponses[i]); - if (error) - return "textResponses." + error; - } - } - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.google.rpc.Status.verify(message.status); - if (error) - return "status." + error; - } + if (message.intent != null && message.hasOwnProperty("intent")) + if (!$util.isString(message.intent)) + return "intent: string expected"; + if (message.covered != null && message.hasOwnProperty("covered")) + if (typeof message.covered !== "boolean") + return "covered: boolean expected"; return null; }; /** - * Creates a VirtualAgentOutput message from a plain object. Also converts values to their respective internal types. + * Creates an Intent message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput} VirtualAgentOutput + * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent} Intent */ - VirtualAgentOutput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput) + Intent.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput(); - if (object.sessionParameters != null) { - if (typeof object.sessionParameters !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.sessionParameters: object expected"); - message.sessionParameters = $root.google.protobuf.Struct.fromObject(object.sessionParameters); - } - if (object.differences) { - if (!Array.isArray(object.differences)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.differences: array expected"); - message.differences = []; - for (var i = 0; i < object.differences.length; ++i) { - if (typeof object.differences[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.differences: object expected"); - message.differences[i] = $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.fromObject(object.differences[i]); - } - } - if (object.diagnosticInfo != null) { - if (typeof object.diagnosticInfo !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.diagnosticInfo: object expected"); - message.diagnosticInfo = $root.google.protobuf.Struct.fromObject(object.diagnosticInfo); - } - if (object.triggeredIntent != null) { - if (typeof object.triggeredIntent !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.triggeredIntent: object expected"); - message.triggeredIntent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.fromObject(object.triggeredIntent); - } - if (object.currentPage != null) { - if (typeof object.currentPage !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.currentPage: object expected"); - message.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.fromObject(object.currentPage); - } - if (object.textResponses) { - if (!Array.isArray(object.textResponses)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.textResponses: array expected"); - message.textResponses = []; - for (var i = 0; i < object.textResponses.length; ++i) { - if (typeof object.textResponses[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.textResponses: object expected"); - message.textResponses[i] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.fromObject(object.textResponses[i]); - } - } - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.status: object expected"); - message.status = $root.google.rpc.Status.fromObject(object.status); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent(); + if (object.intent != null) + message.intent = String(object.intent); + if (object.covered != null) + message.covered = Boolean(object.covered); return message; }; /** - * Creates a plain object from a VirtualAgentOutput message. Also converts values to other types if specified. + * Creates a plain object from an Intent message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput} message VirtualAgentOutput + * @param {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent} message Intent * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VirtualAgentOutput.toObject = function toObject(message, options) { + Intent.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.differences = []; - object.textResponses = []; - } if (options.defaults) { - object.sessionParameters = null; - object.diagnosticInfo = null; - object.triggeredIntent = null; - object.currentPage = null; - object.status = null; - } - if (message.sessionParameters != null && message.hasOwnProperty("sessionParameters")) - object.sessionParameters = $root.google.protobuf.Struct.toObject(message.sessionParameters, options); - if (message.differences && message.differences.length) { - object.differences = []; - for (var j = 0; j < message.differences.length; ++j) - object.differences[j] = $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.toObject(message.differences[j], options); - } - if (message.diagnosticInfo != null && message.hasOwnProperty("diagnosticInfo")) - object.diagnosticInfo = $root.google.protobuf.Struct.toObject(message.diagnosticInfo, options); - if (message.triggeredIntent != null && message.hasOwnProperty("triggeredIntent")) - object.triggeredIntent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.toObject(message.triggeredIntent, options); - if (message.currentPage != null && message.hasOwnProperty("currentPage")) - object.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.toObject(message.currentPage, options); - if (message.textResponses && message.textResponses.length) { - object.textResponses = []; - for (var j = 0; j < message.textResponses.length; ++j) - object.textResponses[j] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.toObject(message.textResponses[j], options); + object.intent = ""; + object.covered = false; } - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.google.rpc.Status.toObject(message.status, options); + if (message.intent != null && message.hasOwnProperty("intent")) + object.intent = message.intent; + if (message.covered != null && message.hasOwnProperty("covered")) + object.covered = message.covered; return object; }; /** - * Converts this VirtualAgentOutput to JSON. + * Converts this Intent to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent * @instance * @returns {Object.} JSON object */ - VirtualAgentOutput.prototype.toJSON = function toJSON() { + Intent.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return VirtualAgentOutput; + return Intent; })(); - return ConversationTurn; + return IntentCoverage; })(); - v3beta1.TestRunDifference = (function() { + v3beta1.CalculateCoverageRequest = (function() { /** - * Properties of a TestRunDifference. + * Properties of a CalculateCoverageRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ITestRunDifference - * @property {google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType|null} [type] TestRunDifference type - * @property {string|null} [description] TestRunDifference description + * @interface ICalculateCoverageRequest + * @property {string|null} [agent] CalculateCoverageRequest agent + * @property {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType|null} [type] CalculateCoverageRequest type */ /** - * Constructs a new TestRunDifference. + * Constructs a new CalculateCoverageRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TestRunDifference. - * @implements ITestRunDifference + * @classdesc Represents a CalculateCoverageRequest. + * @implements ICalculateCoverageRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITestRunDifference=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest=} [properties] Properties to set */ - function TestRunDifference(properties) { + function CalculateCoverageRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -97317,88 +97387,88 @@ } /** - * TestRunDifference type. - * @member {google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType} type - * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * CalculateCoverageRequest agent. + * @member {string} agent + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest * @instance */ - TestRunDifference.prototype.type = 0; + CalculateCoverageRequest.prototype.agent = ""; /** - * TestRunDifference description. - * @member {string} description - * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * CalculateCoverageRequest type. + * @member {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType} type + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest * @instance */ - TestRunDifference.prototype.description = ""; + CalculateCoverageRequest.prototype.type = 0; /** - * Creates a new TestRunDifference instance using the specified properties. + * Creates a new CalculateCoverageRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestRunDifference=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TestRunDifference} TestRunDifference instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest} CalculateCoverageRequest instance */ - TestRunDifference.create = function create(properties) { - return new TestRunDifference(properties); + CalculateCoverageRequest.create = function create(properties) { + return new CalculateCoverageRequest(properties); }; /** - * Encodes the specified TestRunDifference message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestRunDifference.verify|verify} messages. + * Encodes the specified CalculateCoverageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestRunDifference} message TestRunDifference message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest} message CalculateCoverageRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestRunDifference.encode = function encode(message, writer) { + CalculateCoverageRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); + if (message.agent != null && Object.hasOwnProperty.call(message, "agent")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.agent); return writer; }; /** - * Encodes the specified TestRunDifference message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestRunDifference.verify|verify} messages. + * Encodes the specified CalculateCoverageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestRunDifference} message TestRunDifference message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest} message CalculateCoverageRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestRunDifference.encodeDelimited = function encodeDelimited(message, writer) { + CalculateCoverageRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestRunDifference message from the specified reader or buffer. + * Decodes a CalculateCoverageRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.TestRunDifference} TestRunDifference + * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest} CalculateCoverageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestRunDifference.decode = function decode(reader, length) { + CalculateCoverageRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.type = reader.int32(); + case 3: + message.agent = reader.string(); break; case 2: - message.description = reader.string(); + message.type = reader.int32(); break; default: reader.skipType(tag & 7); @@ -97409,32 +97479,35 @@ }; /** - * Decodes a TestRunDifference message from the specified reader or buffer, length delimited. + * Decodes a CalculateCoverageRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TestRunDifference} TestRunDifference + * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest} CalculateCoverageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestRunDifference.decodeDelimited = function decodeDelimited(reader) { + CalculateCoverageRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestRunDifference message. + * Verifies a CalculateCoverageRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestRunDifference.verify = function verify(message) { + CalculateCoverageRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.agent != null && message.hasOwnProperty("agent")) + if (!$util.isString(message.agent)) + return "agent: string expected"; if (message.type != null && message.hasOwnProperty("type")) switch (message.type) { default: @@ -97443,29 +97516,27 @@ case 1: case 2: case 3: - case 4: break; } - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; return null; }; /** - * Creates a TestRunDifference message from a plain object. Also converts values to their respective internal types. + * Creates a CalculateCoverageRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TestRunDifference} TestRunDifference + * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest} CalculateCoverageRequest */ - TestRunDifference.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference) + CalculateCoverageRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest(); + if (object.agent != null) + message.agent = String(object.agent); switch (object.type) { - case "DIFF_TYPE_UNSPECIFIED": + case "COVERAGE_TYPE_UNSPECIFIED": case 0: message.type = 0; break; @@ -97473,102 +97544,95 @@ case 1: message.type = 1; break; - case "PAGE": + case "PAGE_TRANSITION": case 2: message.type = 2; break; - case "PARAMETERS": + case "TRANSITION_ROUTE_GROUP": case 3: message.type = 3; break; - case "UTTERANCE": - case 4: - message.type = 4; - break; } - if (object.description != null) - message.description = String(object.description); return message; }; /** - * Creates a plain object from a TestRunDifference message. Also converts values to other types if specified. + * Creates a plain object from a CalculateCoverageRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TestRunDifference} message TestRunDifference + * @param {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest} message CalculateCoverageRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestRunDifference.toObject = function toObject(message, options) { + CalculateCoverageRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.type = options.enums === String ? "DIFF_TYPE_UNSPECIFIED" : 0; - object.description = ""; + object.type = options.enums === String ? "COVERAGE_TYPE_UNSPECIFIED" : 0; + object.agent = ""; } if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType[message.type] : message.type; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; + object.type = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType[message.type] : message.type; + if (message.agent != null && message.hasOwnProperty("agent")) + object.agent = message.agent; return object; }; /** - * Converts this TestRunDifference to JSON. + * Converts this CalculateCoverageRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest * @instance * @returns {Object.} JSON object */ - TestRunDifference.prototype.toJSON = function toJSON() { + CalculateCoverageRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * DiffType enum. - * @name google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType + * CoverageType enum. + * @name google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType * @enum {number} - * @property {number} DIFF_TYPE_UNSPECIFIED=0 DIFF_TYPE_UNSPECIFIED value + * @property {number} COVERAGE_TYPE_UNSPECIFIED=0 COVERAGE_TYPE_UNSPECIFIED value * @property {number} INTENT=1 INTENT value - * @property {number} PAGE=2 PAGE value - * @property {number} PARAMETERS=3 PARAMETERS value - * @property {number} UTTERANCE=4 UTTERANCE value + * @property {number} PAGE_TRANSITION=2 PAGE_TRANSITION value + * @property {number} TRANSITION_ROUTE_GROUP=3 TRANSITION_ROUTE_GROUP value */ - TestRunDifference.DiffType = (function() { + CalculateCoverageRequest.CoverageType = (function() { var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DIFF_TYPE_UNSPECIFIED"] = 0; + values[valuesById[0] = "COVERAGE_TYPE_UNSPECIFIED"] = 0; values[valuesById[1] = "INTENT"] = 1; - values[valuesById[2] = "PAGE"] = 2; - values[valuesById[3] = "PARAMETERS"] = 3; - values[valuesById[4] = "UTTERANCE"] = 4; + values[valuesById[2] = "PAGE_TRANSITION"] = 2; + values[valuesById[3] = "TRANSITION_ROUTE_GROUP"] = 3; return values; })(); - return TestRunDifference; + return CalculateCoverageRequest; })(); - v3beta1.TransitionCoverage = (function() { + v3beta1.CalculateCoverageResponse = (function() { /** - * Properties of a TransitionCoverage. + * Properties of a CalculateCoverageResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ITransitionCoverage - * @property {Array.|null} [transitions] TransitionCoverage transitions - * @property {number|null} [coverageScore] TransitionCoverage coverageScore + * @interface ICalculateCoverageResponse + * @property {string|null} [agent] CalculateCoverageResponse agent + * @property {google.cloud.dialogflow.cx.v3beta1.IIntentCoverage|null} [intentCoverage] CalculateCoverageResponse intentCoverage + * @property {google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage|null} [transitionCoverage] CalculateCoverageResponse transitionCoverage + * @property {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage|null} [routeGroupCoverage] CalculateCoverageResponse routeGroupCoverage */ /** - * Constructs a new TransitionCoverage. + * Constructs a new CalculateCoverageResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TransitionCoverage. - * @implements ITransitionCoverage + * @classdesc Represents a CalculateCoverageResponse. + * @implements ICalculateCoverageResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse=} [properties] Properties to set */ - function TransitionCoverage(properties) { - this.transitions = []; + function CalculateCoverageResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -97576,820 +97640,588 @@ } /** - * TransitionCoverage transitions. - * @member {Array.} transitions - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * CalculateCoverageResponse agent. + * @member {string} agent + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse * @instance */ - TransitionCoverage.prototype.transitions = $util.emptyArray; + CalculateCoverageResponse.prototype.agent = ""; /** - * TransitionCoverage coverageScore. - * @member {number} coverageScore - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * CalculateCoverageResponse intentCoverage. + * @member {google.cloud.dialogflow.cx.v3beta1.IIntentCoverage|null|undefined} intentCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse * @instance */ - TransitionCoverage.prototype.coverageScore = 0; + CalculateCoverageResponse.prototype.intentCoverage = null; /** - * Creates a new TransitionCoverage instance using the specified properties. + * CalculateCoverageResponse transitionCoverage. + * @member {google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage|null|undefined} transitionCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * @instance + */ + CalculateCoverageResponse.prototype.transitionCoverage = null; + + /** + * CalculateCoverageResponse routeGroupCoverage. + * @member {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage|null|undefined} routeGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * @instance + */ + CalculateCoverageResponse.prototype.routeGroupCoverage = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * CalculateCoverageResponse coverageType. + * @member {"intentCoverage"|"transitionCoverage"|"routeGroupCoverage"|undefined} coverageType + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * @instance + */ + Object.defineProperty(CalculateCoverageResponse.prototype, "coverageType", { + get: $util.oneOfGetter($oneOfFields = ["intentCoverage", "transitionCoverage", "routeGroupCoverage"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CalculateCoverageResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage} TransitionCoverage instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse} CalculateCoverageResponse instance */ - TransitionCoverage.create = function create(properties) { - return new TransitionCoverage(properties); + CalculateCoverageResponse.create = function create(properties) { + return new CalculateCoverageResponse(properties); }; /** - * Encodes the specified TransitionCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.verify|verify} messages. + * Encodes the specified CalculateCoverageResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage} message TransitionCoverage message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse} message CalculateCoverageResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransitionCoverage.encode = function encode(message, writer) { + CalculateCoverageResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.transitions != null && message.transitions.length) - for (var i = 0; i < message.transitions.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.encode(message.transitions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.coverageScore != null && Object.hasOwnProperty.call(message, "coverageScore")) - writer.uint32(/* id 2, wireType 5 =*/21).float(message.coverageScore); + if (message.intentCoverage != null && Object.hasOwnProperty.call(message, "intentCoverage")) + $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.encode(message.intentCoverage, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.transitionCoverage != null && Object.hasOwnProperty.call(message, "transitionCoverage")) + $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.encode(message.transitionCoverage, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.agent != null && Object.hasOwnProperty.call(message, "agent")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.agent); + if (message.routeGroupCoverage != null && Object.hasOwnProperty.call(message, "routeGroupCoverage")) + $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.encode(message.routeGroupCoverage, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; /** - * Encodes the specified TransitionCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.verify|verify} messages. + * Encodes the specified CalculateCoverageResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage} message TransitionCoverage message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse} message CalculateCoverageResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransitionCoverage.encodeDelimited = function encodeDelimited(message, writer) { + CalculateCoverageResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TransitionCoverage message from the specified reader or buffer. + * Decodes a CalculateCoverageResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage} TransitionCoverage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TransitionCoverage.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.transitions && message.transitions.length)) - message.transitions = []; - message.transitions.push($root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.decode(reader, reader.uint32())); - break; - case 2: - message.coverageScore = reader.float(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a TransitionCoverage message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage} TransitionCoverage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TransitionCoverage.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TransitionCoverage message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TransitionCoverage.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.transitions != null && message.hasOwnProperty("transitions")) { - if (!Array.isArray(message.transitions)) - return "transitions: array expected"; - for (var i = 0; i < message.transitions.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.verify(message.transitions[i]); - if (error) - return "transitions." + error; - } - } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - if (typeof message.coverageScore !== "number") - return "coverageScore: number expected"; - return null; - }; - - /** - * Creates a TransitionCoverage message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage} TransitionCoverage - */ - TransitionCoverage.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage(); - if (object.transitions) { - if (!Array.isArray(object.transitions)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.transitions: array expected"); - message.transitions = []; - for (var i = 0; i < object.transitions.length; ++i) { - if (typeof object.transitions[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.transitions: object expected"); - message.transitions[i] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.fromObject(object.transitions[i]); - } - } - if (object.coverageScore != null) - message.coverageScore = Number(object.coverageScore); - return message; - }; - - /** - * Creates a plain object from a TransitionCoverage message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage} message TransitionCoverage - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TransitionCoverage.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.transitions = []; - if (options.defaults) - object.coverageScore = 0; - if (message.transitions && message.transitions.length) { - object.transitions = []; - for (var j = 0; j < message.transitions.length; ++j) - object.transitions[j] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.toObject(message.transitions[j], options); - } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; - return object; - }; - - /** - * Converts this TransitionCoverage to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage - * @instance - * @returns {Object.} JSON object - */ - TransitionCoverage.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - TransitionCoverage.TransitionNode = (function() { - - /** - * Properties of a TransitionNode. - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage - * @interface ITransitionNode - * @property {google.cloud.dialogflow.cx.v3beta1.IPage|null} [page] TransitionNode page - * @property {google.cloud.dialogflow.cx.v3beta1.IFlow|null} [flow] TransitionNode flow - */ - - /** - * Constructs a new TransitionNode. - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage - * @classdesc Represents a TransitionNode. - * @implements ITransitionNode - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode=} [properties] Properties to set - */ - function TransitionNode(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TransitionNode page. - * @member {google.cloud.dialogflow.cx.v3beta1.IPage|null|undefined} page - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode - * @instance - */ - TransitionNode.prototype.page = null; - - /** - * TransitionNode flow. - * @member {google.cloud.dialogflow.cx.v3beta1.IFlow|null|undefined} flow - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode - * @instance - */ - TransitionNode.prototype.flow = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * TransitionNode kind. - * @member {"page"|"flow"|undefined} kind - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode - * @instance - */ - Object.defineProperty(TransitionNode.prototype, "kind", { - get: $util.oneOfGetter($oneOfFields = ["page", "flow"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new TransitionNode instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode} TransitionNode instance - */ - TransitionNode.create = function create(properties) { - return new TransitionNode(properties); - }; - - /** - * Encodes the specified TransitionNode message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode} message TransitionNode message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TransitionNode.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.page != null && Object.hasOwnProperty.call(message, "page")) - $root.google.cloud.dialogflow.cx.v3beta1.Page.encode(message.page, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.flow != null && Object.hasOwnProperty.call(message, "flow")) - $root.google.cloud.dialogflow.cx.v3beta1.Flow.encode(message.flow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified TransitionNode message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode} message TransitionNode message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TransitionNode.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a TransitionNode message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode} TransitionNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TransitionNode.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.decode(reader, reader.uint32()); - break; - case 2: - message.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse} CalculateCoverageResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CalculateCoverageResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 5: + message.agent = reader.string(); + break; + case 2: + message.intentCoverage = $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.decode(reader, reader.uint32()); + break; + case 4: + message.transitionCoverage = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.decode(reader, reader.uint32()); + break; + case 6: + message.routeGroupCoverage = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Decodes a TransitionNode message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode} TransitionNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TransitionNode.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a CalculateCoverageResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse} CalculateCoverageResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CalculateCoverageResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a TransitionNode message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TransitionNode.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.page != null && message.hasOwnProperty("page")) { - properties.kind = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Page.verify(message.page); - if (error) - return "page." + error; - } - } - if (message.flow != null && message.hasOwnProperty("flow")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Flow.verify(message.flow); - if (error) - return "flow." + error; - } + /** + * Verifies a CalculateCoverageResponse message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CalculateCoverageResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.agent != null && message.hasOwnProperty("agent")) + if (!$util.isString(message.agent)) + return "agent: string expected"; + if (message.intentCoverage != null && message.hasOwnProperty("intentCoverage")) { + properties.coverageType = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.verify(message.intentCoverage); + if (error) + return "intentCoverage." + error; } - return null; - }; - - /** - * Creates a TransitionNode message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode} TransitionNode - */ - TransitionNode.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode(); - if (object.page != null) { - if (typeof object.page !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.page: object expected"); - message.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.fromObject(object.page); + } + if (message.transitionCoverage != null && message.hasOwnProperty("transitionCoverage")) { + if (properties.coverageType === 1) + return "coverageType: multiple values"; + properties.coverageType = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.verify(message.transitionCoverage); + if (error) + return "transitionCoverage." + error; } - if (object.flow != null) { - if (typeof object.flow !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.flow: object expected"); - message.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.fromObject(object.flow); + } + if (message.routeGroupCoverage != null && message.hasOwnProperty("routeGroupCoverage")) { + if (properties.coverageType === 1) + return "coverageType: multiple values"; + properties.coverageType = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.verify(message.routeGroupCoverage); + if (error) + return "routeGroupCoverage." + error; } - return message; - }; + } + return null; + }; - /** - * Creates a plain object from a TransitionNode message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode} message TransitionNode - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TransitionNode.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.page != null && message.hasOwnProperty("page")) { - object.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.toObject(message.page, options); - if (options.oneofs) - object.kind = "page"; - } - if (message.flow != null && message.hasOwnProperty("flow")) { - object.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.toObject(message.flow, options); - if (options.oneofs) - object.kind = "flow"; - } + /** + * Creates a CalculateCoverageResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse} CalculateCoverageResponse + */ + CalculateCoverageResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse) return object; - }; - - /** - * Converts this TransitionNode to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode - * @instance - * @returns {Object.} JSON object - */ - TransitionNode.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return TransitionNode; - })(); - - TransitionCoverage.Transition = (function() { - - /** - * Properties of a Transition. - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage - * @interface ITransition - * @property {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null} [source] Transition source - * @property {number|null} [index] Transition index - * @property {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null} [target] Transition target - * @property {boolean|null} [covered] Transition covered - * @property {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null} [transitionRoute] Transition transitionRoute - * @property {google.cloud.dialogflow.cx.v3beta1.IEventHandler|null} [eventHandler] Transition eventHandler - */ - - /** - * Constructs a new Transition. - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage - * @classdesc Represents a Transition. - * @implements ITransition - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition=} [properties] Properties to set - */ - function Transition(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse(); + if (object.agent != null) + message.agent = String(object.agent); + if (object.intentCoverage != null) { + if (typeof object.intentCoverage !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse.intentCoverage: object expected"); + message.intentCoverage = $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.fromObject(object.intentCoverage); + } + if (object.transitionCoverage != null) { + if (typeof object.transitionCoverage !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse.transitionCoverage: object expected"); + message.transitionCoverage = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.fromObject(object.transitionCoverage); + } + if (object.routeGroupCoverage != null) { + if (typeof object.routeGroupCoverage !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse.routeGroupCoverage: object expected"); + message.routeGroupCoverage = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.fromObject(object.routeGroupCoverage); } + return message; + }; - /** - * Transition source. - * @member {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null|undefined} source - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition - * @instance - */ - Transition.prototype.source = null; + /** + * Creates a plain object from a CalculateCoverageResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse} message CalculateCoverageResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CalculateCoverageResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.agent = ""; + if (message.intentCoverage != null && message.hasOwnProperty("intentCoverage")) { + object.intentCoverage = $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.toObject(message.intentCoverage, options); + if (options.oneofs) + object.coverageType = "intentCoverage"; + } + if (message.transitionCoverage != null && message.hasOwnProperty("transitionCoverage")) { + object.transitionCoverage = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.toObject(message.transitionCoverage, options); + if (options.oneofs) + object.coverageType = "transitionCoverage"; + } + if (message.agent != null && message.hasOwnProperty("agent")) + object.agent = message.agent; + if (message.routeGroupCoverage != null && message.hasOwnProperty("routeGroupCoverage")) { + object.routeGroupCoverage = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.toObject(message.routeGroupCoverage, options); + if (options.oneofs) + object.coverageType = "routeGroupCoverage"; + } + return object; + }; - /** - * Transition index. - * @member {number} index - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition - * @instance - */ - Transition.prototype.index = 0; + /** + * Converts this CalculateCoverageResponse to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * @instance + * @returns {Object.} JSON object + */ + CalculateCoverageResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Transition target. - * @member {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null|undefined} target - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition - * @instance - */ - Transition.prototype.target = null; + return CalculateCoverageResponse; + })(); - /** - * Transition covered. - * @member {boolean} covered - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition - * @instance - */ - Transition.prototype.covered = false; + v3beta1.ListTestCasesRequest = (function() { - /** - * Transition transitionRoute. - * @member {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null|undefined} transitionRoute - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition - * @instance - */ - Transition.prototype.transitionRoute = null; + /** + * Properties of a ListTestCasesRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IListTestCasesRequest + * @property {string|null} [parent] ListTestCasesRequest parent + * @property {number|null} [pageSize] ListTestCasesRequest pageSize + * @property {string|null} [pageToken] ListTestCasesRequest pageToken + * @property {google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView|null} [view] ListTestCasesRequest view + */ - /** - * Transition eventHandler. - * @member {google.cloud.dialogflow.cx.v3beta1.IEventHandler|null|undefined} eventHandler - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition - * @instance - */ - Transition.prototype.eventHandler = null; + /** + * Constructs a new ListTestCasesRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a ListTestCasesRequest. + * @implements IListTestCasesRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest=} [properties] Properties to set + */ + function ListTestCasesRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * ListTestCasesRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @instance + */ + ListTestCasesRequest.prototype.parent = ""; - /** - * Transition detail. - * @member {"transitionRoute"|"eventHandler"|undefined} detail - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition - * @instance - */ - Object.defineProperty(Transition.prototype, "detail", { - get: $util.oneOfGetter($oneOfFields = ["transitionRoute", "eventHandler"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * ListTestCasesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @instance + */ + ListTestCasesRequest.prototype.pageSize = 0; - /** - * Creates a new Transition instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition} Transition instance - */ - Transition.create = function create(properties) { - return new Transition(properties); - }; + /** + * ListTestCasesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @instance + */ + ListTestCasesRequest.prototype.pageToken = ""; - /** - * Encodes the specified Transition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition} message Transition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Transition.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.source != null && Object.hasOwnProperty.call(message, "source")) - $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.encode(message.source, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.encode(message.target, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.covered != null && Object.hasOwnProperty.call(message, "covered")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.covered); - if (message.index != null && Object.hasOwnProperty.call(message, "index")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.index); - if (message.transitionRoute != null && Object.hasOwnProperty.call(message, "transitionRoute")) - $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.encode(message.transitionRoute, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.eventHandler != null && Object.hasOwnProperty.call(message, "eventHandler")) - $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.encode(message.eventHandler, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - return writer; - }; + /** + * ListTestCasesRequest view. + * @member {google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView} view + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @instance + */ + ListTestCasesRequest.prototype.view = 0; - /** - * Encodes the specified Transition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition} message Transition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Transition.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new ListTestCasesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest} ListTestCasesRequest instance + */ + ListTestCasesRequest.create = function create(properties) { + return new ListTestCasesRequest(properties); + }; - /** - * Decodes a Transition message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition} Transition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Transition.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.source = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.decode(reader, reader.uint32()); - break; - case 4: - message.index = reader.int32(); - break; - case 2: - message.target = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.decode(reader, reader.uint32()); - break; - case 3: - message.covered = reader.bool(); - break; - case 5: - message.transitionRoute = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.decode(reader, reader.uint32()); - break; - case 6: - message.eventHandler = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified ListTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest} message ListTestCasesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListTestCasesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.view != null && Object.hasOwnProperty.call(message, "view")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.view); + return writer; + }; - /** - * Decodes a Transition message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition} Transition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Transition.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified ListTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest} message ListTestCasesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies a Transition message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Transition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.source != null && message.hasOwnProperty("source")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.verify(message.source); - if (error) - return "source." + error; - } - if (message.index != null && message.hasOwnProperty("index")) - if (!$util.isInteger(message.index)) - return "index: integer expected"; - if (message.target != null && message.hasOwnProperty("target")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.verify(message.target); - if (error) - return "target." + error; - } - if (message.covered != null && message.hasOwnProperty("covered")) - if (typeof message.covered !== "boolean") - return "covered: boolean expected"; - if (message.transitionRoute != null && message.hasOwnProperty("transitionRoute")) { - properties.detail = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify(message.transitionRoute); - if (error) - return "transitionRoute." + error; - } - } - if (message.eventHandler != null && message.hasOwnProperty("eventHandler")) { - if (properties.detail === 1) - return "detail: multiple values"; - properties.detail = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.verify(message.eventHandler); - if (error) - return "eventHandler." + error; - } + /** + * Decodes a ListTestCasesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest} ListTestCasesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListTestCasesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); + break; + case 4: + message.view = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; } - return null; - }; + } + return message; + }; - /** - * Creates a Transition message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition} Transition - */ - Transition.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition(); - if (object.source != null) { - if (typeof object.source !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.source: object expected"); - message.source = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.fromObject(object.source); - } - if (object.index != null) - message.index = object.index | 0; - if (object.target != null) { - if (typeof object.target !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.target: object expected"); - message.target = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.fromObject(object.target); - } - if (object.covered != null) - message.covered = Boolean(object.covered); - if (object.transitionRoute != null) { - if (typeof object.transitionRoute !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.transitionRoute: object expected"); - message.transitionRoute = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.fromObject(object.transitionRoute); - } - if (object.eventHandler != null) { - if (typeof object.eventHandler !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.eventHandler: object expected"); - message.eventHandler = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.fromObject(object.eventHandler); - } - return message; - }; + /** + * Decodes a ListTestCasesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest} ListTestCasesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from a Transition message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition} message Transition - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Transition.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.source = null; - object.target = null; - object.covered = false; - object.index = 0; - } - if (message.source != null && message.hasOwnProperty("source")) - object.source = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.toObject(message.source, options); - if (message.target != null && message.hasOwnProperty("target")) - object.target = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.toObject(message.target, options); - if (message.covered != null && message.hasOwnProperty("covered")) - object.covered = message.covered; - if (message.index != null && message.hasOwnProperty("index")) - object.index = message.index; - if (message.transitionRoute != null && message.hasOwnProperty("transitionRoute")) { - object.transitionRoute = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.toObject(message.transitionRoute, options); - if (options.oneofs) - object.detail = "transitionRoute"; - } - if (message.eventHandler != null && message.hasOwnProperty("eventHandler")) { - object.eventHandler = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.toObject(message.eventHandler, options); - if (options.oneofs) - object.detail = "eventHandler"; + /** + * Verifies a ListTestCasesRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListTestCasesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.view != null && message.hasOwnProperty("view")) + switch (message.view) { + default: + return "view: enum value expected"; + case 0: + case 1: + case 2: + break; } + return null; + }; + + /** + * Creates a ListTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest} ListTestCasesRequest + */ + ListTestCasesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest) return object; - }; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + switch (object.view) { + case "TEST_CASE_VIEW_UNSPECIFIED": + case 0: + message.view = 0; + break; + case "BASIC": + case 1: + message.view = 1; + break; + case "FULL": + case 2: + message.view = 2; + break; + } + return message; + }; - /** - * Converts this Transition to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition - * @instance - * @returns {Object.} JSON object - */ - Transition.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ListTestCasesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest} message ListTestCasesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListTestCasesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.view = options.enums === String ? "TEST_CASE_VIEW_UNSPECIFIED" : 0; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.view != null && message.hasOwnProperty("view")) + object.view = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView[message.view] : message.view; + return object; + }; - return Transition; + /** + * Converts this ListTestCasesRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @instance + * @returns {Object.} JSON object + */ + ListTestCasesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * TestCaseView enum. + * @name google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView + * @enum {number} + * @property {number} TEST_CASE_VIEW_UNSPECIFIED=0 TEST_CASE_VIEW_UNSPECIFIED value + * @property {number} BASIC=1 BASIC value + * @property {number} FULL=2 FULL value + */ + ListTestCasesRequest.TestCaseView = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TEST_CASE_VIEW_UNSPECIFIED"] = 0; + values[valuesById[1] = "BASIC"] = 1; + values[valuesById[2] = "FULL"] = 2; + return values; })(); - return TransitionCoverage; + return ListTestCasesRequest; })(); - v3beta1.TransitionRouteGroupCoverage = (function() { + v3beta1.ListTestCasesResponse = (function() { /** - * Properties of a TransitionRouteGroupCoverage. + * Properties of a ListTestCasesResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ITransitionRouteGroupCoverage - * @property {Array.|null} [coverages] TransitionRouteGroupCoverage coverages - * @property {number|null} [coverageScore] TransitionRouteGroupCoverage coverageScore + * @interface IListTestCasesResponse + * @property {Array.|null} [testCases] ListTestCasesResponse testCases + * @property {string|null} [nextPageToken] ListTestCasesResponse nextPageToken */ /** - * Constructs a new TransitionRouteGroupCoverage. + * Constructs a new ListTestCasesResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TransitionRouteGroupCoverage. - * @implements ITransitionRouteGroupCoverage + * @classdesc Represents a ListTestCasesResponse. + * @implements IListTestCasesResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse=} [properties] Properties to set */ - function TransitionRouteGroupCoverage(properties) { - this.coverages = []; + function ListTestCasesResponse(properties) { + this.testCases = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -98397,91 +98229,91 @@ } /** - * TransitionRouteGroupCoverage coverages. - * @member {Array.} coverages - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * ListTestCasesResponse testCases. + * @member {Array.} testCases + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse * @instance */ - TransitionRouteGroupCoverage.prototype.coverages = $util.emptyArray; + ListTestCasesResponse.prototype.testCases = $util.emptyArray; /** - * TransitionRouteGroupCoverage coverageScore. - * @member {number} coverageScore - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * ListTestCasesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse * @instance */ - TransitionRouteGroupCoverage.prototype.coverageScore = 0; + ListTestCasesResponse.prototype.nextPageToken = ""; /** - * Creates a new TransitionRouteGroupCoverage instance using the specified properties. + * Creates a new ListTestCasesResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse} ListTestCasesResponse instance */ - TransitionRouteGroupCoverage.create = function create(properties) { - return new TransitionRouteGroupCoverage(properties); + ListTestCasesResponse.create = function create(properties) { + return new ListTestCasesResponse(properties); }; /** - * Encodes the specified TransitionRouteGroupCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.verify|verify} messages. + * Encodes the specified ListTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage} message TransitionRouteGroupCoverage message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse} message ListTestCasesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransitionRouteGroupCoverage.encode = function encode(message, writer) { + ListTestCasesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.coverages != null && message.coverages.length) - for (var i = 0; i < message.coverages.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.encode(message.coverages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.coverageScore != null && Object.hasOwnProperty.call(message, "coverageScore")) - writer.uint32(/* id 2, wireType 5 =*/21).float(message.coverageScore); + if (message.testCases != null && message.testCases.length) + for (var i = 0; i < message.testCases.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.TestCase.encode(message.testCases[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified TransitionRouteGroupCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.verify|verify} messages. + * Encodes the specified ListTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage} message TransitionRouteGroupCoverage message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse} message ListTestCasesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransitionRouteGroupCoverage.encodeDelimited = function encodeDelimited(message, writer) { + ListTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer. + * Decodes a ListTestCasesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse} ListTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TransitionRouteGroupCoverage.decode = function decode(reader, length) { + ListTestCasesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.coverages && message.coverages.length)) - message.coverages = []; - message.coverages.push($root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.decode(reader, reader.uint32())); + if (!(message.testCases && message.testCases.length)) + message.testCases = []; + message.testCases.push($root.google.cloud.dialogflow.cx.v3beta1.TestCase.decode(reader, reader.uint32())); break; case 2: - message.coverageScore = reader.float(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -98492,609 +98324,135 @@ }; /** - * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer, length delimited. + * Decodes a ListTestCasesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse} ListTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TransitionRouteGroupCoverage.decodeDelimited = function decodeDelimited(reader) { + ListTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TransitionRouteGroupCoverage message. + * Verifies a ListTestCasesResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TransitionRouteGroupCoverage.verify = function verify(message) { + ListTestCasesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.coverages != null && message.hasOwnProperty("coverages")) { - if (!Array.isArray(message.coverages)) - return "coverages: array expected"; - for (var i = 0; i < message.coverages.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.verify(message.coverages[i]); + if (message.testCases != null && message.hasOwnProperty("testCases")) { + if (!Array.isArray(message.testCases)) + return "testCases: array expected"; + for (var i = 0; i < message.testCases.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.verify(message.testCases[i]); if (error) - return "coverages." + error; + return "testCases." + error; } } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - if (typeof message.coverageScore !== "number") - return "coverageScore: number expected"; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a TransitionRouteGroupCoverage message from a plain object. Also converts values to their respective internal types. + * Creates a ListTestCasesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse} ListTestCasesResponse */ - TransitionRouteGroupCoverage.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage) + ListTestCasesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage(); - if (object.coverages) { - if (!Array.isArray(object.coverages)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.coverages: array expected"); - message.coverages = []; - for (var i = 0; i < object.coverages.length; ++i) { - if (typeof object.coverages[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.coverages: object expected"); - message.coverages[i] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.fromObject(object.coverages[i]); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse(); + if (object.testCases) { + if (!Array.isArray(object.testCases)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse.testCases: array expected"); + message.testCases = []; + for (var i = 0; i < object.testCases.length; ++i) { + if (typeof object.testCases[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse.testCases: object expected"); + message.testCases[i] = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.fromObject(object.testCases[i]); } } - if (object.coverageScore != null) - message.coverageScore = Number(object.coverageScore); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a TransitionRouteGroupCoverage message. Also converts values to other types if specified. + * Creates a plain object from a ListTestCasesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage} message TransitionRouteGroupCoverage + * @param {google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse} message ListTestCasesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TransitionRouteGroupCoverage.toObject = function toObject(message, options) { + ListTestCasesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.coverages = []; + object.testCases = []; if (options.defaults) - object.coverageScore = 0; - if (message.coverages && message.coverages.length) { - object.coverages = []; - for (var j = 0; j < message.coverages.length; ++j) - object.coverages[j] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.toObject(message.coverages[j], options); + object.nextPageToken = ""; + if (message.testCases && message.testCases.length) { + object.testCases = []; + for (var j = 0; j < message.testCases.length; ++j) + object.testCases[j] = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.toObject(message.testCases[j], options); } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this TransitionRouteGroupCoverage to JSON. + * Converts this ListTestCasesResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse * @instance * @returns {Object.} JSON object */ - TransitionRouteGroupCoverage.prototype.toJSON = function toJSON() { + ListTestCasesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - TransitionRouteGroupCoverage.Coverage = (function() { - - /** - * Properties of a Coverage. - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage - * @interface ICoverage - * @property {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null} [routeGroup] Coverage routeGroup - * @property {Array.|null} [transitions] Coverage transitions - * @property {number|null} [coverageScore] Coverage coverageScore - */ - - /** - * Constructs a new Coverage. - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage - * @classdesc Represents a Coverage. - * @implements ICoverage - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage=} [properties] Properties to set - */ - function Coverage(properties) { - this.transitions = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Coverage routeGroup. - * @member {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null|undefined} routeGroup - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage - * @instance - */ - Coverage.prototype.routeGroup = null; - - /** - * Coverage transitions. - * @member {Array.} transitions - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage - * @instance - */ - Coverage.prototype.transitions = $util.emptyArray; - - /** - * Coverage coverageScore. - * @member {number} coverageScore - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage - * @instance - */ - Coverage.prototype.coverageScore = 0; - - /** - * Creates a new Coverage instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage} Coverage instance - */ - Coverage.create = function create(properties) { - return new Coverage(properties); - }; - - /** - * Encodes the specified Coverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage} message Coverage message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Coverage.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.routeGroup != null && Object.hasOwnProperty.call(message, "routeGroup")) - $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.encode(message.routeGroup, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.transitions != null && message.transitions.length) - for (var i = 0; i < message.transitions.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.encode(message.transitions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.coverageScore != null && Object.hasOwnProperty.call(message, "coverageScore")) - writer.uint32(/* id 3, wireType 5 =*/29).float(message.coverageScore); - return writer; - }; - - /** - * Encodes the specified Coverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage} message Coverage message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Coverage.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Coverage message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage} Coverage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Coverage.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.routeGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.decode(reader, reader.uint32()); - break; - case 2: - if (!(message.transitions && message.transitions.length)) - message.transitions = []; - message.transitions.push($root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.decode(reader, reader.uint32())); - break; - case 3: - message.coverageScore = reader.float(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Coverage message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage} Coverage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Coverage.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Coverage message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Coverage.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.routeGroup != null && message.hasOwnProperty("routeGroup")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify(message.routeGroup); - if (error) - return "routeGroup." + error; - } - if (message.transitions != null && message.hasOwnProperty("transitions")) { - if (!Array.isArray(message.transitions)) - return "transitions: array expected"; - for (var i = 0; i < message.transitions.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.verify(message.transitions[i]); - if (error) - return "transitions." + error; - } - } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - if (typeof message.coverageScore !== "number") - return "coverageScore: number expected"; - return null; - }; - - /** - * Creates a Coverage message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage} Coverage - */ - Coverage.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage(); - if (object.routeGroup != null) { - if (typeof object.routeGroup !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.routeGroup: object expected"); - message.routeGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.fromObject(object.routeGroup); - } - if (object.transitions) { - if (!Array.isArray(object.transitions)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.transitions: array expected"); - message.transitions = []; - for (var i = 0; i < object.transitions.length; ++i) { - if (typeof object.transitions[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.transitions: object expected"); - message.transitions[i] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.fromObject(object.transitions[i]); - } - } - if (object.coverageScore != null) - message.coverageScore = Number(object.coverageScore); - return message; - }; - - /** - * Creates a plain object from a Coverage message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage} message Coverage - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Coverage.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.transitions = []; - if (options.defaults) { - object.routeGroup = null; - object.coverageScore = 0; - } - if (message.routeGroup != null && message.hasOwnProperty("routeGroup")) - object.routeGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.toObject(message.routeGroup, options); - if (message.transitions && message.transitions.length) { - object.transitions = []; - for (var j = 0; j < message.transitions.length; ++j) - object.transitions[j] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.toObject(message.transitions[j], options); - } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; - return object; - }; - - /** - * Converts this Coverage to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage - * @instance - * @returns {Object.} JSON object - */ - Coverage.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - Coverage.Transition = (function() { - - /** - * Properties of a Transition. - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage - * @interface ITransition - * @property {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null} [transitionRoute] Transition transitionRoute - * @property {boolean|null} [covered] Transition covered - */ - - /** - * Constructs a new Transition. - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage - * @classdesc Represents a Transition. - * @implements ITransition - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition=} [properties] Properties to set - */ - function Transition(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Transition transitionRoute. - * @member {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null|undefined} transitionRoute - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition - * @instance - */ - Transition.prototype.transitionRoute = null; - - /** - * Transition covered. - * @member {boolean} covered - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition - * @instance - */ - Transition.prototype.covered = false; - - /** - * Creates a new Transition instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition} Transition instance - */ - Transition.create = function create(properties) { - return new Transition(properties); - }; - - /** - * Encodes the specified Transition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition} message Transition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Transition.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.transitionRoute != null && Object.hasOwnProperty.call(message, "transitionRoute")) - $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.encode(message.transitionRoute, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.covered != null && Object.hasOwnProperty.call(message, "covered")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.covered); - return writer; - }; - - /** - * Encodes the specified Transition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition} message Transition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Transition.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Transition message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition} Transition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Transition.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.transitionRoute = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.decode(reader, reader.uint32()); - break; - case 2: - message.covered = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Transition message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition} Transition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Transition.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Transition message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Transition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.transitionRoute != null && message.hasOwnProperty("transitionRoute")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify(message.transitionRoute); - if (error) - return "transitionRoute." + error; - } - if (message.covered != null && message.hasOwnProperty("covered")) - if (typeof message.covered !== "boolean") - return "covered: boolean expected"; - return null; - }; - - /** - * Creates a Transition message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition} Transition - */ - Transition.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition(); - if (object.transitionRoute != null) { - if (typeof object.transitionRoute !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition.transitionRoute: object expected"); - message.transitionRoute = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.fromObject(object.transitionRoute); - } - if (object.covered != null) - message.covered = Boolean(object.covered); - return message; - }; - - /** - * Creates a plain object from a Transition message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition} message Transition - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Transition.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.transitionRoute = null; - object.covered = false; - } - if (message.transitionRoute != null && message.hasOwnProperty("transitionRoute")) - object.transitionRoute = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.toObject(message.transitionRoute, options); - if (message.covered != null && message.hasOwnProperty("covered")) - object.covered = message.covered; - return object; - }; - - /** - * Converts this Transition to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition - * @instance - * @returns {Object.} JSON object - */ - Transition.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Transition; - })(); - - return Coverage; - })(); - - return TransitionRouteGroupCoverage; + return ListTestCasesResponse; })(); - v3beta1.IntentCoverage = (function() { + v3beta1.BatchDeleteTestCasesRequest = (function() { /** - * Properties of an IntentCoverage. + * Properties of a BatchDeleteTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IIntentCoverage - * @property {Array.|null} [intents] IntentCoverage intents - * @property {number|null} [coverageScore] IntentCoverage coverageScore + * @interface IBatchDeleteTestCasesRequest + * @property {string|null} [parent] BatchDeleteTestCasesRequest parent + * @property {Array.|null} [names] BatchDeleteTestCasesRequest names */ /** - * Constructs a new IntentCoverage. + * Constructs a new BatchDeleteTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an IntentCoverage. - * @implements IIntentCoverage + * @classdesc Represents a BatchDeleteTestCasesRequest. + * @implements IBatchDeleteTestCasesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IIntentCoverage=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest=} [properties] Properties to set */ - function IntentCoverage(properties) { - this.intents = []; + function BatchDeleteTestCasesRequest(properties) { + this.names = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -99102,91 +98460,91 @@ } /** - * IntentCoverage intents. - * @member {Array.} intents - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage + * BatchDeleteTestCasesRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest * @instance */ - IntentCoverage.prototype.intents = $util.emptyArray; + BatchDeleteTestCasesRequest.prototype.parent = ""; /** - * IntentCoverage coverageScore. - * @member {number} coverageScore - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage + * BatchDeleteTestCasesRequest names. + * @member {Array.} names + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest * @instance */ - IntentCoverage.prototype.coverageScore = 0; + BatchDeleteTestCasesRequest.prototype.names = $util.emptyArray; /** - * Creates a new IntentCoverage instance using the specified properties. + * Creates a new BatchDeleteTestCasesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IIntentCoverage=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage} IntentCoverage instance + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest instance */ - IntentCoverage.create = function create(properties) { - return new IntentCoverage(properties); + BatchDeleteTestCasesRequest.create = function create(properties) { + return new BatchDeleteTestCasesRequest(properties); }; /** - * Encodes the specified IntentCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentCoverage.verify|verify} messages. + * Encodes the specified BatchDeleteTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IIntentCoverage} message IntentCoverage message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest} message BatchDeleteTestCasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IntentCoverage.encode = function encode(message, writer) { + BatchDeleteTestCasesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.intents != null && message.intents.length) - for (var i = 0; i < message.intents.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.encode(message.intents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.coverageScore != null && Object.hasOwnProperty.call(message, "coverageScore")) - writer.uint32(/* id 2, wireType 5 =*/21).float(message.coverageScore); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.names != null && message.names.length) + for (var i = 0; i < message.names.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.names[i]); return writer; }; /** - * Encodes the specified IntentCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentCoverage.verify|verify} messages. + * Encodes the specified BatchDeleteTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IIntentCoverage} message IntentCoverage message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest} message BatchDeleteTestCasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IntentCoverage.encodeDelimited = function encodeDelimited(message, writer) { + BatchDeleteTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IntentCoverage message from the specified reader or buffer. + * Decodes a BatchDeleteTestCasesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage} IntentCoverage + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IntentCoverage.decode = function decode(reader, length) { + BatchDeleteTestCasesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.intents && message.intents.length)) - message.intents = []; - message.intents.push($root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.decode(reader, reader.uint32())); + message.parent = reader.string(); break; - case 2: - message.coverageScore = reader.float(); + case 3: + if (!(message.names && message.names.length)) + message.names = []; + message.names.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -99197,344 +98555,129 @@ }; /** - * Decodes an IntentCoverage message from the specified reader or buffer, length delimited. + * Decodes a BatchDeleteTestCasesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage} IntentCoverage + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IntentCoverage.decodeDelimited = function decodeDelimited(reader) { + BatchDeleteTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IntentCoverage message. + * Verifies a BatchDeleteTestCasesRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IntentCoverage.verify = function verify(message) { + BatchDeleteTestCasesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.intents != null && message.hasOwnProperty("intents")) { - if (!Array.isArray(message.intents)) - return "intents: array expected"; - for (var i = 0; i < message.intents.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.verify(message.intents[i]); - if (error) - return "intents." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.names != null && message.hasOwnProperty("names")) { + if (!Array.isArray(message.names)) + return "names: array expected"; + for (var i = 0; i < message.names.length; ++i) + if (!$util.isString(message.names[i])) + return "names: string[] expected"; } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - if (typeof message.coverageScore !== "number") - return "coverageScore: number expected"; return null; }; /** - * Creates an IntentCoverage message from a plain object. Also converts values to their respective internal types. + * Creates a BatchDeleteTestCasesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage} IntentCoverage + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest */ - IntentCoverage.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage) + BatchDeleteTestCasesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage(); - if (object.intents) { - if (!Array.isArray(object.intents)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.IntentCoverage.intents: array expected"); - message.intents = []; - for (var i = 0; i < object.intents.length; ++i) { - if (typeof object.intents[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.IntentCoverage.intents: object expected"); - message.intents[i] = $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.fromObject(object.intents[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.names) { + if (!Array.isArray(object.names)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest.names: array expected"); + message.names = []; + for (var i = 0; i < object.names.length; ++i) + message.names[i] = String(object.names[i]); } - if (object.coverageScore != null) - message.coverageScore = Number(object.coverageScore); return message; }; /** - * Creates a plain object from an IntentCoverage message. Also converts values to other types if specified. + * Creates a plain object from a BatchDeleteTestCasesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IntentCoverage} message IntentCoverage + * @param {google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest} message BatchDeleteTestCasesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IntentCoverage.toObject = function toObject(message, options) { + BatchDeleteTestCasesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.intents = []; + object.names = []; if (options.defaults) - object.coverageScore = 0; - if (message.intents && message.intents.length) { - object.intents = []; - for (var j = 0; j < message.intents.length; ++j) - object.intents[j] = $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.toObject(message.intents[j], options); + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.names && message.names.length) { + object.names = []; + for (var j = 0; j < message.names.length; ++j) + object.names[j] = message.names[j]; } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; return object; }; /** - * Converts this IntentCoverage to JSON. + * Converts this BatchDeleteTestCasesRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest * @instance * @returns {Object.} JSON object */ - IntentCoverage.prototype.toJSON = function toJSON() { + BatchDeleteTestCasesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - IntentCoverage.Intent = (function() { - - /** - * Properties of an Intent. - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage - * @interface IIntent - * @property {string|null} [intent] Intent intent - * @property {boolean|null} [covered] Intent covered - */ - - /** - * Constructs a new Intent. - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage - * @classdesc Represents an Intent. - * @implements IIntent - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent=} [properties] Properties to set - */ - function Intent(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Intent intent. - * @member {string} intent - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent - * @instance - */ - Intent.prototype.intent = ""; - - /** - * Intent covered. - * @member {boolean} covered - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent - * @instance - */ - Intent.prototype.covered = false; - - /** - * Creates a new Intent instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent} Intent instance - */ - Intent.create = function create(properties) { - return new Intent(properties); - }; - - /** - * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent} message Intent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Intent.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.intent); - if (message.covered != null && Object.hasOwnProperty.call(message, "covered")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.covered); - return writer; - }; - - /** - * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent} message Intent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Intent.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an Intent message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent} Intent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Intent.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.intent = reader.string(); - break; - case 2: - message.covered = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an Intent message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent} Intent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Intent.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an Intent message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Intent.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.intent != null && message.hasOwnProperty("intent")) - if (!$util.isString(message.intent)) - return "intent: string expected"; - if (message.covered != null && message.hasOwnProperty("covered")) - if (typeof message.covered !== "boolean") - return "covered: boolean expected"; - return null; - }; - - /** - * Creates an Intent message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent} Intent - */ - Intent.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent(); - if (object.intent != null) - message.intent = String(object.intent); - if (object.covered != null) - message.covered = Boolean(object.covered); - return message; - }; - - /** - * Creates a plain object from an Intent message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent} message Intent - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Intent.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.intent = ""; - object.covered = false; - } - if (message.intent != null && message.hasOwnProperty("intent")) - object.intent = message.intent; - if (message.covered != null && message.hasOwnProperty("covered")) - object.covered = message.covered; - return object; - }; - - /** - * Converts this Intent to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent - * @instance - * @returns {Object.} JSON object - */ - Intent.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Intent; - })(); - - return IntentCoverage; + return BatchDeleteTestCasesRequest; })(); - v3beta1.CalculateCoverageRequest = (function() { + v3beta1.CreateTestCaseRequest = (function() { /** - * Properties of a CalculateCoverageRequest. + * Properties of a CreateTestCaseRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ICalculateCoverageRequest - * @property {string|null} [agent] CalculateCoverageRequest agent - * @property {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType|null} [type] CalculateCoverageRequest type + * @interface ICreateTestCaseRequest + * @property {string|null} [parent] CreateTestCaseRequest parent + * @property {google.cloud.dialogflow.cx.v3beta1.ITestCase|null} [testCase] CreateTestCaseRequest testCase */ /** - * Constructs a new CalculateCoverageRequest. + * Constructs a new CreateTestCaseRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CalculateCoverageRequest. - * @implements ICalculateCoverageRequest + * @classdesc Represents a CreateTestCaseRequest. + * @implements ICreateTestCaseRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest=} [properties] Properties to set */ - function CalculateCoverageRequest(properties) { + function CreateTestCaseRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -99542,88 +98685,88 @@ } /** - * CalculateCoverageRequest agent. - * @member {string} agent - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest + * CreateTestCaseRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest * @instance */ - CalculateCoverageRequest.prototype.agent = ""; + CreateTestCaseRequest.prototype.parent = ""; /** - * CalculateCoverageRequest type. - * @member {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType} type - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest + * CreateTestCaseRequest testCase. + * @member {google.cloud.dialogflow.cx.v3beta1.ITestCase|null|undefined} testCase + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest * @instance */ - CalculateCoverageRequest.prototype.type = 0; + CreateTestCaseRequest.prototype.testCase = null; /** - * Creates a new CalculateCoverageRequest instance using the specified properties. + * Creates a new CreateTestCaseRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest} CalculateCoverageRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest} CreateTestCaseRequest instance */ - CalculateCoverageRequest.create = function create(properties) { - return new CalculateCoverageRequest(properties); + CreateTestCaseRequest.create = function create(properties) { + return new CreateTestCaseRequest(properties); }; /** - * Encodes the specified CalculateCoverageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.verify|verify} messages. + * Encodes the specified CreateTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest} message CalculateCoverageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest} message CreateTestCaseRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CalculateCoverageRequest.encode = function encode(message, writer) { + CreateTestCaseRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); - if (message.agent != null && Object.hasOwnProperty.call(message, "agent")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.agent); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.testCase != null && Object.hasOwnProperty.call(message, "testCase")) + $root.google.cloud.dialogflow.cx.v3beta1.TestCase.encode(message.testCase, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CalculateCoverageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.verify|verify} messages. + * Encodes the specified CreateTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest} message CalculateCoverageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest} message CreateTestCaseRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CalculateCoverageRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CalculateCoverageRequest message from the specified reader or buffer. + * Decodes a CreateTestCaseRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest} CalculateCoverageRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest} CreateTestCaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CalculateCoverageRequest.decode = function decode(reader, length) { + CreateTestCaseRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 3: - message.agent = reader.string(); + case 1: + message.parent = reader.string(); break; case 2: - message.type = reader.int32(); + message.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -99634,160 +98777,122 @@ }; /** - * Decodes a CalculateCoverageRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateTestCaseRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest} CalculateCoverageRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest} CreateTestCaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CalculateCoverageRequest.decodeDelimited = function decodeDelimited(reader) { + CreateTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CalculateCoverageRequest message. + * Verifies a CreateTestCaseRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CalculateCoverageRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.agent != null && message.hasOwnProperty("agent")) - if (!$util.isString(message.agent)) - return "agent: string expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateTestCaseRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.testCase != null && message.hasOwnProperty("testCase")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.verify(message.testCase); + if (error) + return "testCase." + error; + } return null; }; /** - * Creates a CalculateCoverageRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateTestCaseRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest} CalculateCoverageRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest} CreateTestCaseRequest */ - CalculateCoverageRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest) + CreateTestCaseRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest(); - if (object.agent != null) - message.agent = String(object.agent); - switch (object.type) { - case "COVERAGE_TYPE_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "INTENT": - case 1: - message.type = 1; - break; - case "PAGE_TRANSITION": - case 2: - message.type = 2; - break; - case "TRANSITION_ROUTE_GROUP": - case 3: - message.type = 3; - break; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.testCase != null) { + if (typeof object.testCase !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest.testCase: object expected"); + message.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.fromObject(object.testCase); } return message; }; /** - * Creates a plain object from a CalculateCoverageRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateTestCaseRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest} message CalculateCoverageRequest + * @param {google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest} message CreateTestCaseRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CalculateCoverageRequest.toObject = function toObject(message, options) { + CreateTestCaseRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.type = options.enums === String ? "COVERAGE_TYPE_UNSPECIFIED" : 0; - object.agent = ""; + object.parent = ""; + object.testCase = null; } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType[message.type] : message.type; - if (message.agent != null && message.hasOwnProperty("agent")) - object.agent = message.agent; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.testCase != null && message.hasOwnProperty("testCase")) + object.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.toObject(message.testCase, options); return object; }; /** - * Converts this CalculateCoverageRequest to JSON. + * Converts this CreateTestCaseRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest * @instance * @returns {Object.} JSON object */ - CalculateCoverageRequest.prototype.toJSON = function toJSON() { + CreateTestCaseRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * CoverageType enum. - * @name google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType - * @enum {number} - * @property {number} COVERAGE_TYPE_UNSPECIFIED=0 COVERAGE_TYPE_UNSPECIFIED value - * @property {number} INTENT=1 INTENT value - * @property {number} PAGE_TRANSITION=2 PAGE_TRANSITION value - * @property {number} TRANSITION_ROUTE_GROUP=3 TRANSITION_ROUTE_GROUP value - */ - CalculateCoverageRequest.CoverageType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "COVERAGE_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "INTENT"] = 1; - values[valuesById[2] = "PAGE_TRANSITION"] = 2; - values[valuesById[3] = "TRANSITION_ROUTE_GROUP"] = 3; - return values; - })(); - - return CalculateCoverageRequest; + return CreateTestCaseRequest; })(); - v3beta1.CalculateCoverageResponse = (function() { + v3beta1.UpdateTestCaseRequest = (function() { /** - * Properties of a CalculateCoverageResponse. + * Properties of an UpdateTestCaseRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ICalculateCoverageResponse - * @property {string|null} [agent] CalculateCoverageResponse agent - * @property {google.cloud.dialogflow.cx.v3beta1.IIntentCoverage|null} [intentCoverage] CalculateCoverageResponse intentCoverage - * @property {google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage|null} [transitionCoverage] CalculateCoverageResponse transitionCoverage - * @property {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage|null} [routeGroupCoverage] CalculateCoverageResponse routeGroupCoverage + * @interface IUpdateTestCaseRequest + * @property {google.cloud.dialogflow.cx.v3beta1.ITestCase|null} [testCase] UpdateTestCaseRequest testCase + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateTestCaseRequest updateMask */ /** - * Constructs a new CalculateCoverageResponse. + * Constructs a new UpdateTestCaseRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CalculateCoverageResponse. - * @implements ICalculateCoverageResponse + * @classdesc Represents an UpdateTestCaseRequest. + * @implements IUpdateTestCaseRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest=} [properties] Properties to set */ - function CalculateCoverageResponse(properties) { + function UpdateTestCaseRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -99795,128 +98900,88 @@ } /** - * CalculateCoverageResponse agent. - * @member {string} agent - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse - * @instance - */ - CalculateCoverageResponse.prototype.agent = ""; - - /** - * CalculateCoverageResponse intentCoverage. - * @member {google.cloud.dialogflow.cx.v3beta1.IIntentCoverage|null|undefined} intentCoverage - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse - * @instance - */ - CalculateCoverageResponse.prototype.intentCoverage = null; - - /** - * CalculateCoverageResponse transitionCoverage. - * @member {google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage|null|undefined} transitionCoverage - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse - * @instance - */ - CalculateCoverageResponse.prototype.transitionCoverage = null; - - /** - * CalculateCoverageResponse routeGroupCoverage. - * @member {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage|null|undefined} routeGroupCoverage - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * UpdateTestCaseRequest testCase. + * @member {google.cloud.dialogflow.cx.v3beta1.ITestCase|null|undefined} testCase + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest * @instance */ - CalculateCoverageResponse.prototype.routeGroupCoverage = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + UpdateTestCaseRequest.prototype.testCase = null; /** - * CalculateCoverageResponse coverageType. - * @member {"intentCoverage"|"transitionCoverage"|"routeGroupCoverage"|undefined} coverageType - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * UpdateTestCaseRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest * @instance */ - Object.defineProperty(CalculateCoverageResponse.prototype, "coverageType", { - get: $util.oneOfGetter($oneOfFields = ["intentCoverage", "transitionCoverage", "routeGroupCoverage"]), - set: $util.oneOfSetter($oneOfFields) - }); + UpdateTestCaseRequest.prototype.updateMask = null; /** - * Creates a new CalculateCoverageResponse instance using the specified properties. + * Creates a new UpdateTestCaseRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse} CalculateCoverageResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest} UpdateTestCaseRequest instance */ - CalculateCoverageResponse.create = function create(properties) { - return new CalculateCoverageResponse(properties); + UpdateTestCaseRequest.create = function create(properties) { + return new UpdateTestCaseRequest(properties); }; /** - * Encodes the specified CalculateCoverageResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse.verify|verify} messages. + * Encodes the specified UpdateTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse} message CalculateCoverageResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest} message UpdateTestCaseRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CalculateCoverageResponse.encode = function encode(message, writer) { + UpdateTestCaseRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.intentCoverage != null && Object.hasOwnProperty.call(message, "intentCoverage")) - $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.encode(message.intentCoverage, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.transitionCoverage != null && Object.hasOwnProperty.call(message, "transitionCoverage")) - $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.encode(message.transitionCoverage, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.agent != null && Object.hasOwnProperty.call(message, "agent")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.agent); - if (message.routeGroupCoverage != null && Object.hasOwnProperty.call(message, "routeGroupCoverage")) - $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.encode(message.routeGroupCoverage, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.testCase != null && Object.hasOwnProperty.call(message, "testCase")) + $root.google.cloud.dialogflow.cx.v3beta1.TestCase.encode(message.testCase, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CalculateCoverageResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse.verify|verify} messages. + * Encodes the specified UpdateTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse} message CalculateCoverageResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest} message UpdateTestCaseRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CalculateCoverageResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CalculateCoverageResponse message from the specified reader or buffer. + * Decodes an UpdateTestCaseRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse} CalculateCoverageResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest} UpdateTestCaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CalculateCoverageResponse.decode = function decode(reader, length) { + UpdateTestCaseRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 5: - message.agent = reader.string(); + case 1: + message.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.decode(reader, reader.uint32()); break; case 2: - message.intentCoverage = $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.decode(reader, reader.uint32()); - break; - case 4: - message.transitionCoverage = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.decode(reader, reader.uint32()); - break; - case 6: - message.routeGroupCoverage = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.decode(reader, reader.uint32()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -99927,169 +98992,126 @@ }; /** - * Decodes a CalculateCoverageResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateTestCaseRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse} CalculateCoverageResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest} UpdateTestCaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CalculateCoverageResponse.decodeDelimited = function decodeDelimited(reader) { + UpdateTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CalculateCoverageResponse message. + * Verifies an UpdateTestCaseRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CalculateCoverageResponse.verify = function verify(message) { + UpdateTestCaseRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.agent != null && message.hasOwnProperty("agent")) - if (!$util.isString(message.agent)) - return "agent: string expected"; - if (message.intentCoverage != null && message.hasOwnProperty("intentCoverage")) { - properties.coverageType = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.verify(message.intentCoverage); - if (error) - return "intentCoverage." + error; - } - } - if (message.transitionCoverage != null && message.hasOwnProperty("transitionCoverage")) { - if (properties.coverageType === 1) - return "coverageType: multiple values"; - properties.coverageType = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.verify(message.transitionCoverage); - if (error) - return "transitionCoverage." + error; - } + if (message.testCase != null && message.hasOwnProperty("testCase")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.verify(message.testCase); + if (error) + return "testCase." + error; } - if (message.routeGroupCoverage != null && message.hasOwnProperty("routeGroupCoverage")) { - if (properties.coverageType === 1) - return "coverageType: multiple values"; - properties.coverageType = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.verify(message.routeGroupCoverage); - if (error) - return "routeGroupCoverage." + error; - } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } return null; }; /** - * Creates a CalculateCoverageResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateTestCaseRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse} CalculateCoverageResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest} UpdateTestCaseRequest */ - CalculateCoverageResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse) + UpdateTestCaseRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse(); - if (object.agent != null) - message.agent = String(object.agent); - if (object.intentCoverage != null) { - if (typeof object.intentCoverage !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse.intentCoverage: object expected"); - message.intentCoverage = $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.fromObject(object.intentCoverage); - } - if (object.transitionCoverage != null) { - if (typeof object.transitionCoverage !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse.transitionCoverage: object expected"); - message.transitionCoverage = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.fromObject(object.transitionCoverage); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest(); + if (object.testCase != null) { + if (typeof object.testCase !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest.testCase: object expected"); + message.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.fromObject(object.testCase); } - if (object.routeGroupCoverage != null) { - if (typeof object.routeGroupCoverage !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse.routeGroupCoverage: object expected"); - message.routeGroupCoverage = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.fromObject(object.routeGroupCoverage); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from a CalculateCoverageResponse message. Also converts values to other types if specified. + * Creates a plain object from an UpdateTestCaseRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse} message CalculateCoverageResponse + * @param {google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest} message UpdateTestCaseRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CalculateCoverageResponse.toObject = function toObject(message, options) { + UpdateTestCaseRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.agent = ""; - if (message.intentCoverage != null && message.hasOwnProperty("intentCoverage")) { - object.intentCoverage = $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.toObject(message.intentCoverage, options); - if (options.oneofs) - object.coverageType = "intentCoverage"; - } - if (message.transitionCoverage != null && message.hasOwnProperty("transitionCoverage")) { - object.transitionCoverage = $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.toObject(message.transitionCoverage, options); - if (options.oneofs) - object.coverageType = "transitionCoverage"; - } - if (message.agent != null && message.hasOwnProperty("agent")) - object.agent = message.agent; - if (message.routeGroupCoverage != null && message.hasOwnProperty("routeGroupCoverage")) { - object.routeGroupCoverage = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.toObject(message.routeGroupCoverage, options); - if (options.oneofs) - object.coverageType = "routeGroupCoverage"; + if (options.defaults) { + object.testCase = null; + object.updateMask = null; } + if (message.testCase != null && message.hasOwnProperty("testCase")) + object.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.toObject(message.testCase, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this CalculateCoverageResponse to JSON. + * Converts this UpdateTestCaseRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest * @instance * @returns {Object.} JSON object */ - CalculateCoverageResponse.prototype.toJSON = function toJSON() { + UpdateTestCaseRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CalculateCoverageResponse; + return UpdateTestCaseRequest; })(); - v3beta1.ListTestCasesRequest = (function() { + v3beta1.GetTestCaseRequest = (function() { /** - * Properties of a ListTestCasesRequest. + * Properties of a GetTestCaseRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListTestCasesRequest - * @property {string|null} [parent] ListTestCasesRequest parent - * @property {number|null} [pageSize] ListTestCasesRequest pageSize - * @property {string|null} [pageToken] ListTestCasesRequest pageToken - * @property {google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView|null} [view] ListTestCasesRequest view + * @interface IGetTestCaseRequest + * @property {string|null} [name] GetTestCaseRequest name */ /** - * Constructs a new ListTestCasesRequest. + * Constructs a new GetTestCaseRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListTestCasesRequest. - * @implements IListTestCasesRequest + * @classdesc Represents a GetTestCaseRequest. + * @implements IGetTestCaseRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest=} [properties] Properties to set */ - function ListTestCasesRequest(properties) { + function GetTestCaseRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -100097,114 +99119,75 @@ } /** - * ListTestCasesRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest - * @instance - */ - ListTestCasesRequest.prototype.parent = ""; - - /** - * ListTestCasesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest - * @instance - */ - ListTestCasesRequest.prototype.pageSize = 0; - - /** - * ListTestCasesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest - * @instance - */ - ListTestCasesRequest.prototype.pageToken = ""; - - /** - * ListTestCasesRequest view. - * @member {google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView} view - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * GetTestCaseRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest * @instance */ - ListTestCasesRequest.prototype.view = 0; + GetTestCaseRequest.prototype.name = ""; /** - * Creates a new ListTestCasesRequest instance using the specified properties. + * Creates a new GetTestCaseRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest} ListTestCasesRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest} GetTestCaseRequest instance */ - ListTestCasesRequest.create = function create(properties) { - return new ListTestCasesRequest(properties); + GetTestCaseRequest.create = function create(properties) { + return new GetTestCaseRequest(properties); }; /** - * Encodes the specified ListTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.verify|verify} messages. + * Encodes the specified GetTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest} message ListTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest} message GetTestCaseRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTestCasesRequest.encode = function encode(message, writer) { + GetTestCaseRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.view != null && Object.hasOwnProperty.call(message, "view")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.view); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.verify|verify} messages. + * Encodes the specified GetTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest} message ListTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest} message GetTestCaseRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTestCasesRequest message from the specified reader or buffer. + * Decodes a GetTestCaseRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest} ListTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest} GetTestCaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTestCasesRequest.decode = function decode(reader, length) { + GetTestCaseRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); - break; - case 4: - message.view = reader.int32(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -100215,168 +99198,108 @@ }; /** - * Decodes a ListTestCasesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetTestCaseRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest} ListTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest} GetTestCaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { + GetTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTestCasesRequest message. + * Verifies a GetTestCaseRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTestCasesRequest.verify = function verify(message) { + GetTestCaseRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.view != null && message.hasOwnProperty("view")) - switch (message.view) { - default: - return "view: enum value expected"; - case 0: - case 1: - case 2: - break; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetTestCaseRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest} ListTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest} GetTestCaseRequest */ - ListTestCasesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest) + GetTestCaseRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - switch (object.view) { - case "TEST_CASE_VIEW_UNSPECIFIED": - case 0: - message.view = 0; - break; - case "BASIC": - case 1: - message.view = 1; - break; - case "FULL": - case 2: - message.view = 2; - break; - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListTestCasesRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetTestCaseRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest} message ListTestCasesRequest + * @param {google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest} message GetTestCaseRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTestCasesRequest.toObject = function toObject(message, options) { + GetTestCaseRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.view = options.enums === String ? "TEST_CASE_VIEW_UNSPECIFIED" : 0; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.view != null && message.hasOwnProperty("view")) - object.view = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView[message.view] : message.view; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListTestCasesRequest to JSON. + * Converts this GetTestCaseRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest * @instance * @returns {Object.} JSON object */ - ListTestCasesRequest.prototype.toJSON = function toJSON() { + GetTestCaseRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * TestCaseView enum. - * @name google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView - * @enum {number} - * @property {number} TEST_CASE_VIEW_UNSPECIFIED=0 TEST_CASE_VIEW_UNSPECIFIED value - * @property {number} BASIC=1 BASIC value - * @property {number} FULL=2 FULL value - */ - ListTestCasesRequest.TestCaseView = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TEST_CASE_VIEW_UNSPECIFIED"] = 0; - values[valuesById[1] = "BASIC"] = 1; - values[valuesById[2] = "FULL"] = 2; - return values; - })(); - - return ListTestCasesRequest; + return GetTestCaseRequest; })(); - v3beta1.ListTestCasesResponse = (function() { + v3beta1.RunTestCaseRequest = (function() { /** - * Properties of a ListTestCasesResponse. + * Properties of a RunTestCaseRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListTestCasesResponse - * @property {Array.|null} [testCases] ListTestCasesResponse testCases - * @property {string|null} [nextPageToken] ListTestCasesResponse nextPageToken + * @interface IRunTestCaseRequest + * @property {string|null} [name] RunTestCaseRequest name + * @property {string|null} [environment] RunTestCaseRequest environment */ /** - * Constructs a new ListTestCasesResponse. + * Constructs a new RunTestCaseRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListTestCasesResponse. - * @implements IListTestCasesResponse + * @classdesc Represents a RunTestCaseRequest. + * @implements IRunTestCaseRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest=} [properties] Properties to set */ - function ListTestCasesResponse(properties) { - this.testCases = []; + function RunTestCaseRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -100384,91 +99307,88 @@ } /** - * ListTestCasesResponse testCases. - * @member {Array.} testCases - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * RunTestCaseRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest * @instance */ - ListTestCasesResponse.prototype.testCases = $util.emptyArray; + RunTestCaseRequest.prototype.name = ""; /** - * ListTestCasesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * RunTestCaseRequest environment. + * @member {string} environment + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest * @instance */ - ListTestCasesResponse.prototype.nextPageToken = ""; + RunTestCaseRequest.prototype.environment = ""; /** - * Creates a new ListTestCasesResponse instance using the specified properties. + * Creates a new RunTestCaseRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse} ListTestCasesResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest} RunTestCaseRequest instance */ - ListTestCasesResponse.create = function create(properties) { - return new ListTestCasesResponse(properties); + RunTestCaseRequest.create = function create(properties) { + return new RunTestCaseRequest(properties); }; /** - * Encodes the specified ListTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse.verify|verify} messages. + * Encodes the specified RunTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse} message ListTestCasesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest} message RunTestCaseRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTestCasesResponse.encode = function encode(message, writer) { + RunTestCaseRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.testCases != null && message.testCases.length) - for (var i = 0; i < message.testCases.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.TestCase.encode(message.testCases[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.environment); return writer; }; /** - * Encodes the specified ListTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse.verify|verify} messages. + * Encodes the specified RunTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse} message ListTestCasesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest} message RunTestCaseRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { + RunTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTestCasesResponse message from the specified reader or buffer. + * Decodes a RunTestCaseRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse} ListTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest} RunTestCaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTestCasesResponse.decode = function decode(reader, length) { + RunTestCaseRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.testCases && message.testCases.length)) - message.testCases = []; - message.testCases.push($root.google.cloud.dialogflow.cx.v3beta1.TestCase.decode(reader, reader.uint32())); + message.name = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + message.environment = reader.string(); break; default: reader.skipType(tag & 7); @@ -100479,135 +99399,116 @@ }; /** - * Decodes a ListTestCasesResponse message from the specified reader or buffer, length delimited. + * Decodes a RunTestCaseRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse} ListTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest} RunTestCaseRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { + RunTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTestCasesResponse message. + * Verifies a RunTestCaseRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTestCasesResponse.verify = function verify(message) { + RunTestCaseRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.testCases != null && message.hasOwnProperty("testCases")) { - if (!Array.isArray(message.testCases)) - return "testCases: array expected"; - for (var i = 0; i < message.testCases.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.verify(message.testCases[i]); - if (error) - return "testCases." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.environment != null && message.hasOwnProperty("environment")) + if (!$util.isString(message.environment)) + return "environment: string expected"; return null; }; /** - * Creates a ListTestCasesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RunTestCaseRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse} ListTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest} RunTestCaseRequest */ - ListTestCasesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse) + RunTestCaseRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse(); - if (object.testCases) { - if (!Array.isArray(object.testCases)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse.testCases: array expected"); - message.testCases = []; - for (var i = 0; i < object.testCases.length; ++i) { - if (typeof object.testCases[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse.testCases: object expected"); - message.testCases[i] = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.fromObject(object.testCases[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.environment != null) + message.environment = String(object.environment); return message; }; /** - * Creates a plain object from a ListTestCasesResponse message. Also converts values to other types if specified. + * Creates a plain object from a RunTestCaseRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse} message ListTestCasesResponse + * @param {google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest} message RunTestCaseRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTestCasesResponse.toObject = function toObject(message, options) { + RunTestCaseRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.testCases = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.testCases && message.testCases.length) { - object.testCases = []; - for (var j = 0; j < message.testCases.length; ++j) - object.testCases[j] = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.toObject(message.testCases[j], options); + if (options.defaults) { + object.name = ""; + object.environment = ""; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = message.environment; return object; }; /** - * Converts this ListTestCasesResponse to JSON. + * Converts this RunTestCaseRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest * @instance * @returns {Object.} JSON object */ - ListTestCasesResponse.prototype.toJSON = function toJSON() { + RunTestCaseRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListTestCasesResponse; + return RunTestCaseRequest; })(); - v3beta1.BatchDeleteTestCasesRequest = (function() { + v3beta1.RunTestCaseResponse = (function() { /** - * Properties of a BatchDeleteTestCasesRequest. + * Properties of a RunTestCaseResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IBatchDeleteTestCasesRequest - * @property {string|null} [parent] BatchDeleteTestCasesRequest parent - * @property {Array.|null} [names] BatchDeleteTestCasesRequest names + * @interface IRunTestCaseResponse + * @property {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null} [result] RunTestCaseResponse result */ /** - * Constructs a new BatchDeleteTestCasesRequest. + * Constructs a new RunTestCaseResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a BatchDeleteTestCasesRequest. - * @implements IBatchDeleteTestCasesRequest + * @classdesc Represents a RunTestCaseResponse. + * @implements IRunTestCaseResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse=} [properties] Properties to set */ - function BatchDeleteTestCasesRequest(properties) { - this.names = []; + function RunTestCaseResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -100615,91 +99516,75 @@ } /** - * BatchDeleteTestCasesRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest - * @instance - */ - BatchDeleteTestCasesRequest.prototype.parent = ""; - - /** - * BatchDeleteTestCasesRequest names. - * @member {Array.} names - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest + * RunTestCaseResponse result. + * @member {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null|undefined} result + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse * @instance */ - BatchDeleteTestCasesRequest.prototype.names = $util.emptyArray; + RunTestCaseResponse.prototype.result = null; /** - * Creates a new BatchDeleteTestCasesRequest instance using the specified properties. + * Creates a new RunTestCaseResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse} RunTestCaseResponse instance */ - BatchDeleteTestCasesRequest.create = function create(properties) { - return new BatchDeleteTestCasesRequest(properties); + RunTestCaseResponse.create = function create(properties) { + return new RunTestCaseResponse(properties); }; /** - * Encodes the specified BatchDeleteTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest.verify|verify} messages. + * Encodes the specified RunTestCaseResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest} message BatchDeleteTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse} message RunTestCaseResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchDeleteTestCasesRequest.encode = function encode(message, writer) { + RunTestCaseResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.names != null && message.names.length) - for (var i = 0; i < message.names.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.names[i]); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified BatchDeleteTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest.verify|verify} messages. + * Encodes the specified RunTestCaseResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest} message BatchDeleteTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse} message RunTestCaseResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchDeleteTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + RunTestCaseResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchDeleteTestCasesRequest message from the specified reader or buffer. + * Decodes a RunTestCaseResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse} RunTestCaseResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchDeleteTestCasesRequest.decode = function decode(reader, length) { + RunTestCaseResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 3: - if (!(message.names && message.names.length)) - message.names = []; - message.names.push(reader.string()); + case 2: + message.result = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -100710,129 +99595,111 @@ }; /** - * Decodes a BatchDeleteTestCasesRequest message from the specified reader or buffer, length delimited. + * Decodes a RunTestCaseResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse} RunTestCaseResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchDeleteTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { + RunTestCaseResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchDeleteTestCasesRequest message. + * Verifies a RunTestCaseResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchDeleteTestCasesRequest.verify = function verify(message) { + RunTestCaseResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.names != null && message.hasOwnProperty("names")) { - if (!Array.isArray(message.names)) - return "names: array expected"; - for (var i = 0; i < message.names.length; ++i) - if (!$util.isString(message.names[i])) - return "names: string[] expected"; + if (message.result != null && message.hasOwnProperty("result")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.verify(message.result); + if (error) + return "result." + error; } return null; }; /** - * Creates a BatchDeleteTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RunTestCaseResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse} RunTestCaseResponse */ - BatchDeleteTestCasesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest) + RunTestCaseResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.names) { - if (!Array.isArray(object.names)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest.names: array expected"); - message.names = []; - for (var i = 0; i < object.names.length; ++i) - message.names[i] = String(object.names[i]); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse(); + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse.result: object expected"); + message.result = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.fromObject(object.result); } return message; }; /** - * Creates a plain object from a BatchDeleteTestCasesRequest message. Also converts values to other types if specified. + * Creates a plain object from a RunTestCaseResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest} message BatchDeleteTestCasesRequest + * @param {google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse} message RunTestCaseResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchDeleteTestCasesRequest.toObject = function toObject(message, options) { + RunTestCaseResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.names = []; if (options.defaults) - object.parent = ""; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.names && message.names.length) { - object.names = []; - for (var j = 0; j < message.names.length; ++j) - object.names[j] = message.names[j]; - } + object.result = null; + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.toObject(message.result, options); return object; }; /** - * Converts this BatchDeleteTestCasesRequest to JSON. + * Converts this RunTestCaseResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse * @instance * @returns {Object.} JSON object */ - BatchDeleteTestCasesRequest.prototype.toJSON = function toJSON() { + RunTestCaseResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchDeleteTestCasesRequest; + return RunTestCaseResponse; })(); - v3beta1.CreateTestCaseRequest = (function() { + v3beta1.RunTestCaseMetadata = (function() { /** - * Properties of a CreateTestCaseRequest. + * Properties of a RunTestCaseMetadata. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ICreateTestCaseRequest - * @property {string|null} [parent] CreateTestCaseRequest parent - * @property {google.cloud.dialogflow.cx.v3beta1.ITestCase|null} [testCase] CreateTestCaseRequest testCase + * @interface IRunTestCaseMetadata */ /** - * Constructs a new CreateTestCaseRequest. + * Constructs a new RunTestCaseMetadata. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CreateTestCaseRequest. - * @implements ICreateTestCaseRequest + * @classdesc Represents a RunTestCaseMetadata. + * @implements IRunTestCaseMetadata * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata=} [properties] Properties to set */ - function CreateTestCaseRequest(properties) { + function RunTestCaseMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -100840,89 +99707,63 @@ } /** - * CreateTestCaseRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest - * @instance - */ - CreateTestCaseRequest.prototype.parent = ""; - - /** - * CreateTestCaseRequest testCase. - * @member {google.cloud.dialogflow.cx.v3beta1.ITestCase|null|undefined} testCase - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest - * @instance - */ - CreateTestCaseRequest.prototype.testCase = null; - - /** - * Creates a new CreateTestCaseRequest instance using the specified properties. + * Creates a new RunTestCaseMetadata instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest} CreateTestCaseRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata} RunTestCaseMetadata instance */ - CreateTestCaseRequest.create = function create(properties) { - return new CreateTestCaseRequest(properties); + RunTestCaseMetadata.create = function create(properties) { + return new RunTestCaseMetadata(properties); }; /** - * Encodes the specified CreateTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest.verify|verify} messages. + * Encodes the specified RunTestCaseMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest} message CreateTestCaseRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata} message RunTestCaseMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTestCaseRequest.encode = function encode(message, writer) { + RunTestCaseMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.testCase != null && Object.hasOwnProperty.call(message, "testCase")) - $root.google.cloud.dialogflow.cx.v3beta1.TestCase.encode(message.testCase, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest.verify|verify} messages. + * Encodes the specified RunTestCaseMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest} message CreateTestCaseRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata} message RunTestCaseMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { + RunTestCaseMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateTestCaseRequest message from the specified reader or buffer. + * Decodes a RunTestCaseMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest} CreateTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata} RunTestCaseMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTestCaseRequest.decode = function decode(reader, length) { + RunTestCaseMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -100932,122 +99773,97 @@ }; /** - * Decodes a CreateTestCaseRequest message from the specified reader or buffer, length delimited. + * Decodes a RunTestCaseMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest} CreateTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata} RunTestCaseMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { + RunTestCaseMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateTestCaseRequest message. + * Verifies a RunTestCaseMetadata message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateTestCaseRequest.verify = function verify(message) { + RunTestCaseMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.testCase != null && message.hasOwnProperty("testCase")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.verify(message.testCase); - if (error) - return "testCase." + error; - } return null; }; /** - * Creates a CreateTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RunTestCaseMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest} CreateTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata} RunTestCaseMetadata */ - CreateTestCaseRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest) + RunTestCaseMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.testCase != null) { - if (typeof object.testCase !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest.testCase: object expected"); - message.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.fromObject(object.testCase); - } - return message; + return new $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata(); }; /** - * Creates a plain object from a CreateTestCaseRequest message. Also converts values to other types if specified. + * Creates a plain object from a RunTestCaseMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest} message CreateTestCaseRequest + * @param {google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata} message RunTestCaseMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateTestCaseRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.testCase = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.testCase != null && message.hasOwnProperty("testCase")) - object.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.toObject(message.testCase, options); - return object; + RunTestCaseMetadata.toObject = function toObject() { + return {}; }; /** - * Converts this CreateTestCaseRequest to JSON. + * Converts this RunTestCaseMetadata to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata * @instance * @returns {Object.} JSON object */ - CreateTestCaseRequest.prototype.toJSON = function toJSON() { + RunTestCaseMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateTestCaseRequest; + return RunTestCaseMetadata; })(); - v3beta1.UpdateTestCaseRequest = (function() { + v3beta1.BatchRunTestCasesRequest = (function() { /** - * Properties of an UpdateTestCaseRequest. + * Properties of a BatchRunTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IUpdateTestCaseRequest - * @property {google.cloud.dialogflow.cx.v3beta1.ITestCase|null} [testCase] UpdateTestCaseRequest testCase - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateTestCaseRequest updateMask + * @interface IBatchRunTestCasesRequest + * @property {string|null} [parent] BatchRunTestCasesRequest parent + * @property {string|null} [environment] BatchRunTestCasesRequest environment + * @property {Array.|null} [testCases] BatchRunTestCasesRequest testCases */ /** - * Constructs a new UpdateTestCaseRequest. + * Constructs a new BatchRunTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an UpdateTestCaseRequest. - * @implements IUpdateTestCaseRequest + * @classdesc Represents a BatchRunTestCasesRequest. + * @implements IBatchRunTestCasesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest=} [properties] Properties to set */ - function UpdateTestCaseRequest(properties) { + function BatchRunTestCasesRequest(properties) { + this.testCases = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -101055,88 +99871,104 @@ } /** - * UpdateTestCaseRequest testCase. - * @member {google.cloud.dialogflow.cx.v3beta1.ITestCase|null|undefined} testCase - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest + * BatchRunTestCasesRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest * @instance */ - UpdateTestCaseRequest.prototype.testCase = null; + BatchRunTestCasesRequest.prototype.parent = ""; /** - * UpdateTestCaseRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest + * BatchRunTestCasesRequest environment. + * @member {string} environment + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest * @instance */ - UpdateTestCaseRequest.prototype.updateMask = null; + BatchRunTestCasesRequest.prototype.environment = ""; /** - * Creates a new UpdateTestCaseRequest instance using the specified properties. + * BatchRunTestCasesRequest testCases. + * @member {Array.} testCases + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest + * @instance + */ + BatchRunTestCasesRequest.prototype.testCases = $util.emptyArray; + + /** + * Creates a new BatchRunTestCasesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest} UpdateTestCaseRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest} BatchRunTestCasesRequest instance */ - UpdateTestCaseRequest.create = function create(properties) { - return new UpdateTestCaseRequest(properties); + BatchRunTestCasesRequest.create = function create(properties) { + return new BatchRunTestCasesRequest(properties); }; /** - * Encodes the specified UpdateTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest.verify|verify} messages. + * Encodes the specified BatchRunTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest} message UpdateTestCaseRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest} message BatchRunTestCasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateTestCaseRequest.encode = function encode(message, writer) { + BatchRunTestCasesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.testCase != null && Object.hasOwnProperty.call(message, "testCase")) - $root.google.cloud.dialogflow.cx.v3beta1.TestCase.encode(message.testCase, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.environment); + if (message.testCases != null && message.testCases.length) + for (var i = 0; i < message.testCases.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.testCases[i]); return writer; }; /** - * Encodes the specified UpdateTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest.verify|verify} messages. + * Encodes the specified BatchRunTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest} message UpdateTestCaseRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest} message BatchRunTestCasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchRunTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateTestCaseRequest message from the specified reader or buffer. + * Decodes a BatchRunTestCasesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest} UpdateTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest} BatchRunTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateTestCaseRequest.decode = function decode(reader, length) { + BatchRunTestCasesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.decode(reader, reader.uint32()); + message.parent = reader.string(); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.environment = reader.string(); + break; + case 3: + if (!(message.testCases && message.testCases.length)) + message.testCases = []; + message.testCases.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -101147,126 +99979,138 @@ }; /** - * Decodes an UpdateTestCaseRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchRunTestCasesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest} UpdateTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest} BatchRunTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { + BatchRunTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateTestCaseRequest message. + * Verifies a BatchRunTestCasesRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateTestCaseRequest.verify = function verify(message) { + BatchRunTestCasesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.testCase != null && message.hasOwnProperty("testCase")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.verify(message.testCase); - if (error) - return "testCase." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.environment != null && message.hasOwnProperty("environment")) + if (!$util.isString(message.environment)) + return "environment: string expected"; + if (message.testCases != null && message.hasOwnProperty("testCases")) { + if (!Array.isArray(message.testCases)) + return "testCases: array expected"; + for (var i = 0; i < message.testCases.length; ++i) + if (!$util.isString(message.testCases[i])) + return "testCases: string[] expected"; } return null; }; /** - * Creates an UpdateTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchRunTestCasesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest} UpdateTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest} BatchRunTestCasesRequest */ - UpdateTestCaseRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest) + BatchRunTestCasesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest(); - if (object.testCase != null) { - if (typeof object.testCase !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest.testCase: object expected"); - message.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.fromObject(object.testCase); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.environment != null) + message.environment = String(object.environment); + if (object.testCases) { + if (!Array.isArray(object.testCases)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest.testCases: array expected"); + message.testCases = []; + for (var i = 0; i < object.testCases.length; ++i) + message.testCases[i] = String(object.testCases[i]); } return message; }; /** - * Creates a plain object from an UpdateTestCaseRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchRunTestCasesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest} message UpdateTestCaseRequest + * @param {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest} message BatchRunTestCasesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateTestCaseRequest.toObject = function toObject(message, options) { + BatchRunTestCasesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.testCases = []; if (options.defaults) { - object.testCase = null; - object.updateMask = null; + object.parent = ""; + object.environment = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = message.environment; + if (message.testCases && message.testCases.length) { + object.testCases = []; + for (var j = 0; j < message.testCases.length; ++j) + object.testCases[j] = message.testCases[j]; } - if (message.testCase != null && message.hasOwnProperty("testCase")) - object.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.toObject(message.testCase, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this UpdateTestCaseRequest to JSON. + * Converts this BatchRunTestCasesRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest * @instance * @returns {Object.} JSON object */ - UpdateTestCaseRequest.prototype.toJSON = function toJSON() { + BatchRunTestCasesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateTestCaseRequest; + return BatchRunTestCasesRequest; })(); - v3beta1.GetTestCaseRequest = (function() { + v3beta1.BatchRunTestCasesResponse = (function() { /** - * Properties of a GetTestCaseRequest. + * Properties of a BatchRunTestCasesResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetTestCaseRequest - * @property {string|null} [name] GetTestCaseRequest name + * @interface IBatchRunTestCasesResponse + * @property {Array.|null} [results] BatchRunTestCasesResponse results */ /** - * Constructs a new GetTestCaseRequest. + * Constructs a new BatchRunTestCasesResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetTestCaseRequest. - * @implements IGetTestCaseRequest + * @classdesc Represents a BatchRunTestCasesResponse. + * @implements IBatchRunTestCasesResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse=} [properties] Properties to set */ - function GetTestCaseRequest(properties) { + function BatchRunTestCasesResponse(properties) { + this.results = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -101274,75 +100118,78 @@ } /** - * GetTestCaseRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * BatchRunTestCasesResponse results. + * @member {Array.} results + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse * @instance */ - GetTestCaseRequest.prototype.name = ""; + BatchRunTestCasesResponse.prototype.results = $util.emptyArray; /** - * Creates a new GetTestCaseRequest instance using the specified properties. + * Creates a new BatchRunTestCasesResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest} GetTestCaseRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse} BatchRunTestCasesResponse instance */ - GetTestCaseRequest.create = function create(properties) { - return new GetTestCaseRequest(properties); + BatchRunTestCasesResponse.create = function create(properties) { + return new BatchRunTestCasesResponse(properties); }; /** - * Encodes the specified GetTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest.verify|verify} messages. + * Encodes the specified BatchRunTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest} message GetTestCaseRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse} message BatchRunTestCasesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTestCaseRequest.encode = function encode(message, writer) { + BatchRunTestCasesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.results != null && message.results.length) + for (var i = 0; i < message.results.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest.verify|verify} messages. + * Encodes the specified BatchRunTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest} message GetTestCaseRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse} message BatchRunTestCasesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchRunTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTestCaseRequest message from the specified reader or buffer. + * Decodes a BatchRunTestCasesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest} GetTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse} BatchRunTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTestCaseRequest.decode = function decode(reader, length) { + BatchRunTestCasesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.results && message.results.length)) + message.results = []; + message.results.push($root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -101353,108 +100200,125 @@ }; /** - * Decodes a GetTestCaseRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchRunTestCasesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest} GetTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse} BatchRunTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { + BatchRunTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetTestCaseRequest message. + * Verifies a BatchRunTestCasesResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetTestCaseRequest.verify = function verify(message) { + BatchRunTestCasesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.results != null && message.hasOwnProperty("results")) { + if (!Array.isArray(message.results)) + return "results: array expected"; + for (var i = 0; i < message.results.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.verify(message.results[i]); + if (error) + return "results." + error; + } + } return null; }; /** - * Creates a GetTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchRunTestCasesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest} GetTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse} BatchRunTestCasesResponse */ - GetTestCaseRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest) + BatchRunTestCasesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse(); + if (object.results) { + if (!Array.isArray(object.results)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse.results: array expected"); + message.results = []; + for (var i = 0; i < object.results.length; ++i) { + if (typeof object.results[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse.results: object expected"); + message.results[i] = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.fromObject(object.results[i]); + } + } return message; }; /** - * Creates a plain object from a GetTestCaseRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchRunTestCasesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest} message GetTestCaseRequest + * @param {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse} message BatchRunTestCasesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTestCaseRequest.toObject = function toObject(message, options) { + BatchRunTestCasesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.arrays || options.defaults) + object.results = []; + if (message.results && message.results.length) { + object.results = []; + for (var j = 0; j < message.results.length; ++j) + object.results[j] = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.toObject(message.results[j], options); + } return object; }; /** - * Converts this GetTestCaseRequest to JSON. + * Converts this BatchRunTestCasesResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse * @instance * @returns {Object.} JSON object */ - GetTestCaseRequest.prototype.toJSON = function toJSON() { + BatchRunTestCasesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetTestCaseRequest; + return BatchRunTestCasesResponse; })(); - v3beta1.RunTestCaseRequest = (function() { + v3beta1.BatchRunTestCasesMetadata = (function() { /** - * Properties of a RunTestCaseRequest. + * Properties of a BatchRunTestCasesMetadata. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IRunTestCaseRequest - * @property {string|null} [name] RunTestCaseRequest name - * @property {string|null} [environment] RunTestCaseRequest environment + * @interface IBatchRunTestCasesMetadata + * @property {Array.|null} [errors] BatchRunTestCasesMetadata errors */ /** - * Constructs a new RunTestCaseRequest. + * Constructs a new BatchRunTestCasesMetadata. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a RunTestCaseRequest. - * @implements IRunTestCaseRequest + * @classdesc Represents a BatchRunTestCasesMetadata. + * @implements IBatchRunTestCasesMetadata * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata=} [properties] Properties to set */ - function RunTestCaseRequest(properties) { + function BatchRunTestCasesMetadata(properties) { + this.errors = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -101462,88 +100326,78 @@ } /** - * RunTestCaseRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest - * @instance - */ - RunTestCaseRequest.prototype.name = ""; - - /** - * RunTestCaseRequest environment. - * @member {string} environment - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest + * BatchRunTestCasesMetadata errors. + * @member {Array.} errors + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata * @instance */ - RunTestCaseRequest.prototype.environment = ""; + BatchRunTestCasesMetadata.prototype.errors = $util.emptyArray; /** - * Creates a new RunTestCaseRequest instance using the specified properties. + * Creates a new BatchRunTestCasesMetadata instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest} RunTestCaseRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata instance */ - RunTestCaseRequest.create = function create(properties) { - return new RunTestCaseRequest(properties); + BatchRunTestCasesMetadata.create = function create(properties) { + return new BatchRunTestCasesMetadata(properties); }; /** - * Encodes the specified RunTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest.verify|verify} messages. + * Encodes the specified BatchRunTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest} message RunTestCaseRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata} message BatchRunTestCasesMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunTestCaseRequest.encode = function encode(message, writer) { + BatchRunTestCasesMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.environment); + if (message.errors != null && message.errors.length) + for (var i = 0; i < message.errors.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.TestError.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified RunTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest.verify|verify} messages. + * Encodes the specified BatchRunTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest} message RunTestCaseRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata} message BatchRunTestCasesMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchRunTestCasesMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RunTestCaseRequest message from the specified reader or buffer. + * Decodes a BatchRunTestCasesMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest} RunTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunTestCaseRequest.decode = function decode(reader, length) { + BatchRunTestCasesMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); - break; - case 2: - message.environment = reader.string(); + if (!(message.errors && message.errors.length)) + message.errors = []; + message.errors.push($root.google.cloud.dialogflow.cx.v3beta1.TestError.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -101554,116 +100408,126 @@ }; /** - * Decodes a RunTestCaseRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchRunTestCasesMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest} RunTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { + BatchRunTestCasesMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RunTestCaseRequest message. + * Verifies a BatchRunTestCasesMetadata message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RunTestCaseRequest.verify = function verify(message) { + BatchRunTestCasesMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.environment != null && message.hasOwnProperty("environment")) - if (!$util.isString(message.environment)) - return "environment: string expected"; + if (message.errors != null && message.hasOwnProperty("errors")) { + if (!Array.isArray(message.errors)) + return "errors: array expected"; + for (var i = 0; i < message.errors.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TestError.verify(message.errors[i]); + if (error) + return "errors." + error; + } + } return null; }; /** - * Creates a RunTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchRunTestCasesMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest} RunTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata */ - RunTestCaseRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest) + BatchRunTestCasesMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.environment != null) - message.environment = String(object.environment); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata(); + if (object.errors) { + if (!Array.isArray(object.errors)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata.errors: array expected"); + message.errors = []; + for (var i = 0; i < object.errors.length; ++i) { + if (typeof object.errors[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata.errors: object expected"); + message.errors[i] = $root.google.cloud.dialogflow.cx.v3beta1.TestError.fromObject(object.errors[i]); + } + } return message; }; /** - * Creates a plain object from a RunTestCaseRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchRunTestCasesMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest} message RunTestCaseRequest + * @param {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata} message BatchRunTestCasesMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RunTestCaseRequest.toObject = function toObject(message, options) { + BatchRunTestCasesMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.environment = ""; + if (options.arrays || options.defaults) + object.errors = []; + if (message.errors && message.errors.length) { + object.errors = []; + for (var j = 0; j < message.errors.length; ++j) + object.errors[j] = $root.google.cloud.dialogflow.cx.v3beta1.TestError.toObject(message.errors[j], options); } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = message.environment; return object; }; /** - * Converts this RunTestCaseRequest to JSON. + * Converts this BatchRunTestCasesMetadata to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata * @instance * @returns {Object.} JSON object */ - RunTestCaseRequest.prototype.toJSON = function toJSON() { + BatchRunTestCasesMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RunTestCaseRequest; + return BatchRunTestCasesMetadata; })(); - v3beta1.RunTestCaseResponse = (function() { + v3beta1.TestError = (function() { /** - * Properties of a RunTestCaseResponse. + * Properties of a TestError. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IRunTestCaseResponse - * @property {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null} [result] RunTestCaseResponse result + * @interface ITestError + * @property {string|null} [testCase] TestError testCase + * @property {google.rpc.IStatus|null} [status] TestError status + * @property {google.protobuf.ITimestamp|null} [testTime] TestError testTime */ /** - * Constructs a new RunTestCaseResponse. + * Constructs a new TestError. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a RunTestCaseResponse. - * @implements IRunTestCaseResponse + * @classdesc Represents a TestError. + * @implements ITestError * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ITestError=} [properties] Properties to set */ - function RunTestCaseResponse(properties) { + function TestError(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -101671,75 +100535,101 @@ } /** - * RunTestCaseResponse result. - * @member {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null|undefined} result - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse + * TestError testCase. + * @member {string} testCase + * @memberof google.cloud.dialogflow.cx.v3beta1.TestError * @instance */ - RunTestCaseResponse.prototype.result = null; + TestError.prototype.testCase = ""; /** - * Creates a new RunTestCaseResponse instance using the specified properties. + * TestError status. + * @member {google.rpc.IStatus|null|undefined} status + * @memberof google.cloud.dialogflow.cx.v3beta1.TestError + * @instance + */ + TestError.prototype.status = null; + + /** + * TestError testTime. + * @member {google.protobuf.ITimestamp|null|undefined} testTime + * @memberof google.cloud.dialogflow.cx.v3beta1.TestError + * @instance + */ + TestError.prototype.testTime = null; + + /** + * Creates a new TestError instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestError * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse} RunTestCaseResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.ITestError=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TestError} TestError instance */ - RunTestCaseResponse.create = function create(properties) { - return new RunTestCaseResponse(properties); + TestError.create = function create(properties) { + return new TestError(properties); }; /** - * Encodes the specified RunTestCaseResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse.verify|verify} messages. + * Encodes the specified TestError message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestError.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestError * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse} message RunTestCaseResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITestError} message TestError message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunTestCaseResponse.encode = function encode(message, writer) { + TestError.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.testCase != null && Object.hasOwnProperty.call(message, "testCase")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.testCase); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.testTime != null && Object.hasOwnProperty.call(message, "testTime")) + $root.google.protobuf.Timestamp.encode(message.testTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified RunTestCaseResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse.verify|verify} messages. + * Encodes the specified TestError message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestError.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestError * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse} message RunTestCaseResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITestError} message TestError message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunTestCaseResponse.encodeDelimited = function encodeDelimited(message, writer) { + TestError.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RunTestCaseResponse message from the specified reader or buffer. + * Decodes a TestError message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestError * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse} RunTestCaseResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.TestError} TestError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunTestCaseResponse.decode = function decode(reader, length) { + TestError.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TestError(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.testCase = reader.string(); + break; case 2: - message.result = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.decode(reader, reader.uint32()); + message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + case 3: + message.testTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -101750,111 +100640,136 @@ }; /** - * Decodes a RunTestCaseResponse message from the specified reader or buffer, length delimited. + * Decodes a TestError message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestError * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse} RunTestCaseResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.TestError} TestError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunTestCaseResponse.decodeDelimited = function decodeDelimited(reader) { + TestError.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RunTestCaseResponse message. + * Verifies a TestError message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestError * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RunTestCaseResponse.verify = function verify(message) { + TestError.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.verify(message.result); + if (message.testCase != null && message.hasOwnProperty("testCase")) + if (!$util.isString(message.testCase)) + return "testCase: string expected"; + if (message.status != null && message.hasOwnProperty("status")) { + var error = $root.google.rpc.Status.verify(message.status); if (error) - return "result." + error; + return "status." + error; + } + if (message.testTime != null && message.hasOwnProperty("testTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.testTime); + if (error) + return "testTime." + error; } return null; }; /** - * Creates a RunTestCaseResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TestError message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestError * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse} RunTestCaseResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.TestError} TestError */ - RunTestCaseResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse) + TestError.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TestError) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse(); - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse.result: object expected"); - message.result = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.fromObject(object.result); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TestError(); + if (object.testCase != null) + message.testCase = String(object.testCase); + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestError.status: object expected"); + message.status = $root.google.rpc.Status.fromObject(object.status); + } + if (object.testTime != null) { + if (typeof object.testTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestError.testTime: object expected"); + message.testTime = $root.google.protobuf.Timestamp.fromObject(object.testTime); } return message; }; /** - * Creates a plain object from a RunTestCaseResponse message. Also converts values to other types if specified. + * Creates a plain object from a TestError message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestError * @static - * @param {google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse} message RunTestCaseResponse + * @param {google.cloud.dialogflow.cx.v3beta1.TestError} message TestError * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RunTestCaseResponse.toObject = function toObject(message, options) { + TestError.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.result = null; - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.toObject(message.result, options); + if (options.defaults) { + object.testCase = ""; + object.status = null; + object.testTime = null; + } + if (message.testCase != null && message.hasOwnProperty("testCase")) + object.testCase = message.testCase; + if (message.status != null && message.hasOwnProperty("status")) + object.status = $root.google.rpc.Status.toObject(message.status, options); + if (message.testTime != null && message.hasOwnProperty("testTime")) + object.testTime = $root.google.protobuf.Timestamp.toObject(message.testTime, options); return object; }; /** - * Converts this RunTestCaseResponse to JSON. + * Converts this TestError to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestError * @instance * @returns {Object.} JSON object */ - RunTestCaseResponse.prototype.toJSON = function toJSON() { + TestError.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RunTestCaseResponse; + return TestError; })(); - v3beta1.RunTestCaseMetadata = (function() { + v3beta1.ImportTestCasesRequest = (function() { /** - * Properties of a RunTestCaseMetadata. + * Properties of an ImportTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IRunTestCaseMetadata + * @interface IImportTestCasesRequest + * @property {string|null} [parent] ImportTestCasesRequest parent + * @property {string|null} [gcsUri] ImportTestCasesRequest gcsUri + * @property {Uint8Array|null} [content] ImportTestCasesRequest content */ /** - * Constructs a new RunTestCaseMetadata. + * Constructs a new ImportTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a RunTestCaseMetadata. - * @implements IRunTestCaseMetadata + * @classdesc Represents an ImportTestCasesRequest. + * @implements IImportTestCasesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest=} [properties] Properties to set */ - function RunTestCaseMetadata(properties) { + function ImportTestCasesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -101862,63 +100777,116 @@ } /** - * Creates a new RunTestCaseMetadata instance using the specified properties. + * ImportTestCasesRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * @instance + */ + ImportTestCasesRequest.prototype.parent = ""; + + /** + * ImportTestCasesRequest gcsUri. + * @member {string|null|undefined} gcsUri + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * @instance + */ + ImportTestCasesRequest.prototype.gcsUri = null; + + /** + * ImportTestCasesRequest content. + * @member {Uint8Array|null|undefined} content + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * @instance + */ + ImportTestCasesRequest.prototype.content = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ImportTestCasesRequest source. + * @member {"gcsUri"|"content"|undefined} source + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * @instance + */ + Object.defineProperty(ImportTestCasesRequest.prototype, "source", { + get: $util.oneOfGetter($oneOfFields = ["gcsUri", "content"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ImportTestCasesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata} RunTestCaseMetadata instance + * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest} ImportTestCasesRequest instance */ - RunTestCaseMetadata.create = function create(properties) { - return new RunTestCaseMetadata(properties); + ImportTestCasesRequest.create = function create(properties) { + return new ImportTestCasesRequest(properties); }; /** - * Encodes the specified RunTestCaseMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata.verify|verify} messages. + * Encodes the specified ImportTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata} message RunTestCaseMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest} message ImportTestCasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunTestCaseMetadata.encode = function encode(message, writer) { + ImportTestCasesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.gcsUri != null && Object.hasOwnProperty.call(message, "gcsUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.gcsUri); + if (message.content != null && Object.hasOwnProperty.call(message, "content")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.content); return writer; }; /** - * Encodes the specified RunTestCaseMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata.verify|verify} messages. + * Encodes the specified ImportTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata} message RunTestCaseMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest} message ImportTestCasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunTestCaseMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ImportTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RunTestCaseMetadata message from the specified reader or buffer. + * Decodes an ImportTestCasesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata} RunTestCaseMetadata + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest} ImportTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunTestCaseMetadata.decode = function decode(reader, length) { + ImportTestCasesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.gcsUri = reader.string(); + break; + case 3: + message.content = reader.bytes(); + break; default: reader.skipType(tag & 7); break; @@ -101928,97 +100896,138 @@ }; /** - * Decodes a RunTestCaseMetadata message from the specified reader or buffer, length delimited. + * Decodes an ImportTestCasesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata} RunTestCaseMetadata + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest} ImportTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunTestCaseMetadata.decodeDelimited = function decodeDelimited(reader) { + ImportTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RunTestCaseMetadata message. + * Verifies an ImportTestCasesRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RunTestCaseMetadata.verify = function verify(message) { + ImportTestCasesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { + properties.source = 1; + if (!$util.isString(message.gcsUri)) + return "gcsUri: string expected"; + } + if (message.content != null && message.hasOwnProperty("content")) { + if (properties.source === 1) + return "source: multiple values"; + properties.source = 1; + if (!(message.content && typeof message.content.length === "number" || $util.isString(message.content))) + return "content: buffer expected"; + } return null; }; /** - * Creates a RunTestCaseMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an ImportTestCasesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata} RunTestCaseMetadata + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest} ImportTestCasesRequest */ - RunTestCaseMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata) + ImportTestCasesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest) return object; - return new $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.gcsUri != null) + message.gcsUri = String(object.gcsUri); + if (object.content != null) + if (typeof object.content === "string") + $util.base64.decode(object.content, message.content = $util.newBuffer($util.base64.length(object.content)), 0); + else if (object.content.length) + message.content = object.content; + return message; }; /** - * Creates a plain object from a RunTestCaseMetadata message. Also converts values to other types if specified. + * Creates a plain object from an ImportTestCasesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata} message RunTestCaseMetadata + * @param {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest} message ImportTestCasesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RunTestCaseMetadata.toObject = function toObject() { - return {}; + ImportTestCasesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { + object.gcsUri = message.gcsUri; + if (options.oneofs) + object.source = "gcsUri"; + } + if (message.content != null && message.hasOwnProperty("content")) { + object.content = options.bytes === String ? $util.base64.encode(message.content, 0, message.content.length) : options.bytes === Array ? Array.prototype.slice.call(message.content) : message.content; + if (options.oneofs) + object.source = "content"; + } + return object; }; /** - * Converts this RunTestCaseMetadata to JSON. + * Converts this ImportTestCasesRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest * @instance * @returns {Object.} JSON object */ - RunTestCaseMetadata.prototype.toJSON = function toJSON() { + ImportTestCasesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RunTestCaseMetadata; + return ImportTestCasesRequest; })(); - v3beta1.BatchRunTestCasesRequest = (function() { + v3beta1.ImportTestCasesResponse = (function() { /** - * Properties of a BatchRunTestCasesRequest. + * Properties of an ImportTestCasesResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IBatchRunTestCasesRequest - * @property {string|null} [parent] BatchRunTestCasesRequest parent - * @property {string|null} [environment] BatchRunTestCasesRequest environment - * @property {Array.|null} [testCases] BatchRunTestCasesRequest testCases + * @interface IImportTestCasesResponse + * @property {Array.|null} [names] ImportTestCasesResponse names */ /** - * Constructs a new BatchRunTestCasesRequest. + * Constructs a new ImportTestCasesResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a BatchRunTestCasesRequest. - * @implements IBatchRunTestCasesRequest + * @classdesc Represents an ImportTestCasesResponse. + * @implements IImportTestCasesResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse=} [properties] Properties to set */ - function BatchRunTestCasesRequest(properties) { - this.testCases = []; + function ImportTestCasesResponse(properties) { + this.names = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -102026,104 +101035,78 @@ } /** - * BatchRunTestCasesRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest - * @instance - */ - BatchRunTestCasesRequest.prototype.parent = ""; - - /** - * BatchRunTestCasesRequest environment. - * @member {string} environment - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest - * @instance - */ - BatchRunTestCasesRequest.prototype.environment = ""; - - /** - * BatchRunTestCasesRequest testCases. - * @member {Array.} testCases - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest + * ImportTestCasesResponse names. + * @member {Array.} names + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse * @instance */ - BatchRunTestCasesRequest.prototype.testCases = $util.emptyArray; + ImportTestCasesResponse.prototype.names = $util.emptyArray; /** - * Creates a new BatchRunTestCasesRequest instance using the specified properties. + * Creates a new ImportTestCasesResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest} BatchRunTestCasesRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse} ImportTestCasesResponse instance */ - BatchRunTestCasesRequest.create = function create(properties) { - return new BatchRunTestCasesRequest(properties); + ImportTestCasesResponse.create = function create(properties) { + return new ImportTestCasesResponse(properties); }; /** - * Encodes the specified BatchRunTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest.verify|verify} messages. + * Encodes the specified ImportTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest} message BatchRunTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse} message ImportTestCasesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchRunTestCasesRequest.encode = function encode(message, writer) { + ImportTestCasesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.environment); - if (message.testCases != null && message.testCases.length) - for (var i = 0; i < message.testCases.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.testCases[i]); + if (message.names != null && message.names.length) + for (var i = 0; i < message.names.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.names[i]); return writer; }; /** - * Encodes the specified BatchRunTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest.verify|verify} messages. + * Encodes the specified ImportTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest} message BatchRunTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse} message ImportTestCasesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchRunTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ImportTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchRunTestCasesRequest message from the specified reader or buffer. + * Decodes an ImportTestCasesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest} BatchRunTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse} ImportTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchRunTestCasesRequest.decode = function decode(reader, length) { + ImportTestCasesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - message.environment = reader.string(); - break; - case 3: - if (!(message.testCases && message.testCases.length)) - message.testCases = []; - message.testCases.push(reader.string()); + if (!(message.names && message.names.length)) + message.names = []; + message.names.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -102134,138 +101117,120 @@ }; /** - * Decodes a BatchRunTestCasesRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportTestCasesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest} BatchRunTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse} ImportTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchRunTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { + ImportTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchRunTestCasesRequest message. + * Verifies an ImportTestCasesResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchRunTestCasesRequest.verify = function verify(message) { + ImportTestCasesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.environment != null && message.hasOwnProperty("environment")) - if (!$util.isString(message.environment)) - return "environment: string expected"; - if (message.testCases != null && message.hasOwnProperty("testCases")) { - if (!Array.isArray(message.testCases)) - return "testCases: array expected"; - for (var i = 0; i < message.testCases.length; ++i) - if (!$util.isString(message.testCases[i])) - return "testCases: string[] expected"; + if (message.names != null && message.hasOwnProperty("names")) { + if (!Array.isArray(message.names)) + return "names: array expected"; + for (var i = 0; i < message.names.length; ++i) + if (!$util.isString(message.names[i])) + return "names: string[] expected"; } return null; }; /** - * Creates a BatchRunTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ImportTestCasesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest} BatchRunTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse} ImportTestCasesResponse */ - BatchRunTestCasesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest) + ImportTestCasesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.environment != null) - message.environment = String(object.environment); - if (object.testCases) { - if (!Array.isArray(object.testCases)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest.testCases: array expected"); - message.testCases = []; - for (var i = 0; i < object.testCases.length; ++i) - message.testCases[i] = String(object.testCases[i]); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse(); + if (object.names) { + if (!Array.isArray(object.names)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse.names: array expected"); + message.names = []; + for (var i = 0; i < object.names.length; ++i) + message.names[i] = String(object.names[i]); } return message; }; /** - * Creates a plain object from a BatchRunTestCasesRequest message. Also converts values to other types if specified. + * Creates a plain object from an ImportTestCasesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest} message BatchRunTestCasesRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse} message ImportTestCasesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchRunTestCasesRequest.toObject = function toObject(message, options) { + ImportTestCasesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.testCases = []; - if (options.defaults) { - object.parent = ""; - object.environment = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = message.environment; - if (message.testCases && message.testCases.length) { - object.testCases = []; - for (var j = 0; j < message.testCases.length; ++j) - object.testCases[j] = message.testCases[j]; + object.names = []; + if (message.names && message.names.length) { + object.names = []; + for (var j = 0; j < message.names.length; ++j) + object.names[j] = message.names[j]; } return object; }; /** - * Converts this BatchRunTestCasesRequest to JSON. + * Converts this ImportTestCasesResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse * @instance * @returns {Object.} JSON object */ - BatchRunTestCasesRequest.prototype.toJSON = function toJSON() { + ImportTestCasesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchRunTestCasesRequest; + return ImportTestCasesResponse; })(); - v3beta1.BatchRunTestCasesResponse = (function() { + v3beta1.ImportTestCasesMetadata = (function() { /** - * Properties of a BatchRunTestCasesResponse. + * Properties of an ImportTestCasesMetadata. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IBatchRunTestCasesResponse - * @property {Array.|null} [results] BatchRunTestCasesResponse results + * @interface IImportTestCasesMetadata + * @property {Array.|null} [errors] ImportTestCasesMetadata errors */ /** - * Constructs a new BatchRunTestCasesResponse. + * Constructs a new ImportTestCasesMetadata. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a BatchRunTestCasesResponse. - * @implements IBatchRunTestCasesResponse + * @classdesc Represents an ImportTestCasesMetadata. + * @implements IImportTestCasesMetadata * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata=} [properties] Properties to set */ - function BatchRunTestCasesResponse(properties) { - this.results = []; + function ImportTestCasesMetadata(properties) { + this.errors = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -102273,78 +101238,78 @@ } /** - * BatchRunTestCasesResponse results. - * @member {Array.} results - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse + * ImportTestCasesMetadata errors. + * @member {Array.} errors + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata * @instance */ - BatchRunTestCasesResponse.prototype.results = $util.emptyArray; + ImportTestCasesMetadata.prototype.errors = $util.emptyArray; /** - * Creates a new BatchRunTestCasesResponse instance using the specified properties. + * Creates a new ImportTestCasesMetadata instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse} BatchRunTestCasesResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata} ImportTestCasesMetadata instance */ - BatchRunTestCasesResponse.create = function create(properties) { - return new BatchRunTestCasesResponse(properties); + ImportTestCasesMetadata.create = function create(properties) { + return new ImportTestCasesMetadata(properties); }; /** - * Encodes the specified BatchRunTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse.verify|verify} messages. + * Encodes the specified ImportTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse} message BatchRunTestCasesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata} message ImportTestCasesMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchRunTestCasesResponse.encode = function encode(message, writer) { + ImportTestCasesMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.results != null && message.results.length) - for (var i = 0; i < message.results.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.errors != null && message.errors.length) + for (var i = 0; i < message.errors.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.TestCaseError.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified BatchRunTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse.verify|verify} messages. + * Encodes the specified ImportTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse} message BatchRunTestCasesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata} message ImportTestCasesMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchRunTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ImportTestCasesMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchRunTestCasesResponse message from the specified reader or buffer. + * Decodes an ImportTestCasesMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse} BatchRunTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata} ImportTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchRunTestCasesResponse.decode = function decode(reader, length) { + ImportTestCasesMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.results && message.results.length)) - message.results = []; - message.results.push($root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.decode(reader, reader.uint32())); + if (!(message.errors && message.errors.length)) + message.errors = []; + message.errors.push($root.google.cloud.dialogflow.cx.v3beta1.TestCaseError.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -102355,125 +101320,125 @@ }; /** - * Decodes a BatchRunTestCasesResponse message from the specified reader or buffer, length delimited. + * Decodes an ImportTestCasesMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse} BatchRunTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata} ImportTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchRunTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { + ImportTestCasesMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchRunTestCasesResponse message. + * Verifies an ImportTestCasesMetadata message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchRunTestCasesResponse.verify = function verify(message) { + ImportTestCasesMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.results != null && message.hasOwnProperty("results")) { - if (!Array.isArray(message.results)) - return "results: array expected"; - for (var i = 0; i < message.results.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.verify(message.results[i]); + if (message.errors != null && message.hasOwnProperty("errors")) { + if (!Array.isArray(message.errors)) + return "errors: array expected"; + for (var i = 0; i < message.errors.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseError.verify(message.errors[i]); if (error) - return "results." + error; + return "errors." + error; } } return null; }; /** - * Creates a BatchRunTestCasesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ImportTestCasesMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse} BatchRunTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata} ImportTestCasesMetadata */ - BatchRunTestCasesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse) + ImportTestCasesMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse(); - if (object.results) { - if (!Array.isArray(object.results)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse.results: array expected"); - message.results = []; - for (var i = 0; i < object.results.length; ++i) { - if (typeof object.results[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse.results: object expected"); - message.results[i] = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.fromObject(object.results[i]); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata(); + if (object.errors) { + if (!Array.isArray(object.errors)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata.errors: array expected"); + message.errors = []; + for (var i = 0; i < object.errors.length; ++i) { + if (typeof object.errors[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata.errors: object expected"); + message.errors[i] = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseError.fromObject(object.errors[i]); } } return message; }; /** - * Creates a plain object from a BatchRunTestCasesResponse message. Also converts values to other types if specified. + * Creates a plain object from an ImportTestCasesMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse} message BatchRunTestCasesResponse + * @param {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata} message ImportTestCasesMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchRunTestCasesResponse.toObject = function toObject(message, options) { + ImportTestCasesMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.results = []; - if (message.results && message.results.length) { - object.results = []; - for (var j = 0; j < message.results.length; ++j) - object.results[j] = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.toObject(message.results[j], options); + object.errors = []; + if (message.errors && message.errors.length) { + object.errors = []; + for (var j = 0; j < message.errors.length; ++j) + object.errors[j] = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseError.toObject(message.errors[j], options); } return object; }; /** - * Converts this BatchRunTestCasesResponse to JSON. + * Converts this ImportTestCasesMetadata to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata * @instance * @returns {Object.} JSON object */ - BatchRunTestCasesResponse.prototype.toJSON = function toJSON() { + ImportTestCasesMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchRunTestCasesResponse; + return ImportTestCasesMetadata; })(); - v3beta1.BatchRunTestCasesMetadata = (function() { + v3beta1.TestCaseError = (function() { /** - * Properties of a BatchRunTestCasesMetadata. + * Properties of a TestCaseError. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IBatchRunTestCasesMetadata - * @property {Array.|null} [errors] BatchRunTestCasesMetadata errors + * @interface ITestCaseError + * @property {google.cloud.dialogflow.cx.v3beta1.ITestCase|null} [testCase] TestCaseError testCase + * @property {google.rpc.IStatus|null} [status] TestCaseError status */ /** - * Constructs a new BatchRunTestCasesMetadata. + * Constructs a new TestCaseError. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a BatchRunTestCasesMetadata. - * @implements IBatchRunTestCasesMetadata + * @classdesc Represents a TestCaseError. + * @implements ITestCaseError * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseError=} [properties] Properties to set */ - function BatchRunTestCasesMetadata(properties) { - this.errors = []; + function TestCaseError(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -102481,78 +101446,88 @@ } /** - * BatchRunTestCasesMetadata errors. - * @member {Array.} errors - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata + * TestCaseError testCase. + * @member {google.cloud.dialogflow.cx.v3beta1.ITestCase|null|undefined} testCase + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError * @instance */ - BatchRunTestCasesMetadata.prototype.errors = $util.emptyArray; + TestCaseError.prototype.testCase = null; /** - * Creates a new BatchRunTestCasesMetadata instance using the specified properties. + * TestCaseError status. + * @member {google.rpc.IStatus|null|undefined} status + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError + * @instance + */ + TestCaseError.prototype.status = null; + + /** + * Creates a new TestCaseError instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata instance + * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseError=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseError} TestCaseError instance */ - BatchRunTestCasesMetadata.create = function create(properties) { - return new BatchRunTestCasesMetadata(properties); + TestCaseError.create = function create(properties) { + return new TestCaseError(properties); }; /** - * Encodes the specified BatchRunTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata.verify|verify} messages. + * Encodes the specified TestCaseError message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCaseError.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata} message BatchRunTestCasesMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseError} message TestCaseError message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchRunTestCasesMetadata.encode = function encode(message, writer) { + TestCaseError.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.errors != null && message.errors.length) - for (var i = 0; i < message.errors.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.TestError.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.testCase != null && Object.hasOwnProperty.call(message, "testCase")) + $root.google.cloud.dialogflow.cx.v3beta1.TestCase.encode(message.testCase, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified BatchRunTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata.verify|verify} messages. + * Encodes the specified TestCaseError message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCaseError.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata} message BatchRunTestCasesMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseError} message TestCaseError message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchRunTestCasesMetadata.encodeDelimited = function encodeDelimited(message, writer) { + TestCaseError.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchRunTestCasesMetadata message from the specified reader or buffer. + * Decodes a TestCaseError message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata + * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseError} TestCaseError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchRunTestCasesMetadata.decode = function decode(reader, length) { + TestCaseError.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TestCaseError(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.errors && message.errors.length)) - message.errors = []; - message.errors.push($root.google.cloud.dialogflow.cx.v3beta1.TestError.decode(reader, reader.uint32())); + message.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.decode(reader, reader.uint32()); + break; + case 2: + message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -102563,126 +101538,129 @@ }; /** - * Decodes a BatchRunTestCasesMetadata message from the specified reader or buffer, length delimited. + * Decodes a TestCaseError message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata + * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseError} TestCaseError * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchRunTestCasesMetadata.decodeDelimited = function decodeDelimited(reader) { + TestCaseError.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchRunTestCasesMetadata message. + * Verifies a TestCaseError message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchRunTestCasesMetadata.verify = function verify(message) { + TestCaseError.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.errors != null && message.hasOwnProperty("errors")) { - if (!Array.isArray(message.errors)) - return "errors: array expected"; - for (var i = 0; i < message.errors.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TestError.verify(message.errors[i]); - if (error) - return "errors." + error; - } + if (message.testCase != null && message.hasOwnProperty("testCase")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.verify(message.testCase); + if (error) + return "testCase." + error; + } + if (message.status != null && message.hasOwnProperty("status")) { + var error = $root.google.rpc.Status.verify(message.status); + if (error) + return "status." + error; } return null; }; /** - * Creates a BatchRunTestCasesMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a TestCaseError message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata + * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseError} TestCaseError */ - BatchRunTestCasesMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata) + TestCaseError.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TestCaseError) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata(); - if (object.errors) { - if (!Array.isArray(object.errors)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata.errors: array expected"); - message.errors = []; - for (var i = 0; i < object.errors.length; ++i) { - if (typeof object.errors[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata.errors: object expected"); - message.errors[i] = $root.google.cloud.dialogflow.cx.v3beta1.TestError.fromObject(object.errors[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TestCaseError(); + if (object.testCase != null) { + if (typeof object.testCase !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCaseError.testCase: object expected"); + message.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.fromObject(object.testCase); + } + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCaseError.status: object expected"); + message.status = $root.google.rpc.Status.fromObject(object.status); } return message; }; /** - * Creates a plain object from a BatchRunTestCasesMetadata message. Also converts values to other types if specified. + * Creates a plain object from a TestCaseError message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError * @static - * @param {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata} message BatchRunTestCasesMetadata + * @param {google.cloud.dialogflow.cx.v3beta1.TestCaseError} message TestCaseError * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchRunTestCasesMetadata.toObject = function toObject(message, options) { + TestCaseError.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.errors = []; - if (message.errors && message.errors.length) { - object.errors = []; - for (var j = 0; j < message.errors.length; ++j) - object.errors[j] = $root.google.cloud.dialogflow.cx.v3beta1.TestError.toObject(message.errors[j], options); + if (options.defaults) { + object.testCase = null; + object.status = null; } + if (message.testCase != null && message.hasOwnProperty("testCase")) + object.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.toObject(message.testCase, options); + if (message.status != null && message.hasOwnProperty("status")) + object.status = $root.google.rpc.Status.toObject(message.status, options); return object; }; /** - * Converts this BatchRunTestCasesMetadata to JSON. + * Converts this TestCaseError to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError * @instance * @returns {Object.} JSON object */ - BatchRunTestCasesMetadata.prototype.toJSON = function toJSON() { + TestCaseError.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchRunTestCasesMetadata; + return TestCaseError; })(); - v3beta1.TestError = (function() { + v3beta1.ExportTestCasesRequest = (function() { /** - * Properties of a TestError. + * Properties of an ExportTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ITestError - * @property {string|null} [testCase] TestError testCase - * @property {google.rpc.IStatus|null} [status] TestError status - * @property {google.protobuf.ITimestamp|null} [testTime] TestError testTime + * @interface IExportTestCasesRequest + * @property {string|null} [parent] ExportTestCasesRequest parent + * @property {string|null} [gcsUri] ExportTestCasesRequest gcsUri + * @property {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat|null} [dataFormat] ExportTestCasesRequest dataFormat + * @property {string|null} [filter] ExportTestCasesRequest filter */ /** - * Constructs a new TestError. + * Constructs a new ExportTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TestError. - * @implements ITestError + * @classdesc Represents an ExportTestCasesRequest. + * @implements IExportTestCasesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITestError=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest=} [properties] Properties to set */ - function TestError(properties) { + function ExportTestCasesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -102690,101 +101668,128 @@ } /** - * TestError testCase. - * @member {string} testCase - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError + * ExportTestCasesRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest * @instance */ - TestError.prototype.testCase = ""; + ExportTestCasesRequest.prototype.parent = ""; /** - * TestError status. - * @member {google.rpc.IStatus|null|undefined} status - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError + * ExportTestCasesRequest gcsUri. + * @member {string|null|undefined} gcsUri + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest * @instance */ - TestError.prototype.status = null; + ExportTestCasesRequest.prototype.gcsUri = null; /** - * TestError testTime. - * @member {google.protobuf.ITimestamp|null|undefined} testTime - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError + * ExportTestCasesRequest dataFormat. + * @member {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat} dataFormat + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest * @instance */ - TestError.prototype.testTime = null; + ExportTestCasesRequest.prototype.dataFormat = 0; /** - * Creates a new TestError instance using the specified properties. + * ExportTestCasesRequest filter. + * @member {string} filter + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest + * @instance + */ + ExportTestCasesRequest.prototype.filter = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ExportTestCasesRequest destination. + * @member {"gcsUri"|undefined} destination + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest + * @instance + */ + Object.defineProperty(ExportTestCasesRequest.prototype, "destination", { + get: $util.oneOfGetter($oneOfFields = ["gcsUri"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ExportTestCasesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestError=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TestError} TestError instance + * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest} ExportTestCasesRequest instance */ - TestError.create = function create(properties) { - return new TestError(properties); + ExportTestCasesRequest.create = function create(properties) { + return new ExportTestCasesRequest(properties); }; /** - * Encodes the specified TestError message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestError.verify|verify} messages. + * Encodes the specified ExportTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestError} message TestError message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest} message ExportTestCasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestError.encode = function encode(message, writer) { + ExportTestCasesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.testCase != null && Object.hasOwnProperty.call(message, "testCase")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.testCase); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.testTime != null && Object.hasOwnProperty.call(message, "testTime")) - $root.google.protobuf.Timestamp.encode(message.testTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.gcsUri != null && Object.hasOwnProperty.call(message, "gcsUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.gcsUri); + if (message.dataFormat != null && Object.hasOwnProperty.call(message, "dataFormat")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.dataFormat); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); return writer; }; /** - * Encodes the specified TestError message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestError.verify|verify} messages. + * Encodes the specified ExportTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestError} message TestError message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest} message ExportTestCasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestError.encodeDelimited = function encodeDelimited(message, writer) { + ExportTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestError message from the specified reader or buffer. + * Decodes an ExportTestCasesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.TestError} TestError + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest} ExportTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestError.decode = function decode(reader, length) { + ExportTestCasesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TestError(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.testCase = reader.string(); + message.parent = reader.string(); break; case 2: - message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); + message.gcsUri = reader.string(); break; case 3: - message.testTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.dataFormat = reader.int32(); + break; + case 4: + message.filter = reader.string(); break; default: reader.skipType(tag & 7); @@ -102795,136 +101800,172 @@ }; /** - * Decodes a TestError message from the specified reader or buffer, length delimited. + * Decodes an ExportTestCasesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TestError} TestError + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest} ExportTestCasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestError.decodeDelimited = function decodeDelimited(reader) { + ExportTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestError message. + * Verifies an ExportTestCasesRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestError.verify = function verify(message) { + ExportTestCasesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.testCase != null && message.hasOwnProperty("testCase")) - if (!$util.isString(message.testCase)) - return "testCase: string expected"; - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.google.rpc.Status.verify(message.status); - if (error) - return "status." + error; - } - if (message.testTime != null && message.hasOwnProperty("testTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.testTime); - if (error) - return "testTime." + error; + var properties = {}; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { + properties.destination = 1; + if (!$util.isString(message.gcsUri)) + return "gcsUri: string expected"; } + if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) + switch (message.dataFormat) { + default: + return "dataFormat: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; return null; }; /** - * Creates a TestError message from a plain object. Also converts values to their respective internal types. + * Creates an ExportTestCasesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TestError} TestError + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest} ExportTestCasesRequest */ - TestError.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TestError) + ExportTestCasesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TestError(); - if (object.testCase != null) - message.testCase = String(object.testCase); - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestError.status: object expected"); - message.status = $root.google.rpc.Status.fromObject(object.status); - } - if (object.testTime != null) { - if (typeof object.testTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestError.testTime: object expected"); - message.testTime = $root.google.protobuf.Timestamp.fromObject(object.testTime); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.gcsUri != null) + message.gcsUri = String(object.gcsUri); + switch (object.dataFormat) { + case "DATA_FORMAT_UNSPECIFIED": + case 0: + message.dataFormat = 0; + break; + case "BLOB": + case 1: + message.dataFormat = 1; + break; + case "JSON": + case 2: + message.dataFormat = 2; + break; } + if (object.filter != null) + message.filter = String(object.filter); return message; }; /** - * Creates a plain object from a TestError message. Also converts values to other types if specified. + * Creates a plain object from an ExportTestCasesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TestError} message TestError + * @param {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest} message ExportTestCasesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestError.toObject = function toObject(message, options) { + ExportTestCasesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.testCase = ""; - object.status = null; - object.testTime = null; + object.parent = ""; + object.dataFormat = options.enums === String ? "DATA_FORMAT_UNSPECIFIED" : 0; + object.filter = ""; } - if (message.testCase != null && message.hasOwnProperty("testCase")) - object.testCase = message.testCase; - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.google.rpc.Status.toObject(message.status, options); - if (message.testTime != null && message.hasOwnProperty("testTime")) - object.testTime = $root.google.protobuf.Timestamp.toObject(message.testTime, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { + object.gcsUri = message.gcsUri; + if (options.oneofs) + object.destination = "gcsUri"; + } + if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) + object.dataFormat = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat[message.dataFormat] : message.dataFormat; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; return object; }; /** - * Converts this TestError to JSON. + * Converts this ExportTestCasesRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest * @instance * @returns {Object.} JSON object */ - TestError.prototype.toJSON = function toJSON() { + ExportTestCasesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TestError; + /** + * DataFormat enum. + * @name google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat + * @enum {number} + * @property {number} DATA_FORMAT_UNSPECIFIED=0 DATA_FORMAT_UNSPECIFIED value + * @property {number} BLOB=1 BLOB value + * @property {number} JSON=2 JSON value + */ + ExportTestCasesRequest.DataFormat = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DATA_FORMAT_UNSPECIFIED"] = 0; + values[valuesById[1] = "BLOB"] = 1; + values[valuesById[2] = "JSON"] = 2; + return values; + })(); + + return ExportTestCasesRequest; })(); - v3beta1.ImportTestCasesRequest = (function() { + v3beta1.ExportTestCasesResponse = (function() { /** - * Properties of an ImportTestCasesRequest. + * Properties of an ExportTestCasesResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IImportTestCasesRequest - * @property {string|null} [parent] ImportTestCasesRequest parent - * @property {string|null} [gcsUri] ImportTestCasesRequest gcsUri - * @property {Uint8Array|null} [content] ImportTestCasesRequest content + * @interface IExportTestCasesResponse + * @property {string|null} [gcsUri] ExportTestCasesResponse gcsUri + * @property {Uint8Array|null} [content] ExportTestCasesResponse content */ /** - * Constructs a new ImportTestCasesRequest. + * Constructs a new ExportTestCasesResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an ImportTestCasesRequest. - * @implements IImportTestCasesRequest + * @classdesc Represents an ExportTestCasesResponse. + * @implements IExportTestCasesResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse=} [properties] Properties to set */ - function ImportTestCasesRequest(properties) { + function ExportTestCasesResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -102932,114 +101973,101 @@ } /** - * ImportTestCasesRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest - * @instance - */ - ImportTestCasesRequest.prototype.parent = ""; - - /** - * ImportTestCasesRequest gcsUri. + * ExportTestCasesResponse gcsUri. * @member {string|null|undefined} gcsUri - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse * @instance */ - ImportTestCasesRequest.prototype.gcsUri = null; + ExportTestCasesResponse.prototype.gcsUri = null; /** - * ImportTestCasesRequest content. + * ExportTestCasesResponse content. * @member {Uint8Array|null|undefined} content - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse * @instance */ - ImportTestCasesRequest.prototype.content = null; + ExportTestCasesResponse.prototype.content = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ImportTestCasesRequest source. - * @member {"gcsUri"|"content"|undefined} source - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * ExportTestCasesResponse destination. + * @member {"gcsUri"|"content"|undefined} destination + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse * @instance */ - Object.defineProperty(ImportTestCasesRequest.prototype, "source", { + Object.defineProperty(ExportTestCasesResponse.prototype, "destination", { get: $util.oneOfGetter($oneOfFields = ["gcsUri", "content"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ImportTestCasesRequest instance using the specified properties. + * Creates a new ExportTestCasesResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest} ImportTestCasesRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse} ExportTestCasesResponse instance */ - ImportTestCasesRequest.create = function create(properties) { - return new ImportTestCasesRequest(properties); + ExportTestCasesResponse.create = function create(properties) { + return new ExportTestCasesResponse(properties); }; /** - * Encodes the specified ImportTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest.verify|verify} messages. + * Encodes the specified ExportTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest} message ImportTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse} message ExportTestCasesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportTestCasesRequest.encode = function encode(message, writer) { + ExportTestCasesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); if (message.gcsUri != null && Object.hasOwnProperty.call(message, "gcsUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.gcsUri); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.gcsUri); if (message.content != null && Object.hasOwnProperty.call(message, "content")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.content); + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.content); return writer; }; /** - * Encodes the specified ImportTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest.verify|verify} messages. + * Encodes the specified ExportTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest} message ImportTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse} message ExportTestCasesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ExportTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportTestCasesRequest message from the specified reader or buffer. + * Decodes an ExportTestCasesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest} ImportTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse} ExportTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportTestCasesRequest.decode = function decode(reader, length) { + ExportTestCasesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: message.gcsUri = reader.string(); break; - case 3: + case 2: message.content = reader.bytes(); break; default: @@ -103051,45 +102079,42 @@ }; /** - * Decodes an ImportTestCasesRequest message from the specified reader or buffer, length delimited. + * Decodes an ExportTestCasesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest} ImportTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse} ExportTestCasesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { + ExportTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImportTestCasesRequest message. + * Verifies an ExportTestCasesResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ImportTestCasesRequest.verify = function verify(message) { + ExportTestCasesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { - properties.source = 1; + properties.destination = 1; if (!$util.isString(message.gcsUri)) return "gcsUri: string expected"; } if (message.content != null && message.hasOwnProperty("content")) { - if (properties.source === 1) - return "source: multiple values"; - properties.source = 1; + if (properties.destination === 1) + return "destination: multiple values"; + properties.destination = 1; if (!(message.content && typeof message.content.length === "number" || $util.isString(message.content))) return "content: buffer expected"; } @@ -103097,19 +102122,17 @@ }; /** - * Creates an ImportTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExportTestCasesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest} ImportTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse} ExportTestCasesResponse */ - ImportTestCasesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest) + ExportTestCasesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest(); - if (object.parent != null) - message.parent = String(object.parent); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse(); if (object.gcsUri != null) message.gcsUri = String(object.gcsUri); if (object.content != null) @@ -103121,68 +102144,62 @@ }; /** - * Creates a plain object from an ImportTestCasesRequest message. Also converts values to other types if specified. + * Creates a plain object from an ExportTestCasesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest} message ImportTestCasesRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse} message ExportTestCasesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportTestCasesRequest.toObject = function toObject(message, options) { + ExportTestCasesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.parent = ""; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { object.gcsUri = message.gcsUri; if (options.oneofs) - object.source = "gcsUri"; + object.destination = "gcsUri"; } if (message.content != null && message.hasOwnProperty("content")) { object.content = options.bytes === String ? $util.base64.encode(message.content, 0, message.content.length) : options.bytes === Array ? Array.prototype.slice.call(message.content) : message.content; if (options.oneofs) - object.source = "content"; + object.destination = "content"; } return object; }; /** - * Converts this ImportTestCasesRequest to JSON. + * Converts this ExportTestCasesResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse * @instance * @returns {Object.} JSON object */ - ImportTestCasesRequest.prototype.toJSON = function toJSON() { + ExportTestCasesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ImportTestCasesRequest; + return ExportTestCasesResponse; })(); - v3beta1.ImportTestCasesResponse = (function() { + v3beta1.ExportTestCasesMetadata = (function() { /** - * Properties of an ImportTestCasesResponse. + * Properties of an ExportTestCasesMetadata. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IImportTestCasesResponse - * @property {Array.|null} [names] ImportTestCasesResponse names + * @interface IExportTestCasesMetadata */ /** - * Constructs a new ImportTestCasesResponse. + * Constructs a new ExportTestCasesMetadata. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an ImportTestCasesResponse. - * @implements IImportTestCasesResponse + * @classdesc Represents an ExportTestCasesMetadata. + * @implements IExportTestCasesMetadata * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata=} [properties] Properties to set */ - function ImportTestCasesResponse(properties) { - this.names = []; + function ExportTestCasesMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -103190,79 +102207,63 @@ } /** - * ImportTestCasesResponse names. - * @member {Array.} names - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse - * @instance - */ - ImportTestCasesResponse.prototype.names = $util.emptyArray; - - /** - * Creates a new ImportTestCasesResponse instance using the specified properties. + * Creates a new ExportTestCasesMetadata instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse} ImportTestCasesResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata} ExportTestCasesMetadata instance */ - ImportTestCasesResponse.create = function create(properties) { - return new ImportTestCasesResponse(properties); + ExportTestCasesMetadata.create = function create(properties) { + return new ExportTestCasesMetadata(properties); }; /** - * Encodes the specified ImportTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse.verify|verify} messages. + * Encodes the specified ExportTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse} message ImportTestCasesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata} message ExportTestCasesMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportTestCasesResponse.encode = function encode(message, writer) { + ExportTestCasesMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.names != null && message.names.length) - for (var i = 0; i < message.names.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.names[i]); return writer; }; /** - * Encodes the specified ImportTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse.verify|verify} messages. + * Encodes the specified ExportTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse} message ImportTestCasesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata} message ExportTestCasesMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ExportTestCasesMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportTestCasesResponse message from the specified reader or buffer. + * Decodes an ExportTestCasesMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse} ImportTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata} ExportTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportTestCasesResponse.decode = function decode(reader, length) { + ExportTestCasesMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.names && message.names.length)) - message.names = []; - message.names.push(reader.string()); - break; default: reader.skipType(tag & 7); break; @@ -103272,120 +102273,97 @@ }; /** - * Decodes an ImportTestCasesResponse message from the specified reader or buffer, length delimited. + * Decodes an ExportTestCasesMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse} ImportTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata} ExportTestCasesMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { + ExportTestCasesMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImportTestCasesResponse message. + * Verifies an ExportTestCasesMetadata message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ImportTestCasesResponse.verify = function verify(message) { + ExportTestCasesMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.names != null && message.hasOwnProperty("names")) { - if (!Array.isArray(message.names)) - return "names: array expected"; - for (var i = 0; i < message.names.length; ++i) - if (!$util.isString(message.names[i])) - return "names: string[] expected"; - } return null; }; /** - * Creates an ImportTestCasesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExportTestCasesMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse} ImportTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata} ExportTestCasesMetadata */ - ImportTestCasesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse) + ExportTestCasesMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse(); - if (object.names) { - if (!Array.isArray(object.names)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse.names: array expected"); - message.names = []; - for (var i = 0; i < object.names.length; ++i) - message.names[i] = String(object.names[i]); - } - return message; + return new $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata(); }; /** - * Creates a plain object from an ImportTestCasesResponse message. Also converts values to other types if specified. + * Creates a plain object from an ExportTestCasesMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse} message ImportTestCasesResponse + * @param {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata} message ExportTestCasesMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportTestCasesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.names = []; - if (message.names && message.names.length) { - object.names = []; - for (var j = 0; j < message.names.length; ++j) - object.names[j] = message.names[j]; - } - return object; + ExportTestCasesMetadata.toObject = function toObject() { + return {}; }; /** - * Converts this ImportTestCasesResponse to JSON. + * Converts this ExportTestCasesMetadata to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata * @instance * @returns {Object.} JSON object */ - ImportTestCasesResponse.prototype.toJSON = function toJSON() { + ExportTestCasesMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ImportTestCasesResponse; + return ExportTestCasesMetadata; })(); - v3beta1.ImportTestCasesMetadata = (function() { + v3beta1.ListTestCaseResultsRequest = (function() { /** - * Properties of an ImportTestCasesMetadata. + * Properties of a ListTestCaseResultsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IImportTestCasesMetadata - * @property {Array.|null} [errors] ImportTestCasesMetadata errors + * @interface IListTestCaseResultsRequest + * @property {string|null} [parent] ListTestCaseResultsRequest parent + * @property {number|null} [pageSize] ListTestCaseResultsRequest pageSize + * @property {string|null} [pageToken] ListTestCaseResultsRequest pageToken + * @property {string|null} [filter] ListTestCaseResultsRequest filter */ /** - * Constructs a new ImportTestCasesMetadata. + * Constructs a new ListTestCaseResultsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an ImportTestCasesMetadata. - * @implements IImportTestCasesMetadata + * @classdesc Represents a ListTestCaseResultsRequest. + * @implements IListTestCaseResultsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest=} [properties] Properties to set */ - function ImportTestCasesMetadata(properties) { - this.errors = []; + function ListTestCaseResultsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -103393,78 +102371,114 @@ } /** - * ImportTestCasesMetadata errors. - * @member {Array.} errors - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata + * ListTestCaseResultsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest * @instance */ - ImportTestCasesMetadata.prototype.errors = $util.emptyArray; + ListTestCaseResultsRequest.prototype.parent = ""; /** - * Creates a new ImportTestCasesMetadata instance using the specified properties. + * ListTestCaseResultsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest + * @instance + */ + ListTestCaseResultsRequest.prototype.pageSize = 0; + + /** + * ListTestCaseResultsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest + * @instance + */ + ListTestCaseResultsRequest.prototype.pageToken = ""; + + /** + * ListTestCaseResultsRequest filter. + * @member {string} filter + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest + * @instance + */ + ListTestCaseResultsRequest.prototype.filter = ""; + + /** + * Creates a new ListTestCaseResultsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata} ImportTestCasesMetadata instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest} ListTestCaseResultsRequest instance */ - ImportTestCasesMetadata.create = function create(properties) { - return new ImportTestCasesMetadata(properties); + ListTestCaseResultsRequest.create = function create(properties) { + return new ListTestCaseResultsRequest(properties); }; /** - * Encodes the specified ImportTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata.verify|verify} messages. + * Encodes the specified ListTestCaseResultsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata} message ImportTestCasesMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest} message ListTestCaseResultsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportTestCasesMetadata.encode = function encode(message, writer) { + ListTestCaseResultsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.errors != null && message.errors.length) - for (var i = 0; i < message.errors.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.TestCaseError.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); return writer; }; /** - * Encodes the specified ImportTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata.verify|verify} messages. + * Encodes the specified ListTestCaseResultsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata} message ImportTestCasesMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest} message ListTestCaseResultsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportTestCasesMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ListTestCaseResultsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportTestCasesMetadata message from the specified reader or buffer. + * Decodes a ListTestCaseResultsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata} ImportTestCasesMetadata + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest} ListTestCaseResultsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportTestCasesMetadata.decode = function decode(reader, length) { + ListTestCaseResultsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.errors && message.errors.length)) - message.errors = []; - message.errors.push($root.google.cloud.dialogflow.cx.v3beta1.TestCaseError.decode(reader, reader.uint32())); + message.parent = reader.string(); + break; + case 2: + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); + break; + case 4: + message.filter = reader.string(); break; default: reader.skipType(tag & 7); @@ -103475,125 +102489,134 @@ }; /** - * Decodes an ImportTestCasesMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListTestCaseResultsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata} ImportTestCasesMetadata + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest} ListTestCaseResultsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportTestCasesMetadata.decodeDelimited = function decodeDelimited(reader) { + ListTestCaseResultsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImportTestCasesMetadata message. + * Verifies a ListTestCaseResultsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ImportTestCasesMetadata.verify = function verify(message) { + ListTestCaseResultsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.errors != null && message.hasOwnProperty("errors")) { - if (!Array.isArray(message.errors)) - return "errors: array expected"; - for (var i = 0; i < message.errors.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseError.verify(message.errors[i]); - if (error) - return "errors." + error; - } - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; return null; }; /** - * Creates an ImportTestCasesMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListTestCaseResultsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata} ImportTestCasesMetadata + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest} ListTestCaseResultsRequest */ - ImportTestCasesMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata) + ListTestCaseResultsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata(); - if (object.errors) { - if (!Array.isArray(object.errors)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata.errors: array expected"); - message.errors = []; - for (var i = 0; i < object.errors.length; ++i) { - if (typeof object.errors[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata.errors: object expected"); - message.errors[i] = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseError.fromObject(object.errors[i]); - } - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); return message; }; /** - * Creates a plain object from an ImportTestCasesMetadata message. Also converts values to other types if specified. + * Creates a plain object from a ListTestCaseResultsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata} message ImportTestCasesMetadata + * @param {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest} message ListTestCaseResultsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportTestCasesMetadata.toObject = function toObject(message, options) { + ListTestCaseResultsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.errors = []; - if (message.errors && message.errors.length) { - object.errors = []; - for (var j = 0; j < message.errors.length; ++j) - object.errors[j] = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseError.toObject(message.errors[j], options); + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; return object; }; /** - * Converts this ImportTestCasesMetadata to JSON. + * Converts this ListTestCaseResultsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest * @instance * @returns {Object.} JSON object */ - ImportTestCasesMetadata.prototype.toJSON = function toJSON() { + ListTestCaseResultsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ImportTestCasesMetadata; + return ListTestCaseResultsRequest; })(); - v3beta1.TestCaseError = (function() { + v3beta1.ListTestCaseResultsResponse = (function() { /** - * Properties of a TestCaseError. + * Properties of a ListTestCaseResultsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ITestCaseError - * @property {google.cloud.dialogflow.cx.v3beta1.ITestCase|null} [testCase] TestCaseError testCase - * @property {google.rpc.IStatus|null} [status] TestCaseError status + * @interface IListTestCaseResultsResponse + * @property {Array.|null} [testCaseResults] ListTestCaseResultsResponse testCaseResults + * @property {string|null} [nextPageToken] ListTestCaseResultsResponse nextPageToken */ /** - * Constructs a new TestCaseError. + * Constructs a new ListTestCaseResultsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TestCaseError. - * @implements ITestCaseError + * @classdesc Represents a ListTestCaseResultsResponse. + * @implements IListTestCaseResultsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseError=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse=} [properties] Properties to set */ - function TestCaseError(properties) { + function ListTestCaseResultsResponse(properties) { + this.testCaseResults = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -103601,88 +102624,91 @@ } /** - * TestCaseError testCase. - * @member {google.cloud.dialogflow.cx.v3beta1.ITestCase|null|undefined} testCase - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError + * ListTestCaseResultsResponse testCaseResults. + * @member {Array.} testCaseResults + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse * @instance */ - TestCaseError.prototype.testCase = null; + ListTestCaseResultsResponse.prototype.testCaseResults = $util.emptyArray; /** - * TestCaseError status. - * @member {google.rpc.IStatus|null|undefined} status - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError + * ListTestCaseResultsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse * @instance */ - TestCaseError.prototype.status = null; + ListTestCaseResultsResponse.prototype.nextPageToken = ""; /** - * Creates a new TestCaseError instance using the specified properties. + * Creates a new ListTestCaseResultsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseError=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseError} TestCaseError instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse} ListTestCaseResultsResponse instance */ - TestCaseError.create = function create(properties) { - return new TestCaseError(properties); + ListTestCaseResultsResponse.create = function create(properties) { + return new ListTestCaseResultsResponse(properties); }; /** - * Encodes the specified TestCaseError message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCaseError.verify|verify} messages. + * Encodes the specified ListTestCaseResultsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseError} message TestCaseError message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse} message ListTestCaseResultsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestCaseError.encode = function encode(message, writer) { + ListTestCaseResultsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.testCase != null && Object.hasOwnProperty.call(message, "testCase")) - $root.google.cloud.dialogflow.cx.v3beta1.TestCase.encode(message.testCase, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.testCaseResults != null && message.testCaseResults.length) + for (var i = 0; i < message.testCaseResults.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.encode(message.testCaseResults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified TestCaseError message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCaseError.verify|verify} messages. + * Encodes the specified ListTestCaseResultsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseError} message TestCaseError message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse} message ListTestCaseResultsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestCaseError.encodeDelimited = function encodeDelimited(message, writer) { + ListTestCaseResultsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestCaseError message from the specified reader or buffer. + * Decodes a ListTestCaseResultsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseError} TestCaseError + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse} ListTestCaseResultsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestCaseError.decode = function decode(reader, length) { + ListTestCaseResultsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TestCaseError(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.decode(reader, reader.uint32()); + if (!(message.testCaseResults && message.testCaseResults.length)) + message.testCaseResults = []; + message.testCaseResults.push($root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.decode(reader, reader.uint32())); break; case 2: - message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -103693,129 +102719,133 @@ }; /** - * Decodes a TestCaseError message from the specified reader or buffer, length delimited. + * Decodes a ListTestCaseResultsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseError} TestCaseError + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse} ListTestCaseResultsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestCaseError.decodeDelimited = function decodeDelimited(reader) { + ListTestCaseResultsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestCaseError message. + * Verifies a ListTestCaseResultsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestCaseError.verify = function verify(message) { + ListTestCaseResultsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.testCase != null && message.hasOwnProperty("testCase")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.verify(message.testCase); - if (error) - return "testCase." + error; - } - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.google.rpc.Status.verify(message.status); - if (error) - return "status." + error; + if (message.testCaseResults != null && message.hasOwnProperty("testCaseResults")) { + if (!Array.isArray(message.testCaseResults)) + return "testCaseResults: array expected"; + for (var i = 0; i < message.testCaseResults.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.verify(message.testCaseResults[i]); + if (error) + return "testCaseResults." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a TestCaseError message from a plain object. Also converts values to their respective internal types. + * Creates a ListTestCaseResultsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseError} TestCaseError + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse} ListTestCaseResultsResponse */ - TestCaseError.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TestCaseError) + ListTestCaseResultsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TestCaseError(); - if (object.testCase != null) { - if (typeof object.testCase !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCaseError.testCase: object expected"); - message.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.fromObject(object.testCase); - } - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TestCaseError.status: object expected"); - message.status = $root.google.rpc.Status.fromObject(object.status); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse(); + if (object.testCaseResults) { + if (!Array.isArray(object.testCaseResults)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse.testCaseResults: array expected"); + message.testCaseResults = []; + for (var i = 0; i < object.testCaseResults.length; ++i) { + if (typeof object.testCaseResults[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse.testCaseResults: object expected"); + message.testCaseResults[i] = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.fromObject(object.testCaseResults[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a TestCaseError message. Also converts values to other types if specified. + * Creates a plain object from a ListTestCaseResultsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TestCaseError} message TestCaseError + * @param {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse} message ListTestCaseResultsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestCaseError.toObject = function toObject(message, options) { + ListTestCaseResultsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.testCase = null; - object.status = null; + if (options.arrays || options.defaults) + object.testCaseResults = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.testCaseResults && message.testCaseResults.length) { + object.testCaseResults = []; + for (var j = 0; j < message.testCaseResults.length; ++j) + object.testCaseResults[j] = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.toObject(message.testCaseResults[j], options); } - if (message.testCase != null && message.hasOwnProperty("testCase")) - object.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.toObject(message.testCase, options); - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.google.rpc.Status.toObject(message.status, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this TestCaseError to JSON. + * Converts this ListTestCaseResultsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse * @instance * @returns {Object.} JSON object */ - TestCaseError.prototype.toJSON = function toJSON() { + ListTestCaseResultsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TestCaseError; + return ListTestCaseResultsResponse; })(); - v3beta1.ExportTestCasesRequest = (function() { + v3beta1.GetTestCaseResultRequest = (function() { /** - * Properties of an ExportTestCasesRequest. + * Properties of a GetTestCaseResultRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IExportTestCasesRequest - * @property {string|null} [parent] ExportTestCasesRequest parent - * @property {string|null} [gcsUri] ExportTestCasesRequest gcsUri - * @property {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat|null} [dataFormat] ExportTestCasesRequest dataFormat - * @property {string|null} [filter] ExportTestCasesRequest filter + * @interface IGetTestCaseResultRequest + * @property {string|null} [name] GetTestCaseResultRequest name */ /** - * Constructs a new ExportTestCasesRequest. + * Constructs a new GetTestCaseResultRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an ExportTestCasesRequest. - * @implements IExportTestCasesRequest + * @classdesc Represents a GetTestCaseResultRequest. + * @implements IGetTestCaseResultRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest=} [properties] Properties to set */ - function ExportTestCasesRequest(properties) { + function GetTestCaseResultRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -103823,128 +102853,75 @@ } /** - * ExportTestCasesRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest - * @instance - */ - ExportTestCasesRequest.prototype.parent = ""; - - /** - * ExportTestCasesRequest gcsUri. - * @member {string|null|undefined} gcsUri - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest - * @instance - */ - ExportTestCasesRequest.prototype.gcsUri = null; - - /** - * ExportTestCasesRequest dataFormat. - * @member {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat} dataFormat - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest - * @instance - */ - ExportTestCasesRequest.prototype.dataFormat = 0; - - /** - * ExportTestCasesRequest filter. - * @member {string} filter - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest - * @instance - */ - ExportTestCasesRequest.prototype.filter = ""; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * ExportTestCasesRequest destination. - * @member {"gcsUri"|undefined} destination - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest - * @instance - */ - Object.defineProperty(ExportTestCasesRequest.prototype, "destination", { - get: $util.oneOfGetter($oneOfFields = ["gcsUri"]), - set: $util.oneOfSetter($oneOfFields) - }); + * GetTestCaseResultRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest + * @instance + */ + GetTestCaseResultRequest.prototype.name = ""; /** - * Creates a new ExportTestCasesRequest instance using the specified properties. + * Creates a new GetTestCaseResultRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest} ExportTestCasesRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest} GetTestCaseResultRequest instance */ - ExportTestCasesRequest.create = function create(properties) { - return new ExportTestCasesRequest(properties); + GetTestCaseResultRequest.create = function create(properties) { + return new GetTestCaseResultRequest(properties); }; /** - * Encodes the specified ExportTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.verify|verify} messages. + * Encodes the specified GetTestCaseResultRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest} message ExportTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest} message GetTestCaseResultRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportTestCasesRequest.encode = function encode(message, writer) { + GetTestCaseResultRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.gcsUri != null && Object.hasOwnProperty.call(message, "gcsUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.gcsUri); - if (message.dataFormat != null && Object.hasOwnProperty.call(message, "dataFormat")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.dataFormat); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ExportTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.verify|verify} messages. + * Encodes the specified GetTestCaseResultRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest} message ExportTestCasesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest} message GetTestCaseResultRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetTestCaseResultRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportTestCasesRequest message from the specified reader or buffer. + * Decodes a GetTestCaseResultRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest} ExportTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest} GetTestCaseResultRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportTestCasesRequest.decode = function decode(reader, length) { + GetTestCaseResultRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - message.gcsUri = reader.string(); - break; - case 3: - message.dataFormat = reader.int32(); - break; - case 4: - message.filter = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -103955,172 +102932,333 @@ }; /** - * Decodes an ExportTestCasesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetTestCaseResultRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest} ExportTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest} GetTestCaseResultRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { + GetTestCaseResultRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportTestCasesRequest message. + * Verifies a GetTestCaseResultRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportTestCasesRequest.verify = function verify(message) { + GetTestCaseResultRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { - properties.destination = 1; - if (!$util.isString(message.gcsUri)) - return "gcsUri: string expected"; - } - if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) - switch (message.dataFormat) { - default: - return "dataFormat: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an ExportTestCasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetTestCaseResultRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest} ExportTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest} GetTestCaseResultRequest */ - ExportTestCasesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest) + GetTestCaseResultRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.gcsUri != null) - message.gcsUri = String(object.gcsUri); - switch (object.dataFormat) { - case "DATA_FORMAT_UNSPECIFIED": - case 0: - message.dataFormat = 0; - break; - case "BLOB": - case 1: - message.dataFormat = 1; - break; - case "JSON": - case 2: - message.dataFormat = 2; - break; - } - if (object.filter != null) - message.filter = String(object.filter); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an ExportTestCasesRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetTestCaseResultRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest} message ExportTestCasesRequest + * @param {google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest} message GetTestCaseResultRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportTestCasesRequest.toObject = function toObject(message, options) { + GetTestCaseResultRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.dataFormat = options.enums === String ? "DATA_FORMAT_UNSPECIFIED" : 0; - object.filter = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { - object.gcsUri = message.gcsUri; - if (options.oneofs) - object.destination = "gcsUri"; - } - if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) - object.dataFormat = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat[message.dataFormat] : message.dataFormat; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ExportTestCasesRequest to JSON. + * Converts this GetTestCaseResultRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest * @instance * @returns {Object.} JSON object */ - ExportTestCasesRequest.prototype.toJSON = function toJSON() { + GetTestCaseResultRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + return GetTestCaseResultRequest; + })(); + + /** + * TestResult enum. + * @name google.cloud.dialogflow.cx.v3beta1.TestResult + * @enum {number} + * @property {number} TEST_RESULT_UNSPECIFIED=0 TEST_RESULT_UNSPECIFIED value + * @property {number} PASSED=1 PASSED value + * @property {number} FAILED=2 FAILED value + */ + v3beta1.TestResult = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TEST_RESULT_UNSPECIFIED"] = 0; + values[valuesById[1] = "PASSED"] = 1; + values[valuesById[2] = "FAILED"] = 2; + return values; + })(); + + v3beta1.Intents = (function() { + /** - * DataFormat enum. - * @name google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat - * @enum {number} - * @property {number} DATA_FORMAT_UNSPECIFIED=0 DATA_FORMAT_UNSPECIFIED value - * @property {number} BLOB=1 BLOB value - * @property {number} JSON=2 JSON value + * Constructs a new Intents service. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents an Intents + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - ExportTestCasesRequest.DataFormat = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DATA_FORMAT_UNSPECIFIED"] = 0; - values[valuesById[1] = "BLOB"] = 1; - values[valuesById[2] = "JSON"] = 2; - return values; - })(); + function Intents(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } - return ExportTestCasesRequest; + (Intents.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Intents; + + /** + * Creates new Intents service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {Intents} RPC service. Useful where requests and/or responses are streamed. + */ + Intents.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#listIntents}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * @typedef ListIntentsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} [response] ListIntentsResponse + */ + + /** + * Calls ListIntents. + * @function listIntents + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest} request ListIntentsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Intents.ListIntentsCallback} callback Node-style callback called with the error, if any, and ListIntentsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Intents.prototype.listIntents = function listIntents(request, callback) { + return this.rpcCall(listIntents, $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse, request, callback); + }, "name", { value: "ListIntents" }); + + /** + * Calls ListIntents. + * @function listIntents + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest} request ListIntentsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#getIntent}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * @typedef GetIntentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Intent} [response] Intent + */ + + /** + * Calls GetIntent. + * @function getIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest} request GetIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Intents.GetIntentCallback} callback Node-style callback called with the error, if any, and Intent + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Intents.prototype.getIntent = function getIntent(request, callback) { + return this.rpcCall(getIntent, $root.google.cloud.dialogflow.cx.v3beta1.GetIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Intent, request, callback); + }, "name", { value: "GetIntent" }); + + /** + * Calls GetIntent. + * @function getIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest} request GetIntentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#createIntent}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * @typedef CreateIntentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Intent} [response] Intent + */ + + /** + * Calls CreateIntent. + * @function createIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest} request CreateIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Intents.CreateIntentCallback} callback Node-style callback called with the error, if any, and Intent + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Intents.prototype.createIntent = function createIntent(request, callback) { + return this.rpcCall(createIntent, $root.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Intent, request, callback); + }, "name", { value: "CreateIntent" }); + + /** + * Calls CreateIntent. + * @function createIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest} request CreateIntentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#updateIntent}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * @typedef UpdateIntentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Intent} [response] Intent + */ + + /** + * Calls UpdateIntent. + * @function updateIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest} request UpdateIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Intents.UpdateIntentCallback} callback Node-style callback called with the error, if any, and Intent + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Intents.prototype.updateIntent = function updateIntent(request, callback) { + return this.rpcCall(updateIntent, $root.google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Intent, request, callback); + }, "name", { value: "UpdateIntent" }); + + /** + * Calls UpdateIntent. + * @function updateIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest} request UpdateIntentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#deleteIntent}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * @typedef DeleteIntentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteIntent. + * @function deleteIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest} request DeleteIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Intents.DeleteIntentCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Intents.prototype.deleteIntent = function deleteIntent(request, callback) { + return this.rpcCall(deleteIntent, $root.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteIntent" }); + + /** + * Calls DeleteIntent. + * @function deleteIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest} request DeleteIntentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Intents; })(); - v3beta1.ExportTestCasesResponse = (function() { + v3beta1.Intent = (function() { /** - * Properties of an ExportTestCasesResponse. + * Properties of an Intent. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IExportTestCasesResponse - * @property {string|null} [gcsUri] ExportTestCasesResponse gcsUri - * @property {Uint8Array|null} [content] ExportTestCasesResponse content + * @interface IIntent + * @property {string|null} [name] Intent name + * @property {string|null} [displayName] Intent displayName + * @property {Array.|null} [trainingPhrases] Intent trainingPhrases + * @property {Array.|null} [parameters] Intent parameters + * @property {number|null} [priority] Intent priority + * @property {boolean|null} [isFallback] Intent isFallback + * @property {Object.|null} [labels] Intent labels + * @property {string|null} [description] Intent description */ /** - * Constructs a new ExportTestCasesResponse. + * Constructs a new Intent. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an ExportTestCasesResponse. - * @implements IExportTestCasesResponse + * @classdesc Represents an Intent. + * @implements IIntent * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IIntent=} [properties] Properties to set */ - function ExportTestCasesResponse(properties) { + function Intent(properties) { + this.trainingPhrases = []; + this.parameters = []; + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -104128,102 +103266,192 @@ } /** - * ExportTestCasesResponse gcsUri. - * @member {string|null|undefined} gcsUri - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse + * Intent name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent * @instance */ - ExportTestCasesResponse.prototype.gcsUri = null; + Intent.prototype.name = ""; /** - * ExportTestCasesResponse content. - * @member {Uint8Array|null|undefined} content - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse + * Intent displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent * @instance */ - ExportTestCasesResponse.prototype.content = null; + Intent.prototype.displayName = ""; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Intent trainingPhrases. + * @member {Array.} trainingPhrases + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @instance + */ + Intent.prototype.trainingPhrases = $util.emptyArray; /** - * ExportTestCasesResponse destination. - * @member {"gcsUri"|"content"|undefined} destination - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse + * Intent parameters. + * @member {Array.} parameters + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent * @instance */ - Object.defineProperty(ExportTestCasesResponse.prototype, "destination", { - get: $util.oneOfGetter($oneOfFields = ["gcsUri", "content"]), - set: $util.oneOfSetter($oneOfFields) - }); + Intent.prototype.parameters = $util.emptyArray; /** - * Creates a new ExportTestCasesResponse instance using the specified properties. + * Intent priority. + * @member {number} priority + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @instance + */ + Intent.prototype.priority = 0; + + /** + * Intent isFallback. + * @member {boolean} isFallback + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @instance + */ + Intent.prototype.isFallback = false; + + /** + * Intent labels. + * @member {Object.} labels + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @instance + */ + Intent.prototype.labels = $util.emptyObject; + + /** + * Intent description. + * @member {string} description + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @instance + */ + Intent.prototype.description = ""; + + /** + * Creates a new Intent instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse} ExportTestCasesResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IIntent=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Intent} Intent instance */ - ExportTestCasesResponse.create = function create(properties) { - return new ExportTestCasesResponse(properties); + Intent.create = function create(properties) { + return new Intent(properties); }; /** - * Encodes the specified ExportTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse.verify|verify} messages. + * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse} message ExportTestCasesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IIntent} message Intent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportTestCasesResponse.encode = function encode(message, writer) { + Intent.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.gcsUri != null && Object.hasOwnProperty.call(message, "gcsUri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.gcsUri); - if (message.content != null && Object.hasOwnProperty.call(message, "content")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.content); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.trainingPhrases != null && message.trainingPhrases.length) + for (var i = 0; i < message.trainingPhrases.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.encode(message.trainingPhrases[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.parameters != null && message.parameters.length) + for (var i = 0; i < message.parameters.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.encode(message.parameters[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.priority != null && Object.hasOwnProperty.call(message, "priority")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.priority); + if (message.isFallback != null && Object.hasOwnProperty.call(message, "isFallback")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isFallback); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.description); return writer; }; /** - * Encodes the specified ExportTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse.verify|verify} messages. + * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse} message ExportTestCasesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IIntent} message Intent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { + Intent.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportTestCasesResponse message from the specified reader or buffer. + * Decodes an Intent message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse} ExportTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.Intent} Intent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportTestCasesResponse.decode = function decode(reader, length) { + Intent.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.gcsUri = reader.string(); + message.name = reader.string(); break; case 2: - message.content = reader.bytes(); + message.displayName = reader.string(); + break; + case 3: + if (!(message.trainingPhrases && message.trainingPhrases.length)) + message.trainingPhrases = []; + message.trainingPhrases.push($root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.decode(reader, reader.uint32())); + break; + case 4: + if (!(message.parameters && message.parameters.length)) + message.parameters = []; + message.parameters.push($root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.decode(reader, reader.uint32())); + break; + case 5: + message.priority = reader.int32(); + break; + case 6: + message.isFallback = reader.bool(); + break; + case 7: + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + case 8: + message.description = reader.string(); break; default: reader.skipType(tag & 7); @@ -104234,773 +103462,937 @@ }; /** - * Decodes an ExportTestCasesResponse message from the specified reader or buffer, length delimited. + * Decodes an Intent message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse} ExportTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.Intent} Intent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { + Intent.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportTestCasesResponse message. + * Verifies an Intent message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportTestCasesResponse.verify = function verify(message) { + Intent.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { - properties.destination = 1; - if (!$util.isString(message.gcsUri)) - return "gcsUri: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.trainingPhrases != null && message.hasOwnProperty("trainingPhrases")) { + if (!Array.isArray(message.trainingPhrases)) + return "trainingPhrases: array expected"; + for (var i = 0; i < message.trainingPhrases.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.verify(message.trainingPhrases[i]); + if (error) + return "trainingPhrases." + error; + } } - if (message.content != null && message.hasOwnProperty("content")) { - if (properties.destination === 1) - return "destination: multiple values"; - properties.destination = 1; - if (!(message.content && typeof message.content.length === "number" || $util.isString(message.content))) - return "content: buffer expected"; + if (message.parameters != null && message.hasOwnProperty("parameters")) { + if (!Array.isArray(message.parameters)) + return "parameters: array expected"; + for (var i = 0; i < message.parameters.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.verify(message.parameters[i]); + if (error) + return "parameters." + error; + } + } + if (message.priority != null && message.hasOwnProperty("priority")) + if (!$util.isInteger(message.priority)) + return "priority: integer expected"; + if (message.isFallback != null && message.hasOwnProperty("isFallback")) + if (typeof message.isFallback !== "boolean") + return "isFallback: boolean expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; return null; }; /** - * Creates an ExportTestCasesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an Intent message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse} ExportTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.Intent} Intent */ - ExportTestCasesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse) + Intent.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Intent) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse(); - if (object.gcsUri != null) - message.gcsUri = String(object.gcsUri); - if (object.content != null) - if (typeof object.content === "string") - $util.base64.decode(object.content, message.content = $util.newBuffer($util.base64.length(object.content)), 0); - else if (object.content.length) - message.content = object.content; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.trainingPhrases) { + if (!Array.isArray(object.trainingPhrases)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.trainingPhrases: array expected"); + message.trainingPhrases = []; + for (var i = 0; i < object.trainingPhrases.length; ++i) { + if (typeof object.trainingPhrases[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.trainingPhrases: object expected"); + message.trainingPhrases[i] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.fromObject(object.trainingPhrases[i]); + } + } + if (object.parameters) { + if (!Array.isArray(object.parameters)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.parameters: array expected"); + message.parameters = []; + for (var i = 0; i < object.parameters.length; ++i) { + if (typeof object.parameters[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.parameters: object expected"); + message.parameters[i] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.fromObject(object.parameters[i]); + } + } + if (object.priority != null) + message.priority = object.priority | 0; + if (object.isFallback != null) + message.isFallback = Boolean(object.isFallback); + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.description != null) + message.description = String(object.description); return message; }; /** - * Creates a plain object from an ExportTestCasesResponse message. Also converts values to other types if specified. + * Creates a plain object from an Intent message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse} message ExportTestCasesResponse + * @param {google.cloud.dialogflow.cx.v3beta1.Intent} message Intent * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportTestCasesResponse.toObject = function toObject(message, options) { + Intent.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.gcsUri != null && message.hasOwnProperty("gcsUri")) { - object.gcsUri = message.gcsUri; - if (options.oneofs) - object.destination = "gcsUri"; + if (options.arrays || options.defaults) { + object.trainingPhrases = []; + object.parameters = []; } - if (message.content != null && message.hasOwnProperty("content")) { - object.content = options.bytes === String ? $util.base64.encode(message.content, 0, message.content.length) : options.bytes === Array ? Array.prototype.slice.call(message.content) : message.content; - if (options.oneofs) - object.destination = "content"; + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.priority = 0; + object.isFallback = false; + object.description = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.trainingPhrases && message.trainingPhrases.length) { + object.trainingPhrases = []; + for (var j = 0; j < message.trainingPhrases.length; ++j) + object.trainingPhrases[j] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.toObject(message.trainingPhrases[j], options); + } + if (message.parameters && message.parameters.length) { + object.parameters = []; + for (var j = 0; j < message.parameters.length; ++j) + object.parameters[j] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.toObject(message.parameters[j], options); + } + if (message.priority != null && message.hasOwnProperty("priority")) + object.priority = message.priority; + if (message.isFallback != null && message.hasOwnProperty("isFallback")) + object.isFallback = message.isFallback; + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; } + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; return object; }; /** - * Converts this ExportTestCasesResponse to JSON. + * Converts this Intent to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent * @instance * @returns {Object.} JSON object */ - ExportTestCasesResponse.prototype.toJSON = function toJSON() { + Intent.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExportTestCasesResponse; - })(); - - v3beta1.ExportTestCasesMetadata = (function() { + Intent.TrainingPhrase = (function() { - /** - * Properties of an ExportTestCasesMetadata. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IExportTestCasesMetadata - */ + /** + * Properties of a TrainingPhrase. + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @interface ITrainingPhrase + * @property {string|null} [id] TrainingPhrase id + * @property {Array.|null} [parts] TrainingPhrase parts + * @property {number|null} [repeatCount] TrainingPhrase repeatCount + */ - /** - * Constructs a new ExportTestCasesMetadata. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an ExportTestCasesMetadata. - * @implements IExportTestCasesMetadata - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata=} [properties] Properties to set - */ - function ExportTestCasesMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new TrainingPhrase. + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @classdesc Represents a TrainingPhrase. + * @implements ITrainingPhrase + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase=} [properties] Properties to set + */ + function TrainingPhrase(properties) { + this.parts = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a new ExportTestCasesMetadata instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata} ExportTestCasesMetadata instance - */ - ExportTestCasesMetadata.create = function create(properties) { - return new ExportTestCasesMetadata(properties); - }; + /** + * TrainingPhrase id. + * @member {string} id + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase + * @instance + */ + TrainingPhrase.prototype.id = ""; - /** - * Encodes the specified ExportTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata} message ExportTestCasesMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExportTestCasesMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + /** + * TrainingPhrase parts. + * @member {Array.} parts + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase + * @instance + */ + TrainingPhrase.prototype.parts = $util.emptyArray; - /** - * Encodes the specified ExportTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata} message ExportTestCasesMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExportTestCasesMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * TrainingPhrase repeatCount. + * @member {number} repeatCount + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase + * @instance + */ + TrainingPhrase.prototype.repeatCount = 0; - /** - * Decodes an ExportTestCasesMetadata message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata} ExportTestCasesMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExportTestCasesMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a new TrainingPhrase instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase} TrainingPhrase instance + */ + TrainingPhrase.create = function create(properties) { + return new TrainingPhrase(properties); + }; - /** - * Decodes an ExportTestCasesMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata} ExportTestCasesMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExportTestCasesMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified TrainingPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase} message TrainingPhrase message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrainingPhrase.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.parts != null && message.parts.length) + for (var i = 0; i < message.parts.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.encode(message.parts[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.repeatCount != null && Object.hasOwnProperty.call(message, "repeatCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.repeatCount); + return writer; + }; - /** - * Verifies an ExportTestCasesMetadata message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExportTestCasesMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * Encodes the specified TrainingPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase} message TrainingPhrase message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrainingPhrase.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates an ExportTestCasesMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata} ExportTestCasesMetadata - */ - ExportTestCasesMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata) - return object; - return new $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata(); - }; + /** + * Decodes a TrainingPhrase message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase} TrainingPhrase + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrainingPhrase.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + if (!(message.parts && message.parts.length)) + message.parts = []; + message.parts.push($root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.decode(reader, reader.uint32())); + break; + case 3: + message.repeatCount = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a plain object from an ExportTestCasesMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata} message ExportTestCasesMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ExportTestCasesMetadata.toObject = function toObject() { - return {}; - }; + /** + * Decodes a TrainingPhrase message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase} TrainingPhrase + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrainingPhrase.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Converts this ExportTestCasesMetadata to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata - * @instance - * @returns {Object.} JSON object - */ - ExportTestCasesMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Verifies a TrainingPhrase message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TrainingPhrase.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.parts != null && message.hasOwnProperty("parts")) { + if (!Array.isArray(message.parts)) + return "parts: array expected"; + for (var i = 0; i < message.parts.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.verify(message.parts[i]); + if (error) + return "parts." + error; + } + } + if (message.repeatCount != null && message.hasOwnProperty("repeatCount")) + if (!$util.isInteger(message.repeatCount)) + return "repeatCount: integer expected"; + return null; + }; - return ExportTestCasesMetadata; - })(); + /** + * Creates a TrainingPhrase message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase} TrainingPhrase + */ + TrainingPhrase.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase(); + if (object.id != null) + message.id = String(object.id); + if (object.parts) { + if (!Array.isArray(object.parts)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.parts: array expected"); + message.parts = []; + for (var i = 0; i < object.parts.length; ++i) { + if (typeof object.parts[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.parts: object expected"); + message.parts[i] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.fromObject(object.parts[i]); + } + } + if (object.repeatCount != null) + message.repeatCount = object.repeatCount | 0; + return message; + }; - v3beta1.ListTestCaseResultsRequest = (function() { + /** + * Creates a plain object from a TrainingPhrase message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase} message TrainingPhrase + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TrainingPhrase.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.parts = []; + if (options.defaults) { + object.id = ""; + object.repeatCount = 0; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.parts && message.parts.length) { + object.parts = []; + for (var j = 0; j < message.parts.length; ++j) + object.parts[j] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.toObject(message.parts[j], options); + } + if (message.repeatCount != null && message.hasOwnProperty("repeatCount")) + object.repeatCount = message.repeatCount; + return object; + }; - /** - * Properties of a ListTestCaseResultsRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListTestCaseResultsRequest - * @property {string|null} [parent] ListTestCaseResultsRequest parent - * @property {number|null} [pageSize] ListTestCaseResultsRequest pageSize - * @property {string|null} [pageToken] ListTestCaseResultsRequest pageToken - * @property {string|null} [filter] ListTestCaseResultsRequest filter - */ + /** + * Converts this TrainingPhrase to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase + * @instance + * @returns {Object.} JSON object + */ + TrainingPhrase.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new ListTestCaseResultsRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListTestCaseResultsRequest. - * @implements IListTestCaseResultsRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest=} [properties] Properties to set - */ - function ListTestCaseResultsRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + TrainingPhrase.Part = (function() { - /** - * ListTestCaseResultsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest - * @instance - */ - ListTestCaseResultsRequest.prototype.parent = ""; + /** + * Properties of a Part. + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase + * @interface IPart + * @property {string|null} [text] Part text + * @property {string|null} [parameterId] Part parameterId + */ - /** - * ListTestCaseResultsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest - * @instance - */ - ListTestCaseResultsRequest.prototype.pageSize = 0; + /** + * Constructs a new Part. + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase + * @classdesc Represents a Part. + * @implements IPart + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart=} [properties] Properties to set + */ + function Part(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * ListTestCaseResultsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest - * @instance - */ - ListTestCaseResultsRequest.prototype.pageToken = ""; + /** + * Part text. + * @member {string} text + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part + * @instance + */ + Part.prototype.text = ""; - /** - * ListTestCaseResultsRequest filter. - * @member {string} filter - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest - * @instance - */ - ListTestCaseResultsRequest.prototype.filter = ""; + /** + * Part parameterId. + * @member {string} parameterId + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part + * @instance + */ + Part.prototype.parameterId = ""; - /** - * Creates a new ListTestCaseResultsRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest} ListTestCaseResultsRequest instance - */ - ListTestCaseResultsRequest.create = function create(properties) { - return new ListTestCaseResultsRequest(properties); - }; + /** + * Creates a new Part instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part} Part instance + */ + Part.create = function create(properties) { + return new Part(properties); + }; - /** - * Encodes the specified ListTestCaseResultsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest} message ListTestCaseResultsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListTestCaseResultsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); - return writer; - }; + /** + * Encodes the specified Part message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart} message Part message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Part.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); + if (message.parameterId != null && Object.hasOwnProperty.call(message, "parameterId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parameterId); + return writer; + }; - /** - * Encodes the specified ListTestCaseResultsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest} message ListTestCaseResultsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListTestCaseResultsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Part message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart} message Part message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Part.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a ListTestCaseResultsRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest} ListTestCaseResultsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListTestCaseResultsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); - break; - case 4: - message.filter = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Decodes a Part message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part} Part + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Part.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.text = reader.string(); + break; + case 2: + message.parameterId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Decodes a ListTestCaseResultsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest} ListTestCaseResultsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListTestCaseResultsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a Part message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part} Part + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Part.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a ListTestCaseResultsRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListTestCaseResultsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - return null; - }; + /** + * Verifies a Part message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Part.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.text != null && message.hasOwnProperty("text")) + if (!$util.isString(message.text)) + return "text: string expected"; + if (message.parameterId != null && message.hasOwnProperty("parameterId")) + if (!$util.isString(message.parameterId)) + return "parameterId: string expected"; + return null; + }; - /** - * Creates a ListTestCaseResultsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest} ListTestCaseResultsRequest - */ - ListTestCaseResultsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.filter != null) - message.filter = String(object.filter); - return message; - }; + /** + * Creates a Part message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part} Part + */ + Part.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part(); + if (object.text != null) + message.text = String(object.text); + if (object.parameterId != null) + message.parameterId = String(object.parameterId); + return message; + }; + + /** + * Creates a plain object from a Part message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part} message Part + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Part.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.text = ""; + object.parameterId = ""; + } + if (message.text != null && message.hasOwnProperty("text")) + object.text = message.text; + if (message.parameterId != null && message.hasOwnProperty("parameterId")) + object.parameterId = message.parameterId; + return object; + }; - /** - * Creates a plain object from a ListTestCaseResultsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest} message ListTestCaseResultsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListTestCaseResultsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - return object; - }; + /** + * Converts this Part to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part + * @instance + * @returns {Object.} JSON object + */ + Part.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this ListTestCaseResultsRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest - * @instance - * @returns {Object.} JSON object - */ - ListTestCaseResultsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return Part; + })(); - return ListTestCaseResultsRequest; - })(); + return TrainingPhrase; + })(); - v3beta1.ListTestCaseResultsResponse = (function() { + Intent.Parameter = (function() { - /** - * Properties of a ListTestCaseResultsResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListTestCaseResultsResponse - * @property {Array.|null} [testCaseResults] ListTestCaseResultsResponse testCaseResults - * @property {string|null} [nextPageToken] ListTestCaseResultsResponse nextPageToken - */ + /** + * Properties of a Parameter. + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @interface IParameter + * @property {string|null} [id] Parameter id + * @property {string|null} [entityType] Parameter entityType + * @property {boolean|null} [isList] Parameter isList + * @property {boolean|null} [redact] Parameter redact + */ - /** - * Constructs a new ListTestCaseResultsResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListTestCaseResultsResponse. - * @implements IListTestCaseResultsResponse - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse=} [properties] Properties to set - */ - function ListTestCaseResultsResponse(properties) { - this.testCaseResults = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new Parameter. + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @classdesc Represents a Parameter. + * @implements IParameter + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Intent.IParameter=} [properties] Properties to set + */ + function Parameter(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * ListTestCaseResultsResponse testCaseResults. - * @member {Array.} testCaseResults - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse - * @instance - */ - ListTestCaseResultsResponse.prototype.testCaseResults = $util.emptyArray; + /** + * Parameter id. + * @member {string} id + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @instance + */ + Parameter.prototype.id = ""; - /** - * ListTestCaseResultsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse - * @instance - */ - ListTestCaseResultsResponse.prototype.nextPageToken = ""; + /** + * Parameter entityType. + * @member {string} entityType + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @instance + */ + Parameter.prototype.entityType = ""; - /** - * Creates a new ListTestCaseResultsResponse instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse} ListTestCaseResultsResponse instance - */ - ListTestCaseResultsResponse.create = function create(properties) { - return new ListTestCaseResultsResponse(properties); - }; + /** + * Parameter isList. + * @member {boolean} isList + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @instance + */ + Parameter.prototype.isList = false; - /** - * Encodes the specified ListTestCaseResultsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse} message ListTestCaseResultsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListTestCaseResultsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.testCaseResults != null && message.testCaseResults.length) - for (var i = 0; i < message.testCaseResults.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.encode(message.testCaseResults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - return writer; - }; + /** + * Parameter redact. + * @member {boolean} redact + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @instance + */ + Parameter.prototype.redact = false; - /** - * Encodes the specified ListTestCaseResultsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse} message ListTestCaseResultsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListTestCaseResultsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new Parameter instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Intent.IParameter=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.Parameter} Parameter instance + */ + Parameter.create = function create(properties) { + return new Parameter(properties); + }; - /** - * Decodes a ListTestCaseResultsResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse} ListTestCaseResultsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListTestCaseResultsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.testCaseResults && message.testCaseResults.length)) - message.testCaseResults = []; - message.testCaseResults.push($root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Intent.IParameter} message Parameter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Parameter.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityType); + if (message.isList != null && Object.hasOwnProperty.call(message, "isList")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isList); + if (message.redact != null && Object.hasOwnProperty.call(message, "redact")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.redact); + return writer; + }; - /** - * Decodes a ListTestCaseResultsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse} ListTestCaseResultsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListTestCaseResultsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Intent.IParameter} message Parameter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Parameter.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies a ListTestCaseResultsResponse message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListTestCaseResultsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.testCaseResults != null && message.hasOwnProperty("testCaseResults")) { - if (!Array.isArray(message.testCaseResults)) - return "testCaseResults: array expected"; - for (var i = 0; i < message.testCaseResults.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.verify(message.testCaseResults[i]); - if (error) - return "testCaseResults." + error; + /** + * Decodes a Parameter message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.Parameter} Parameter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Parameter.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.entityType = reader.string(); + break; + case 3: + message.isList = reader.bool(); + break; + case 4: + message.redact = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; + return message; + }; - /** - * Creates a ListTestCaseResultsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse} ListTestCaseResultsResponse - */ - ListTestCaseResultsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse(); - if (object.testCaseResults) { - if (!Array.isArray(object.testCaseResults)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse.testCaseResults: array expected"); - message.testCaseResults = []; - for (var i = 0; i < object.testCaseResults.length; ++i) { - if (typeof object.testCaseResults[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse.testCaseResults: object expected"); - message.testCaseResults[i] = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.fromObject(object.testCaseResults[i]); + /** + * Decodes a Parameter message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.Parameter} Parameter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Parameter.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Parameter message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Parameter.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.entityType != null && message.hasOwnProperty("entityType")) + if (!$util.isString(message.entityType)) + return "entityType: string expected"; + if (message.isList != null && message.hasOwnProperty("isList")) + if (typeof message.isList !== "boolean") + return "isList: boolean expected"; + if (message.redact != null && message.hasOwnProperty("redact")) + if (typeof message.redact !== "boolean") + return "redact: boolean expected"; + return null; + }; + + /** + * Creates a Parameter message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.Parameter} Parameter + */ + Parameter.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter(); + if (object.id != null) + message.id = String(object.id); + if (object.entityType != null) + message.entityType = String(object.entityType); + if (object.isList != null) + message.isList = Boolean(object.isList); + if (object.redact != null) + message.redact = Boolean(object.redact); + return message; + }; + + /** + * Creates a plain object from a Parameter message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Intent.Parameter} message Parameter + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Parameter.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.id = ""; + object.entityType = ""; + object.isList = false; + object.redact = false; } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.entityType != null && message.hasOwnProperty("entityType")) + object.entityType = message.entityType; + if (message.isList != null && message.hasOwnProperty("isList")) + object.isList = message.isList; + if (message.redact != null && message.hasOwnProperty("redact")) + object.redact = message.redact; + return object; + }; - /** - * Creates a plain object from a ListTestCaseResultsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse} message ListTestCaseResultsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListTestCaseResultsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.testCaseResults = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.testCaseResults && message.testCaseResults.length) { - object.testCaseResults = []; - for (var j = 0; j < message.testCaseResults.length; ++j) - object.testCaseResults[j] = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.toObject(message.testCaseResults[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; + /** + * Converts this Parameter to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @instance + * @returns {Object.} JSON object + */ + Parameter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this ListTestCaseResultsResponse to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse - * @instance - * @returns {Object.} JSON object - */ - ListTestCaseResultsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return Parameter; + })(); - return ListTestCaseResultsResponse; + return Intent; })(); - v3beta1.GetTestCaseResultRequest = (function() { + v3beta1.ListIntentsRequest = (function() { /** - * Properties of a GetTestCaseResultRequest. + * Properties of a ListIntentsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetTestCaseResultRequest - * @property {string|null} [name] GetTestCaseResultRequest name + * @interface IListIntentsRequest + * @property {string|null} [parent] ListIntentsRequest parent + * @property {string|null} [languageCode] ListIntentsRequest languageCode + * @property {google.cloud.dialogflow.cx.v3beta1.IntentView|null} [intentView] ListIntentsRequest intentView + * @property {number|null} [pageSize] ListIntentsRequest pageSize + * @property {string|null} [pageToken] ListIntentsRequest pageToken */ /** - * Constructs a new GetTestCaseResultRequest. + * Constructs a new ListIntentsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetTestCaseResultRequest. - * @implements IGetTestCaseResultRequest + * @classdesc Represents a ListIntentsRequest. + * @implements IListIntentsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest=} [properties] Properties to set */ - function GetTestCaseResultRequest(properties) { + function ListIntentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -105008,75 +104400,127 @@ } /** - * GetTestCaseResultRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest + * ListIntentsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @instance */ - GetTestCaseResultRequest.prototype.name = ""; + ListIntentsRequest.prototype.parent = ""; /** - * Creates a new GetTestCaseResultRequest instance using the specified properties. + * ListIntentsRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @instance + */ + ListIntentsRequest.prototype.languageCode = ""; + + /** + * ListIntentsRequest intentView. + * @member {google.cloud.dialogflow.cx.v3beta1.IntentView} intentView + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @instance + */ + ListIntentsRequest.prototype.intentView = 0; + + /** + * ListIntentsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @instance + */ + ListIntentsRequest.prototype.pageSize = 0; + + /** + * ListIntentsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @instance + */ + ListIntentsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListIntentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest} GetTestCaseResultRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest} ListIntentsRequest instance */ - GetTestCaseResultRequest.create = function create(properties) { - return new GetTestCaseResultRequest(properties); + ListIntentsRequest.create = function create(properties) { + return new ListIntentsRequest(properties); }; /** - * Encodes the specified GetTestCaseResultRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest.verify|verify} messages. + * Encodes the specified ListIntentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest} message GetTestCaseResultRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest} message ListIntentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTestCaseResultRequest.encode = function encode(message, writer) { + ListIntentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.intentView != null && Object.hasOwnProperty.call(message, "intentView")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.intentView); return writer; }; /** - * Encodes the specified GetTestCaseResultRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest.verify|verify} messages. + * Encodes the specified ListIntentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest} message GetTestCaseResultRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest} message ListIntentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTestCaseResultRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListIntentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTestCaseResultRequest message from the specified reader or buffer. + * Decodes a ListIntentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest} GetTestCaseResultRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest} ListIntentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTestCaseResultRequest.decode = function decode(reader, length) { + ListIntentsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); + break; + case 2: + message.languageCode = reader.string(); + break; + case 5: + message.intentView = reader.int32(); + break; + case 3: + message.pageSize = reader.int32(); + break; + case 4: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -105087,526 +104531,252 @@ }; /** - * Decodes a GetTestCaseResultRequest message from the specified reader or buffer, length delimited. + * Decodes a ListIntentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest} GetTestCaseResultRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest} ListIntentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTestCaseResultRequest.decodeDelimited = function decodeDelimited(reader) { + ListIntentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetTestCaseResultRequest message. + * Verifies a ListIntentsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetTestCaseResultRequest.verify = function verify(message) { + ListIntentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + if (message.intentView != null && message.hasOwnProperty("intentView")) + switch (message.intentView) { + default: + return "intentView: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a GetTestCaseResultRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListIntentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest} GetTestCaseResultRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest} ListIntentsRequest */ - GetTestCaseResultRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest) + ListIntentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + switch (object.intentView) { + case "INTENT_VIEW_UNSPECIFIED": + case 0: + message.intentView = 0; + break; + case "INTENT_VIEW_PARTIAL": + case 1: + message.intentView = 1; + break; + case "INTENT_VIEW_FULL": + case 2: + message.intentView = 2; + break; + } + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a GetTestCaseResultRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListIntentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest} message GetTestCaseResultRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest} message ListIntentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTestCaseResultRequest.toObject = function toObject(message, options) { + ListIntentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; - - /** - * Converts this GetTestCaseResultRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest - * @instance - * @returns {Object.} JSON object - */ - GetTestCaseResultRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetTestCaseResultRequest; - })(); - - /** - * TestResult enum. - * @name google.cloud.dialogflow.cx.v3beta1.TestResult - * @enum {number} - * @property {number} TEST_RESULT_UNSPECIFIED=0 TEST_RESULT_UNSPECIFIED value - * @property {number} PASSED=1 PASSED value - * @property {number} FAILED=2 FAILED value - */ - v3beta1.TestResult = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TEST_RESULT_UNSPECIFIED"] = 0; - values[valuesById[1] = "PASSED"] = 1; - values[valuesById[2] = "FAILED"] = 2; - return values; - })(); - - v3beta1.Intents = (function() { - - /** - * Constructs a new Intents service. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an Intents - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Intents(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Intents.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Intents; - - /** - * Creates new Intents service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {Intents} RPC service. Useful where requests and/or responses are streamed. - */ - Intents.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#listIntents}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @typedef ListIntentsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} [response] ListIntentsResponse - */ - - /** - * Calls ListIntents. - * @function listIntents - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest} request ListIntentsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Intents.ListIntentsCallback} callback Node-style callback called with the error, if any, and ListIntentsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Intents.prototype.listIntents = function listIntents(request, callback) { - return this.rpcCall(listIntents, $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse, request, callback); - }, "name", { value: "ListIntents" }); - - /** - * Calls ListIntents. - * @function listIntents - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest} request ListIntentsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#getIntent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @typedef GetIntentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Intent} [response] Intent - */ - - /** - * Calls GetIntent. - * @function getIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest} request GetIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Intents.GetIntentCallback} callback Node-style callback called with the error, if any, and Intent - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Intents.prototype.getIntent = function getIntent(request, callback) { - return this.rpcCall(getIntent, $root.google.cloud.dialogflow.cx.v3beta1.GetIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Intent, request, callback); - }, "name", { value: "GetIntent" }); - - /** - * Calls GetIntent. - * @function getIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest} request GetIntentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#createIntent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @typedef CreateIntentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Intent} [response] Intent - */ - - /** - * Calls CreateIntent. - * @function createIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest} request CreateIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Intents.CreateIntentCallback} callback Node-style callback called with the error, if any, and Intent - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Intents.prototype.createIntent = function createIntent(request, callback) { - return this.rpcCall(createIntent, $root.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Intent, request, callback); - }, "name", { value: "CreateIntent" }); - - /** - * Calls CreateIntent. - * @function createIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest} request CreateIntentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#updateIntent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @typedef UpdateIntentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Intent} [response] Intent - */ - - /** - * Calls UpdateIntent. - * @function updateIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest} request UpdateIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Intents.UpdateIntentCallback} callback Node-style callback called with the error, if any, and Intent - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Intents.prototype.updateIntent = function updateIntent(request, callback) { - return this.rpcCall(updateIntent, $root.google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Intent, request, callback); - }, "name", { value: "UpdateIntent" }); - - /** - * Calls UpdateIntent. - * @function updateIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest} request UpdateIntentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#deleteIntent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @typedef DeleteIntentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ - - /** - * Calls DeleteIntent. - * @function deleteIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest} request DeleteIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Intents.DeleteIntentCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Intents.prototype.deleteIntent = function deleteIntent(request, callback) { - return this.rpcCall(deleteIntent, $root.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteIntent" }); - - /** - * Calls DeleteIntent. - * @function deleteIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest} request DeleteIntentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return Intents; - })(); - - v3beta1.Intent = (function() { - - /** - * Properties of an Intent. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IIntent - * @property {string|null} [name] Intent name - * @property {string|null} [displayName] Intent displayName - * @property {Array.|null} [trainingPhrases] Intent trainingPhrases - * @property {Array.|null} [parameters] Intent parameters - * @property {number|null} [priority] Intent priority - * @property {boolean|null} [isFallback] Intent isFallback - * @property {Object.|null} [labels] Intent labels - * @property {string|null} [description] Intent description - */ - - /** - * Constructs a new Intent. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an Intent. - * @implements IIntent - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IIntent=} [properties] Properties to set - */ - function Intent(properties) { - this.trainingPhrases = []; - this.parameters = []; - this.labels = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Intent name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent - * @instance - */ - Intent.prototype.name = ""; - - /** - * Intent displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent - * @instance - */ - Intent.prototype.displayName = ""; + if (options.defaults) { + object.parent = ""; + object.languageCode = ""; + object.pageSize = 0; + object.pageToken = ""; + object.intentView = options.enums === String ? "INTENT_VIEW_UNSPECIFIED" : 0; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.intentView != null && message.hasOwnProperty("intentView")) + object.intentView = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.IntentView[message.intentView] : message.intentView; + return object; + }; /** - * Intent trainingPhrases. - * @member {Array.} trainingPhrases - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * Converts this ListIntentsRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @instance + * @returns {Object.} JSON object */ - Intent.prototype.trainingPhrases = $util.emptyArray; + ListIntentsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Intent parameters. - * @member {Array.} parameters - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent - * @instance - */ - Intent.prototype.parameters = $util.emptyArray; + return ListIntentsRequest; + })(); + + v3beta1.ListIntentsResponse = (function() { /** - * Intent priority. - * @member {number} priority - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent - * @instance + * Properties of a ListIntentsResponse. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IListIntentsResponse + * @property {Array.|null} [intents] ListIntentsResponse intents + * @property {string|null} [nextPageToken] ListIntentsResponse nextPageToken */ - Intent.prototype.priority = 0; /** - * Intent isFallback. - * @member {boolean} isFallback - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent - * @instance + * Constructs a new ListIntentsResponse. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a ListIntentsResponse. + * @implements IListIntentsResponse + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse=} [properties] Properties to set */ - Intent.prototype.isFallback = false; + function ListIntentsResponse(properties) { + this.intents = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Intent labels. - * @member {Object.} labels - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * ListIntentsResponse intents. + * @member {Array.} intents + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse * @instance */ - Intent.prototype.labels = $util.emptyObject; + ListIntentsResponse.prototype.intents = $util.emptyArray; /** - * Intent description. - * @member {string} description - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * ListIntentsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse * @instance */ - Intent.prototype.description = ""; + ListIntentsResponse.prototype.nextPageToken = ""; /** - * Creates a new Intent instance using the specified properties. + * Creates a new ListIntentsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IIntent=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent} Intent instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} ListIntentsResponse instance */ - Intent.create = function create(properties) { - return new Intent(properties); + ListIntentsResponse.create = function create(properties) { + return new ListIntentsResponse(properties); }; /** - * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.verify|verify} messages. + * Encodes the specified ListIntentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IIntent} message Intent message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse} message ListIntentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Intent.encode = function encode(message, writer) { + ListIntentsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.trainingPhrases != null && message.trainingPhrases.length) - for (var i = 0; i < message.trainingPhrases.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.encode(message.trainingPhrases[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.parameters != null && message.parameters.length) - for (var i = 0; i < message.parameters.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.encode(message.parameters[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.priority != null && Object.hasOwnProperty.call(message, "priority")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.priority); - if (message.isFallback != null && Object.hasOwnProperty.call(message, "isFallback")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isFallback); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.description); + if (message.intents != null && message.intents.length) + for (var i = 0; i < message.intents.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Intent.encode(message.intents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.verify|verify} messages. + * Encodes the specified ListIntentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IIntent} message Intent message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse} message ListIntentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Intent.encodeDelimited = function encodeDelimited(message, writer) { + ListIntentsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Intent message from the specified reader or buffer. + * Decodes a ListIntentsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent} Intent + * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} ListIntentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Intent.decode = function decode(reader, length) { + ListIntentsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.intents && message.intents.length)) + message.intents = []; + message.intents.push($root.google.cloud.dialogflow.cx.v3beta1.Intent.decode(reader, reader.uint32())); break; case 2: - message.displayName = reader.string(); - break; - case 3: - if (!(message.trainingPhrases && message.trainingPhrases.length)) - message.trainingPhrases = []; - message.trainingPhrases.push($root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.decode(reader, reader.uint32())); - break; - case 4: - if (!(message.parameters && message.parameters.length)) - message.parameters = []; - message.parameters.push($root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.decode(reader, reader.uint32())); - break; - case 5: - message.priority = reader.int32(); - break; - case 6: - message.isFallback = reader.bool(); - break; - case 7: - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - case 8: - message.description = reader.string(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -105617,1065 +104787,898 @@ }; /** - * Decodes an Intent message from the specified reader or buffer, length delimited. + * Decodes a ListIntentsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent} Intent + * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} ListIntentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Intent.decodeDelimited = function decodeDelimited(reader) { + ListIntentsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Intent message. + * Verifies a ListIntentsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Intent.verify = function verify(message) { + ListIntentsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.trainingPhrases != null && message.hasOwnProperty("trainingPhrases")) { - if (!Array.isArray(message.trainingPhrases)) - return "trainingPhrases: array expected"; - for (var i = 0; i < message.trainingPhrases.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.verify(message.trainingPhrases[i]); - if (error) - return "trainingPhrases." + error; - } - } - if (message.parameters != null && message.hasOwnProperty("parameters")) { - if (!Array.isArray(message.parameters)) - return "parameters: array expected"; - for (var i = 0; i < message.parameters.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.verify(message.parameters[i]); + if (message.intents != null && message.hasOwnProperty("intents")) { + if (!Array.isArray(message.intents)) + return "intents: array expected"; + for (var i = 0; i < message.intents.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.verify(message.intents[i]); if (error) - return "parameters." + error; + return "intents." + error; } } - if (message.priority != null && message.hasOwnProperty("priority")) - if (!$util.isInteger(message.priority)) - return "priority: integer expected"; - if (message.isFallback != null && message.hasOwnProperty("isFallback")) - if (typeof message.isFallback !== "boolean") - return "isFallback: boolean expected"; - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an Intent message from a plain object. Also converts values to their respective internal types. + * Creates a ListIntentsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent} Intent + * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} ListIntentsResponse */ - Intent.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Intent) + ListIntentsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.trainingPhrases) { - if (!Array.isArray(object.trainingPhrases)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.trainingPhrases: array expected"); - message.trainingPhrases = []; - for (var i = 0; i < object.trainingPhrases.length; ++i) { - if (typeof object.trainingPhrases[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.trainingPhrases: object expected"); - message.trainingPhrases[i] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.fromObject(object.trainingPhrases[i]); - } - } - if (object.parameters) { - if (!Array.isArray(object.parameters)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.parameters: array expected"); - message.parameters = []; - for (var i = 0; i < object.parameters.length; ++i) { - if (typeof object.parameters[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.parameters: object expected"); - message.parameters[i] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.fromObject(object.parameters[i]); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse(); + if (object.intents) { + if (!Array.isArray(object.intents)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse.intents: array expected"); + message.intents = []; + for (var i = 0; i < object.intents.length; ++i) { + if (typeof object.intents[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse.intents: object expected"); + message.intents[i] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.fromObject(object.intents[i]); } } - if (object.priority != null) - message.priority = object.priority | 0; - if (object.isFallback != null) - message.isFallback = Boolean(object.isFallback); - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - if (object.description != null) - message.description = String(object.description); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an Intent message. Also converts values to other types if specified. + * Creates a plain object from a ListIntentsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent} message Intent + * @param {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} message ListIntentsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Intent.toObject = function toObject(message, options) { + ListIntentsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.trainingPhrases = []; - object.parameters = []; - } - if (options.objects || options.defaults) - object.labels = {}; - if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.priority = 0; - object.isFallback = false; - object.description = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.trainingPhrases && message.trainingPhrases.length) { - object.trainingPhrases = []; - for (var j = 0; j < message.trainingPhrases.length; ++j) - object.trainingPhrases[j] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.toObject(message.trainingPhrases[j], options); - } - if (message.parameters && message.parameters.length) { - object.parameters = []; - for (var j = 0; j < message.parameters.length; ++j) - object.parameters[j] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.toObject(message.parameters[j], options); - } - if (message.priority != null && message.hasOwnProperty("priority")) - object.priority = message.priority; - if (message.isFallback != null && message.hasOwnProperty("isFallback")) - object.isFallback = message.isFallback; - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; + if (options.arrays || options.defaults) + object.intents = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.intents && message.intents.length) { + object.intents = []; + for (var j = 0; j < message.intents.length; ++j) + object.intents[j] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.toObject(message.intents[j], options); } - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this Intent to JSON. + * Converts this ListIntentsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse * @instance * @returns {Object.} JSON object */ - Intent.prototype.toJSON = function toJSON() { + ListIntentsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - Intent.TrainingPhrase = (function() { - - /** - * Properties of a TrainingPhrase. - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent - * @interface ITrainingPhrase - * @property {string|null} [id] TrainingPhrase id - * @property {Array.|null} [parts] TrainingPhrase parts - * @property {number|null} [repeatCount] TrainingPhrase repeatCount - */ - - /** - * Constructs a new TrainingPhrase. - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent - * @classdesc Represents a TrainingPhrase. - * @implements ITrainingPhrase - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase=} [properties] Properties to set - */ - function TrainingPhrase(properties) { - this.parts = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TrainingPhrase id. - * @member {string} id - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @instance - */ - TrainingPhrase.prototype.id = ""; - - /** - * TrainingPhrase parts. - * @member {Array.} parts - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @instance - */ - TrainingPhrase.prototype.parts = $util.emptyArray; - - /** - * TrainingPhrase repeatCount. - * @member {number} repeatCount - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @instance - */ - TrainingPhrase.prototype.repeatCount = 0; - - /** - * Creates a new TrainingPhrase instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase} TrainingPhrase instance - */ - TrainingPhrase.create = function create(properties) { - return new TrainingPhrase(properties); - }; - - /** - * Encodes the specified TrainingPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase} message TrainingPhrase message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TrainingPhrase.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.parts != null && message.parts.length) - for (var i = 0; i < message.parts.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.encode(message.parts[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.repeatCount != null && Object.hasOwnProperty.call(message, "repeatCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.repeatCount); - return writer; - }; - - /** - * Encodes the specified TrainingPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase} message TrainingPhrase message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TrainingPhrase.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a TrainingPhrase message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase} TrainingPhrase - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TrainingPhrase.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - if (!(message.parts && message.parts.length)) - message.parts = []; - message.parts.push($root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.decode(reader, reader.uint32())); - break; - case 3: - message.repeatCount = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a TrainingPhrase message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase} TrainingPhrase - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TrainingPhrase.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + }; - /** - * Verifies a TrainingPhrase message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TrainingPhrase.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.parts != null && message.hasOwnProperty("parts")) { - if (!Array.isArray(message.parts)) - return "parts: array expected"; - for (var i = 0; i < message.parts.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.verify(message.parts[i]); - if (error) - return "parts." + error; - } - } - if (message.repeatCount != null && message.hasOwnProperty("repeatCount")) - if (!$util.isInteger(message.repeatCount)) - return "repeatCount: integer expected"; - return null; - }; + return ListIntentsResponse; + })(); - /** - * Creates a TrainingPhrase message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase} TrainingPhrase - */ - TrainingPhrase.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase(); - if (object.id != null) - message.id = String(object.id); - if (object.parts) { - if (!Array.isArray(object.parts)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.parts: array expected"); - message.parts = []; - for (var i = 0; i < object.parts.length; ++i) { - if (typeof object.parts[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.parts: object expected"); - message.parts[i] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.fromObject(object.parts[i]); - } - } - if (object.repeatCount != null) - message.repeatCount = object.repeatCount | 0; - return message; - }; + v3beta1.GetIntentRequest = (function() { - /** - * Creates a plain object from a TrainingPhrase message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase} message TrainingPhrase - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TrainingPhrase.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.parts = []; - if (options.defaults) { - object.id = ""; - object.repeatCount = 0; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.parts && message.parts.length) { - object.parts = []; - for (var j = 0; j < message.parts.length; ++j) - object.parts[j] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.toObject(message.parts[j], options); - } - if (message.repeatCount != null && message.hasOwnProperty("repeatCount")) - object.repeatCount = message.repeatCount; - return object; - }; + /** + * Properties of a GetIntentRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IGetIntentRequest + * @property {string|null} [name] GetIntentRequest name + * @property {string|null} [languageCode] GetIntentRequest languageCode + */ - /** - * Converts this TrainingPhrase to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @instance - * @returns {Object.} JSON object - */ - TrainingPhrase.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Constructs a new GetIntentRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a GetIntentRequest. + * @implements IGetIntentRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest=} [properties] Properties to set + */ + function GetIntentRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - TrainingPhrase.Part = (function() { + /** + * GetIntentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @instance + */ + GetIntentRequest.prototype.name = ""; - /** - * Properties of a Part. - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @interface IPart - * @property {string|null} [text] Part text - * @property {string|null} [parameterId] Part parameterId - */ + /** + * GetIntentRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @instance + */ + GetIntentRequest.prototype.languageCode = ""; - /** - * Constructs a new Part. - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @classdesc Represents a Part. - * @implements IPart - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart=} [properties] Properties to set - */ - function Part(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Creates a new GetIntentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetIntentRequest} GetIntentRequest instance + */ + GetIntentRequest.create = function create(properties) { + return new GetIntentRequest(properties); + }; - /** - * Part text. - * @member {string} text - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part - * @instance - */ - Part.prototype.text = ""; + /** + * Encodes the specified GetIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetIntentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest} message GetIntentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIntentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + return writer; + }; - /** - * Part parameterId. - * @member {string} parameterId - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part - * @instance - */ - Part.prototype.parameterId = ""; + /** + * Encodes the specified GetIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetIntentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest} message GetIntentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a new Part instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part} Part instance - */ - Part.create = function create(properties) { - return new Part(properties); - }; + /** + * Decodes a GetIntentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.GetIntentRequest} GetIntentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIntentRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetIntentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.languageCode = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified Part message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart} message Part message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Part.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.text != null && Object.hasOwnProperty.call(message, "text")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); - if (message.parameterId != null && Object.hasOwnProperty.call(message, "parameterId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.parameterId); - return writer; - }; + /** + * Decodes a GetIntentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.GetIntentRequest} GetIntentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIntentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified Part message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart} message Part message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Part.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Verifies a GetIntentRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetIntentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + return null; + }; - /** - * Decodes a Part message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part} Part - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Part.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.text = reader.string(); - break; - case 2: - message.parameterId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a GetIntentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.GetIntentRequest} GetIntentRequest + */ + GetIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetIntentRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetIntentRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + return message; + }; - /** - * Decodes a Part message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part} Part - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Part.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a plain object from a GetIntentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.GetIntentRequest} message GetIntentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetIntentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.languageCode = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + return object; + }; - /** - * Verifies a Part message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Part.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.text != null && message.hasOwnProperty("text")) - if (!$util.isString(message.text)) - return "text: string expected"; - if (message.parameterId != null && message.hasOwnProperty("parameterId")) - if (!$util.isString(message.parameterId)) - return "parameterId: string expected"; - return null; - }; + /** + * Converts this GetIntentRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @instance + * @returns {Object.} JSON object + */ + GetIntentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a Part message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part} Part - */ - Part.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part(); - if (object.text != null) - message.text = String(object.text); - if (object.parameterId != null) - message.parameterId = String(object.parameterId); - return message; - }; + return GetIntentRequest; + })(); - /** - * Creates a plain object from a Part message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part} message Part - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Part.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.text = ""; - object.parameterId = ""; - } - if (message.text != null && message.hasOwnProperty("text")) - object.text = message.text; - if (message.parameterId != null && message.hasOwnProperty("parameterId")) - object.parameterId = message.parameterId; - return object; - }; + v3beta1.CreateIntentRequest = (function() { - /** - * Converts this Part to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part - * @instance - * @returns {Object.} JSON object - */ - Part.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Properties of a CreateIntentRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface ICreateIntentRequest + * @property {string|null} [parent] CreateIntentRequest parent + * @property {google.cloud.dialogflow.cx.v3beta1.IIntent|null} [intent] CreateIntentRequest intent + * @property {string|null} [languageCode] CreateIntentRequest languageCode + */ + + /** + * Constructs a new CreateIntentRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a CreateIntentRequest. + * @implements ICreateIntentRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest=} [properties] Properties to set + */ + function CreateIntentRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateIntentRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @instance + */ + CreateIntentRequest.prototype.parent = ""; - return Part; - })(); + /** + * CreateIntentRequest intent. + * @member {google.cloud.dialogflow.cx.v3beta1.IIntent|null|undefined} intent + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @instance + */ + CreateIntentRequest.prototype.intent = null; - return TrainingPhrase; - })(); + /** + * CreateIntentRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @instance + */ + CreateIntentRequest.prototype.languageCode = ""; - Intent.Parameter = (function() { + /** + * Creates a new CreateIntentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest} CreateIntentRequest instance + */ + CreateIntentRequest.create = function create(properties) { + return new CreateIntentRequest(properties); + }; - /** - * Properties of a Parameter. - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent - * @interface IParameter - * @property {string|null} [id] Parameter id - * @property {string|null} [entityType] Parameter entityType - * @property {boolean|null} [isList] Parameter isList - * @property {boolean|null} [redact] Parameter redact - */ + /** + * Encodes the specified CreateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest} message CreateIntentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateIntentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) + $root.google.cloud.dialogflow.cx.v3beta1.Intent.encode(message.intent, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); + return writer; + }; - /** - * Constructs a new Parameter. - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent - * @classdesc Represents a Parameter. - * @implements IParameter - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.IParameter=} [properties] Properties to set - */ - function Parameter(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Encodes the specified CreateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest} message CreateIntentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateIntentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest} CreateIntentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateIntentRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.decode(reader, reader.uint32()); + break; + case 3: + message.languageCode = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } } + return message; + }; - /** - * Parameter id. - * @member {string} id - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @instance - */ - Parameter.prototype.id = ""; + /** + * Decodes a CreateIntentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest} CreateIntentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateIntentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Parameter entityType. - * @member {string} entityType - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @instance - */ - Parameter.prototype.entityType = ""; + /** + * Verifies a CreateIntentRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateIntentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.intent != null && message.hasOwnProperty("intent")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.verify(message.intent); + if (error) + return "intent." + error; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + return null; + }; - /** - * Parameter isList. - * @member {boolean} isList - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @instance - */ - Parameter.prototype.isList = false; + /** + * Creates a CreateIntentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest} CreateIntentRequest + */ + CreateIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.intent != null) { + if (typeof object.intent !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest.intent: object expected"); + message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.fromObject(object.intent); + } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + return message; + }; - /** - * Parameter redact. - * @member {boolean} redact - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @instance - */ - Parameter.prototype.redact = false; + /** + * Creates a plain object from a CreateIntentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest} message CreateIntentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateIntentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.intent = null; + object.languageCode = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.intent != null && message.hasOwnProperty("intent")) + object.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.toObject(message.intent, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + return object; + }; - /** - * Creates a new Parameter instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.IParameter=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.Parameter} Parameter instance - */ - Parameter.create = function create(properties) { - return new Parameter(properties); - }; + /** + * Converts this CreateIntentRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @instance + * @returns {Object.} JSON object + */ + CreateIntentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.IParameter} message Parameter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Parameter.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityType); - if (message.isList != null && Object.hasOwnProperty.call(message, "isList")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isList); - if (message.redact != null && Object.hasOwnProperty.call(message, "redact")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.redact); - return writer; - }; + return CreateIntentRequest; + })(); - /** - * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.IParameter} message Parameter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Parameter.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + v3beta1.UpdateIntentRequest = (function() { - /** - * Decodes a Parameter message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.Parameter} Parameter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Parameter.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.entityType = reader.string(); - break; - case 3: - message.isList = reader.bool(); - break; - case 4: - message.redact = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Properties of an UpdateIntentRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IUpdateIntentRequest + * @property {google.cloud.dialogflow.cx.v3beta1.IIntent|null} [intent] UpdateIntentRequest intent + * @property {string|null} [languageCode] UpdateIntentRequest languageCode + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateIntentRequest updateMask + */ - /** - * Decodes a Parameter message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.Parameter} Parameter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Parameter.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Constructs a new UpdateIntentRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents an UpdateIntentRequest. + * @implements IUpdateIntentRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest=} [properties] Properties to set + */ + function UpdateIntentRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Verifies a Parameter message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Parameter.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.entityType != null && message.hasOwnProperty("entityType")) - if (!$util.isString(message.entityType)) - return "entityType: string expected"; - if (message.isList != null && message.hasOwnProperty("isList")) - if (typeof message.isList !== "boolean") - return "isList: boolean expected"; - if (message.redact != null && message.hasOwnProperty("redact")) - if (typeof message.redact !== "boolean") - return "redact: boolean expected"; - return null; - }; + /** + * UpdateIntentRequest intent. + * @member {google.cloud.dialogflow.cx.v3beta1.IIntent|null|undefined} intent + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @instance + */ + UpdateIntentRequest.prototype.intent = null; - /** - * Creates a Parameter message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.Parameter} Parameter - */ - Parameter.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter(); - if (object.id != null) - message.id = String(object.id); - if (object.entityType != null) - message.entityType = String(object.entityType); - if (object.isList != null) - message.isList = Boolean(object.isList); - if (object.redact != null) - message.redact = Boolean(object.redact); - return message; - }; + /** + * UpdateIntentRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @instance + */ + UpdateIntentRequest.prototype.languageCode = ""; - /** - * Creates a plain object from a Parameter message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.Parameter} message Parameter - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Parameter.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.id = ""; - object.entityType = ""; - object.isList = false; - object.redact = false; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.entityType != null && message.hasOwnProperty("entityType")) - object.entityType = message.entityType; - if (message.isList != null && message.hasOwnProperty("isList")) - object.isList = message.isList; - if (message.redact != null && message.hasOwnProperty("redact")) - object.redact = message.redact; - return object; - }; + /** + * UpdateIntentRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @instance + */ + UpdateIntentRequest.prototype.updateMask = null; - /** - * Converts this Parameter to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @instance - * @returns {Object.} JSON object - */ - Parameter.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a new UpdateIntentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest} UpdateIntentRequest instance + */ + UpdateIntentRequest.create = function create(properties) { + return new UpdateIntentRequest(properties); + }; + + /** + * Encodes the specified UpdateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest} message UpdateIntentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateIntentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) + $root.google.cloud.dialogflow.cx.v3beta1.Intent.encode(message.intent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; - return Parameter; - })(); + /** + * Encodes the specified UpdateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest} message UpdateIntentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - return Intent; - })(); + /** + * Decodes an UpdateIntentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest} UpdateIntentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateIntentRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.decode(reader, reader.uint32()); + break; + case 2: + message.languageCode = reader.string(); + break; + case 3: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - v3beta1.ListIntentsRequest = (function() { + /** + * Decodes an UpdateIntentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest} UpdateIntentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateIntentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Properties of a ListIntentsRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListIntentsRequest - * @property {string|null} [parent] ListIntentsRequest parent - * @property {string|null} [languageCode] ListIntentsRequest languageCode - * @property {google.cloud.dialogflow.cx.v3beta1.IntentView|null} [intentView] ListIntentsRequest intentView - * @property {number|null} [pageSize] ListIntentsRequest pageSize - * @property {string|null} [pageToken] ListIntentsRequest pageToken + * Verifies an UpdateIntentRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + UpdateIntentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.intent != null && message.hasOwnProperty("intent")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.verify(message.intent); + if (error) + return "intent." + error; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + return null; + }; /** - * Constructs a new ListIntentsRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListIntentsRequest. - * @implements IListIntentsRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest=} [properties] Properties to set + * Creates an UpdateIntentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest} UpdateIntentRequest */ - function ListIntentsRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + UpdateIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest(); + if (object.intent != null) { + if (typeof object.intent !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest.intent: object expected"); + message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.fromObject(object.intent); + } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; /** - * ListIntentsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest - * @instance + * Creates a plain object from an UpdateIntentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest} message UpdateIntentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - ListIntentsRequest.prototype.parent = ""; + UpdateIntentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.intent = null; + object.languageCode = ""; + object.updateMask = null; + } + if (message.intent != null && message.hasOwnProperty("intent")) + object.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.toObject(message.intent, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; /** - * ListIntentsRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * Converts this UpdateIntentRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest * @instance + * @returns {Object.} JSON object */ - ListIntentsRequest.prototype.languageCode = ""; + UpdateIntentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateIntentRequest; + })(); + + v3beta1.DeleteIntentRequest = (function() { /** - * ListIntentsRequest intentView. - * @member {google.cloud.dialogflow.cx.v3beta1.IntentView} intentView - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest - * @instance + * Properties of a DeleteIntentRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IDeleteIntentRequest + * @property {string|null} [name] DeleteIntentRequest name */ - ListIntentsRequest.prototype.intentView = 0; /** - * ListIntentsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest - * @instance + * Constructs a new DeleteIntentRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a DeleteIntentRequest. + * @implements IDeleteIntentRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest=} [properties] Properties to set */ - ListIntentsRequest.prototype.pageSize = 0; + function DeleteIntentRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * ListIntentsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * DeleteIntentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest * @instance */ - ListIntentsRequest.prototype.pageToken = ""; + DeleteIntentRequest.prototype.name = ""; /** - * Creates a new ListIntentsRequest instance using the specified properties. + * Creates a new DeleteIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest} ListIntentsRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest} DeleteIntentRequest instance */ - ListIntentsRequest.create = function create(properties) { - return new ListIntentsRequest(properties); + DeleteIntentRequest.create = function create(properties) { + return new DeleteIntentRequest(properties); }; /** - * Encodes the specified ListIntentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest.verify|verify} messages. + * Encodes the specified DeleteIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest} message ListIntentsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest} message DeleteIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIntentsRequest.encode = function encode(message, writer) { + DeleteIntentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.intentView != null && Object.hasOwnProperty.call(message, "intentView")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.intentView); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListIntentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest.verify|verify} messages. + * Encodes the specified DeleteIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest} message ListIntentsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest} message DeleteIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIntentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListIntentsRequest message from the specified reader or buffer. + * Decodes a DeleteIntentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest} ListIntentsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest} DeleteIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIntentsRequest.decode = function decode(reader, length) { + DeleteIntentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - message.languageCode = reader.string(); - break; - case 5: - message.intentView = reader.int32(); - break; - case 3: - message.pageSize = reader.int32(); - break; - case 4: - message.pageToken = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -106686,160 +105689,293 @@ }; /** - * Decodes a ListIntentsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteIntentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest} ListIntentsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest} DeleteIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIntentsRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteIntentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListIntentsRequest message. + * Verifies a DeleteIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListIntentsRequest.verify = function verify(message) { + DeleteIntentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; - if (message.intentView != null && message.hasOwnProperty("intentView")) - switch (message.intentView) { - default: - return "intentView: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListIntentsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest} ListIntentsRequest + * Creates a DeleteIntentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest} DeleteIntentRequest + */ + DeleteIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a DeleteIntentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest} message DeleteIntentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteIntentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this DeleteIntentRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteIntentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteIntentRequest; + })(); + + /** + * IntentView enum. + * @name google.cloud.dialogflow.cx.v3beta1.IntentView + * @enum {number} + * @property {number} INTENT_VIEW_UNSPECIFIED=0 INTENT_VIEW_UNSPECIFIED value + * @property {number} INTENT_VIEW_PARTIAL=1 INTENT_VIEW_PARTIAL value + * @property {number} INTENT_VIEW_FULL=2 INTENT_VIEW_FULL value + */ + v3beta1.IntentView = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "INTENT_VIEW_UNSPECIFIED"] = 0; + values[valuesById[1] = "INTENT_VIEW_PARTIAL"] = 1; + values[valuesById[2] = "INTENT_VIEW_FULL"] = 2; + return values; + })(); + + v3beta1.Sessions = (function() { + + /** + * Constructs a new Sessions service. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a Sessions + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function Sessions(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Sessions.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Sessions; + + /** + * Creates new Sessions service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {Sessions} RPC service. Useful where requests and/or responses are streamed. + */ + Sessions.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#detectIntent}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions + * @typedef DetectIntentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse} [response] DetectIntentResponse + */ + + /** + * Calls DetectIntent. + * @function detectIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest} request DetectIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Sessions.DetectIntentCallback} callback Node-style callback called with the error, if any, and DetectIntentResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Sessions.prototype.detectIntent = function detectIntent(request, callback) { + return this.rpcCall(detectIntent, $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse, request, callback); + }, "name", { value: "DetectIntent" }); + + /** + * Calls DetectIntent. + * @function detectIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest} request DetectIntentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#streamingDetectIntent}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions + * @typedef StreamingDetectIntentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse} [response] StreamingDetectIntentResponse + */ + + /** + * Calls StreamingDetectIntent. + * @function streamingDetectIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest} request StreamingDetectIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Sessions.StreamingDetectIntentCallback} callback Node-style callback called with the error, if any, and StreamingDetectIntentResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Sessions.prototype.streamingDetectIntent = function streamingDetectIntent(request, callback) { + return this.rpcCall(streamingDetectIntent, $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse, request, callback); + }, "name", { value: "StreamingDetectIntent" }); + + /** + * Calls StreamingDetectIntent. + * @function streamingDetectIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest} request StreamingDetectIntentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#matchIntent}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions + * @typedef MatchIntentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse} [response] MatchIntentResponse + */ + + /** + * Calls MatchIntent. + * @function matchIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest} request MatchIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntentCallback} callback Node-style callback called with the error, if any, and MatchIntentResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Sessions.prototype.matchIntent = function matchIntent(request, callback) { + return this.rpcCall(matchIntent, $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse, request, callback); + }, "name", { value: "MatchIntent" }); + + /** + * Calls MatchIntent. + * @function matchIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest} request MatchIntentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#fulfillIntent}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions + * @typedef FulfillIntentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse} [response] FulfillIntentResponse */ - ListIntentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); - switch (object.intentView) { - case "INTENT_VIEW_UNSPECIFIED": - case 0: - message.intentView = 0; - break; - case "INTENT_VIEW_PARTIAL": - case 1: - message.intentView = 1; - break; - case "INTENT_VIEW_FULL": - case 2: - message.intentView = 2; - break; - } - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - return message; - }; /** - * Creates a plain object from a ListIntentsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest} message ListIntentsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls FulfillIntent. + * @function fulfillIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest} request FulfillIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Sessions.FulfillIntentCallback} callback Node-style callback called with the error, if any, and FulfillIntentResponse + * @returns {undefined} + * @variation 1 */ - ListIntentsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.languageCode = ""; - object.pageSize = 0; - object.pageToken = ""; - object.intentView = options.enums === String ? "INTENT_VIEW_UNSPECIFIED" : 0; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.intentView != null && message.hasOwnProperty("intentView")) - object.intentView = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.IntentView[message.intentView] : message.intentView; - return object; - }; + Object.defineProperty(Sessions.prototype.fulfillIntent = function fulfillIntent(request, callback) { + return this.rpcCall(fulfillIntent, $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse, request, callback); + }, "name", { value: "FulfillIntent" }); /** - * Converts this ListIntentsRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * Calls FulfillIntent. + * @function fulfillIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions * @instance - * @returns {Object.} JSON object + * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest} request FulfillIntentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListIntentsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - return ListIntentsRequest; + return Sessions; })(); - v3beta1.ListIntentsResponse = (function() { + v3beta1.DetectIntentRequest = (function() { /** - * Properties of a ListIntentsResponse. + * Properties of a DetectIntentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListIntentsResponse - * @property {Array.|null} [intents] ListIntentsResponse intents - * @property {string|null} [nextPageToken] ListIntentsResponse nextPageToken + * @interface IDetectIntentRequest + * @property {string|null} [session] DetectIntentRequest session + * @property {google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null} [queryParams] DetectIntentRequest queryParams + * @property {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null} [queryInput] DetectIntentRequest queryInput + * @property {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null} [outputAudioConfig] DetectIntentRequest outputAudioConfig */ /** - * Constructs a new ListIntentsResponse. + * Constructs a new DetectIntentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListIntentsResponse. - * @implements IListIntentsResponse + * @classdesc Represents a DetectIntentRequest. + * @implements IDetectIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest=} [properties] Properties to set */ - function ListIntentsResponse(properties) { - this.intents = []; + function DetectIntentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -106847,91 +105983,114 @@ } /** - * ListIntentsResponse intents. - * @member {Array.} intents - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * DetectIntentRequest session. + * @member {string} session + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest * @instance */ - ListIntentsResponse.prototype.intents = $util.emptyArray; + DetectIntentRequest.prototype.session = ""; /** - * ListIntentsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * DetectIntentRequest queryParams. + * @member {google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null|undefined} queryParams + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest * @instance */ - ListIntentsResponse.prototype.nextPageToken = ""; + DetectIntentRequest.prototype.queryParams = null; /** - * Creates a new ListIntentsResponse instance using the specified properties. + * DetectIntentRequest queryInput. + * @member {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null|undefined} queryInput + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @instance + */ + DetectIntentRequest.prototype.queryInput = null; + + /** + * DetectIntentRequest outputAudioConfig. + * @member {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null|undefined} outputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @instance + */ + DetectIntentRequest.prototype.outputAudioConfig = null; + + /** + * Creates a new DetectIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} ListIntentsResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest} DetectIntentRequest instance */ - ListIntentsResponse.create = function create(properties) { - return new ListIntentsResponse(properties); + DetectIntentRequest.create = function create(properties) { + return new DetectIntentRequest(properties); }; /** - * Encodes the specified ListIntentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse.verify|verify} messages. + * Encodes the specified DetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse} message ListIntentsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest} message DetectIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIntentsResponse.encode = function encode(message, writer) { + DetectIntentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.intents != null && message.intents.length) - for (var i = 0; i < message.intents.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Intent.encode(message.intents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.session != null && Object.hasOwnProperty.call(message, "session")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.session); + if (message.queryParams != null && Object.hasOwnProperty.call(message, "queryParams")) + $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.encode(message.queryParams, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.queryInput != null && Object.hasOwnProperty.call(message, "queryInput")) + $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.encode(message.queryInput, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) + $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListIntentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse.verify|verify} messages. + * Encodes the specified DetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse} message ListIntentsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest} message DetectIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIntentsResponse.encodeDelimited = function encodeDelimited(message, writer) { + DetectIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListIntentsResponse message from the specified reader or buffer. + * Decodes a DetectIntentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} ListIntentsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest} DetectIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIntentsResponse.decode = function decode(reader, length) { + DetectIntentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.intents && message.intents.length)) - message.intents = []; - message.intents.push($root.google.cloud.dialogflow.cx.v3beta1.Intent.decode(reader, reader.uint32())); + message.session = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + message.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.decode(reader, reader.uint32()); + break; + case 3: + message.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.decode(reader, reader.uint32()); + break; + case 4: + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -106942,134 +106101,152 @@ }; /** - * Decodes a ListIntentsResponse message from the specified reader or buffer, length delimited. + * Decodes a DetectIntentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} ListIntentsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest} DetectIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIntentsResponse.decodeDelimited = function decodeDelimited(reader) { + DetectIntentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListIntentsResponse message. + * Verifies a DetectIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListIntentsResponse.verify = function verify(message) { + DetectIntentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.intents != null && message.hasOwnProperty("intents")) { - if (!Array.isArray(message.intents)) - return "intents: array expected"; - for (var i = 0; i < message.intents.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.verify(message.intents[i]); - if (error) - return "intents." + error; - } + if (message.session != null && message.hasOwnProperty("session")) + if (!$util.isString(message.session)) + return "session: string expected"; + if (message.queryParams != null && message.hasOwnProperty("queryParams")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify(message.queryParams); + if (error) + return "queryParams." + error; + } + if (message.queryInput != null && message.hasOwnProperty("queryInput")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.verify(message.queryInput); + if (error) + return "queryInput." + error; + } + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify(message.outputAudioConfig); + if (error) + return "outputAudioConfig." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListIntentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DetectIntentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} ListIntentsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest} DetectIntentRequest */ - ListIntentsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse) + DetectIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse(); - if (object.intents) { - if (!Array.isArray(object.intents)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse.intents: array expected"); - message.intents = []; - for (var i = 0; i < object.intents.length; ++i) { - if (typeof object.intents[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse.intents: object expected"); - message.intents[i] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.fromObject(object.intents[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest(); + if (object.session != null) + message.session = String(object.session); + if (object.queryParams != null) { + if (typeof object.queryParams !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.queryParams: object expected"); + message.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.fromObject(object.queryParams); + } + if (object.queryInput != null) { + if (typeof object.queryInput !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.queryInput: object expected"); + message.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.fromObject(object.queryInput); + } + if (object.outputAudioConfig != null) { + if (typeof object.outputAudioConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.outputAudioConfig: object expected"); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.fromObject(object.outputAudioConfig); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListIntentsResponse message. Also converts values to other types if specified. + * Creates a plain object from a DetectIntentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} message ListIntentsResponse + * @param {google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest} message DetectIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListIntentsResponse.toObject = function toObject(message, options) { + DetectIntentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.intents = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.intents && message.intents.length) { - object.intents = []; - for (var j = 0; j < message.intents.length; ++j) - object.intents[j] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.toObject(message.intents[j], options); + if (options.defaults) { + object.session = ""; + object.queryParams = null; + object.queryInput = null; + object.outputAudioConfig = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.session != null && message.hasOwnProperty("session")) + object.session = message.session; + if (message.queryParams != null && message.hasOwnProperty("queryParams")) + object.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.toObject(message.queryParams, options); + if (message.queryInput != null && message.hasOwnProperty("queryInput")) + object.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.toObject(message.queryInput, options); + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) + object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.toObject(message.outputAudioConfig, options); return object; }; /** - * Converts this ListIntentsResponse to JSON. + * Converts this DetectIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest * @instance * @returns {Object.} JSON object */ - ListIntentsResponse.prototype.toJSON = function toJSON() { + DetectIntentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListIntentsResponse; + return DetectIntentRequest; })(); - v3beta1.GetIntentRequest = (function() { + v3beta1.DetectIntentResponse = (function() { /** - * Properties of a GetIntentRequest. + * Properties of a DetectIntentResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetIntentRequest - * @property {string|null} [name] GetIntentRequest name - * @property {string|null} [languageCode] GetIntentRequest languageCode + * @interface IDetectIntentResponse + * @property {string|null} [responseId] DetectIntentResponse responseId + * @property {google.cloud.dialogflow.cx.v3beta1.IQueryResult|null} [queryResult] DetectIntentResponse queryResult + * @property {Uint8Array|null} [outputAudio] DetectIntentResponse outputAudio + * @property {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null} [outputAudioConfig] DetectIntentResponse outputAudioConfig + * @property {google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType|null} [responseType] DetectIntentResponse responseType + * @property {boolean|null} [allowCancellation] DetectIntentResponse allowCancellation */ /** - * Constructs a new GetIntentRequest. + * Constructs a new DetectIntentResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetIntentRequest. - * @implements IGetIntentRequest + * @classdesc Represents a DetectIntentResponse. + * @implements IDetectIntentResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse=} [properties] Properties to set */ - function GetIntentRequest(properties) { + function DetectIntentResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -107077,88 +106254,140 @@ } /** - * GetIntentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * DetectIntentResponse responseId. + * @member {string} responseId + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse * @instance */ - GetIntentRequest.prototype.name = ""; + DetectIntentResponse.prototype.responseId = ""; /** - * GetIntentRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * DetectIntentResponse queryResult. + * @member {google.cloud.dialogflow.cx.v3beta1.IQueryResult|null|undefined} queryResult + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse * @instance */ - GetIntentRequest.prototype.languageCode = ""; + DetectIntentResponse.prototype.queryResult = null; /** - * Creates a new GetIntentRequest instance using the specified properties. + * DetectIntentResponse outputAudio. + * @member {Uint8Array} outputAudio + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @instance + */ + DetectIntentResponse.prototype.outputAudio = $util.newBuffer([]); + + /** + * DetectIntentResponse outputAudioConfig. + * @member {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null|undefined} outputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @instance + */ + DetectIntentResponse.prototype.outputAudioConfig = null; + + /** + * DetectIntentResponse responseType. + * @member {google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType} responseType + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @instance + */ + DetectIntentResponse.prototype.responseType = 0; + + /** + * DetectIntentResponse allowCancellation. + * @member {boolean} allowCancellation + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @instance + */ + DetectIntentResponse.prototype.allowCancellation = false; + + /** + * Creates a new DetectIntentResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetIntentRequest} GetIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse} DetectIntentResponse instance */ - GetIntentRequest.create = function create(properties) { - return new GetIntentRequest(properties); + DetectIntentResponse.create = function create(properties) { + return new DetectIntentResponse(properties); }; /** - * Encodes the specified GetIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetIntentRequest.verify|verify} messages. + * Encodes the specified DetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest} message GetIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse} message DetectIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIntentRequest.encode = function encode(message, writer) { + DetectIntentResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + if (message.responseId != null && Object.hasOwnProperty.call(message, "responseId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.responseId); + if (message.queryResult != null && Object.hasOwnProperty.call(message, "queryResult")) + $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.encode(message.queryResult, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.outputAudio != null && Object.hasOwnProperty.call(message, "outputAudio")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.outputAudio); + if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) + $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.responseType != null && Object.hasOwnProperty.call(message, "responseType")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.responseType); + if (message.allowCancellation != null && Object.hasOwnProperty.call(message, "allowCancellation")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.allowCancellation); return writer; }; /** - * Encodes the specified GetIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetIntentRequest.verify|verify} messages. + * Encodes the specified DetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest} message GetIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse} message DetectIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + DetectIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetIntentRequest message from the specified reader or buffer. + * Decodes a DetectIntentResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.GetIntentRequest} GetIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse} DetectIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIntentRequest.decode = function decode(reader, length) { + DetectIntentResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.responseId = reader.string(); break; case 2: - message.languageCode = reader.string(); + message.queryResult = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.decode(reader, reader.uint32()); + break; + case 4: + message.outputAudio = reader.bytes(); + break; + case 5: + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.decode(reader, reader.uint32()); + break; + case 6: + message.responseType = reader.int32(); + break; + case 7: + message.allowCancellation = reader.bool(); break; default: reader.skipType(tag & 7); @@ -107169,118 +106398,205 @@ }; /** - * Decodes a GetIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a DetectIntentResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetIntentRequest} GetIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse} DetectIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIntentRequest.decodeDelimited = function decodeDelimited(reader) { + DetectIntentResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetIntentRequest message. + * Verifies a DetectIntentResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetIntentRequest.verify = function verify(message) { + DetectIntentResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; + if (message.responseId != null && message.hasOwnProperty("responseId")) + if (!$util.isString(message.responseId)) + return "responseId: string expected"; + if (message.queryResult != null && message.hasOwnProperty("queryResult")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.verify(message.queryResult); + if (error) + return "queryResult." + error; + } + if (message.outputAudio != null && message.hasOwnProperty("outputAudio")) + if (!(message.outputAudio && typeof message.outputAudio.length === "number" || $util.isString(message.outputAudio))) + return "outputAudio: buffer expected"; + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify(message.outputAudioConfig); + if (error) + return "outputAudioConfig." + error; + } + if (message.responseType != null && message.hasOwnProperty("responseType")) + switch (message.responseType) { + default: + return "responseType: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.allowCancellation != null && message.hasOwnProperty("allowCancellation")) + if (typeof message.allowCancellation !== "boolean") + return "allowCancellation: boolean expected"; return null; }; /** - * Creates a GetIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DetectIntentResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetIntentRequest} GetIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse} DetectIntentResponse */ - GetIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetIntentRequest) + DetectIntentResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetIntentRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse(); + if (object.responseId != null) + message.responseId = String(object.responseId); + if (object.queryResult != null) { + if (typeof object.queryResult !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.queryResult: object expected"); + message.queryResult = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.fromObject(object.queryResult); + } + if (object.outputAudio != null) + if (typeof object.outputAudio === "string") + $util.base64.decode(object.outputAudio, message.outputAudio = $util.newBuffer($util.base64.length(object.outputAudio)), 0); + else if (object.outputAudio.length) + message.outputAudio = object.outputAudio; + if (object.outputAudioConfig != null) { + if (typeof object.outputAudioConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.outputAudioConfig: object expected"); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.fromObject(object.outputAudioConfig); + } + switch (object.responseType) { + case "RESPONSE_TYPE_UNSPECIFIED": + case 0: + message.responseType = 0; + break; + case "PARTIAL": + case 1: + message.responseType = 1; + break; + case "FINAL": + case 2: + message.responseType = 2; + break; + } + if (object.allowCancellation != null) + message.allowCancellation = Boolean(object.allowCancellation); return message; }; /** - * Creates a plain object from a GetIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from a DetectIntentResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetIntentRequest} message GetIntentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse} message DetectIntentResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetIntentRequest.toObject = function toObject(message, options) { + DetectIntentResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.languageCode = ""; + object.responseId = ""; + object.queryResult = null; + if (options.bytes === String) + object.outputAudio = ""; + else { + object.outputAudio = []; + if (options.bytes !== Array) + object.outputAudio = $util.newBuffer(object.outputAudio); + } + object.outputAudioConfig = null; + object.responseType = options.enums === String ? "RESPONSE_TYPE_UNSPECIFIED" : 0; + object.allowCancellation = false; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; + if (message.responseId != null && message.hasOwnProperty("responseId")) + object.responseId = message.responseId; + if (message.queryResult != null && message.hasOwnProperty("queryResult")) + object.queryResult = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.toObject(message.queryResult, options); + if (message.outputAudio != null && message.hasOwnProperty("outputAudio")) + object.outputAudio = options.bytes === String ? $util.base64.encode(message.outputAudio, 0, message.outputAudio.length) : options.bytes === Array ? Array.prototype.slice.call(message.outputAudio) : message.outputAudio; + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) + object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.toObject(message.outputAudioConfig, options); + if (message.responseType != null && message.hasOwnProperty("responseType")) + object.responseType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType[message.responseType] : message.responseType; + if (message.allowCancellation != null && message.hasOwnProperty("allowCancellation")) + object.allowCancellation = message.allowCancellation; return object; }; /** - * Converts this GetIntentRequest to JSON. + * Converts this DetectIntentResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse * @instance * @returns {Object.} JSON object */ - GetIntentRequest.prototype.toJSON = function toJSON() { + DetectIntentResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetIntentRequest; + /** + * ResponseType enum. + * @name google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType + * @enum {number} + * @property {number} RESPONSE_TYPE_UNSPECIFIED=0 RESPONSE_TYPE_UNSPECIFIED value + * @property {number} PARTIAL=1 PARTIAL value + * @property {number} FINAL=2 FINAL value + */ + DetectIntentResponse.ResponseType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RESPONSE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PARTIAL"] = 1; + values[valuesById[2] = "FINAL"] = 2; + return values; + })(); + + return DetectIntentResponse; })(); - v3beta1.CreateIntentRequest = (function() { + v3beta1.StreamingDetectIntentRequest = (function() { /** - * Properties of a CreateIntentRequest. + * Properties of a StreamingDetectIntentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ICreateIntentRequest - * @property {string|null} [parent] CreateIntentRequest parent - * @property {google.cloud.dialogflow.cx.v3beta1.IIntent|null} [intent] CreateIntentRequest intent - * @property {string|null} [languageCode] CreateIntentRequest languageCode + * @interface IStreamingDetectIntentRequest + * @property {string|null} [session] StreamingDetectIntentRequest session + * @property {google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null} [queryParams] StreamingDetectIntentRequest queryParams + * @property {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null} [queryInput] StreamingDetectIntentRequest queryInput + * @property {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null} [outputAudioConfig] StreamingDetectIntentRequest outputAudioConfig + * @property {boolean|null} [enablePartialResponse] StreamingDetectIntentRequest enablePartialResponse */ /** - * Constructs a new CreateIntentRequest. + * Constructs a new StreamingDetectIntentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CreateIntentRequest. - * @implements ICreateIntentRequest + * @classdesc Represents a StreamingDetectIntentRequest. + * @implements IStreamingDetectIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest=} [properties] Properties to set */ - function CreateIntentRequest(properties) { + function StreamingDetectIntentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -107288,101 +106604,127 @@ } /** - * CreateIntentRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * StreamingDetectIntentRequest session. + * @member {string} session + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest * @instance */ - CreateIntentRequest.prototype.parent = ""; + StreamingDetectIntentRequest.prototype.session = ""; /** - * CreateIntentRequest intent. - * @member {google.cloud.dialogflow.cx.v3beta1.IIntent|null|undefined} intent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * StreamingDetectIntentRequest queryParams. + * @member {google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null|undefined} queryParams + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest * @instance */ - CreateIntentRequest.prototype.intent = null; + StreamingDetectIntentRequest.prototype.queryParams = null; /** - * CreateIntentRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * StreamingDetectIntentRequest queryInput. + * @member {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null|undefined} queryInput + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest * @instance */ - CreateIntentRequest.prototype.languageCode = ""; + StreamingDetectIntentRequest.prototype.queryInput = null; /** - * Creates a new CreateIntentRequest instance using the specified properties. + * StreamingDetectIntentRequest outputAudioConfig. + * @member {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null|undefined} outputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * @instance + */ + StreamingDetectIntentRequest.prototype.outputAudioConfig = null; + + /** + * StreamingDetectIntentRequest enablePartialResponse. + * @member {boolean} enablePartialResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * @instance + */ + StreamingDetectIntentRequest.prototype.enablePartialResponse = false; + + /** + * Creates a new StreamingDetectIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest} CreateIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest} StreamingDetectIntentRequest instance */ - CreateIntentRequest.create = function create(properties) { - return new CreateIntentRequest(properties); + StreamingDetectIntentRequest.create = function create(properties) { + return new StreamingDetectIntentRequest(properties); }; /** - * Encodes the specified CreateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest.verify|verify} messages. + * Encodes the specified StreamingDetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest} message CreateIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest} message StreamingDetectIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateIntentRequest.encode = function encode(message, writer) { + StreamingDetectIntentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) - $root.google.cloud.dialogflow.cx.v3beta1.Intent.encode(message.intent, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); + if (message.session != null && Object.hasOwnProperty.call(message, "session")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.session); + if (message.queryParams != null && Object.hasOwnProperty.call(message, "queryParams")) + $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.encode(message.queryParams, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.queryInput != null && Object.hasOwnProperty.call(message, "queryInput")) + $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.encode(message.queryInput, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) + $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.enablePartialResponse != null && Object.hasOwnProperty.call(message, "enablePartialResponse")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.enablePartialResponse); return writer; }; /** - * Encodes the specified CreateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest.verify|verify} messages. + * Encodes the specified StreamingDetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest} message CreateIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest} message StreamingDetectIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + StreamingDetectIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateIntentRequest message from the specified reader or buffer. + * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest} CreateIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest} StreamingDetectIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateIntentRequest.decode = function decode(reader, length) { + StreamingDetectIntentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.session = reader.string(); break; case 2: - message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.decode(reader, reader.uint32()); + message.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.decode(reader, reader.uint32()); break; case 3: - message.languageCode = reader.string(); + message.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.decode(reader, reader.uint32()); + break; + case 4: + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.decode(reader, reader.uint32()); + break; + case 5: + message.enablePartialResponse = reader.bool(); break; default: reader.skipType(tag & 7); @@ -107393,131 +106735,156 @@ }; /** - * Decodes a CreateIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest} CreateIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest} StreamingDetectIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateIntentRequest.decodeDelimited = function decodeDelimited(reader) { + StreamingDetectIntentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateIntentRequest message. + * Verifies a StreamingDetectIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateIntentRequest.verify = function verify(message) { + StreamingDetectIntentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.intent != null && message.hasOwnProperty("intent")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.verify(message.intent); + if (message.session != null && message.hasOwnProperty("session")) + if (!$util.isString(message.session)) + return "session: string expected"; + if (message.queryParams != null && message.hasOwnProperty("queryParams")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify(message.queryParams); if (error) - return "intent." + error; + return "queryParams." + error; } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; + if (message.queryInput != null && message.hasOwnProperty("queryInput")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.verify(message.queryInput); + if (error) + return "queryInput." + error; + } + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify(message.outputAudioConfig); + if (error) + return "outputAudioConfig." + error; + } + if (message.enablePartialResponse != null && message.hasOwnProperty("enablePartialResponse")) + if (typeof message.enablePartialResponse !== "boolean") + return "enablePartialResponse: boolean expected"; return null; }; /** - * Creates a CreateIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingDetectIntentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest} CreateIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest} StreamingDetectIntentRequest */ - CreateIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest) + StreamingDetectIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.intent != null) { - if (typeof object.intent !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest.intent: object expected"); - message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.fromObject(object.intent); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest(); + if (object.session != null) + message.session = String(object.session); + if (object.queryParams != null) { + if (typeof object.queryParams !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.queryParams: object expected"); + message.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.fromObject(object.queryParams); } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); + if (object.queryInput != null) { + if (typeof object.queryInput !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.queryInput: object expected"); + message.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.fromObject(object.queryInput); + } + if (object.outputAudioConfig != null) { + if (typeof object.outputAudioConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.outputAudioConfig: object expected"); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.fromObject(object.outputAudioConfig); + } + if (object.enablePartialResponse != null) + message.enablePartialResponse = Boolean(object.enablePartialResponse); return message; }; /** - * Creates a plain object from a CreateIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from a StreamingDetectIntentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest} message CreateIntentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest} message StreamingDetectIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateIntentRequest.toObject = function toObject(message, options) { + StreamingDetectIntentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.intent = null; - object.languageCode = ""; + object.session = ""; + object.queryParams = null; + object.queryInput = null; + object.outputAudioConfig = null; + object.enablePartialResponse = false; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.intent != null && message.hasOwnProperty("intent")) - object.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.toObject(message.intent, options); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; + if (message.session != null && message.hasOwnProperty("session")) + object.session = message.session; + if (message.queryParams != null && message.hasOwnProperty("queryParams")) + object.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.toObject(message.queryParams, options); + if (message.queryInput != null && message.hasOwnProperty("queryInput")) + object.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.toObject(message.queryInput, options); + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) + object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.toObject(message.outputAudioConfig, options); + if (message.enablePartialResponse != null && message.hasOwnProperty("enablePartialResponse")) + object.enablePartialResponse = message.enablePartialResponse; return object; }; /** - * Converts this CreateIntentRequest to JSON. + * Converts this StreamingDetectIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest * @instance * @returns {Object.} JSON object */ - CreateIntentRequest.prototype.toJSON = function toJSON() { + StreamingDetectIntentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateIntentRequest; + return StreamingDetectIntentRequest; })(); - v3beta1.UpdateIntentRequest = (function() { + v3beta1.StreamingDetectIntentResponse = (function() { /** - * Properties of an UpdateIntentRequest. + * Properties of a StreamingDetectIntentResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IUpdateIntentRequest - * @property {google.cloud.dialogflow.cx.v3beta1.IIntent|null} [intent] UpdateIntentRequest intent - * @property {string|null} [languageCode] UpdateIntentRequest languageCode - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateIntentRequest updateMask + * @interface IStreamingDetectIntentResponse + * @property {google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult|null} [recognitionResult] StreamingDetectIntentResponse recognitionResult + * @property {google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse|null} [detectIntentResponse] StreamingDetectIntentResponse detectIntentResponse */ /** - * Constructs a new UpdateIntentRequest. + * Constructs a new StreamingDetectIntentResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an UpdateIntentRequest. - * @implements IUpdateIntentRequest + * @classdesc Represents a StreamingDetectIntentResponse. + * @implements IStreamingDetectIntentResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse=} [properties] Properties to set */ - function UpdateIntentRequest(properties) { + function StreamingDetectIntentResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -107525,101 +106892,102 @@ } /** - * UpdateIntentRequest intent. - * @member {google.cloud.dialogflow.cx.v3beta1.IIntent|null|undefined} intent - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * StreamingDetectIntentResponse recognitionResult. + * @member {google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult|null|undefined} recognitionResult + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse * @instance */ - UpdateIntentRequest.prototype.intent = null; + StreamingDetectIntentResponse.prototype.recognitionResult = null; /** - * UpdateIntentRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * StreamingDetectIntentResponse detectIntentResponse. + * @member {google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse|null|undefined} detectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse * @instance */ - UpdateIntentRequest.prototype.languageCode = ""; + StreamingDetectIntentResponse.prototype.detectIntentResponse = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * UpdateIntentRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * StreamingDetectIntentResponse response. + * @member {"recognitionResult"|"detectIntentResponse"|undefined} response + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse * @instance */ - UpdateIntentRequest.prototype.updateMask = null; + Object.defineProperty(StreamingDetectIntentResponse.prototype, "response", { + get: $util.oneOfGetter($oneOfFields = ["recognitionResult", "detectIntentResponse"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new UpdateIntentRequest instance using the specified properties. + * Creates a new StreamingDetectIntentResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest} UpdateIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse} StreamingDetectIntentResponse instance */ - UpdateIntentRequest.create = function create(properties) { - return new UpdateIntentRequest(properties); + StreamingDetectIntentResponse.create = function create(properties) { + return new StreamingDetectIntentResponse(properties); }; /** - * Encodes the specified UpdateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest.verify|verify} messages. + * Encodes the specified StreamingDetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest} message UpdateIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse} message StreamingDetectIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIntentRequest.encode = function encode(message, writer) { + StreamingDetectIntentResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) - $root.google.cloud.dialogflow.cx.v3beta1.Intent.encode(message.intent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.recognitionResult != null && Object.hasOwnProperty.call(message, "recognitionResult")) + $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.encode(message.recognitionResult, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.detectIntentResponse != null && Object.hasOwnProperty.call(message, "detectIntentResponse")) + $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.encode(message.detectIntentResponse, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest.verify|verify} messages. + * Encodes the specified StreamingDetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest} message UpdateIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse} message StreamingDetectIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + StreamingDetectIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateIntentRequest message from the specified reader or buffer. + * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest} UpdateIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse} StreamingDetectIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIntentRequest.decode = function decode(reader, length) { + StreamingDetectIntentResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.decode(reader, reader.uint32()); + message.recognitionResult = $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.decode(reader, reader.uint32()); break; case 2: - message.languageCode = reader.string(); - break; - case 3: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.detectIntentResponse = $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -107630,134 +106998,145 @@ }; /** - * Decodes an UpdateIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest} UpdateIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse} StreamingDetectIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIntentRequest.decodeDelimited = function decodeDelimited(reader) { + StreamingDetectIntentResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateIntentRequest message. + * Verifies a StreamingDetectIntentResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateIntentRequest.verify = function verify(message) { + StreamingDetectIntentResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.intent != null && message.hasOwnProperty("intent")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.verify(message.intent); - if (error) - return "intent." + error; - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; + var properties = {}; + if (message.recognitionResult != null && message.hasOwnProperty("recognitionResult")) { + properties.response = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.verify(message.recognitionResult); + if (error) + return "recognitionResult." + error; + } + } + if (message.detectIntentResponse != null && message.hasOwnProperty("detectIntentResponse")) { + if (properties.response === 1) + return "response: multiple values"; + properties.response = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.verify(message.detectIntentResponse); + if (error) + return "detectIntentResponse." + error; + } } return null; }; /** - * Creates an UpdateIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingDetectIntentResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest} UpdateIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse} StreamingDetectIntentResponse */ - UpdateIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest) + StreamingDetectIntentResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest(); - if (object.intent != null) { - if (typeof object.intent !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest.intent: object expected"); - message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.fromObject(object.intent); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse(); + if (object.recognitionResult != null) { + if (typeof object.recognitionResult !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse.recognitionResult: object expected"); + message.recognitionResult = $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.fromObject(object.recognitionResult); } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + if (object.detectIntentResponse != null) { + if (typeof object.detectIntentResponse !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse.detectIntentResponse: object expected"); + message.detectIntentResponse = $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.fromObject(object.detectIntentResponse); } return message; }; /** - * Creates a plain object from an UpdateIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from a StreamingDetectIntentResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest} message UpdateIntentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse} message StreamingDetectIntentResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateIntentRequest.toObject = function toObject(message, options) { + StreamingDetectIntentResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.intent = null; - object.languageCode = ""; - object.updateMask = null; + if (message.recognitionResult != null && message.hasOwnProperty("recognitionResult")) { + object.recognitionResult = $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.toObject(message.recognitionResult, options); + if (options.oneofs) + object.response = "recognitionResult"; + } + if (message.detectIntentResponse != null && message.hasOwnProperty("detectIntentResponse")) { + object.detectIntentResponse = $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.toObject(message.detectIntentResponse, options); + if (options.oneofs) + object.response = "detectIntentResponse"; } - if (message.intent != null && message.hasOwnProperty("intent")) - object.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.toObject(message.intent, options); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this UpdateIntentRequest to JSON. + * Converts this StreamingDetectIntentResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse * @instance * @returns {Object.} JSON object */ - UpdateIntentRequest.prototype.toJSON = function toJSON() { + StreamingDetectIntentResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateIntentRequest; + return StreamingDetectIntentResponse; })(); - v3beta1.DeleteIntentRequest = (function() { + v3beta1.StreamingRecognitionResult = (function() { /** - * Properties of a DeleteIntentRequest. + * Properties of a StreamingRecognitionResult. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDeleteIntentRequest - * @property {string|null} [name] DeleteIntentRequest name + * @interface IStreamingRecognitionResult + * @property {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType|null} [messageType] StreamingRecognitionResult messageType + * @property {string|null} [transcript] StreamingRecognitionResult transcript + * @property {boolean|null} [isFinal] StreamingRecognitionResult isFinal + * @property {number|null} [confidence] StreamingRecognitionResult confidence + * @property {number|null} [stability] StreamingRecognitionResult stability + * @property {Array.|null} [speechWordInfo] StreamingRecognitionResult speechWordInfo + * @property {google.protobuf.IDuration|null} [speechEndOffset] StreamingRecognitionResult speechEndOffset + * @property {string|null} [languageCode] StreamingRecognitionResult languageCode */ /** - * Constructs a new DeleteIntentRequest. + * Constructs a new StreamingRecognitionResult. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DeleteIntentRequest. - * @implements IDeleteIntentRequest + * @classdesc Represents a StreamingRecognitionResult. + * @implements IStreamingRecognitionResult * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult=} [properties] Properties to set */ - function DeleteIntentRequest(properties) { + function StreamingRecognitionResult(properties) { + this.speechWordInfo = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -107765,75 +107144,169 @@ } /** - * DeleteIntentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * StreamingRecognitionResult messageType. + * @member {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType} messageType + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult * @instance */ - DeleteIntentRequest.prototype.name = ""; + StreamingRecognitionResult.prototype.messageType = 0; /** - * Creates a new DeleteIntentRequest instance using the specified properties. + * StreamingRecognitionResult transcript. + * @member {string} transcript + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @instance + */ + StreamingRecognitionResult.prototype.transcript = ""; + + /** + * StreamingRecognitionResult isFinal. + * @member {boolean} isFinal + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @instance + */ + StreamingRecognitionResult.prototype.isFinal = false; + + /** + * StreamingRecognitionResult confidence. + * @member {number} confidence + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @instance + */ + StreamingRecognitionResult.prototype.confidence = 0; + + /** + * StreamingRecognitionResult stability. + * @member {number} stability + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @instance + */ + StreamingRecognitionResult.prototype.stability = 0; + + /** + * StreamingRecognitionResult speechWordInfo. + * @member {Array.} speechWordInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @instance + */ + StreamingRecognitionResult.prototype.speechWordInfo = $util.emptyArray; + + /** + * StreamingRecognitionResult speechEndOffset. + * @member {google.protobuf.IDuration|null|undefined} speechEndOffset + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @instance + */ + StreamingRecognitionResult.prototype.speechEndOffset = null; + + /** + * StreamingRecognitionResult languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @instance + */ + StreamingRecognitionResult.prototype.languageCode = ""; + + /** + * Creates a new StreamingRecognitionResult instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest} DeleteIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult} StreamingRecognitionResult instance */ - DeleteIntentRequest.create = function create(properties) { - return new DeleteIntentRequest(properties); + StreamingRecognitionResult.create = function create(properties) { + return new StreamingRecognitionResult(properties); }; /** - * Encodes the specified DeleteIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest.verify|verify} messages. + * Encodes the specified StreamingRecognitionResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest} message DeleteIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult} message StreamingRecognitionResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteIntentRequest.encode = function encode(message, writer) { + StreamingRecognitionResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.messageType != null && Object.hasOwnProperty.call(message, "messageType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.messageType); + if (message.transcript != null && Object.hasOwnProperty.call(message, "transcript")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.transcript); + if (message.isFinal != null && Object.hasOwnProperty.call(message, "isFinal")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isFinal); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + writer.uint32(/* id 4, wireType 5 =*/37).float(message.confidence); + if (message.stability != null && Object.hasOwnProperty.call(message, "stability")) + writer.uint32(/* id 6, wireType 5 =*/53).float(message.stability); + if (message.speechWordInfo != null && message.speechWordInfo.length) + for (var i = 0; i < message.speechWordInfo.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.encode(message.speechWordInfo[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.speechEndOffset != null && Object.hasOwnProperty.call(message, "speechEndOffset")) + $root.google.protobuf.Duration.encode(message.speechEndOffset, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.languageCode); return writer; }; /** - * Encodes the specified DeleteIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest.verify|verify} messages. + * Encodes the specified StreamingRecognitionResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest} message DeleteIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult} message StreamingRecognitionResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + StreamingRecognitionResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteIntentRequest message from the specified reader or buffer. + * Decodes a StreamingRecognitionResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest} DeleteIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult} StreamingRecognitionResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteIntentRequest.decode = function decode(reader, length) { + StreamingRecognitionResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.messageType = reader.int32(); + break; + case 2: + message.transcript = reader.string(); + break; + case 3: + message.isFinal = reader.bool(); + break; + case 4: + message.confidence = reader.float(); + break; + case 6: + message.stability = reader.float(); + break; + case 7: + if (!(message.speechWordInfo && message.speechWordInfo.length)) + message.speechWordInfo = []; + message.speechWordInfo.push($root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.decode(reader, reader.uint32())); + break; + case 8: + message.speechEndOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 10: + message.languageCode = reader.string(); break; default: reader.skipType(tag & 7); @@ -107844,408 +107317,452 @@ }; /** - * Decodes a DeleteIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a StreamingRecognitionResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest} DeleteIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult} StreamingRecognitionResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteIntentRequest.decodeDelimited = function decodeDelimited(reader) { + StreamingRecognitionResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteIntentRequest message. + * Verifies a StreamingRecognitionResult message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteIntentRequest.verify = function verify(message) { + StreamingRecognitionResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.messageType != null && message.hasOwnProperty("messageType")) + switch (message.messageType) { + default: + return "messageType: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.transcript != null && message.hasOwnProperty("transcript")) + if (!$util.isString(message.transcript)) + return "transcript: string expected"; + if (message.isFinal != null && message.hasOwnProperty("isFinal")) + if (typeof message.isFinal !== "boolean") + return "isFinal: boolean expected"; + if (message.confidence != null && message.hasOwnProperty("confidence")) + if (typeof message.confidence !== "number") + return "confidence: number expected"; + if (message.stability != null && message.hasOwnProperty("stability")) + if (typeof message.stability !== "number") + return "stability: number expected"; + if (message.speechWordInfo != null && message.hasOwnProperty("speechWordInfo")) { + if (!Array.isArray(message.speechWordInfo)) + return "speechWordInfo: array expected"; + for (var i = 0; i < message.speechWordInfo.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.verify(message.speechWordInfo[i]); + if (error) + return "speechWordInfo." + error; + } + } + if (message.speechEndOffset != null && message.hasOwnProperty("speechEndOffset")) { + var error = $root.google.protobuf.Duration.verify(message.speechEndOffset); + if (error) + return "speechEndOffset." + error; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates a DeleteIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingRecognitionResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest} DeleteIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult} StreamingRecognitionResult */ - DeleteIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest) + StreamingRecognitionResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult(); + switch (object.messageType) { + case "MESSAGE_TYPE_UNSPECIFIED": + case 0: + message.messageType = 0; + break; + case "TRANSCRIPT": + case 1: + message.messageType = 1; + break; + case "END_OF_SINGLE_UTTERANCE": + case 2: + message.messageType = 2; + break; + } + if (object.transcript != null) + message.transcript = String(object.transcript); + if (object.isFinal != null) + message.isFinal = Boolean(object.isFinal); + if (object.confidence != null) + message.confidence = Number(object.confidence); + if (object.stability != null) + message.stability = Number(object.stability); + if (object.speechWordInfo) { + if (!Array.isArray(object.speechWordInfo)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.speechWordInfo: array expected"); + message.speechWordInfo = []; + for (var i = 0; i < object.speechWordInfo.length; ++i) { + if (typeof object.speechWordInfo[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.speechWordInfo: object expected"); + message.speechWordInfo[i] = $root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.fromObject(object.speechWordInfo[i]); + } + } + if (object.speechEndOffset != null) { + if (typeof object.speechEndOffset !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.speechEndOffset: object expected"); + message.speechEndOffset = $root.google.protobuf.Duration.fromObject(object.speechEndOffset); + } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a DeleteIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from a StreamingRecognitionResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest} message DeleteIntentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult} message StreamingRecognitionResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteIntentRequest.toObject = function toObject(message, options) { + StreamingRecognitionResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.arrays || options.defaults) + object.speechWordInfo = []; + if (options.defaults) { + object.messageType = options.enums === String ? "MESSAGE_TYPE_UNSPECIFIED" : 0; + object.transcript = ""; + object.isFinal = false; + object.confidence = 0; + object.stability = 0; + object.speechEndOffset = null; + object.languageCode = ""; + } + if (message.messageType != null && message.hasOwnProperty("messageType")) + object.messageType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType[message.messageType] : message.messageType; + if (message.transcript != null && message.hasOwnProperty("transcript")) + object.transcript = message.transcript; + if (message.isFinal != null && message.hasOwnProperty("isFinal")) + object.isFinal = message.isFinal; + if (message.confidence != null && message.hasOwnProperty("confidence")) + object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; + if (message.stability != null && message.hasOwnProperty("stability")) + object.stability = options.json && !isFinite(message.stability) ? String(message.stability) : message.stability; + if (message.speechWordInfo && message.speechWordInfo.length) { + object.speechWordInfo = []; + for (var j = 0; j < message.speechWordInfo.length; ++j) + object.speechWordInfo[j] = $root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.toObject(message.speechWordInfo[j], options); + } + if (message.speechEndOffset != null && message.hasOwnProperty("speechEndOffset")) + object.speechEndOffset = $root.google.protobuf.Duration.toObject(message.speechEndOffset, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this DeleteIntentRequest to JSON. + * Converts this StreamingRecognitionResult to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult * @instance * @returns {Object.} JSON object */ - DeleteIntentRequest.prototype.toJSON = function toJSON() { + StreamingRecognitionResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteIntentRequest; - })(); - - /** - * IntentView enum. - * @name google.cloud.dialogflow.cx.v3beta1.IntentView - * @enum {number} - * @property {number} INTENT_VIEW_UNSPECIFIED=0 INTENT_VIEW_UNSPECIFIED value - * @property {number} INTENT_VIEW_PARTIAL=1 INTENT_VIEW_PARTIAL value - * @property {number} INTENT_VIEW_FULL=2 INTENT_VIEW_FULL value - */ - v3beta1.IntentView = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "INTENT_VIEW_UNSPECIFIED"] = 0; - values[valuesById[1] = "INTENT_VIEW_PARTIAL"] = 1; - values[valuesById[2] = "INTENT_VIEW_FULL"] = 2; - return values; - })(); - - v3beta1.Sessions = (function() { - - /** - * Constructs a new Sessions service. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a Sessions - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Sessions(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Sessions.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Sessions; - - /** - * Creates new Sessions service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {Sessions} RPC service. Useful where requests and/or responses are streamed. - */ - Sessions.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#detectIntent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions - * @typedef DetectIntentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse} [response] DetectIntentResponse - */ - - /** - * Calls DetectIntent. - * @function detectIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest} request DetectIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Sessions.DetectIntentCallback} callback Node-style callback called with the error, if any, and DetectIntentResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Sessions.prototype.detectIntent = function detectIntent(request, callback) { - return this.rpcCall(detectIntent, $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse, request, callback); - }, "name", { value: "DetectIntent" }); - - /** - * Calls DetectIntent. - * @function detectIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest} request DetectIntentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#streamingDetectIntent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions - * @typedef StreamingDetectIntentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse} [response] StreamingDetectIntentResponse - */ - - /** - * Calls StreamingDetectIntent. - * @function streamingDetectIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest} request StreamingDetectIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Sessions.StreamingDetectIntentCallback} callback Node-style callback called with the error, if any, and StreamingDetectIntentResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Sessions.prototype.streamingDetectIntent = function streamingDetectIntent(request, callback) { - return this.rpcCall(streamingDetectIntent, $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse, request, callback); - }, "name", { value: "StreamingDetectIntent" }); - /** - * Calls StreamingDetectIntent. - * @function streamingDetectIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest} request StreamingDetectIntentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * MessageType enum. + * @name google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType + * @enum {number} + * @property {number} MESSAGE_TYPE_UNSPECIFIED=0 MESSAGE_TYPE_UNSPECIFIED value + * @property {number} TRANSCRIPT=1 TRANSCRIPT value + * @property {number} END_OF_SINGLE_UTTERANCE=2 END_OF_SINGLE_UTTERANCE value */ + StreamingRecognitionResult.MessageType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MESSAGE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "TRANSCRIPT"] = 1; + values[valuesById[2] = "END_OF_SINGLE_UTTERANCE"] = 2; + return values; + })(); + + return StreamingRecognitionResult; + })(); + + v3beta1.QueryParameters = (function() { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#matchIntent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions - * @typedef MatchIntentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse} [response] MatchIntentResponse + * Properties of a QueryParameters. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IQueryParameters + * @property {string|null} [timeZone] QueryParameters timeZone + * @property {google.type.ILatLng|null} [geoLocation] QueryParameters geoLocation + * @property {Array.|null} [sessionEntityTypes] QueryParameters sessionEntityTypes + * @property {google.protobuf.IStruct|null} [payload] QueryParameters payload + * @property {google.protobuf.IStruct|null} [parameters] QueryParameters parameters + * @property {string|null} [currentPage] QueryParameters currentPage + * @property {boolean|null} [disableWebhook] QueryParameters disableWebhook + * @property {boolean|null} [analyzeQueryTextSentiment] QueryParameters analyzeQueryTextSentiment + * @property {Object.|null} [webhookHeaders] QueryParameters webhookHeaders + * @property {Array.|null} [flowVersions] QueryParameters flowVersions */ /** - * Calls MatchIntent. - * @function matchIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest} request MatchIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntentCallback} callback Node-style callback called with the error, if any, and MatchIntentResponse - * @returns {undefined} - * @variation 1 + * Constructs a new QueryParameters. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a QueryParameters. + * @implements IQueryParameters + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IQueryParameters=} [properties] Properties to set */ - Object.defineProperty(Sessions.prototype.matchIntent = function matchIntent(request, callback) { - return this.rpcCall(matchIntent, $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse, request, callback); - }, "name", { value: "MatchIntent" }); + function QueryParameters(properties) { + this.sessionEntityTypes = []; + this.webhookHeaders = {}; + this.flowVersions = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls MatchIntent. - * @function matchIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions + * QueryParameters timeZone. + * @member {string} timeZone + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest} request MatchIntentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + QueryParameters.prototype.timeZone = ""; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#fulfillIntent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions - * @typedef FulfillIntentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse} [response] FulfillIntentResponse + * QueryParameters geoLocation. + * @member {google.type.ILatLng|null|undefined} geoLocation + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @instance */ + QueryParameters.prototype.geoLocation = null; /** - * Calls FulfillIntent. - * @function fulfillIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions + * QueryParameters sessionEntityTypes. + * @member {Array.} sessionEntityTypes + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest} request FulfillIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Sessions.FulfillIntentCallback} callback Node-style callback called with the error, if any, and FulfillIntentResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(Sessions.prototype.fulfillIntent = function fulfillIntent(request, callback) { - return this.rpcCall(fulfillIntent, $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse, request, callback); - }, "name", { value: "FulfillIntent" }); + QueryParameters.prototype.sessionEntityTypes = $util.emptyArray; /** - * Calls FulfillIntent. - * @function fulfillIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions + * QueryParameters payload. + * @member {google.protobuf.IStruct|null|undefined} payload + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest} request FulfillIntentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ - - return Sessions; - })(); - - v3beta1.DetectIntentRequest = (function() { + QueryParameters.prototype.payload = null; /** - * Properties of a DetectIntentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDetectIntentRequest - * @property {string|null} [session] DetectIntentRequest session - * @property {google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null} [queryParams] DetectIntentRequest queryParams - * @property {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null} [queryInput] DetectIntentRequest queryInput - * @property {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null} [outputAudioConfig] DetectIntentRequest outputAudioConfig + * QueryParameters parameters. + * @member {google.protobuf.IStruct|null|undefined} parameters + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @instance */ + QueryParameters.prototype.parameters = null; /** - * Constructs a new DetectIntentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DetectIntentRequest. - * @implements IDetectIntentRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest=} [properties] Properties to set + * QueryParameters currentPage. + * @member {string} currentPage + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @instance */ - function DetectIntentRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + QueryParameters.prototype.currentPage = ""; /** - * DetectIntentRequest session. - * @member {string} session - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * QueryParameters disableWebhook. + * @member {boolean} disableWebhook + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters * @instance */ - DetectIntentRequest.prototype.session = ""; + QueryParameters.prototype.disableWebhook = false; /** - * DetectIntentRequest queryParams. - * @member {google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null|undefined} queryParams - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * QueryParameters analyzeQueryTextSentiment. + * @member {boolean} analyzeQueryTextSentiment + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters * @instance */ - DetectIntentRequest.prototype.queryParams = null; + QueryParameters.prototype.analyzeQueryTextSentiment = false; /** - * DetectIntentRequest queryInput. - * @member {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null|undefined} queryInput - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * QueryParameters webhookHeaders. + * @member {Object.} webhookHeaders + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters * @instance */ - DetectIntentRequest.prototype.queryInput = null; + QueryParameters.prototype.webhookHeaders = $util.emptyObject; /** - * DetectIntentRequest outputAudioConfig. - * @member {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null|undefined} outputAudioConfig - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * QueryParameters flowVersions. + * @member {Array.} flowVersions + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters * @instance */ - DetectIntentRequest.prototype.outputAudioConfig = null; + QueryParameters.prototype.flowVersions = $util.emptyArray; /** - * Creates a new DetectIntentRequest instance using the specified properties. + * Creates a new QueryParameters instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest} DetectIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IQueryParameters=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.QueryParameters} QueryParameters instance */ - DetectIntentRequest.create = function create(properties) { - return new DetectIntentRequest(properties); + QueryParameters.create = function create(properties) { + return new QueryParameters(properties); }; /** - * Encodes the specified DetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.verify|verify} messages. + * Encodes the specified QueryParameters message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest} message DetectIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IQueryParameters} message QueryParameters message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DetectIntentRequest.encode = function encode(message, writer) { + QueryParameters.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.session != null && Object.hasOwnProperty.call(message, "session")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.session); - if (message.queryParams != null && Object.hasOwnProperty.call(message, "queryParams")) - $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.encode(message.queryParams, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.queryInput != null && Object.hasOwnProperty.call(message, "queryInput")) - $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.encode(message.queryInput, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) - $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.timeZone); + if (message.geoLocation != null && Object.hasOwnProperty.call(message, "geoLocation")) + $root.google.type.LatLng.encode(message.geoLocation, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.sessionEntityTypes != null && message.sessionEntityTypes.length) + for (var i = 0; i < message.sessionEntityTypes.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.encode(message.sessionEntityTypes[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) + $root.google.protobuf.Struct.encode(message.payload, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + $root.google.protobuf.Struct.encode(message.parameters, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.currentPage); + if (message.disableWebhook != null && Object.hasOwnProperty.call(message, "disableWebhook")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.disableWebhook); + if (message.analyzeQueryTextSentiment != null && Object.hasOwnProperty.call(message, "analyzeQueryTextSentiment")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.analyzeQueryTextSentiment); + if (message.webhookHeaders != null && Object.hasOwnProperty.call(message, "webhookHeaders")) + for (var keys = Object.keys(message.webhookHeaders), i = 0; i < keys.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.webhookHeaders[keys[i]]).ldelim(); + if (message.flowVersions != null && message.flowVersions.length) + for (var i = 0; i < message.flowVersions.length; ++i) + writer.uint32(/* id 14, wireType 2 =*/114).string(message.flowVersions[i]); return writer; }; /** - * Encodes the specified DetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.verify|verify} messages. + * Encodes the specified QueryParameters message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest} message DetectIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IQueryParameters} message QueryParameters message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DetectIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryParameters.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DetectIntentRequest message from the specified reader or buffer. + * Decodes a QueryParameters message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest} DetectIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.QueryParameters} QueryParameters * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DetectIntentRequest.decode = function decode(reader, length) { + QueryParameters.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.session = reader.string(); + message.timeZone = reader.string(); break; case 2: - message.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.decode(reader, reader.uint32()); + message.geoLocation = $root.google.type.LatLng.decode(reader, reader.uint32()); break; case 3: - message.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.decode(reader, reader.uint32()); + if (!(message.sessionEntityTypes && message.sessionEntityTypes.length)) + message.sessionEntityTypes = []; + message.sessionEntityTypes.push($root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.decode(reader, reader.uint32())); break; case 4: - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.decode(reader, reader.uint32()); + message.payload = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 5: + message.parameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 6: + message.currentPage = reader.string(); + break; + case 7: + message.disableWebhook = reader.bool(); + break; + case 8: + message.analyzeQueryTextSentiment = reader.bool(); + break; + case 10: + if (message.webhookHeaders === $util.emptyObject) + message.webhookHeaders = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.webhookHeaders[key] = value; + break; + case 14: + if (!(message.flowVersions && message.flowVersions.length)) + message.flowVersions = []; + message.flowVersions.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -108256,152 +107773,246 @@ }; /** - * Decodes a DetectIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryParameters message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest} DetectIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.QueryParameters} QueryParameters * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DetectIntentRequest.decodeDelimited = function decodeDelimited(reader) { + QueryParameters.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DetectIntentRequest message. + * Verifies a QueryParameters message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DetectIntentRequest.verify = function verify(message) { + QueryParameters.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.session != null && message.hasOwnProperty("session")) - if (!$util.isString(message.session)) - return "session: string expected"; - if (message.queryParams != null && message.hasOwnProperty("queryParams")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify(message.queryParams); + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + if (!$util.isString(message.timeZone)) + return "timeZone: string expected"; + if (message.geoLocation != null && message.hasOwnProperty("geoLocation")) { + var error = $root.google.type.LatLng.verify(message.geoLocation); if (error) - return "queryParams." + error; + return "geoLocation." + error; } - if (message.queryInput != null && message.hasOwnProperty("queryInput")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.verify(message.queryInput); + if (message.sessionEntityTypes != null && message.hasOwnProperty("sessionEntityTypes")) { + if (!Array.isArray(message.sessionEntityTypes)) + return "sessionEntityTypes: array expected"; + for (var i = 0; i < message.sessionEntityTypes.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify(message.sessionEntityTypes[i]); + if (error) + return "sessionEntityTypes." + error; + } + } + if (message.payload != null && message.hasOwnProperty("payload")) { + var error = $root.google.protobuf.Struct.verify(message.payload); if (error) - return "queryInput." + error; + return "payload." + error; } - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify(message.outputAudioConfig); + if (message.parameters != null && message.hasOwnProperty("parameters")) { + var error = $root.google.protobuf.Struct.verify(message.parameters); if (error) - return "outputAudioConfig." + error; + return "parameters." + error; + } + if (message.currentPage != null && message.hasOwnProperty("currentPage")) + if (!$util.isString(message.currentPage)) + return "currentPage: string expected"; + if (message.disableWebhook != null && message.hasOwnProperty("disableWebhook")) + if (typeof message.disableWebhook !== "boolean") + return "disableWebhook: boolean expected"; + if (message.analyzeQueryTextSentiment != null && message.hasOwnProperty("analyzeQueryTextSentiment")) + if (typeof message.analyzeQueryTextSentiment !== "boolean") + return "analyzeQueryTextSentiment: boolean expected"; + if (message.webhookHeaders != null && message.hasOwnProperty("webhookHeaders")) { + if (!$util.isObject(message.webhookHeaders)) + return "webhookHeaders: object expected"; + var key = Object.keys(message.webhookHeaders); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.webhookHeaders[key[i]])) + return "webhookHeaders: string{k:string} expected"; + } + if (message.flowVersions != null && message.hasOwnProperty("flowVersions")) { + if (!Array.isArray(message.flowVersions)) + return "flowVersions: array expected"; + for (var i = 0; i < message.flowVersions.length; ++i) + if (!$util.isString(message.flowVersions[i])) + return "flowVersions: string[] expected"; } return null; }; /** - * Creates a DetectIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryParameters message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest} DetectIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.QueryParameters} QueryParameters */ - DetectIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest) + QueryParameters.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest(); - if (object.session != null) - message.session = String(object.session); - if (object.queryParams != null) { - if (typeof object.queryParams !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.queryParams: object expected"); - message.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.fromObject(object.queryParams); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters(); + if (object.timeZone != null) + message.timeZone = String(object.timeZone); + if (object.geoLocation != null) { + if (typeof object.geoLocation !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryParameters.geoLocation: object expected"); + message.geoLocation = $root.google.type.LatLng.fromObject(object.geoLocation); } - if (object.queryInput != null) { - if (typeof object.queryInput !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.queryInput: object expected"); - message.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.fromObject(object.queryInput); + if (object.sessionEntityTypes) { + if (!Array.isArray(object.sessionEntityTypes)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryParameters.sessionEntityTypes: array expected"); + message.sessionEntityTypes = []; + for (var i = 0; i < object.sessionEntityTypes.length; ++i) { + if (typeof object.sessionEntityTypes[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryParameters.sessionEntityTypes: object expected"); + message.sessionEntityTypes[i] = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.fromObject(object.sessionEntityTypes[i]); + } } - if (object.outputAudioConfig != null) { - if (typeof object.outputAudioConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.outputAudioConfig: object expected"); - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.fromObject(object.outputAudioConfig); + if (object.payload != null) { + if (typeof object.payload !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryParameters.payload: object expected"); + message.payload = $root.google.protobuf.Struct.fromObject(object.payload); + } + if (object.parameters != null) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryParameters.parameters: object expected"); + message.parameters = $root.google.protobuf.Struct.fromObject(object.parameters); + } + if (object.currentPage != null) + message.currentPage = String(object.currentPage); + if (object.disableWebhook != null) + message.disableWebhook = Boolean(object.disableWebhook); + if (object.analyzeQueryTextSentiment != null) + message.analyzeQueryTextSentiment = Boolean(object.analyzeQueryTextSentiment); + if (object.webhookHeaders) { + if (typeof object.webhookHeaders !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryParameters.webhookHeaders: object expected"); + message.webhookHeaders = {}; + for (var keys = Object.keys(object.webhookHeaders), i = 0; i < keys.length; ++i) + message.webhookHeaders[keys[i]] = String(object.webhookHeaders[keys[i]]); + } + if (object.flowVersions) { + if (!Array.isArray(object.flowVersions)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryParameters.flowVersions: array expected"); + message.flowVersions = []; + for (var i = 0; i < object.flowVersions.length; ++i) + message.flowVersions[i] = String(object.flowVersions[i]); } return message; }; /** - * Creates a plain object from a DetectIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryParameters message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest} message DetectIntentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.QueryParameters} message QueryParameters * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DetectIntentRequest.toObject = function toObject(message, options) { + QueryParameters.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.sessionEntityTypes = []; + object.flowVersions = []; + } + if (options.objects || options.defaults) + object.webhookHeaders = {}; if (options.defaults) { - object.session = ""; - object.queryParams = null; - object.queryInput = null; - object.outputAudioConfig = null; + object.timeZone = ""; + object.geoLocation = null; + object.payload = null; + object.parameters = null; + object.currentPage = ""; + object.disableWebhook = false; + object.analyzeQueryTextSentiment = false; + } + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + object.timeZone = message.timeZone; + if (message.geoLocation != null && message.hasOwnProperty("geoLocation")) + object.geoLocation = $root.google.type.LatLng.toObject(message.geoLocation, options); + if (message.sessionEntityTypes && message.sessionEntityTypes.length) { + object.sessionEntityTypes = []; + for (var j = 0; j < message.sessionEntityTypes.length; ++j) + object.sessionEntityTypes[j] = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.toObject(message.sessionEntityTypes[j], options); + } + if (message.payload != null && message.hasOwnProperty("payload")) + object.payload = $root.google.protobuf.Struct.toObject(message.payload, options); + if (message.parameters != null && message.hasOwnProperty("parameters")) + object.parameters = $root.google.protobuf.Struct.toObject(message.parameters, options); + if (message.currentPage != null && message.hasOwnProperty("currentPage")) + object.currentPage = message.currentPage; + if (message.disableWebhook != null && message.hasOwnProperty("disableWebhook")) + object.disableWebhook = message.disableWebhook; + if (message.analyzeQueryTextSentiment != null && message.hasOwnProperty("analyzeQueryTextSentiment")) + object.analyzeQueryTextSentiment = message.analyzeQueryTextSentiment; + var keys2; + if (message.webhookHeaders && (keys2 = Object.keys(message.webhookHeaders)).length) { + object.webhookHeaders = {}; + for (var j = 0; j < keys2.length; ++j) + object.webhookHeaders[keys2[j]] = message.webhookHeaders[keys2[j]]; + } + if (message.flowVersions && message.flowVersions.length) { + object.flowVersions = []; + for (var j = 0; j < message.flowVersions.length; ++j) + object.flowVersions[j] = message.flowVersions[j]; } - if (message.session != null && message.hasOwnProperty("session")) - object.session = message.session; - if (message.queryParams != null && message.hasOwnProperty("queryParams")) - object.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.toObject(message.queryParams, options); - if (message.queryInput != null && message.hasOwnProperty("queryInput")) - object.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.toObject(message.queryInput, options); - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) - object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.toObject(message.outputAudioConfig, options); return object; }; /** - * Converts this DetectIntentRequest to JSON. + * Converts this QueryParameters to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters * @instance * @returns {Object.} JSON object */ - DetectIntentRequest.prototype.toJSON = function toJSON() { + QueryParameters.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DetectIntentRequest; + return QueryParameters; })(); - v3beta1.DetectIntentResponse = (function() { + v3beta1.QueryInput = (function() { /** - * Properties of a DetectIntentResponse. + * Properties of a QueryInput. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDetectIntentResponse - * @property {string|null} [responseId] DetectIntentResponse responseId - * @property {google.cloud.dialogflow.cx.v3beta1.IQueryResult|null} [queryResult] DetectIntentResponse queryResult - * @property {Uint8Array|null} [outputAudio] DetectIntentResponse outputAudio - * @property {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null} [outputAudioConfig] DetectIntentResponse outputAudioConfig - * @property {google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType|null} [responseType] DetectIntentResponse responseType - * @property {boolean|null} [allowCancellation] DetectIntentResponse allowCancellation + * @interface IQueryInput + * @property {google.cloud.dialogflow.cx.v3beta1.ITextInput|null} [text] QueryInput text + * @property {google.cloud.dialogflow.cx.v3beta1.IIntentInput|null} [intent] QueryInput intent + * @property {google.cloud.dialogflow.cx.v3beta1.IAudioInput|null} [audio] QueryInput audio + * @property {google.cloud.dialogflow.cx.v3beta1.IEventInput|null} [event] QueryInput event + * @property {google.cloud.dialogflow.cx.v3beta1.IDtmfInput|null} [dtmf] QueryInput dtmf + * @property {string|null} [languageCode] QueryInput languageCode */ /** - * Constructs a new DetectIntentResponse. + * Constructs a new QueryInput. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DetectIntentResponse. - * @implements IDetectIntentResponse + * @classdesc Represents a QueryInput. + * @implements IQueryInput * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IQueryInput=} [properties] Properties to set */ - function DetectIntentResponse(properties) { + function QueryInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -108409,140 +108020,154 @@ } /** - * DetectIntentResponse responseId. - * @member {string} responseId - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * QueryInput text. + * @member {google.cloud.dialogflow.cx.v3beta1.ITextInput|null|undefined} text + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput * @instance */ - DetectIntentResponse.prototype.responseId = ""; + QueryInput.prototype.text = null; /** - * DetectIntentResponse queryResult. - * @member {google.cloud.dialogflow.cx.v3beta1.IQueryResult|null|undefined} queryResult - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * QueryInput intent. + * @member {google.cloud.dialogflow.cx.v3beta1.IIntentInput|null|undefined} intent + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput * @instance */ - DetectIntentResponse.prototype.queryResult = null; + QueryInput.prototype.intent = null; /** - * DetectIntentResponse outputAudio. - * @member {Uint8Array} outputAudio - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * QueryInput audio. + * @member {google.cloud.dialogflow.cx.v3beta1.IAudioInput|null|undefined} audio + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput * @instance */ - DetectIntentResponse.prototype.outputAudio = $util.newBuffer([]); + QueryInput.prototype.audio = null; /** - * DetectIntentResponse outputAudioConfig. - * @member {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null|undefined} outputAudioConfig - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * QueryInput event. + * @member {google.cloud.dialogflow.cx.v3beta1.IEventInput|null|undefined} event + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput * @instance */ - DetectIntentResponse.prototype.outputAudioConfig = null; + QueryInput.prototype.event = null; /** - * DetectIntentResponse responseType. - * @member {google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType} responseType - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * QueryInput dtmf. + * @member {google.cloud.dialogflow.cx.v3beta1.IDtmfInput|null|undefined} dtmf + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput * @instance */ - DetectIntentResponse.prototype.responseType = 0; + QueryInput.prototype.dtmf = null; /** - * DetectIntentResponse allowCancellation. - * @member {boolean} allowCancellation - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * QueryInput languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput * @instance */ - DetectIntentResponse.prototype.allowCancellation = false; + QueryInput.prototype.languageCode = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Creates a new DetectIntentResponse instance using the specified properties. + * QueryInput input. + * @member {"text"|"intent"|"audio"|"event"|"dtmf"|undefined} input + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @instance + */ + Object.defineProperty(QueryInput.prototype, "input", { + get: $util.oneOfGetter($oneOfFields = ["text", "intent", "audio", "event", "dtmf"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new QueryInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse} DetectIntentResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IQueryInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.QueryInput} QueryInput instance */ - DetectIntentResponse.create = function create(properties) { - return new DetectIntentResponse(properties); + QueryInput.create = function create(properties) { + return new QueryInput(properties); }; /** - * Encodes the specified DetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.verify|verify} messages. + * Encodes the specified QueryInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryInput.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse} message DetectIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IQueryInput} message QueryInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DetectIntentResponse.encode = function encode(message, writer) { + QueryInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.responseId != null && Object.hasOwnProperty.call(message, "responseId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.responseId); - if (message.queryResult != null && Object.hasOwnProperty.call(message, "queryResult")) - $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.encode(message.queryResult, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.outputAudio != null && Object.hasOwnProperty.call(message, "outputAudio")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.outputAudio); - if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) - $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.responseType != null && Object.hasOwnProperty.call(message, "responseType")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.responseType); - if (message.allowCancellation != null && Object.hasOwnProperty.call(message, "allowCancellation")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.allowCancellation); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + $root.google.cloud.dialogflow.cx.v3beta1.TextInput.encode(message.text, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) + $root.google.cloud.dialogflow.cx.v3beta1.IntentInput.encode(message.intent, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.languageCode); + if (message.audio != null && Object.hasOwnProperty.call(message, "audio")) + $root.google.cloud.dialogflow.cx.v3beta1.AudioInput.encode(message.audio, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.event != null && Object.hasOwnProperty.call(message, "event")) + $root.google.cloud.dialogflow.cx.v3beta1.EventInput.encode(message.event, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.dtmf != null && Object.hasOwnProperty.call(message, "dtmf")) + $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.encode(message.dtmf, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified DetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.verify|verify} messages. + * Encodes the specified QueryInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse} message DetectIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IQueryInput} message QueryInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DetectIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DetectIntentResponse message from the specified reader or buffer. + * Decodes a QueryInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse} DetectIntentResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.QueryInput} QueryInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DetectIntentResponse.decode = function decode(reader, length) { + QueryInput.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.QueryInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.responseId = reader.string(); - break; case 2: - message.queryResult = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.decode(reader, reader.uint32()); + message.text = $root.google.cloud.dialogflow.cx.v3beta1.TextInput.decode(reader, reader.uint32()); break; - case 4: - message.outputAudio = reader.bytes(); + case 3: + message.intent = $root.google.cloud.dialogflow.cx.v3beta1.IntentInput.decode(reader, reader.uint32()); break; case 5: - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.decode(reader, reader.uint32()); + message.audio = $root.google.cloud.dialogflow.cx.v3beta1.AudioInput.decode(reader, reader.uint32()); break; case 6: - message.responseType = reader.int32(); + message.event = $root.google.cloud.dialogflow.cx.v3beta1.EventInput.decode(reader, reader.uint32()); break; case 7: - message.allowCancellation = reader.bool(); + message.dtmf = $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.decode(reader, reader.uint32()); + break; + case 4: + message.languageCode = reader.string(); break; default: reader.skipType(tag & 7); @@ -108553,333 +108178,518 @@ }; /** - * Decodes a DetectIntentResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse} DetectIntentResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.QueryInput} QueryInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DetectIntentResponse.decodeDelimited = function decodeDelimited(reader) { + QueryInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DetectIntentResponse message. + * Verifies a QueryInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DetectIntentResponse.verify = function verify(message) { + QueryInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.responseId != null && message.hasOwnProperty("responseId")) - if (!$util.isString(message.responseId)) - return "responseId: string expected"; - if (message.queryResult != null && message.hasOwnProperty("queryResult")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.verify(message.queryResult); - if (error) - return "queryResult." + error; + var properties = {}; + if (message.text != null && message.hasOwnProperty("text")) { + properties.input = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TextInput.verify(message.text); + if (error) + return "text." + error; + } } - if (message.outputAudio != null && message.hasOwnProperty("outputAudio")) - if (!(message.outputAudio && typeof message.outputAudio.length === "number" || $util.isString(message.outputAudio))) - return "outputAudio: buffer expected"; - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify(message.outputAudioConfig); - if (error) - return "outputAudioConfig." + error; + if (message.intent != null && message.hasOwnProperty("intent")) { + if (properties.input === 1) + return "input: multiple values"; + properties.input = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.IntentInput.verify(message.intent); + if (error) + return "intent." + error; + } } - if (message.responseType != null && message.hasOwnProperty("responseType")) - switch (message.responseType) { - default: - return "responseType: enum value expected"; - case 0: - case 1: - case 2: - break; + if (message.audio != null && message.hasOwnProperty("audio")) { + if (properties.input === 1) + return "input: multiple values"; + properties.input = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.AudioInput.verify(message.audio); + if (error) + return "audio." + error; } - if (message.allowCancellation != null && message.hasOwnProperty("allowCancellation")) - if (typeof message.allowCancellation !== "boolean") - return "allowCancellation: boolean expected"; + } + if (message.event != null && message.hasOwnProperty("event")) { + if (properties.input === 1) + return "input: multiple values"; + properties.input = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.EventInput.verify(message.event); + if (error) + return "event." + error; + } + } + if (message.dtmf != null && message.hasOwnProperty("dtmf")) { + if (properties.input === 1) + return "input: multiple values"; + properties.input = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.verify(message.dtmf); + if (error) + return "dtmf." + error; + } + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates a DetectIntentResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse} DetectIntentResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.QueryInput} QueryInput */ - DetectIntentResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse) + QueryInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.QueryInput) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse(); - if (object.responseId != null) - message.responseId = String(object.responseId); - if (object.queryResult != null) { - if (typeof object.queryResult !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.queryResult: object expected"); - message.queryResult = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.fromObject(object.queryResult); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.QueryInput(); + if (object.text != null) { + if (typeof object.text !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryInput.text: object expected"); + message.text = $root.google.cloud.dialogflow.cx.v3beta1.TextInput.fromObject(object.text); } - if (object.outputAudio != null) - if (typeof object.outputAudio === "string") - $util.base64.decode(object.outputAudio, message.outputAudio = $util.newBuffer($util.base64.length(object.outputAudio)), 0); - else if (object.outputAudio.length) - message.outputAudio = object.outputAudio; - if (object.outputAudioConfig != null) { - if (typeof object.outputAudioConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.outputAudioConfig: object expected"); - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.fromObject(object.outputAudioConfig); + if (object.intent != null) { + if (typeof object.intent !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryInput.intent: object expected"); + message.intent = $root.google.cloud.dialogflow.cx.v3beta1.IntentInput.fromObject(object.intent); } - switch (object.responseType) { - case "RESPONSE_TYPE_UNSPECIFIED": - case 0: - message.responseType = 0; - break; - case "PARTIAL": - case 1: - message.responseType = 1; - break; - case "FINAL": - case 2: - message.responseType = 2; - break; + if (object.audio != null) { + if (typeof object.audio !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryInput.audio: object expected"); + message.audio = $root.google.cloud.dialogflow.cx.v3beta1.AudioInput.fromObject(object.audio); } - if (object.allowCancellation != null) - message.allowCancellation = Boolean(object.allowCancellation); + if (object.event != null) { + if (typeof object.event !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryInput.event: object expected"); + message.event = $root.google.cloud.dialogflow.cx.v3beta1.EventInput.fromObject(object.event); + } + if (object.dtmf != null) { + if (typeof object.dtmf !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryInput.dtmf: object expected"); + message.dtmf = $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.fromObject(object.dtmf); + } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a DetectIntentResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse} message DetectIntentResponse + * @param {google.cloud.dialogflow.cx.v3beta1.QueryInput} message QueryInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DetectIntentResponse.toObject = function toObject(message, options) { + QueryInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.responseId = ""; - object.queryResult = null; - if (options.bytes === String) - object.outputAudio = ""; - else { - object.outputAudio = []; - if (options.bytes !== Array) - object.outputAudio = $util.newBuffer(object.outputAudio); - } - object.outputAudioConfig = null; - object.responseType = options.enums === String ? "RESPONSE_TYPE_UNSPECIFIED" : 0; - object.allowCancellation = false; + if (options.defaults) + object.languageCode = ""; + if (message.text != null && message.hasOwnProperty("text")) { + object.text = $root.google.cloud.dialogflow.cx.v3beta1.TextInput.toObject(message.text, options); + if (options.oneofs) + object.input = "text"; + } + if (message.intent != null && message.hasOwnProperty("intent")) { + object.intent = $root.google.cloud.dialogflow.cx.v3beta1.IntentInput.toObject(message.intent, options); + if (options.oneofs) + object.input = "intent"; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + if (message.audio != null && message.hasOwnProperty("audio")) { + object.audio = $root.google.cloud.dialogflow.cx.v3beta1.AudioInput.toObject(message.audio, options); + if (options.oneofs) + object.input = "audio"; + } + if (message.event != null && message.hasOwnProperty("event")) { + object.event = $root.google.cloud.dialogflow.cx.v3beta1.EventInput.toObject(message.event, options); + if (options.oneofs) + object.input = "event"; + } + if (message.dtmf != null && message.hasOwnProperty("dtmf")) { + object.dtmf = $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.toObject(message.dtmf, options); + if (options.oneofs) + object.input = "dtmf"; } - if (message.responseId != null && message.hasOwnProperty("responseId")) - object.responseId = message.responseId; - if (message.queryResult != null && message.hasOwnProperty("queryResult")) - object.queryResult = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.toObject(message.queryResult, options); - if (message.outputAudio != null && message.hasOwnProperty("outputAudio")) - object.outputAudio = options.bytes === String ? $util.base64.encode(message.outputAudio, 0, message.outputAudio.length) : options.bytes === Array ? Array.prototype.slice.call(message.outputAudio) : message.outputAudio; - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) - object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.toObject(message.outputAudioConfig, options); - if (message.responseType != null && message.hasOwnProperty("responseType")) - object.responseType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType[message.responseType] : message.responseType; - if (message.allowCancellation != null && message.hasOwnProperty("allowCancellation")) - object.allowCancellation = message.allowCancellation; return object; }; /** - * Converts this DetectIntentResponse to JSON. + * Converts this QueryInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput * @instance * @returns {Object.} JSON object */ - DetectIntentResponse.prototype.toJSON = function toJSON() { + QueryInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + return QueryInput; + })(); + + v3beta1.QueryResult = (function() { + /** - * ResponseType enum. - * @name google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType - * @enum {number} - * @property {number} RESPONSE_TYPE_UNSPECIFIED=0 RESPONSE_TYPE_UNSPECIFIED value - * @property {number} PARTIAL=1 PARTIAL value - * @property {number} FINAL=2 FINAL value + * Properties of a QueryResult. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IQueryResult + * @property {string|null} [text] QueryResult text + * @property {string|null} [triggerIntent] QueryResult triggerIntent + * @property {string|null} [transcript] QueryResult transcript + * @property {string|null} [triggerEvent] QueryResult triggerEvent + * @property {google.cloud.dialogflow.cx.v3beta1.IDtmfInput|null} [dtmf] QueryResult dtmf + * @property {string|null} [languageCode] QueryResult languageCode + * @property {google.protobuf.IStruct|null} [parameters] QueryResult parameters + * @property {Array.|null} [responseMessages] QueryResult responseMessages + * @property {Array.|null} [webhookStatuses] QueryResult webhookStatuses + * @property {Array.|null} [webhookPayloads] QueryResult webhookPayloads + * @property {google.cloud.dialogflow.cx.v3beta1.IPage|null} [currentPage] QueryResult currentPage + * @property {google.cloud.dialogflow.cx.v3beta1.IIntent|null} [intent] QueryResult intent + * @property {number|null} [intentDetectionConfidence] QueryResult intentDetectionConfidence + * @property {google.cloud.dialogflow.cx.v3beta1.IMatch|null} [match] QueryResult match + * @property {google.protobuf.IStruct|null} [diagnosticInfo] QueryResult diagnosticInfo + * @property {google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult|null} [sentimentAnalysisResult] QueryResult sentimentAnalysisResult */ - DetectIntentResponse.ResponseType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RESPONSE_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "PARTIAL"] = 1; - values[valuesById[2] = "FINAL"] = 2; - return values; - })(); - return DetectIntentResponse; - })(); + /** + * Constructs a new QueryResult. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a QueryResult. + * @implements IQueryResult + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IQueryResult=} [properties] Properties to set + */ + function QueryResult(properties) { + this.responseMessages = []; + this.webhookStatuses = []; + this.webhookPayloads = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * QueryResult text. + * @member {string|null|undefined} text + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @instance + */ + QueryResult.prototype.text = null; + + /** + * QueryResult triggerIntent. + * @member {string|null|undefined} triggerIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @instance + */ + QueryResult.prototype.triggerIntent = null; + + /** + * QueryResult transcript. + * @member {string|null|undefined} transcript + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @instance + */ + QueryResult.prototype.transcript = null; + + /** + * QueryResult triggerEvent. + * @member {string|null|undefined} triggerEvent + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @instance + */ + QueryResult.prototype.triggerEvent = null; + + /** + * QueryResult dtmf. + * @member {google.cloud.dialogflow.cx.v3beta1.IDtmfInput|null|undefined} dtmf + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @instance + */ + QueryResult.prototype.dtmf = null; + + /** + * QueryResult languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @instance + */ + QueryResult.prototype.languageCode = ""; + + /** + * QueryResult parameters. + * @member {google.protobuf.IStruct|null|undefined} parameters + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @instance + */ + QueryResult.prototype.parameters = null; + + /** + * QueryResult responseMessages. + * @member {Array.} responseMessages + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @instance + */ + QueryResult.prototype.responseMessages = $util.emptyArray; + + /** + * QueryResult webhookStatuses. + * @member {Array.} webhookStatuses + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @instance + */ + QueryResult.prototype.webhookStatuses = $util.emptyArray; - v3beta1.StreamingDetectIntentRequest = (function() { + /** + * QueryResult webhookPayloads. + * @member {Array.} webhookPayloads + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @instance + */ + QueryResult.prototype.webhookPayloads = $util.emptyArray; /** - * Properties of a StreamingDetectIntentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IStreamingDetectIntentRequest - * @property {string|null} [session] StreamingDetectIntentRequest session - * @property {google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null} [queryParams] StreamingDetectIntentRequest queryParams - * @property {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null} [queryInput] StreamingDetectIntentRequest queryInput - * @property {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null} [outputAudioConfig] StreamingDetectIntentRequest outputAudioConfig - * @property {boolean|null} [enablePartialResponse] StreamingDetectIntentRequest enablePartialResponse + * QueryResult currentPage. + * @member {google.cloud.dialogflow.cx.v3beta1.IPage|null|undefined} currentPage + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @instance */ + QueryResult.prototype.currentPage = null; /** - * Constructs a new StreamingDetectIntentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a StreamingDetectIntentRequest. - * @implements IStreamingDetectIntentRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest=} [properties] Properties to set + * QueryResult intent. + * @member {google.cloud.dialogflow.cx.v3beta1.IIntent|null|undefined} intent + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @instance */ - function StreamingDetectIntentRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + QueryResult.prototype.intent = null; /** - * StreamingDetectIntentRequest session. - * @member {string} session - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * QueryResult intentDetectionConfidence. + * @member {number} intentDetectionConfidence + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult * @instance */ - StreamingDetectIntentRequest.prototype.session = ""; + QueryResult.prototype.intentDetectionConfidence = 0; /** - * StreamingDetectIntentRequest queryParams. - * @member {google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null|undefined} queryParams - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * QueryResult match. + * @member {google.cloud.dialogflow.cx.v3beta1.IMatch|null|undefined} match + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult * @instance */ - StreamingDetectIntentRequest.prototype.queryParams = null; + QueryResult.prototype.match = null; /** - * StreamingDetectIntentRequest queryInput. - * @member {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null|undefined} queryInput - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * QueryResult diagnosticInfo. + * @member {google.protobuf.IStruct|null|undefined} diagnosticInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult * @instance */ - StreamingDetectIntentRequest.prototype.queryInput = null; + QueryResult.prototype.diagnosticInfo = null; /** - * StreamingDetectIntentRequest outputAudioConfig. - * @member {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null|undefined} outputAudioConfig - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * QueryResult sentimentAnalysisResult. + * @member {google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult|null|undefined} sentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult * @instance */ - StreamingDetectIntentRequest.prototype.outputAudioConfig = null; + QueryResult.prototype.sentimentAnalysisResult = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * StreamingDetectIntentRequest enablePartialResponse. - * @member {boolean} enablePartialResponse - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * QueryResult query. + * @member {"text"|"triggerIntent"|"transcript"|"triggerEvent"|"dtmf"|undefined} query + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult * @instance */ - StreamingDetectIntentRequest.prototype.enablePartialResponse = false; + Object.defineProperty(QueryResult.prototype, "query", { + get: $util.oneOfGetter($oneOfFields = ["text", "triggerIntent", "transcript", "triggerEvent", "dtmf"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new StreamingDetectIntentRequest instance using the specified properties. + * Creates a new QueryResult instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest} StreamingDetectIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IQueryResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.QueryResult} QueryResult instance */ - StreamingDetectIntentRequest.create = function create(properties) { - return new StreamingDetectIntentRequest(properties); + QueryResult.create = function create(properties) { + return new QueryResult(properties); }; /** - * Encodes the specified StreamingDetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.verify|verify} messages. + * Encodes the specified QueryResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryResult.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest} message StreamingDetectIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IQueryResult} message QueryResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingDetectIntentRequest.encode = function encode(message, writer) { + QueryResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.session != null && Object.hasOwnProperty.call(message, "session")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.session); - if (message.queryParams != null && Object.hasOwnProperty.call(message, "queryParams")) - $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.encode(message.queryParams, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.queryInput != null && Object.hasOwnProperty.call(message, "queryInput")) - $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.encode(message.queryInput, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) - $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.enablePartialResponse != null && Object.hasOwnProperty.call(message, "enablePartialResponse")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.enablePartialResponse); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + $root.google.protobuf.Struct.encode(message.parameters, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.responseMessages != null && message.responseMessages.length) + for (var i = 0; i < message.responseMessages.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.encode(message.responseMessages[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.webhookPayloads != null && message.webhookPayloads.length) + for (var i = 0; i < message.webhookPayloads.length; ++i) + $root.google.protobuf.Struct.encode(message.webhookPayloads[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) + $root.google.cloud.dialogflow.cx.v3beta1.Page.encode(message.currentPage, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) + $root.google.cloud.dialogflow.cx.v3beta1.Intent.encode(message.intent, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.intentDetectionConfidence != null && Object.hasOwnProperty.call(message, "intentDetectionConfidence")) + writer.uint32(/* id 9, wireType 5 =*/77).float(message.intentDetectionConfidence); + if (message.diagnosticInfo != null && Object.hasOwnProperty.call(message, "diagnosticInfo")) + $root.google.protobuf.Struct.encode(message.diagnosticInfo, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.triggerIntent != null && Object.hasOwnProperty.call(message, "triggerIntent")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.triggerIntent); + if (message.transcript != null && Object.hasOwnProperty.call(message, "transcript")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.transcript); + if (message.webhookStatuses != null && message.webhookStatuses.length) + for (var i = 0; i < message.webhookStatuses.length; ++i) + $root.google.rpc.Status.encode(message.webhookStatuses[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.triggerEvent != null && Object.hasOwnProperty.call(message, "triggerEvent")) + writer.uint32(/* id 14, wireType 2 =*/114).string(message.triggerEvent); + if (message.match != null && Object.hasOwnProperty.call(message, "match")) + $root.google.cloud.dialogflow.cx.v3beta1.Match.encode(message.match, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.sentimentAnalysisResult != null && Object.hasOwnProperty.call(message, "sentimentAnalysisResult")) + $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.encode(message.sentimentAnalysisResult, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.dtmf != null && Object.hasOwnProperty.call(message, "dtmf")) + $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.encode(message.dtmf, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); return writer; }; /** - * Encodes the specified StreamingDetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.verify|verify} messages. + * Encodes the specified QueryResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest} message StreamingDetectIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IQueryResult} message QueryResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingDetectIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer. + * Decodes a QueryResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest} StreamingDetectIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.QueryResult} QueryResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingDetectIntentRequest.decode = function decode(reader, length) { + QueryResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.QueryResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.session = reader.string(); + message.text = reader.string(); + break; + case 11: + message.triggerIntent = reader.string(); + break; + case 12: + message.transcript = reader.string(); + break; + case 14: + message.triggerEvent = reader.string(); + break; + case 23: + message.dtmf = $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.decode(reader, reader.uint32()); break; case 2: - message.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.decode(reader, reader.uint32()); + message.languageCode = reader.string(); break; case 3: - message.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.decode(reader, reader.uint32()); + message.parameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); break; case 4: - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.decode(reader, reader.uint32()); + if (!(message.responseMessages && message.responseMessages.length)) + message.responseMessages = []; + message.responseMessages.push($root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.decode(reader, reader.uint32())); break; - case 5: - message.enablePartialResponse = reader.bool(); + case 13: + if (!(message.webhookStatuses && message.webhookStatuses.length)) + message.webhookStatuses = []; + message.webhookStatuses.push($root.google.rpc.Status.decode(reader, reader.uint32())); + break; + case 6: + if (!(message.webhookPayloads && message.webhookPayloads.length)) + message.webhookPayloads = []; + message.webhookPayloads.push($root.google.protobuf.Struct.decode(reader, reader.uint32())); + break; + case 7: + message.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.decode(reader, reader.uint32()); + break; + case 8: + message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.decode(reader, reader.uint32()); + break; + case 9: + message.intentDetectionConfidence = reader.float(); + break; + case 15: + message.match = $root.google.cloud.dialogflow.cx.v3beta1.Match.decode(reader, reader.uint32()); + break; + case 10: + message.diagnosticInfo = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 17: + message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -108890,156 +108700,346 @@ }; /** - * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest} StreamingDetectIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.QueryResult} QueryResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingDetectIntentRequest.decodeDelimited = function decodeDelimited(reader) { + QueryResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamingDetectIntentRequest message. + * Verifies a QueryResult message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StreamingDetectIntentRequest.verify = function verify(message) { + QueryResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.session != null && message.hasOwnProperty("session")) - if (!$util.isString(message.session)) - return "session: string expected"; - if (message.queryParams != null && message.hasOwnProperty("queryParams")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify(message.queryParams); + var properties = {}; + if (message.text != null && message.hasOwnProperty("text")) { + properties.query = 1; + if (!$util.isString(message.text)) + return "text: string expected"; + } + if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { + if (properties.query === 1) + return "query: multiple values"; + properties.query = 1; + if (!$util.isString(message.triggerIntent)) + return "triggerIntent: string expected"; + } + if (message.transcript != null && message.hasOwnProperty("transcript")) { + if (properties.query === 1) + return "query: multiple values"; + properties.query = 1; + if (!$util.isString(message.transcript)) + return "transcript: string expected"; + } + if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { + if (properties.query === 1) + return "query: multiple values"; + properties.query = 1; + if (!$util.isString(message.triggerEvent)) + return "triggerEvent: string expected"; + } + if (message.dtmf != null && message.hasOwnProperty("dtmf")) { + if (properties.query === 1) + return "query: multiple values"; + properties.query = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.verify(message.dtmf); + if (error) + return "dtmf." + error; + } + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + if (message.parameters != null && message.hasOwnProperty("parameters")) { + var error = $root.google.protobuf.Struct.verify(message.parameters); if (error) - return "queryParams." + error; + return "parameters." + error; } - if (message.queryInput != null && message.hasOwnProperty("queryInput")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.verify(message.queryInput); + if (message.responseMessages != null && message.hasOwnProperty("responseMessages")) { + if (!Array.isArray(message.responseMessages)) + return "responseMessages: array expected"; + for (var i = 0; i < message.responseMessages.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify(message.responseMessages[i]); + if (error) + return "responseMessages." + error; + } + } + if (message.webhookStatuses != null && message.hasOwnProperty("webhookStatuses")) { + if (!Array.isArray(message.webhookStatuses)) + return "webhookStatuses: array expected"; + for (var i = 0; i < message.webhookStatuses.length; ++i) { + var error = $root.google.rpc.Status.verify(message.webhookStatuses[i]); + if (error) + return "webhookStatuses." + error; + } + } + if (message.webhookPayloads != null && message.hasOwnProperty("webhookPayloads")) { + if (!Array.isArray(message.webhookPayloads)) + return "webhookPayloads: array expected"; + for (var i = 0; i < message.webhookPayloads.length; ++i) { + var error = $root.google.protobuf.Struct.verify(message.webhookPayloads[i]); + if (error) + return "webhookPayloads." + error; + } + } + if (message.currentPage != null && message.hasOwnProperty("currentPage")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Page.verify(message.currentPage); if (error) - return "queryInput." + error; + return "currentPage." + error; } - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify(message.outputAudioConfig); + if (message.intent != null && message.hasOwnProperty("intent")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.verify(message.intent); if (error) - return "outputAudioConfig." + error; + return "intent." + error; + } + if (message.intentDetectionConfidence != null && message.hasOwnProperty("intentDetectionConfidence")) + if (typeof message.intentDetectionConfidence !== "number") + return "intentDetectionConfidence: number expected"; + if (message.match != null && message.hasOwnProperty("match")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Match.verify(message.match); + if (error) + return "match." + error; + } + if (message.diagnosticInfo != null && message.hasOwnProperty("diagnosticInfo")) { + var error = $root.google.protobuf.Struct.verify(message.diagnosticInfo); + if (error) + return "diagnosticInfo." + error; + } + if (message.sentimentAnalysisResult != null && message.hasOwnProperty("sentimentAnalysisResult")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.verify(message.sentimentAnalysisResult); + if (error) + return "sentimentAnalysisResult." + error; } - if (message.enablePartialResponse != null && message.hasOwnProperty("enablePartialResponse")) - if (typeof message.enablePartialResponse !== "boolean") - return "enablePartialResponse: boolean expected"; return null; }; /** - * Creates a StreamingDetectIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest} StreamingDetectIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.QueryResult} QueryResult */ - StreamingDetectIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest) + QueryResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.QueryResult) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest(); - if (object.session != null) - message.session = String(object.session); - if (object.queryParams != null) { - if (typeof object.queryParams !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.queryParams: object expected"); - message.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.fromObject(object.queryParams); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.QueryResult(); + if (object.text != null) + message.text = String(object.text); + if (object.triggerIntent != null) + message.triggerIntent = String(object.triggerIntent); + if (object.transcript != null) + message.transcript = String(object.transcript); + if (object.triggerEvent != null) + message.triggerEvent = String(object.triggerEvent); + if (object.dtmf != null) { + if (typeof object.dtmf !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.dtmf: object expected"); + message.dtmf = $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.fromObject(object.dtmf); } - if (object.queryInput != null) { - if (typeof object.queryInput !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.queryInput: object expected"); - message.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.fromObject(object.queryInput); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + if (object.parameters != null) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.parameters: object expected"); + message.parameters = $root.google.protobuf.Struct.fromObject(object.parameters); } - if (object.outputAudioConfig != null) { - if (typeof object.outputAudioConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.outputAudioConfig: object expected"); - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.fromObject(object.outputAudioConfig); + if (object.responseMessages) { + if (!Array.isArray(object.responseMessages)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.responseMessages: array expected"); + message.responseMessages = []; + for (var i = 0; i < object.responseMessages.length; ++i) { + if (typeof object.responseMessages[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.responseMessages: object expected"); + message.responseMessages[i] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.fromObject(object.responseMessages[i]); + } + } + if (object.webhookStatuses) { + if (!Array.isArray(object.webhookStatuses)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.webhookStatuses: array expected"); + message.webhookStatuses = []; + for (var i = 0; i < object.webhookStatuses.length; ++i) { + if (typeof object.webhookStatuses[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.webhookStatuses: object expected"); + message.webhookStatuses[i] = $root.google.rpc.Status.fromObject(object.webhookStatuses[i]); + } + } + if (object.webhookPayloads) { + if (!Array.isArray(object.webhookPayloads)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.webhookPayloads: array expected"); + message.webhookPayloads = []; + for (var i = 0; i < object.webhookPayloads.length; ++i) { + if (typeof object.webhookPayloads[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.webhookPayloads: object expected"); + message.webhookPayloads[i] = $root.google.protobuf.Struct.fromObject(object.webhookPayloads[i]); + } + } + if (object.currentPage != null) { + if (typeof object.currentPage !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.currentPage: object expected"); + message.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.fromObject(object.currentPage); + } + if (object.intent != null) { + if (typeof object.intent !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.intent: object expected"); + message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.fromObject(object.intent); + } + if (object.intentDetectionConfidence != null) + message.intentDetectionConfidence = Number(object.intentDetectionConfidence); + if (object.match != null) { + if (typeof object.match !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.match: object expected"); + message.match = $root.google.cloud.dialogflow.cx.v3beta1.Match.fromObject(object.match); + } + if (object.diagnosticInfo != null) { + if (typeof object.diagnosticInfo !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.diagnosticInfo: object expected"); + message.diagnosticInfo = $root.google.protobuf.Struct.fromObject(object.diagnosticInfo); + } + if (object.sentimentAnalysisResult != null) { + if (typeof object.sentimentAnalysisResult !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.sentimentAnalysisResult: object expected"); + message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.fromObject(object.sentimentAnalysisResult); } - if (object.enablePartialResponse != null) - message.enablePartialResponse = Boolean(object.enablePartialResponse); return message; }; /** - * Creates a plain object from a StreamingDetectIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest} message StreamingDetectIntentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.QueryResult} message QueryResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamingDetectIntentRequest.toObject = function toObject(message, options) { + QueryResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.responseMessages = []; + object.webhookPayloads = []; + object.webhookStatuses = []; + } if (options.defaults) { - object.session = ""; - object.queryParams = null; - object.queryInput = null; - object.outputAudioConfig = null; - object.enablePartialResponse = false; + object.languageCode = ""; + object.parameters = null; + object.currentPage = null; + object.intent = null; + object.intentDetectionConfidence = 0; + object.diagnosticInfo = null; + object.match = null; + object.sentimentAnalysisResult = null; + } + if (message.text != null && message.hasOwnProperty("text")) { + object.text = message.text; + if (options.oneofs) + object.query = "text"; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + if (message.parameters != null && message.hasOwnProperty("parameters")) + object.parameters = $root.google.protobuf.Struct.toObject(message.parameters, options); + if (message.responseMessages && message.responseMessages.length) { + object.responseMessages = []; + for (var j = 0; j < message.responseMessages.length; ++j) + object.responseMessages[j] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.toObject(message.responseMessages[j], options); + } + if (message.webhookPayloads && message.webhookPayloads.length) { + object.webhookPayloads = []; + for (var j = 0; j < message.webhookPayloads.length; ++j) + object.webhookPayloads[j] = $root.google.protobuf.Struct.toObject(message.webhookPayloads[j], options); + } + if (message.currentPage != null && message.hasOwnProperty("currentPage")) + object.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.toObject(message.currentPage, options); + if (message.intent != null && message.hasOwnProperty("intent")) + object.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.toObject(message.intent, options); + if (message.intentDetectionConfidence != null && message.hasOwnProperty("intentDetectionConfidence")) + object.intentDetectionConfidence = options.json && !isFinite(message.intentDetectionConfidence) ? String(message.intentDetectionConfidence) : message.intentDetectionConfidence; + if (message.diagnosticInfo != null && message.hasOwnProperty("diagnosticInfo")) + object.diagnosticInfo = $root.google.protobuf.Struct.toObject(message.diagnosticInfo, options); + if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { + object.triggerIntent = message.triggerIntent; + if (options.oneofs) + object.query = "triggerIntent"; + } + if (message.transcript != null && message.hasOwnProperty("transcript")) { + object.transcript = message.transcript; + if (options.oneofs) + object.query = "transcript"; + } + if (message.webhookStatuses && message.webhookStatuses.length) { + object.webhookStatuses = []; + for (var j = 0; j < message.webhookStatuses.length; ++j) + object.webhookStatuses[j] = $root.google.rpc.Status.toObject(message.webhookStatuses[j], options); + } + if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { + object.triggerEvent = message.triggerEvent; + if (options.oneofs) + object.query = "triggerEvent"; + } + if (message.match != null && message.hasOwnProperty("match")) + object.match = $root.google.cloud.dialogflow.cx.v3beta1.Match.toObject(message.match, options); + if (message.sentimentAnalysisResult != null && message.hasOwnProperty("sentimentAnalysisResult")) + object.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.toObject(message.sentimentAnalysisResult, options); + if (message.dtmf != null && message.hasOwnProperty("dtmf")) { + object.dtmf = $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.toObject(message.dtmf, options); + if (options.oneofs) + object.query = "dtmf"; } - if (message.session != null && message.hasOwnProperty("session")) - object.session = message.session; - if (message.queryParams != null && message.hasOwnProperty("queryParams")) - object.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.toObject(message.queryParams, options); - if (message.queryInput != null && message.hasOwnProperty("queryInput")) - object.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.toObject(message.queryInput, options); - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) - object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.toObject(message.outputAudioConfig, options); - if (message.enablePartialResponse != null && message.hasOwnProperty("enablePartialResponse")) - object.enablePartialResponse = message.enablePartialResponse; return object; }; /** - * Converts this StreamingDetectIntentRequest to JSON. + * Converts this QueryResult to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult * @instance * @returns {Object.} JSON object */ - StreamingDetectIntentRequest.prototype.toJSON = function toJSON() { + QueryResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StreamingDetectIntentRequest; + return QueryResult; })(); - v3beta1.StreamingDetectIntentResponse = (function() { + v3beta1.TextInput = (function() { /** - * Properties of a StreamingDetectIntentResponse. + * Properties of a TextInput. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IStreamingDetectIntentResponse - * @property {google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult|null} [recognitionResult] StreamingDetectIntentResponse recognitionResult - * @property {google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse|null} [detectIntentResponse] StreamingDetectIntentResponse detectIntentResponse + * @interface ITextInput + * @property {string|null} [text] TextInput text */ /** - * Constructs a new StreamingDetectIntentResponse. + * Constructs a new TextInput. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a StreamingDetectIntentResponse. - * @implements IStreamingDetectIntentResponse + * @classdesc Represents a TextInput. + * @implements ITextInput * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ITextInput=} [properties] Properties to set */ - function StreamingDetectIntentResponse(properties) { + function TextInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -109047,102 +109047,75 @@ } /** - * StreamingDetectIntentResponse recognitionResult. - * @member {google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult|null|undefined} recognitionResult - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse - * @instance - */ - StreamingDetectIntentResponse.prototype.recognitionResult = null; - - /** - * StreamingDetectIntentResponse detectIntentResponse. - * @member {google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse|null|undefined} detectIntentResponse - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse - * @instance - */ - StreamingDetectIntentResponse.prototype.detectIntentResponse = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * StreamingDetectIntentResponse response. - * @member {"recognitionResult"|"detectIntentResponse"|undefined} response - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + * TextInput text. + * @member {string} text + * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput * @instance */ - Object.defineProperty(StreamingDetectIntentResponse.prototype, "response", { - get: $util.oneOfGetter($oneOfFields = ["recognitionResult", "detectIntentResponse"]), - set: $util.oneOfSetter($oneOfFields) - }); + TextInput.prototype.text = ""; /** - * Creates a new StreamingDetectIntentResponse instance using the specified properties. + * Creates a new TextInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse} StreamingDetectIntentResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.ITextInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TextInput} TextInput instance */ - StreamingDetectIntentResponse.create = function create(properties) { - return new StreamingDetectIntentResponse(properties); + TextInput.create = function create(properties) { + return new TextInput(properties); }; /** - * Encodes the specified StreamingDetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse.verify|verify} messages. + * Encodes the specified TextInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TextInput.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse} message StreamingDetectIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITextInput} message TextInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingDetectIntentResponse.encode = function encode(message, writer) { + TextInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recognitionResult != null && Object.hasOwnProperty.call(message, "recognitionResult")) - $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.encode(message.recognitionResult, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.detectIntentResponse != null && Object.hasOwnProperty.call(message, "detectIntentResponse")) - $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.encode(message.detectIntentResponse, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); return writer; }; /** - * Encodes the specified StreamingDetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse.verify|verify} messages. + * Encodes the specified TextInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TextInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse} message StreamingDetectIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITextInput} message TextInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingDetectIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { + TextInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer. + * Decodes a TextInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse} StreamingDetectIntentResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.TextInput} TextInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingDetectIntentResponse.decode = function decode(reader, length) { + TextInput.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TextInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.recognitionResult = $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.decode(reader, reader.uint32()); - break; - case 2: - message.detectIntentResponse = $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.decode(reader, reader.uint32()); + message.text = reader.string(); break; default: reader.skipType(tag & 7); @@ -109153,145 +109126,107 @@ }; /** - * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer, length delimited. + * Decodes a TextInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse} StreamingDetectIntentResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.TextInput} TextInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingDetectIntentResponse.decodeDelimited = function decodeDelimited(reader) { + TextInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamingDetectIntentResponse message. + * Verifies a TextInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StreamingDetectIntentResponse.verify = function verify(message) { + TextInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.recognitionResult != null && message.hasOwnProperty("recognitionResult")) { - properties.response = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.verify(message.recognitionResult); - if (error) - return "recognitionResult." + error; - } - } - if (message.detectIntentResponse != null && message.hasOwnProperty("detectIntentResponse")) { - if (properties.response === 1) - return "response: multiple values"; - properties.response = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.verify(message.detectIntentResponse); - if (error) - return "detectIntentResponse." + error; - } - } + if (message.text != null && message.hasOwnProperty("text")) + if (!$util.isString(message.text)) + return "text: string expected"; return null; }; /** - * Creates a StreamingDetectIntentResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TextInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse} StreamingDetectIntentResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.TextInput} TextInput */ - StreamingDetectIntentResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse) + TextInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TextInput) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse(); - if (object.recognitionResult != null) { - if (typeof object.recognitionResult !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse.recognitionResult: object expected"); - message.recognitionResult = $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.fromObject(object.recognitionResult); - } - if (object.detectIntentResponse != null) { - if (typeof object.detectIntentResponse !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse.detectIntentResponse: object expected"); - message.detectIntentResponse = $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.fromObject(object.detectIntentResponse); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TextInput(); + if (object.text != null) + message.text = String(object.text); return message; }; /** - * Creates a plain object from a StreamingDetectIntentResponse message. Also converts values to other types if specified. + * Creates a plain object from a TextInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse} message StreamingDetectIntentResponse + * @param {google.cloud.dialogflow.cx.v3beta1.TextInput} message TextInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamingDetectIntentResponse.toObject = function toObject(message, options) { + TextInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.recognitionResult != null && message.hasOwnProperty("recognitionResult")) { - object.recognitionResult = $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.toObject(message.recognitionResult, options); - if (options.oneofs) - object.response = "recognitionResult"; - } - if (message.detectIntentResponse != null && message.hasOwnProperty("detectIntentResponse")) { - object.detectIntentResponse = $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.toObject(message.detectIntentResponse, options); - if (options.oneofs) - object.response = "detectIntentResponse"; - } + if (options.defaults) + object.text = ""; + if (message.text != null && message.hasOwnProperty("text")) + object.text = message.text; return object; }; /** - * Converts this StreamingDetectIntentResponse to JSON. + * Converts this TextInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput * @instance * @returns {Object.} JSON object */ - StreamingDetectIntentResponse.prototype.toJSON = function toJSON() { + TextInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StreamingDetectIntentResponse; + return TextInput; })(); - v3beta1.StreamingRecognitionResult = (function() { + v3beta1.IntentInput = (function() { /** - * Properties of a StreamingRecognitionResult. + * Properties of an IntentInput. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IStreamingRecognitionResult - * @property {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType|null} [messageType] StreamingRecognitionResult messageType - * @property {string|null} [transcript] StreamingRecognitionResult transcript - * @property {boolean|null} [isFinal] StreamingRecognitionResult isFinal - * @property {number|null} [confidence] StreamingRecognitionResult confidence - * @property {number|null} [stability] StreamingRecognitionResult stability - * @property {Array.|null} [speechWordInfo] StreamingRecognitionResult speechWordInfo - * @property {google.protobuf.IDuration|null} [speechEndOffset] StreamingRecognitionResult speechEndOffset - * @property {string|null} [languageCode] StreamingRecognitionResult languageCode + * @interface IIntentInput + * @property {string|null} [intent] IntentInput intent */ /** - * Constructs a new StreamingRecognitionResult. + * Constructs a new IntentInput. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a StreamingRecognitionResult. - * @implements IStreamingRecognitionResult + * @classdesc Represents an IntentInput. + * @implements IIntentInput * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IIntentInput=} [properties] Properties to set */ - function StreamingRecognitionResult(properties) { - this.speechWordInfo = []; + function IntentInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -109299,169 +109234,75 @@ } /** - * StreamingRecognitionResult messageType. - * @member {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType} messageType - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult - * @instance - */ - StreamingRecognitionResult.prototype.messageType = 0; - - /** - * StreamingRecognitionResult transcript. - * @member {string} transcript - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult - * @instance - */ - StreamingRecognitionResult.prototype.transcript = ""; - - /** - * StreamingRecognitionResult isFinal. - * @member {boolean} isFinal - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult - * @instance - */ - StreamingRecognitionResult.prototype.isFinal = false; - - /** - * StreamingRecognitionResult confidence. - * @member {number} confidence - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult - * @instance - */ - StreamingRecognitionResult.prototype.confidence = 0; - - /** - * StreamingRecognitionResult stability. - * @member {number} stability - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult - * @instance - */ - StreamingRecognitionResult.prototype.stability = 0; - - /** - * StreamingRecognitionResult speechWordInfo. - * @member {Array.} speechWordInfo - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult - * @instance - */ - StreamingRecognitionResult.prototype.speechWordInfo = $util.emptyArray; - - /** - * StreamingRecognitionResult speechEndOffset. - * @member {google.protobuf.IDuration|null|undefined} speechEndOffset - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult - * @instance - */ - StreamingRecognitionResult.prototype.speechEndOffset = null; - - /** - * StreamingRecognitionResult languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * IntentInput intent. + * @member {string} intent + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput * @instance */ - StreamingRecognitionResult.prototype.languageCode = ""; + IntentInput.prototype.intent = ""; /** - * Creates a new StreamingRecognitionResult instance using the specified properties. + * Creates a new IntentInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult} StreamingRecognitionResult instance + * @param {google.cloud.dialogflow.cx.v3beta1.IIntentInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.IntentInput} IntentInput instance */ - StreamingRecognitionResult.create = function create(properties) { - return new StreamingRecognitionResult(properties); + IntentInput.create = function create(properties) { + return new IntentInput(properties); }; /** - * Encodes the specified StreamingRecognitionResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.verify|verify} messages. + * Encodes the specified IntentInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentInput.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult} message StreamingRecognitionResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IIntentInput} message IntentInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingRecognitionResult.encode = function encode(message, writer) { + IntentInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.messageType != null && Object.hasOwnProperty.call(message, "messageType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.messageType); - if (message.transcript != null && Object.hasOwnProperty.call(message, "transcript")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.transcript); - if (message.isFinal != null && Object.hasOwnProperty.call(message, "isFinal")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isFinal); - if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) - writer.uint32(/* id 4, wireType 5 =*/37).float(message.confidence); - if (message.stability != null && Object.hasOwnProperty.call(message, "stability")) - writer.uint32(/* id 6, wireType 5 =*/53).float(message.stability); - if (message.speechWordInfo != null && message.speechWordInfo.length) - for (var i = 0; i < message.speechWordInfo.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.encode(message.speechWordInfo[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.speechEndOffset != null && Object.hasOwnProperty.call(message, "speechEndOffset")) - $root.google.protobuf.Duration.encode(message.speechEndOffset, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.languageCode); + if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.intent); return writer; }; /** - * Encodes the specified StreamingRecognitionResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.verify|verify} messages. + * Encodes the specified IntentInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult} message StreamingRecognitionResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IIntentInput} message IntentInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingRecognitionResult.encodeDelimited = function encodeDelimited(message, writer) { + IntentInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamingRecognitionResult message from the specified reader or buffer. + * Decodes an IntentInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult} StreamingRecognitionResult + * @returns {google.cloud.dialogflow.cx.v3beta1.IntentInput} IntentInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingRecognitionResult.decode = function decode(reader, length) { + IntentInput.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.IntentInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.messageType = reader.int32(); - break; - case 2: - message.transcript = reader.string(); - break; - case 3: - message.isFinal = reader.bool(); - break; - case 4: - message.confidence = reader.float(); - break; - case 6: - message.stability = reader.float(); - break; - case 7: - if (!(message.speechWordInfo && message.speechWordInfo.length)) - message.speechWordInfo = []; - message.speechWordInfo.push($root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.decode(reader, reader.uint32())); - break; - case 8: - message.speechEndOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 10: - message.languageCode = reader.string(); + message.intent = reader.string(); break; default: reader.skipType(tag & 7); @@ -109472,233 +109313,108 @@ }; /** - * Decodes a StreamingRecognitionResult message from the specified reader or buffer, length delimited. + * Decodes an IntentInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult} StreamingRecognitionResult + * @returns {google.cloud.dialogflow.cx.v3beta1.IntentInput} IntentInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingRecognitionResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a StreamingRecognitionResult message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StreamingRecognitionResult.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.messageType != null && message.hasOwnProperty("messageType")) - switch (message.messageType) { - default: - return "messageType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.transcript != null && message.hasOwnProperty("transcript")) - if (!$util.isString(message.transcript)) - return "transcript: string expected"; - if (message.isFinal != null && message.hasOwnProperty("isFinal")) - if (typeof message.isFinal !== "boolean") - return "isFinal: boolean expected"; - if (message.confidence != null && message.hasOwnProperty("confidence")) - if (typeof message.confidence !== "number") - return "confidence: number expected"; - if (message.stability != null && message.hasOwnProperty("stability")) - if (typeof message.stability !== "number") - return "stability: number expected"; - if (message.speechWordInfo != null && message.hasOwnProperty("speechWordInfo")) { - if (!Array.isArray(message.speechWordInfo)) - return "speechWordInfo: array expected"; - for (var i = 0; i < message.speechWordInfo.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.verify(message.speechWordInfo[i]); - if (error) - return "speechWordInfo." + error; - } - } - if (message.speechEndOffset != null && message.hasOwnProperty("speechEndOffset")) { - var error = $root.google.protobuf.Duration.verify(message.speechEndOffset); - if (error) - return "speechEndOffset." + error; - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; - return null; - }; - - /** - * Creates a StreamingRecognitionResult message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult} StreamingRecognitionResult - */ - StreamingRecognitionResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult(); - switch (object.messageType) { - case "MESSAGE_TYPE_UNSPECIFIED": - case 0: - message.messageType = 0; - break; - case "TRANSCRIPT": - case 1: - message.messageType = 1; - break; - case "END_OF_SINGLE_UTTERANCE": - case 2: - message.messageType = 2; - break; - } - if (object.transcript != null) - message.transcript = String(object.transcript); - if (object.isFinal != null) - message.isFinal = Boolean(object.isFinal); - if (object.confidence != null) - message.confidence = Number(object.confidence); - if (object.stability != null) - message.stability = Number(object.stability); - if (object.speechWordInfo) { - if (!Array.isArray(object.speechWordInfo)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.speechWordInfo: array expected"); - message.speechWordInfo = []; - for (var i = 0; i < object.speechWordInfo.length; ++i) { - if (typeof object.speechWordInfo[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.speechWordInfo: object expected"); - message.speechWordInfo[i] = $root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.fromObject(object.speechWordInfo[i]); - } - } - if (object.speechEndOffset != null) { - if (typeof object.speechEndOffset !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.speechEndOffset: object expected"); - message.speechEndOffset = $root.google.protobuf.Duration.fromObject(object.speechEndOffset); - } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); + IntentInput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IntentInput message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IntentInput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.intent != null && message.hasOwnProperty("intent")) + if (!$util.isString(message.intent)) + return "intent: string expected"; + return null; + }; + + /** + * Creates an IntentInput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.IntentInput} IntentInput + */ + IntentInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.IntentInput) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.IntentInput(); + if (object.intent != null) + message.intent = String(object.intent); return message; }; /** - * Creates a plain object from a StreamingRecognitionResult message. Also converts values to other types if specified. + * Creates a plain object from an IntentInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult} message StreamingRecognitionResult + * @param {google.cloud.dialogflow.cx.v3beta1.IntentInput} message IntentInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamingRecognitionResult.toObject = function toObject(message, options) { + IntentInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.speechWordInfo = []; - if (options.defaults) { - object.messageType = options.enums === String ? "MESSAGE_TYPE_UNSPECIFIED" : 0; - object.transcript = ""; - object.isFinal = false; - object.confidence = 0; - object.stability = 0; - object.speechEndOffset = null; - object.languageCode = ""; - } - if (message.messageType != null && message.hasOwnProperty("messageType")) - object.messageType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType[message.messageType] : message.messageType; - if (message.transcript != null && message.hasOwnProperty("transcript")) - object.transcript = message.transcript; - if (message.isFinal != null && message.hasOwnProperty("isFinal")) - object.isFinal = message.isFinal; - if (message.confidence != null && message.hasOwnProperty("confidence")) - object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; - if (message.stability != null && message.hasOwnProperty("stability")) - object.stability = options.json && !isFinite(message.stability) ? String(message.stability) : message.stability; - if (message.speechWordInfo && message.speechWordInfo.length) { - object.speechWordInfo = []; - for (var j = 0; j < message.speechWordInfo.length; ++j) - object.speechWordInfo[j] = $root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.toObject(message.speechWordInfo[j], options); - } - if (message.speechEndOffset != null && message.hasOwnProperty("speechEndOffset")) - object.speechEndOffset = $root.google.protobuf.Duration.toObject(message.speechEndOffset, options); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; + if (options.defaults) + object.intent = ""; + if (message.intent != null && message.hasOwnProperty("intent")) + object.intent = message.intent; return object; }; /** - * Converts this StreamingRecognitionResult to JSON. + * Converts this IntentInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput * @instance * @returns {Object.} JSON object */ - StreamingRecognitionResult.prototype.toJSON = function toJSON() { + IntentInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * MessageType enum. - * @name google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType - * @enum {number} - * @property {number} MESSAGE_TYPE_UNSPECIFIED=0 MESSAGE_TYPE_UNSPECIFIED value - * @property {number} TRANSCRIPT=1 TRANSCRIPT value - * @property {number} END_OF_SINGLE_UTTERANCE=2 END_OF_SINGLE_UTTERANCE value - */ - StreamingRecognitionResult.MessageType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MESSAGE_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "TRANSCRIPT"] = 1; - values[valuesById[2] = "END_OF_SINGLE_UTTERANCE"] = 2; - return values; - })(); - - return StreamingRecognitionResult; + return IntentInput; })(); - v3beta1.QueryParameters = (function() { + v3beta1.AudioInput = (function() { /** - * Properties of a QueryParameters. + * Properties of an AudioInput. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IQueryParameters - * @property {string|null} [timeZone] QueryParameters timeZone - * @property {google.type.ILatLng|null} [geoLocation] QueryParameters geoLocation - * @property {Array.|null} [sessionEntityTypes] QueryParameters sessionEntityTypes - * @property {google.protobuf.IStruct|null} [payload] QueryParameters payload - * @property {google.protobuf.IStruct|null} [parameters] QueryParameters parameters - * @property {string|null} [currentPage] QueryParameters currentPage - * @property {boolean|null} [disableWebhook] QueryParameters disableWebhook - * @property {boolean|null} [analyzeQueryTextSentiment] QueryParameters analyzeQueryTextSentiment - * @property {Object.|null} [webhookHeaders] QueryParameters webhookHeaders - * @property {Array.|null} [flowVersions] QueryParameters flowVersions + * @interface IAudioInput + * @property {google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig|null} [config] AudioInput config + * @property {Uint8Array|null} [audio] AudioInput audio */ /** - * Constructs a new QueryParameters. + * Constructs a new AudioInput. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a QueryParameters. - * @implements IQueryParameters + * @classdesc Represents an AudioInput. + * @implements IAudioInput * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryParameters=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IAudioInput=} [properties] Properties to set */ - function QueryParameters(properties) { - this.sessionEntityTypes = []; - this.webhookHeaders = {}; - this.flowVersions = []; + function AudioInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -109706,218 +109422,88 @@ } /** - * QueryParameters timeZone. - * @member {string} timeZone - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters - * @instance - */ - QueryParameters.prototype.timeZone = ""; - - /** - * QueryParameters geoLocation. - * @member {google.type.ILatLng|null|undefined} geoLocation - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters - * @instance - */ - QueryParameters.prototype.geoLocation = null; - - /** - * QueryParameters sessionEntityTypes. - * @member {Array.} sessionEntityTypes - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters - * @instance - */ - QueryParameters.prototype.sessionEntityTypes = $util.emptyArray; - - /** - * QueryParameters payload. - * @member {google.protobuf.IStruct|null|undefined} payload - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters - * @instance - */ - QueryParameters.prototype.payload = null; - - /** - * QueryParameters parameters. - * @member {google.protobuf.IStruct|null|undefined} parameters - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters - * @instance - */ - QueryParameters.prototype.parameters = null; - - /** - * QueryParameters currentPage. - * @member {string} currentPage - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters - * @instance - */ - QueryParameters.prototype.currentPage = ""; - - /** - * QueryParameters disableWebhook. - * @member {boolean} disableWebhook - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters - * @instance - */ - QueryParameters.prototype.disableWebhook = false; - - /** - * QueryParameters analyzeQueryTextSentiment. - * @member {boolean} analyzeQueryTextSentiment - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters - * @instance - */ - QueryParameters.prototype.analyzeQueryTextSentiment = false; - - /** - * QueryParameters webhookHeaders. - * @member {Object.} webhookHeaders - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * AudioInput config. + * @member {google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig|null|undefined} config + * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput * @instance */ - QueryParameters.prototype.webhookHeaders = $util.emptyObject; + AudioInput.prototype.config = null; /** - * QueryParameters flowVersions. - * @member {Array.} flowVersions - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * AudioInput audio. + * @member {Uint8Array} audio + * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput * @instance */ - QueryParameters.prototype.flowVersions = $util.emptyArray; + AudioInput.prototype.audio = $util.newBuffer([]); /** - * Creates a new QueryParameters instance using the specified properties. + * Creates a new AudioInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryParameters=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryParameters} QueryParameters instance + * @param {google.cloud.dialogflow.cx.v3beta1.IAudioInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.AudioInput} AudioInput instance */ - QueryParameters.create = function create(properties) { - return new QueryParameters(properties); + AudioInput.create = function create(properties) { + return new AudioInput(properties); }; /** - * Encodes the specified QueryParameters message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify|verify} messages. + * Encodes the specified AudioInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AudioInput.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryParameters} message QueryParameters message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IAudioInput} message AudioInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryParameters.encode = function encode(message, writer) { + AudioInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.timeZone); - if (message.geoLocation != null && Object.hasOwnProperty.call(message, "geoLocation")) - $root.google.type.LatLng.encode(message.geoLocation, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.sessionEntityTypes != null && message.sessionEntityTypes.length) - for (var i = 0; i < message.sessionEntityTypes.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.encode(message.sessionEntityTypes[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) - $root.google.protobuf.Struct.encode(message.payload, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - $root.google.protobuf.Struct.encode(message.parameters, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.currentPage); - if (message.disableWebhook != null && Object.hasOwnProperty.call(message, "disableWebhook")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.disableWebhook); - if (message.analyzeQueryTextSentiment != null && Object.hasOwnProperty.call(message, "analyzeQueryTextSentiment")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.analyzeQueryTextSentiment); - if (message.webhookHeaders != null && Object.hasOwnProperty.call(message, "webhookHeaders")) - for (var keys = Object.keys(message.webhookHeaders), i = 0; i < keys.length; ++i) - writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.webhookHeaders[keys[i]]).ldelim(); - if (message.flowVersions != null && message.flowVersions.length) - for (var i = 0; i < message.flowVersions.length; ++i) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.flowVersions[i]); + if (message.config != null && Object.hasOwnProperty.call(message, "config")) + $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.encode(message.config, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.audio != null && Object.hasOwnProperty.call(message, "audio")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.audio); return writer; }; /** - * Encodes the specified QueryParameters message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify|verify} messages. + * Encodes the specified AudioInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AudioInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryParameters} message QueryParameters message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IAudioInput} message AudioInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryParameters.encodeDelimited = function encodeDelimited(message, writer) { + AudioInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryParameters message from the specified reader or buffer. + * Decodes an AudioInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryParameters} QueryParameters + * @returns {google.cloud.dialogflow.cx.v3beta1.AudioInput} AudioInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryParameters.decode = function decode(reader, length) { + AudioInput.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.AudioInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.timeZone = reader.string(); + message.config = $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.decode(reader, reader.uint32()); break; case 2: - message.geoLocation = $root.google.type.LatLng.decode(reader, reader.uint32()); - break; - case 3: - if (!(message.sessionEntityTypes && message.sessionEntityTypes.length)) - message.sessionEntityTypes = []; - message.sessionEntityTypes.push($root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.decode(reader, reader.uint32())); - break; - case 4: - message.payload = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 5: - message.parameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 6: - message.currentPage = reader.string(); - break; - case 7: - message.disableWebhook = reader.bool(); - break; - case 8: - message.analyzeQueryTextSentiment = reader.bool(); - break; - case 10: - if (message.webhookHeaders === $util.emptyObject) - message.webhookHeaders = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.webhookHeaders[key] = value; - break; - case 14: - if (!(message.flowVersions && message.flowVersions.length)) - message.flowVersions = []; - message.flowVersions.push(reader.string()); + message.audio = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -109928,246 +109514,130 @@ }; /** - * Decodes a QueryParameters message from the specified reader or buffer, length delimited. + * Decodes an AudioInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryParameters} QueryParameters + * @returns {google.cloud.dialogflow.cx.v3beta1.AudioInput} AudioInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryParameters.decodeDelimited = function decodeDelimited(reader) { + AudioInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryParameters message. + * Verifies an AudioInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryParameters.verify = function verify(message) { + AudioInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.timeZone != null && message.hasOwnProperty("timeZone")) - if (!$util.isString(message.timeZone)) - return "timeZone: string expected"; - if (message.geoLocation != null && message.hasOwnProperty("geoLocation")) { - var error = $root.google.type.LatLng.verify(message.geoLocation); - if (error) - return "geoLocation." + error; - } - if (message.sessionEntityTypes != null && message.hasOwnProperty("sessionEntityTypes")) { - if (!Array.isArray(message.sessionEntityTypes)) - return "sessionEntityTypes: array expected"; - for (var i = 0; i < message.sessionEntityTypes.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify(message.sessionEntityTypes[i]); - if (error) - return "sessionEntityTypes." + error; - } - } - if (message.payload != null && message.hasOwnProperty("payload")) { - var error = $root.google.protobuf.Struct.verify(message.payload); - if (error) - return "payload." + error; - } - if (message.parameters != null && message.hasOwnProperty("parameters")) { - var error = $root.google.protobuf.Struct.verify(message.parameters); + if (message.config != null && message.hasOwnProperty("config")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.verify(message.config); if (error) - return "parameters." + error; - } - if (message.currentPage != null && message.hasOwnProperty("currentPage")) - if (!$util.isString(message.currentPage)) - return "currentPage: string expected"; - if (message.disableWebhook != null && message.hasOwnProperty("disableWebhook")) - if (typeof message.disableWebhook !== "boolean") - return "disableWebhook: boolean expected"; - if (message.analyzeQueryTextSentiment != null && message.hasOwnProperty("analyzeQueryTextSentiment")) - if (typeof message.analyzeQueryTextSentiment !== "boolean") - return "analyzeQueryTextSentiment: boolean expected"; - if (message.webhookHeaders != null && message.hasOwnProperty("webhookHeaders")) { - if (!$util.isObject(message.webhookHeaders)) - return "webhookHeaders: object expected"; - var key = Object.keys(message.webhookHeaders); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.webhookHeaders[key[i]])) - return "webhookHeaders: string{k:string} expected"; - } - if (message.flowVersions != null && message.hasOwnProperty("flowVersions")) { - if (!Array.isArray(message.flowVersions)) - return "flowVersions: array expected"; - for (var i = 0; i < message.flowVersions.length; ++i) - if (!$util.isString(message.flowVersions[i])) - return "flowVersions: string[] expected"; + return "config." + error; } + if (message.audio != null && message.hasOwnProperty("audio")) + if (!(message.audio && typeof message.audio.length === "number" || $util.isString(message.audio))) + return "audio: buffer expected"; return null; }; /** - * Creates a QueryParameters message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryParameters} QueryParameters - */ - QueryParameters.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters(); - if (object.timeZone != null) - message.timeZone = String(object.timeZone); - if (object.geoLocation != null) { - if (typeof object.geoLocation !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryParameters.geoLocation: object expected"); - message.geoLocation = $root.google.type.LatLng.fromObject(object.geoLocation); - } - if (object.sessionEntityTypes) { - if (!Array.isArray(object.sessionEntityTypes)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryParameters.sessionEntityTypes: array expected"); - message.sessionEntityTypes = []; - for (var i = 0; i < object.sessionEntityTypes.length; ++i) { - if (typeof object.sessionEntityTypes[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryParameters.sessionEntityTypes: object expected"); - message.sessionEntityTypes[i] = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.fromObject(object.sessionEntityTypes[i]); - } - } - if (object.payload != null) { - if (typeof object.payload !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryParameters.payload: object expected"); - message.payload = $root.google.protobuf.Struct.fromObject(object.payload); - } - if (object.parameters != null) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryParameters.parameters: object expected"); - message.parameters = $root.google.protobuf.Struct.fromObject(object.parameters); - } - if (object.currentPage != null) - message.currentPage = String(object.currentPage); - if (object.disableWebhook != null) - message.disableWebhook = Boolean(object.disableWebhook); - if (object.analyzeQueryTextSentiment != null) - message.analyzeQueryTextSentiment = Boolean(object.analyzeQueryTextSentiment); - if (object.webhookHeaders) { - if (typeof object.webhookHeaders !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryParameters.webhookHeaders: object expected"); - message.webhookHeaders = {}; - for (var keys = Object.keys(object.webhookHeaders), i = 0; i < keys.length; ++i) - message.webhookHeaders[keys[i]] = String(object.webhookHeaders[keys[i]]); - } - if (object.flowVersions) { - if (!Array.isArray(object.flowVersions)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryParameters.flowVersions: array expected"); - message.flowVersions = []; - for (var i = 0; i < object.flowVersions.length; ++i) - message.flowVersions[i] = String(object.flowVersions[i]); - } - return message; - }; - - /** - * Creates a plain object from a QueryParameters message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.QueryParameters} message QueryParameters - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryParameters.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.sessionEntityTypes = []; - object.flowVersions = []; - } - if (options.objects || options.defaults) - object.webhookHeaders = {}; - if (options.defaults) { - object.timeZone = ""; - object.geoLocation = null; - object.payload = null; - object.parameters = null; - object.currentPage = ""; - object.disableWebhook = false; - object.analyzeQueryTextSentiment = false; - } - if (message.timeZone != null && message.hasOwnProperty("timeZone")) - object.timeZone = message.timeZone; - if (message.geoLocation != null && message.hasOwnProperty("geoLocation")) - object.geoLocation = $root.google.type.LatLng.toObject(message.geoLocation, options); - if (message.sessionEntityTypes && message.sessionEntityTypes.length) { - object.sessionEntityTypes = []; - for (var j = 0; j < message.sessionEntityTypes.length; ++j) - object.sessionEntityTypes[j] = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.toObject(message.sessionEntityTypes[j], options); - } - if (message.payload != null && message.hasOwnProperty("payload")) - object.payload = $root.google.protobuf.Struct.toObject(message.payload, options); - if (message.parameters != null && message.hasOwnProperty("parameters")) - object.parameters = $root.google.protobuf.Struct.toObject(message.parameters, options); - if (message.currentPage != null && message.hasOwnProperty("currentPage")) - object.currentPage = message.currentPage; - if (message.disableWebhook != null && message.hasOwnProperty("disableWebhook")) - object.disableWebhook = message.disableWebhook; - if (message.analyzeQueryTextSentiment != null && message.hasOwnProperty("analyzeQueryTextSentiment")) - object.analyzeQueryTextSentiment = message.analyzeQueryTextSentiment; - var keys2; - if (message.webhookHeaders && (keys2 = Object.keys(message.webhookHeaders)).length) { - object.webhookHeaders = {}; - for (var j = 0; j < keys2.length; ++j) - object.webhookHeaders[keys2[j]] = message.webhookHeaders[keys2[j]]; + * Creates an AudioInput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.AudioInput} AudioInput + */ + AudioInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.AudioInput) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.AudioInput(); + if (object.config != null) { + if (typeof object.config !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.AudioInput.config: object expected"); + message.config = $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.fromObject(object.config); } - if (message.flowVersions && message.flowVersions.length) { - object.flowVersions = []; - for (var j = 0; j < message.flowVersions.length; ++j) - object.flowVersions[j] = message.flowVersions[j]; + if (object.audio != null) + if (typeof object.audio === "string") + $util.base64.decode(object.audio, message.audio = $util.newBuffer($util.base64.length(object.audio)), 0); + else if (object.audio.length) + message.audio = object.audio; + return message; + }; + + /** + * Creates a plain object from an AudioInput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.AudioInput} message AudioInput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AudioInput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.config = null; + if (options.bytes === String) + object.audio = ""; + else { + object.audio = []; + if (options.bytes !== Array) + object.audio = $util.newBuffer(object.audio); + } } + if (message.config != null && message.hasOwnProperty("config")) + object.config = $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.toObject(message.config, options); + if (message.audio != null && message.hasOwnProperty("audio")) + object.audio = options.bytes === String ? $util.base64.encode(message.audio, 0, message.audio.length) : options.bytes === Array ? Array.prototype.slice.call(message.audio) : message.audio; return object; }; /** - * Converts this QueryParameters to JSON. + * Converts this AudioInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput * @instance * @returns {Object.} JSON object */ - QueryParameters.prototype.toJSON = function toJSON() { + AudioInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryParameters; + return AudioInput; })(); - v3beta1.QueryInput = (function() { + v3beta1.EventInput = (function() { /** - * Properties of a QueryInput. + * Properties of an EventInput. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IQueryInput - * @property {google.cloud.dialogflow.cx.v3beta1.ITextInput|null} [text] QueryInput text - * @property {google.cloud.dialogflow.cx.v3beta1.IIntentInput|null} [intent] QueryInput intent - * @property {google.cloud.dialogflow.cx.v3beta1.IAudioInput|null} [audio] QueryInput audio - * @property {google.cloud.dialogflow.cx.v3beta1.IEventInput|null} [event] QueryInput event - * @property {google.cloud.dialogflow.cx.v3beta1.IDtmfInput|null} [dtmf] QueryInput dtmf - * @property {string|null} [languageCode] QueryInput languageCode + * @interface IEventInput + * @property {string|null} [event] EventInput event */ /** - * Constructs a new QueryInput. + * Constructs a new EventInput. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a QueryInput. - * @implements IQueryInput + * @classdesc Represents an EventInput. + * @implements IEventInput * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryInput=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IEventInput=} [properties] Properties to set */ - function QueryInput(properties) { + function EventInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -110175,154 +109645,75 @@ } /** - * QueryInput text. - * @member {google.cloud.dialogflow.cx.v3beta1.ITextInput|null|undefined} text - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput - * @instance - */ - QueryInput.prototype.text = null; - - /** - * QueryInput intent. - * @member {google.cloud.dialogflow.cx.v3beta1.IIntentInput|null|undefined} intent - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput - * @instance - */ - QueryInput.prototype.intent = null; - - /** - * QueryInput audio. - * @member {google.cloud.dialogflow.cx.v3beta1.IAudioInput|null|undefined} audio - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput - * @instance - */ - QueryInput.prototype.audio = null; - - /** - * QueryInput event. - * @member {google.cloud.dialogflow.cx.v3beta1.IEventInput|null|undefined} event - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput - * @instance - */ - QueryInput.prototype.event = null; - - /** - * QueryInput dtmf. - * @member {google.cloud.dialogflow.cx.v3beta1.IDtmfInput|null|undefined} dtmf - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput - * @instance - */ - QueryInput.prototype.dtmf = null; - - /** - * QueryInput languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput - * @instance - */ - QueryInput.prototype.languageCode = ""; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * QueryInput input. - * @member {"text"|"intent"|"audio"|"event"|"dtmf"|undefined} input - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * EventInput event. + * @member {string} event + * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput * @instance */ - Object.defineProperty(QueryInput.prototype, "input", { - get: $util.oneOfGetter($oneOfFields = ["text", "intent", "audio", "event", "dtmf"]), - set: $util.oneOfSetter($oneOfFields) - }); + EventInput.prototype.event = ""; /** - * Creates a new QueryInput instance using the specified properties. + * Creates a new EventInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryInput} QueryInput instance + * @param {google.cloud.dialogflow.cx.v3beta1.IEventInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.EventInput} EventInput instance */ - QueryInput.create = function create(properties) { - return new QueryInput(properties); + EventInput.create = function create(properties) { + return new EventInput(properties); }; /** - * Encodes the specified QueryInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryInput.verify|verify} messages. + * Encodes the specified EventInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventInput.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryInput} message QueryInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IEventInput} message EventInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryInput.encode = function encode(message, writer) { + EventInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.text != null && Object.hasOwnProperty.call(message, "text")) - $root.google.cloud.dialogflow.cx.v3beta1.TextInput.encode(message.text, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) - $root.google.cloud.dialogflow.cx.v3beta1.IntentInput.encode(message.intent, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.languageCode); - if (message.audio != null && Object.hasOwnProperty.call(message, "audio")) - $root.google.cloud.dialogflow.cx.v3beta1.AudioInput.encode(message.audio, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.event != null && Object.hasOwnProperty.call(message, "event")) - $root.google.cloud.dialogflow.cx.v3beta1.EventInput.encode(message.event, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.dtmf != null && Object.hasOwnProperty.call(message, "dtmf")) - $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.encode(message.dtmf, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.event); return writer; }; /** - * Encodes the specified QueryInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryInput.verify|verify} messages. + * Encodes the specified EventInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryInput} message QueryInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IEventInput} message EventInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryInput.encodeDelimited = function encodeDelimited(message, writer) { + EventInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryInput message from the specified reader or buffer. + * Decodes an EventInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryInput} QueryInput + * @returns {google.cloud.dialogflow.cx.v3beta1.EventInput} EventInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryInput.decode = function decode(reader, length) { + EventInput.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.QueryInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.EventInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: - message.text = $root.google.cloud.dialogflow.cx.v3beta1.TextInput.decode(reader, reader.uint32()); - break; - case 3: - message.intent = $root.google.cloud.dialogflow.cx.v3beta1.IntentInput.decode(reader, reader.uint32()); - break; - case 5: - message.audio = $root.google.cloud.dialogflow.cx.v3beta1.AudioInput.decode(reader, reader.uint32()); - break; - case 6: - message.event = $root.google.cloud.dialogflow.cx.v3beta1.EventInput.decode(reader, reader.uint32()); - break; - case 7: - message.dtmf = $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.decode(reader, reader.uint32()); - break; - case 4: - message.languageCode = reader.string(); + case 1: + message.event = reader.string(); break; default: reader.skipType(tag & 7); @@ -110333,224 +109724,108 @@ }; /** - * Decodes a QueryInput message from the specified reader or buffer, length delimited. + * Decodes an EventInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryInput} QueryInput + * @returns {google.cloud.dialogflow.cx.v3beta1.EventInput} EventInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryInput.decodeDelimited = function decodeDelimited(reader) { + EventInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryInput message. + * Verifies an EventInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryInput.verify = function verify(message) { + EventInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.text != null && message.hasOwnProperty("text")) { - properties.input = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TextInput.verify(message.text); - if (error) - return "text." + error; - } - } - if (message.intent != null && message.hasOwnProperty("intent")) { - if (properties.input === 1) - return "input: multiple values"; - properties.input = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.IntentInput.verify(message.intent); - if (error) - return "intent." + error; - } - } - if (message.audio != null && message.hasOwnProperty("audio")) { - if (properties.input === 1) - return "input: multiple values"; - properties.input = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.AudioInput.verify(message.audio); - if (error) - return "audio." + error; - } - } - if (message.event != null && message.hasOwnProperty("event")) { - if (properties.input === 1) - return "input: multiple values"; - properties.input = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.EventInput.verify(message.event); - if (error) - return "event." + error; - } - } - if (message.dtmf != null && message.hasOwnProperty("dtmf")) { - if (properties.input === 1) - return "input: multiple values"; - properties.input = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.verify(message.dtmf); - if (error) - return "dtmf." + error; - } - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; + if (message.event != null && message.hasOwnProperty("event")) + if (!$util.isString(message.event)) + return "event: string expected"; return null; }; /** - * Creates a QueryInput message from a plain object. Also converts values to their respective internal types. + * Creates an EventInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryInput} QueryInput + * @returns {google.cloud.dialogflow.cx.v3beta1.EventInput} EventInput */ - QueryInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.QueryInput) + EventInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.EventInput) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.QueryInput(); - if (object.text != null) { - if (typeof object.text !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryInput.text: object expected"); - message.text = $root.google.cloud.dialogflow.cx.v3beta1.TextInput.fromObject(object.text); - } - if (object.intent != null) { - if (typeof object.intent !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryInput.intent: object expected"); - message.intent = $root.google.cloud.dialogflow.cx.v3beta1.IntentInput.fromObject(object.intent); - } - if (object.audio != null) { - if (typeof object.audio !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryInput.audio: object expected"); - message.audio = $root.google.cloud.dialogflow.cx.v3beta1.AudioInput.fromObject(object.audio); - } - if (object.event != null) { - if (typeof object.event !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryInput.event: object expected"); - message.event = $root.google.cloud.dialogflow.cx.v3beta1.EventInput.fromObject(object.event); - } - if (object.dtmf != null) { - if (typeof object.dtmf !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryInput.dtmf: object expected"); - message.dtmf = $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.fromObject(object.dtmf); - } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.EventInput(); + if (object.event != null) + message.event = String(object.event); return message; }; /** - * Creates a plain object from a QueryInput message. Also converts values to other types if specified. + * Creates a plain object from an EventInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.QueryInput} message QueryInput + * @param {google.cloud.dialogflow.cx.v3beta1.EventInput} message EventInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryInput.toObject = function toObject(message, options) { + EventInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.languageCode = ""; - if (message.text != null && message.hasOwnProperty("text")) { - object.text = $root.google.cloud.dialogflow.cx.v3beta1.TextInput.toObject(message.text, options); - if (options.oneofs) - object.input = "text"; - } - if (message.intent != null && message.hasOwnProperty("intent")) { - object.intent = $root.google.cloud.dialogflow.cx.v3beta1.IntentInput.toObject(message.intent, options); - if (options.oneofs) - object.input = "intent"; - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; - if (message.audio != null && message.hasOwnProperty("audio")) { - object.audio = $root.google.cloud.dialogflow.cx.v3beta1.AudioInput.toObject(message.audio, options); - if (options.oneofs) - object.input = "audio"; - } - if (message.event != null && message.hasOwnProperty("event")) { - object.event = $root.google.cloud.dialogflow.cx.v3beta1.EventInput.toObject(message.event, options); - if (options.oneofs) - object.input = "event"; - } - if (message.dtmf != null && message.hasOwnProperty("dtmf")) { - object.dtmf = $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.toObject(message.dtmf, options); - if (options.oneofs) - object.input = "dtmf"; - } + object.event = ""; + if (message.event != null && message.hasOwnProperty("event")) + object.event = message.event; return object; }; /** - * Converts this QueryInput to JSON. + * Converts this EventInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput * @instance * @returns {Object.} JSON object */ - QueryInput.prototype.toJSON = function toJSON() { + EventInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryInput; + return EventInput; })(); - v3beta1.QueryResult = (function() { + v3beta1.DtmfInput = (function() { /** - * Properties of a QueryResult. + * Properties of a DtmfInput. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IQueryResult - * @property {string|null} [text] QueryResult text - * @property {string|null} [triggerIntent] QueryResult triggerIntent - * @property {string|null} [transcript] QueryResult transcript - * @property {string|null} [triggerEvent] QueryResult triggerEvent - * @property {google.cloud.dialogflow.cx.v3beta1.IDtmfInput|null} [dtmf] QueryResult dtmf - * @property {string|null} [languageCode] QueryResult languageCode - * @property {google.protobuf.IStruct|null} [parameters] QueryResult parameters - * @property {Array.|null} [responseMessages] QueryResult responseMessages - * @property {Array.|null} [webhookStatuses] QueryResult webhookStatuses - * @property {Array.|null} [webhookPayloads] QueryResult webhookPayloads - * @property {google.cloud.dialogflow.cx.v3beta1.IPage|null} [currentPage] QueryResult currentPage - * @property {google.cloud.dialogflow.cx.v3beta1.IIntent|null} [intent] QueryResult intent - * @property {number|null} [intentDetectionConfidence] QueryResult intentDetectionConfidence - * @property {google.cloud.dialogflow.cx.v3beta1.IMatch|null} [match] QueryResult match - * @property {google.protobuf.IStruct|null} [diagnosticInfo] QueryResult diagnosticInfo - * @property {google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult|null} [sentimentAnalysisResult] QueryResult sentimentAnalysisResult + * @interface IDtmfInput + * @property {string|null} [digits] DtmfInput digits + * @property {string|null} [finishDigit] DtmfInput finishDigit */ /** - * Constructs a new QueryResult. + * Constructs a new DtmfInput. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a QueryResult. - * @implements IQueryResult + * @classdesc Represents a DtmfInput. + * @implements IDtmfInput * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryResult=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IDtmfInput=} [properties] Properties to set */ - function QueryResult(properties) { - this.responseMessages = []; - this.webhookStatuses = []; - this.webhookPayloads = []; + function DtmfInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -110558,293 +109833,354 @@ } /** - * QueryResult text. - * @member {string|null|undefined} text - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * DtmfInput digits. + * @member {string} digits + * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput * @instance */ - QueryResult.prototype.text = null; + DtmfInput.prototype.digits = ""; /** - * QueryResult triggerIntent. - * @member {string|null|undefined} triggerIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * DtmfInput finishDigit. + * @member {string} finishDigit + * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput * @instance */ - QueryResult.prototype.triggerIntent = null; + DtmfInput.prototype.finishDigit = ""; /** - * QueryResult transcript. - * @member {string|null|undefined} transcript - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult - * @instance + * Creates a new DtmfInput instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IDtmfInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DtmfInput} DtmfInput instance */ - QueryResult.prototype.transcript = null; + DtmfInput.create = function create(properties) { + return new DtmfInput(properties); + }; /** - * QueryResult triggerEvent. - * @member {string|null|undefined} triggerEvent - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult - * @instance + * Encodes the specified DtmfInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DtmfInput.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IDtmfInput} message DtmfInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - QueryResult.prototype.triggerEvent = null; + DtmfInput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.digits != null && Object.hasOwnProperty.call(message, "digits")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.digits); + if (message.finishDigit != null && Object.hasOwnProperty.call(message, "finishDigit")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.finishDigit); + return writer; + }; /** - * QueryResult dtmf. - * @member {google.cloud.dialogflow.cx.v3beta1.IDtmfInput|null|undefined} dtmf - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult - * @instance + * Encodes the specified DtmfInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DtmfInput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IDtmfInput} message DtmfInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DtmfInput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DtmfInput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.DtmfInput} DtmfInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DtmfInput.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.digits = reader.string(); + break; + case 2: + message.finishDigit = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DtmfInput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.DtmfInput} DtmfInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryResult.prototype.dtmf = null; + DtmfInput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * QueryResult languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult - * @instance + * Verifies a DtmfInput message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryResult.prototype.languageCode = ""; + DtmfInput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.digits != null && message.hasOwnProperty("digits")) + if (!$util.isString(message.digits)) + return "digits: string expected"; + if (message.finishDigit != null && message.hasOwnProperty("finishDigit")) + if (!$util.isString(message.finishDigit)) + return "finishDigit: string expected"; + return null; + }; /** - * QueryResult parameters. - * @member {google.protobuf.IStruct|null|undefined} parameters - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult - * @instance + * Creates a DtmfInput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.DtmfInput} DtmfInput */ - QueryResult.prototype.parameters = null; + DtmfInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput(); + if (object.digits != null) + message.digits = String(object.digits); + if (object.finishDigit != null) + message.finishDigit = String(object.finishDigit); + return message; + }; /** - * QueryResult responseMessages. - * @member {Array.} responseMessages - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult - * @instance + * Creates a plain object from a DtmfInput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.DtmfInput} message DtmfInput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - QueryResult.prototype.responseMessages = $util.emptyArray; + DtmfInput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.digits = ""; + object.finishDigit = ""; + } + if (message.digits != null && message.hasOwnProperty("digits")) + object.digits = message.digits; + if (message.finishDigit != null && message.hasOwnProperty("finishDigit")) + object.finishDigit = message.finishDigit; + return object; + }; /** - * QueryResult webhookStatuses. - * @member {Array.} webhookStatuses - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * Converts this DtmfInput to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput * @instance + * @returns {Object.} JSON object */ - QueryResult.prototype.webhookStatuses = $util.emptyArray; + DtmfInput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DtmfInput; + })(); + + v3beta1.Match = (function() { /** - * QueryResult webhookPayloads. - * @member {Array.} webhookPayloads - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult - * @instance + * Properties of a Match. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IMatch + * @property {google.cloud.dialogflow.cx.v3beta1.IIntent|null} [intent] Match intent + * @property {string|null} [event] Match event + * @property {google.protobuf.IStruct|null} [parameters] Match parameters + * @property {string|null} [resolvedInput] Match resolvedInput + * @property {google.cloud.dialogflow.cx.v3beta1.Match.MatchType|null} [matchType] Match matchType + * @property {number|null} [confidence] Match confidence */ - QueryResult.prototype.webhookPayloads = $util.emptyArray; /** - * QueryResult currentPage. - * @member {google.cloud.dialogflow.cx.v3beta1.IPage|null|undefined} currentPage - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult - * @instance + * Constructs a new Match. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a Match. + * @implements IMatch + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IMatch=} [properties] Properties to set */ - QueryResult.prototype.currentPage = null; + function Match(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * QueryResult intent. + * Match intent. * @member {google.cloud.dialogflow.cx.v3beta1.IIntent|null|undefined} intent - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3beta1.Match * @instance */ - QueryResult.prototype.intent = null; + Match.prototype.intent = null; /** - * QueryResult intentDetectionConfidence. - * @member {number} intentDetectionConfidence - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * Match event. + * @member {string} event + * @memberof google.cloud.dialogflow.cx.v3beta1.Match * @instance */ - QueryResult.prototype.intentDetectionConfidence = 0; + Match.prototype.event = ""; /** - * QueryResult match. - * @member {google.cloud.dialogflow.cx.v3beta1.IMatch|null|undefined} match - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * Match parameters. + * @member {google.protobuf.IStruct|null|undefined} parameters + * @memberof google.cloud.dialogflow.cx.v3beta1.Match * @instance */ - QueryResult.prototype.match = null; + Match.prototype.parameters = null; /** - * QueryResult diagnosticInfo. - * @member {google.protobuf.IStruct|null|undefined} diagnosticInfo - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * Match resolvedInput. + * @member {string} resolvedInput + * @memberof google.cloud.dialogflow.cx.v3beta1.Match * @instance */ - QueryResult.prototype.diagnosticInfo = null; + Match.prototype.resolvedInput = ""; /** - * QueryResult sentimentAnalysisResult. - * @member {google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult|null|undefined} sentimentAnalysisResult - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * Match matchType. + * @member {google.cloud.dialogflow.cx.v3beta1.Match.MatchType} matchType + * @memberof google.cloud.dialogflow.cx.v3beta1.Match * @instance */ - QueryResult.prototype.sentimentAnalysisResult = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + Match.prototype.matchType = 0; /** - * QueryResult query. - * @member {"text"|"triggerIntent"|"transcript"|"triggerEvent"|"dtmf"|undefined} query - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * Match confidence. + * @member {number} confidence + * @memberof google.cloud.dialogflow.cx.v3beta1.Match * @instance */ - Object.defineProperty(QueryResult.prototype, "query", { - get: $util.oneOfGetter($oneOfFields = ["text", "triggerIntent", "transcript", "triggerEvent", "dtmf"]), - set: $util.oneOfSetter($oneOfFields) - }); + Match.prototype.confidence = 0; /** - * Creates a new QueryResult instance using the specified properties. + * Creates a new Match instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3beta1.Match * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryResult} QueryResult instance + * @param {google.cloud.dialogflow.cx.v3beta1.IMatch=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Match} Match instance */ - QueryResult.create = function create(properties) { - return new QueryResult(properties); + Match.create = function create(properties) { + return new Match(properties); }; /** - * Encodes the specified QueryResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryResult.verify|verify} messages. + * Encodes the specified Match message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Match.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3beta1.Match * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryResult} message QueryResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IMatch} message Match message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryResult.encode = function encode(message, writer) { + Match.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.text != null && Object.hasOwnProperty.call(message, "text")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - $root.google.protobuf.Struct.encode(message.parameters, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.responseMessages != null && message.responseMessages.length) - for (var i = 0; i < message.responseMessages.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.encode(message.responseMessages[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.webhookPayloads != null && message.webhookPayloads.length) - for (var i = 0; i < message.webhookPayloads.length; ++i) - $root.google.protobuf.Struct.encode(message.webhookPayloads[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) - $root.google.cloud.dialogflow.cx.v3beta1.Page.encode(message.currentPage, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) - $root.google.cloud.dialogflow.cx.v3beta1.Intent.encode(message.intent, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.intentDetectionConfidence != null && Object.hasOwnProperty.call(message, "intentDetectionConfidence")) - writer.uint32(/* id 9, wireType 5 =*/77).float(message.intentDetectionConfidence); - if (message.diagnosticInfo != null && Object.hasOwnProperty.call(message, "diagnosticInfo")) - $root.google.protobuf.Struct.encode(message.diagnosticInfo, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.triggerIntent != null && Object.hasOwnProperty.call(message, "triggerIntent")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.triggerIntent); - if (message.transcript != null && Object.hasOwnProperty.call(message, "transcript")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.transcript); - if (message.webhookStatuses != null && message.webhookStatuses.length) - for (var i = 0; i < message.webhookStatuses.length; ++i) - $root.google.rpc.Status.encode(message.webhookStatuses[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.triggerEvent != null && Object.hasOwnProperty.call(message, "triggerEvent")) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.triggerEvent); - if (message.match != null && Object.hasOwnProperty.call(message, "match")) - $root.google.cloud.dialogflow.cx.v3beta1.Match.encode(message.match, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.sentimentAnalysisResult != null && Object.hasOwnProperty.call(message, "sentimentAnalysisResult")) - $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.encode(message.sentimentAnalysisResult, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); - if (message.dtmf != null && Object.hasOwnProperty.call(message, "dtmf")) - $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.encode(message.dtmf, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3beta1.Intent.encode(message.intent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + $root.google.protobuf.Struct.encode(message.parameters, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.resolvedInput != null && Object.hasOwnProperty.call(message, "resolvedInput")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.resolvedInput); + if (message.matchType != null && Object.hasOwnProperty.call(message, "matchType")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.matchType); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + writer.uint32(/* id 5, wireType 5 =*/45).float(message.confidence); + if (message.event != null && Object.hasOwnProperty.call(message, "event")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.event); return writer; }; /** - * Encodes the specified QueryResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryResult.verify|verify} messages. + * Encodes the specified Match message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Match.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3beta1.Match * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryResult} message QueryResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IMatch} message Match message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryResult.encodeDelimited = function encodeDelimited(message, writer) { + Match.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryResult message from the specified reader or buffer. + * Decodes a Match message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3beta1.Match * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryResult} QueryResult + * @returns {google.cloud.dialogflow.cx.v3beta1.Match} Match * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryResult.decode = function decode(reader, length) { + Match.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.QueryResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Match(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.text = reader.string(); - break; - case 11: - message.triggerIntent = reader.string(); - break; - case 12: - message.transcript = reader.string(); - break; - case 14: - message.triggerEvent = reader.string(); + message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.decode(reader, reader.uint32()); break; - case 23: - message.dtmf = $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.decode(reader, reader.uint32()); + case 6: + message.event = reader.string(); break; case 2: - message.languageCode = reader.string(); + message.parameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); break; case 3: - message.parameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + message.resolvedInput = reader.string(); break; case 4: - if (!(message.responseMessages && message.responseMessages.length)) - message.responseMessages = []; - message.responseMessages.push($root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.decode(reader, reader.uint32())); - break; - case 13: - if (!(message.webhookStatuses && message.webhookStatuses.length)) - message.webhookStatuses = []; - message.webhookStatuses.push($root.google.rpc.Status.decode(reader, reader.uint32())); - break; - case 6: - if (!(message.webhookPayloads && message.webhookPayloads.length)) - message.webhookPayloads = []; - message.webhookPayloads.push($root.google.protobuf.Struct.decode(reader, reader.uint32())); - break; - case 7: - message.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.decode(reader, reader.uint32()); - break; - case 8: - message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.decode(reader, reader.uint32()); - break; - case 9: - message.intentDetectionConfidence = reader.float(); - break; - case 15: - message.match = $root.google.cloud.dialogflow.cx.v3beta1.Match.decode(reader, reader.uint32()); - break; - case 10: - message.diagnosticInfo = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + message.matchType = reader.int32(); break; - case 17: - message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.decode(reader, reader.uint32()); + case 5: + message.confidence = reader.float(); break; default: reader.skipType(tag & 7); @@ -110855,346 +110191,222 @@ }; /** - * Decodes a QueryResult message from the specified reader or buffer, length delimited. + * Decodes a Match message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3beta1.Match * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryResult} QueryResult + * @returns {google.cloud.dialogflow.cx.v3beta1.Match} Match * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryResult.decodeDelimited = function decodeDelimited(reader) { + Match.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryResult message. + * Verifies a Match message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3beta1.Match * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryResult.verify = function verify(message) { + Match.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.text != null && message.hasOwnProperty("text")) { - properties.query = 1; - if (!$util.isString(message.text)) - return "text: string expected"; - } - if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { - if (properties.query === 1) - return "query: multiple values"; - properties.query = 1; - if (!$util.isString(message.triggerIntent)) - return "triggerIntent: string expected"; - } - if (message.transcript != null && message.hasOwnProperty("transcript")) { - if (properties.query === 1) - return "query: multiple values"; - properties.query = 1; - if (!$util.isString(message.transcript)) - return "transcript: string expected"; - } - if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { - if (properties.query === 1) - return "query: multiple values"; - properties.query = 1; - if (!$util.isString(message.triggerEvent)) - return "triggerEvent: string expected"; - } - if (message.dtmf != null && message.hasOwnProperty("dtmf")) { - if (properties.query === 1) - return "query: multiple values"; - properties.query = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.verify(message.dtmf); - if (error) - return "dtmf." + error; - } - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; - if (message.parameters != null && message.hasOwnProperty("parameters")) { - var error = $root.google.protobuf.Struct.verify(message.parameters); - if (error) - return "parameters." + error; - } - if (message.responseMessages != null && message.hasOwnProperty("responseMessages")) { - if (!Array.isArray(message.responseMessages)) - return "responseMessages: array expected"; - for (var i = 0; i < message.responseMessages.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify(message.responseMessages[i]); - if (error) - return "responseMessages." + error; - } - } - if (message.webhookStatuses != null && message.hasOwnProperty("webhookStatuses")) { - if (!Array.isArray(message.webhookStatuses)) - return "webhookStatuses: array expected"; - for (var i = 0; i < message.webhookStatuses.length; ++i) { - var error = $root.google.rpc.Status.verify(message.webhookStatuses[i]); - if (error) - return "webhookStatuses." + error; - } - } - if (message.webhookPayloads != null && message.hasOwnProperty("webhookPayloads")) { - if (!Array.isArray(message.webhookPayloads)) - return "webhookPayloads: array expected"; - for (var i = 0; i < message.webhookPayloads.length; ++i) { - var error = $root.google.protobuf.Struct.verify(message.webhookPayloads[i]); - if (error) - return "webhookPayloads." + error; - } - } - if (message.currentPage != null && message.hasOwnProperty("currentPage")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Page.verify(message.currentPage); - if (error) - return "currentPage." + error; - } if (message.intent != null && message.hasOwnProperty("intent")) { var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.verify(message.intent); if (error) return "intent." + error; } - if (message.intentDetectionConfidence != null && message.hasOwnProperty("intentDetectionConfidence")) - if (typeof message.intentDetectionConfidence !== "number") - return "intentDetectionConfidence: number expected"; - if (message.match != null && message.hasOwnProperty("match")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Match.verify(message.match); - if (error) - return "match." + error; - } - if (message.diagnosticInfo != null && message.hasOwnProperty("diagnosticInfo")) { - var error = $root.google.protobuf.Struct.verify(message.diagnosticInfo); - if (error) - return "diagnosticInfo." + error; - } - if (message.sentimentAnalysisResult != null && message.hasOwnProperty("sentimentAnalysisResult")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.verify(message.sentimentAnalysisResult); + if (message.event != null && message.hasOwnProperty("event")) + if (!$util.isString(message.event)) + return "event: string expected"; + if (message.parameters != null && message.hasOwnProperty("parameters")) { + var error = $root.google.protobuf.Struct.verify(message.parameters); if (error) - return "sentimentAnalysisResult." + error; + return "parameters." + error; } + if (message.resolvedInput != null && message.hasOwnProperty("resolvedInput")) + if (!$util.isString(message.resolvedInput)) + return "resolvedInput: string expected"; + if (message.matchType != null && message.hasOwnProperty("matchType")) + switch (message.matchType) { + default: + return "matchType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.confidence != null && message.hasOwnProperty("confidence")) + if (typeof message.confidence !== "number") + return "confidence: number expected"; return null; }; /** - * Creates a QueryResult message from a plain object. Also converts values to their respective internal types. + * Creates a Match message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3beta1.Match * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryResult} QueryResult + * @returns {google.cloud.dialogflow.cx.v3beta1.Match} Match */ - QueryResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.QueryResult) + Match.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Match) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.QueryResult(); - if (object.text != null) - message.text = String(object.text); - if (object.triggerIntent != null) - message.triggerIntent = String(object.triggerIntent); - if (object.transcript != null) - message.transcript = String(object.transcript); - if (object.triggerEvent != null) - message.triggerEvent = String(object.triggerEvent); - if (object.dtmf != null) { - if (typeof object.dtmf !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.dtmf: object expected"); - message.dtmf = $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.fromObject(object.dtmf); - } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); - if (object.parameters != null) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.parameters: object expected"); - message.parameters = $root.google.protobuf.Struct.fromObject(object.parameters); - } - if (object.responseMessages) { - if (!Array.isArray(object.responseMessages)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.responseMessages: array expected"); - message.responseMessages = []; - for (var i = 0; i < object.responseMessages.length; ++i) { - if (typeof object.responseMessages[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.responseMessages: object expected"); - message.responseMessages[i] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.fromObject(object.responseMessages[i]); - } - } - if (object.webhookStatuses) { - if (!Array.isArray(object.webhookStatuses)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.webhookStatuses: array expected"); - message.webhookStatuses = []; - for (var i = 0; i < object.webhookStatuses.length; ++i) { - if (typeof object.webhookStatuses[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.webhookStatuses: object expected"); - message.webhookStatuses[i] = $root.google.rpc.Status.fromObject(object.webhookStatuses[i]); - } - } - if (object.webhookPayloads) { - if (!Array.isArray(object.webhookPayloads)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.webhookPayloads: array expected"); - message.webhookPayloads = []; - for (var i = 0; i < object.webhookPayloads.length; ++i) { - if (typeof object.webhookPayloads[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.webhookPayloads: object expected"); - message.webhookPayloads[i] = $root.google.protobuf.Struct.fromObject(object.webhookPayloads[i]); - } - } - if (object.currentPage != null) { - if (typeof object.currentPage !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.currentPage: object expected"); - message.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.fromObject(object.currentPage); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Match(); if (object.intent != null) { if (typeof object.intent !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.intent: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Match.intent: object expected"); message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.fromObject(object.intent); } - if (object.intentDetectionConfidence != null) - message.intentDetectionConfidence = Number(object.intentDetectionConfidence); - if (object.match != null) { - if (typeof object.match !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.match: object expected"); - message.match = $root.google.cloud.dialogflow.cx.v3beta1.Match.fromObject(object.match); - } - if (object.diagnosticInfo != null) { - if (typeof object.diagnosticInfo !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.diagnosticInfo: object expected"); - message.diagnosticInfo = $root.google.protobuf.Struct.fromObject(object.diagnosticInfo); + if (object.event != null) + message.event = String(object.event); + if (object.parameters != null) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Match.parameters: object expected"); + message.parameters = $root.google.protobuf.Struct.fromObject(object.parameters); } - if (object.sentimentAnalysisResult != null) { - if (typeof object.sentimentAnalysisResult !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.sentimentAnalysisResult: object expected"); - message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.fromObject(object.sentimentAnalysisResult); + if (object.resolvedInput != null) + message.resolvedInput = String(object.resolvedInput); + switch (object.matchType) { + case "MATCH_TYPE_UNSPECIFIED": + case 0: + message.matchType = 0; + break; + case "INTENT": + case 1: + message.matchType = 1; + break; + case "DIRECT_INTENT": + case 2: + message.matchType = 2; + break; + case "PARAMETER_FILLING": + case 3: + message.matchType = 3; + break; + case "NO_MATCH": + case 4: + message.matchType = 4; + break; + case "NO_INPUT": + case 5: + message.matchType = 5; + break; + case "EVENT": + case 6: + message.matchType = 6; + break; } + if (object.confidence != null) + message.confidence = Number(object.confidence); return message; }; /** - * Creates a plain object from a QueryResult message. Also converts values to other types if specified. + * Creates a plain object from a Match message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3beta1.Match * @static - * @param {google.cloud.dialogflow.cx.v3beta1.QueryResult} message QueryResult + * @param {google.cloud.dialogflow.cx.v3beta1.Match} message Match * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryResult.toObject = function toObject(message, options) { + Match.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.responseMessages = []; - object.webhookPayloads = []; - object.webhookStatuses = []; - } if (options.defaults) { - object.languageCode = ""; - object.parameters = null; - object.currentPage = null; object.intent = null; - object.intentDetectionConfidence = 0; - object.diagnosticInfo = null; - object.match = null; - object.sentimentAnalysisResult = null; - } - if (message.text != null && message.hasOwnProperty("text")) { - object.text = message.text; - if (options.oneofs) - object.query = "text"; - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; - if (message.parameters != null && message.hasOwnProperty("parameters")) - object.parameters = $root.google.protobuf.Struct.toObject(message.parameters, options); - if (message.responseMessages && message.responseMessages.length) { - object.responseMessages = []; - for (var j = 0; j < message.responseMessages.length; ++j) - object.responseMessages[j] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.toObject(message.responseMessages[j], options); - } - if (message.webhookPayloads && message.webhookPayloads.length) { - object.webhookPayloads = []; - for (var j = 0; j < message.webhookPayloads.length; ++j) - object.webhookPayloads[j] = $root.google.protobuf.Struct.toObject(message.webhookPayloads[j], options); + object.parameters = null; + object.resolvedInput = ""; + object.matchType = options.enums === String ? "MATCH_TYPE_UNSPECIFIED" : 0; + object.confidence = 0; + object.event = ""; } - if (message.currentPage != null && message.hasOwnProperty("currentPage")) - object.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.toObject(message.currentPage, options); if (message.intent != null && message.hasOwnProperty("intent")) object.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.toObject(message.intent, options); - if (message.intentDetectionConfidence != null && message.hasOwnProperty("intentDetectionConfidence")) - object.intentDetectionConfidence = options.json && !isFinite(message.intentDetectionConfidence) ? String(message.intentDetectionConfidence) : message.intentDetectionConfidence; - if (message.diagnosticInfo != null && message.hasOwnProperty("diagnosticInfo")) - object.diagnosticInfo = $root.google.protobuf.Struct.toObject(message.diagnosticInfo, options); - if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { - object.triggerIntent = message.triggerIntent; - if (options.oneofs) - object.query = "triggerIntent"; - } - if (message.transcript != null && message.hasOwnProperty("transcript")) { - object.transcript = message.transcript; - if (options.oneofs) - object.query = "transcript"; - } - if (message.webhookStatuses && message.webhookStatuses.length) { - object.webhookStatuses = []; - for (var j = 0; j < message.webhookStatuses.length; ++j) - object.webhookStatuses[j] = $root.google.rpc.Status.toObject(message.webhookStatuses[j], options); - } - if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { - object.triggerEvent = message.triggerEvent; - if (options.oneofs) - object.query = "triggerEvent"; - } - if (message.match != null && message.hasOwnProperty("match")) - object.match = $root.google.cloud.dialogflow.cx.v3beta1.Match.toObject(message.match, options); - if (message.sentimentAnalysisResult != null && message.hasOwnProperty("sentimentAnalysisResult")) - object.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.toObject(message.sentimentAnalysisResult, options); - if (message.dtmf != null && message.hasOwnProperty("dtmf")) { - object.dtmf = $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.toObject(message.dtmf, options); - if (options.oneofs) - object.query = "dtmf"; - } + if (message.parameters != null && message.hasOwnProperty("parameters")) + object.parameters = $root.google.protobuf.Struct.toObject(message.parameters, options); + if (message.resolvedInput != null && message.hasOwnProperty("resolvedInput")) + object.resolvedInput = message.resolvedInput; + if (message.matchType != null && message.hasOwnProperty("matchType")) + object.matchType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.Match.MatchType[message.matchType] : message.matchType; + if (message.confidence != null && message.hasOwnProperty("confidence")) + object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; + if (message.event != null && message.hasOwnProperty("event")) + object.event = message.event; return object; }; /** - * Converts this QueryResult to JSON. + * Converts this Match to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3beta1.Match * @instance * @returns {Object.} JSON object */ - QueryResult.prototype.toJSON = function toJSON() { + Match.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryResult; + /** + * MatchType enum. + * @name google.cloud.dialogflow.cx.v3beta1.Match.MatchType + * @enum {number} + * @property {number} MATCH_TYPE_UNSPECIFIED=0 MATCH_TYPE_UNSPECIFIED value + * @property {number} INTENT=1 INTENT value + * @property {number} DIRECT_INTENT=2 DIRECT_INTENT value + * @property {number} PARAMETER_FILLING=3 PARAMETER_FILLING value + * @property {number} NO_MATCH=4 NO_MATCH value + * @property {number} NO_INPUT=5 NO_INPUT value + * @property {number} EVENT=6 EVENT value + */ + Match.MatchType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MATCH_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "INTENT"] = 1; + values[valuesById[2] = "DIRECT_INTENT"] = 2; + values[valuesById[3] = "PARAMETER_FILLING"] = 3; + values[valuesById[4] = "NO_MATCH"] = 4; + values[valuesById[5] = "NO_INPUT"] = 5; + values[valuesById[6] = "EVENT"] = 6; + return values; + })(); + + return Match; })(); - v3beta1.TextInput = (function() { + v3beta1.MatchIntentRequest = (function() { /** - * Properties of a TextInput. + * Properties of a MatchIntentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ITextInput - * @property {string|null} [text] TextInput text + * @interface IMatchIntentRequest + * @property {string|null} [session] MatchIntentRequest session + * @property {google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null} [queryParams] MatchIntentRequest queryParams + * @property {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null} [queryInput] MatchIntentRequest queryInput */ /** - * Constructs a new TextInput. + * Constructs a new MatchIntentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TextInput. - * @implements ITextInput + * @classdesc Represents a MatchIntentRequest. + * @implements IMatchIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITextInput=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest=} [properties] Properties to set */ - function TextInput(properties) { + function MatchIntentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -111202,75 +110414,101 @@ } /** - * TextInput text. - * @member {string} text - * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * MatchIntentRequest session. + * @member {string} session + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest * @instance */ - TextInput.prototype.text = ""; + MatchIntentRequest.prototype.session = ""; /** - * Creates a new TextInput instance using the specified properties. + * MatchIntentRequest queryParams. + * @member {google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null|undefined} queryParams + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * @instance + */ + MatchIntentRequest.prototype.queryParams = null; + + /** + * MatchIntentRequest queryInput. + * @member {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null|undefined} queryInput + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * @instance + */ + MatchIntentRequest.prototype.queryInput = null; + + /** + * Creates a new MatchIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITextInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TextInput} TextInput instance + * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest} MatchIntentRequest instance */ - TextInput.create = function create(properties) { - return new TextInput(properties); + MatchIntentRequest.create = function create(properties) { + return new MatchIntentRequest(properties); }; /** - * Encodes the specified TextInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TextInput.verify|verify} messages. + * Encodes the specified MatchIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITextInput} message TextInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest} message MatchIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TextInput.encode = function encode(message, writer) { + MatchIntentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.text != null && Object.hasOwnProperty.call(message, "text")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); + if (message.session != null && Object.hasOwnProperty.call(message, "session")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.session); + if (message.queryParams != null && Object.hasOwnProperty.call(message, "queryParams")) + $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.encode(message.queryParams, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.queryInput != null && Object.hasOwnProperty.call(message, "queryInput")) + $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.encode(message.queryInput, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified TextInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TextInput.verify|verify} messages. + * Encodes the specified MatchIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITextInput} message TextInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest} message MatchIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TextInput.encodeDelimited = function encodeDelimited(message, writer) { + MatchIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TextInput message from the specified reader or buffer. + * Decodes a MatchIntentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.TextInput} TextInput + * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest} MatchIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TextInput.decode = function decode(reader, length) { + MatchIntentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TextInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.text = reader.string(); + message.session = reader.string(); + break; + case 2: + message.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.decode(reader, reader.uint32()); + break; + case 3: + message.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -111281,107 +110519,140 @@ }; /** - * Decodes a TextInput message from the specified reader or buffer, length delimited. + * Decodes a MatchIntentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TextInput} TextInput + * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest} MatchIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TextInput.decodeDelimited = function decodeDelimited(reader) { + MatchIntentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TextInput message. + * Verifies a MatchIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TextInput.verify = function verify(message) { + MatchIntentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.text != null && message.hasOwnProperty("text")) - if (!$util.isString(message.text)) - return "text: string expected"; + if (message.session != null && message.hasOwnProperty("session")) + if (!$util.isString(message.session)) + return "session: string expected"; + if (message.queryParams != null && message.hasOwnProperty("queryParams")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify(message.queryParams); + if (error) + return "queryParams." + error; + } + if (message.queryInput != null && message.hasOwnProperty("queryInput")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.verify(message.queryInput); + if (error) + return "queryInput." + error; + } return null; }; /** - * Creates a TextInput message from a plain object. Also converts values to their respective internal types. + * Creates a MatchIntentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TextInput} TextInput + * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest} MatchIntentRequest */ - TextInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TextInput) + MatchIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TextInput(); - if (object.text != null) - message.text = String(object.text); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest(); + if (object.session != null) + message.session = String(object.session); + if (object.queryParams != null) { + if (typeof object.queryParams !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.queryParams: object expected"); + message.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.fromObject(object.queryParams); + } + if (object.queryInput != null) { + if (typeof object.queryInput !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.queryInput: object expected"); + message.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.fromObject(object.queryInput); + } return message; }; /** - * Creates a plain object from a TextInput message. Also converts values to other types if specified. + * Creates a plain object from a MatchIntentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TextInput} message TextInput + * @param {google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest} message MatchIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TextInput.toObject = function toObject(message, options) { + MatchIntentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.text = ""; - if (message.text != null && message.hasOwnProperty("text")) - object.text = message.text; + if (options.defaults) { + object.session = ""; + object.queryParams = null; + object.queryInput = null; + } + if (message.session != null && message.hasOwnProperty("session")) + object.session = message.session; + if (message.queryParams != null && message.hasOwnProperty("queryParams")) + object.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.toObject(message.queryParams, options); + if (message.queryInput != null && message.hasOwnProperty("queryInput")) + object.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.toObject(message.queryInput, options); return object; }; /** - * Converts this TextInput to JSON. + * Converts this MatchIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest * @instance * @returns {Object.} JSON object */ - TextInput.prototype.toJSON = function toJSON() { + MatchIntentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TextInput; + return MatchIntentRequest; })(); - v3beta1.IntentInput = (function() { + v3beta1.MatchIntentResponse = (function() { /** - * Properties of an IntentInput. + * Properties of a MatchIntentResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IIntentInput - * @property {string|null} [intent] IntentInput intent + * @interface IMatchIntentResponse + * @property {string|null} [text] MatchIntentResponse text + * @property {string|null} [triggerIntent] MatchIntentResponse triggerIntent + * @property {string|null} [transcript] MatchIntentResponse transcript + * @property {string|null} [triggerEvent] MatchIntentResponse triggerEvent + * @property {Array.|null} [matches] MatchIntentResponse matches + * @property {google.cloud.dialogflow.cx.v3beta1.IPage|null} [currentPage] MatchIntentResponse currentPage */ /** - * Constructs a new IntentInput. + * Constructs a new MatchIntentResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an IntentInput. - * @implements IIntentInput + * @classdesc Represents a MatchIntentResponse. + * @implements IMatchIntentResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IIntentInput=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse=} [properties] Properties to set */ - function IntentInput(properties) { + function MatchIntentResponse(properties) { + this.matches = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -111389,75 +110660,157 @@ } /** - * IntentInput intent. - * @member {string} intent - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput + * MatchIntentResponse text. + * @member {string|null|undefined} text + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse * @instance */ - IntentInput.prototype.intent = ""; + MatchIntentResponse.prototype.text = null; /** - * Creates a new IntentInput instance using the specified properties. + * MatchIntentResponse triggerIntent. + * @member {string|null|undefined} triggerIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @instance + */ + MatchIntentResponse.prototype.triggerIntent = null; + + /** + * MatchIntentResponse transcript. + * @member {string|null|undefined} transcript + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @instance + */ + MatchIntentResponse.prototype.transcript = null; + + /** + * MatchIntentResponse triggerEvent. + * @member {string|null|undefined} triggerEvent + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @instance + */ + MatchIntentResponse.prototype.triggerEvent = null; + + /** + * MatchIntentResponse matches. + * @member {Array.} matches + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @instance + */ + MatchIntentResponse.prototype.matches = $util.emptyArray; + + /** + * MatchIntentResponse currentPage. + * @member {google.cloud.dialogflow.cx.v3beta1.IPage|null|undefined} currentPage + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @instance + */ + MatchIntentResponse.prototype.currentPage = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * MatchIntentResponse query. + * @member {"text"|"triggerIntent"|"transcript"|"triggerEvent"|undefined} query + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @instance + */ + Object.defineProperty(MatchIntentResponse.prototype, "query", { + get: $util.oneOfGetter($oneOfFields = ["text", "triggerIntent", "transcript", "triggerEvent"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new MatchIntentResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IIntentInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.IntentInput} IntentInput instance + * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse} MatchIntentResponse instance */ - IntentInput.create = function create(properties) { - return new IntentInput(properties); + MatchIntentResponse.create = function create(properties) { + return new MatchIntentResponse(properties); }; /** - * Encodes the specified IntentInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentInput.verify|verify} messages. + * Encodes the specified MatchIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IIntentInput} message IntentInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse} message MatchIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IntentInput.encode = function encode(message, writer) { + MatchIntentResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.intent); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); + if (message.triggerIntent != null && Object.hasOwnProperty.call(message, "triggerIntent")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.triggerIntent); + if (message.transcript != null && Object.hasOwnProperty.call(message, "transcript")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.transcript); + if (message.matches != null && message.matches.length) + for (var i = 0; i < message.matches.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Match.encode(message.matches[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) + $root.google.cloud.dialogflow.cx.v3beta1.Page.encode(message.currentPage, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.triggerEvent != null && Object.hasOwnProperty.call(message, "triggerEvent")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.triggerEvent); return writer; }; /** - * Encodes the specified IntentInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentInput.verify|verify} messages. + * Encodes the specified MatchIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IIntentInput} message IntentInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse} message MatchIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IntentInput.encodeDelimited = function encodeDelimited(message, writer) { + MatchIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IntentInput message from the specified reader or buffer. + * Decodes a MatchIntentResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.IntentInput} IntentInput + * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse} MatchIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IntentInput.decode = function decode(reader, length) { + MatchIntentResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.IntentInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.intent = reader.string(); + message.text = reader.string(); + break; + case 2: + message.triggerIntent = reader.string(); + break; + case 3: + message.transcript = reader.string(); + break; + case 6: + message.triggerEvent = reader.string(); + break; + case 4: + if (!(message.matches && message.matches.length)) + message.matches = []; + message.matches.push($root.google.cloud.dialogflow.cx.v3beta1.Match.decode(reader, reader.uint32())); + break; + case 5: + message.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -111468,108 +110821,195 @@ }; /** - * Decodes an IntentInput message from the specified reader or buffer, length delimited. + * Decodes a MatchIntentResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.IntentInput} IntentInput + * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse} MatchIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IntentInput.decodeDelimited = function decodeDelimited(reader) { + MatchIntentResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IntentInput message. + * Verifies a MatchIntentResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IntentInput.verify = function verify(message) { + MatchIntentResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.intent != null && message.hasOwnProperty("intent")) - if (!$util.isString(message.intent)) - return "intent: string expected"; + var properties = {}; + if (message.text != null && message.hasOwnProperty("text")) { + properties.query = 1; + if (!$util.isString(message.text)) + return "text: string expected"; + } + if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { + if (properties.query === 1) + return "query: multiple values"; + properties.query = 1; + if (!$util.isString(message.triggerIntent)) + return "triggerIntent: string expected"; + } + if (message.transcript != null && message.hasOwnProperty("transcript")) { + if (properties.query === 1) + return "query: multiple values"; + properties.query = 1; + if (!$util.isString(message.transcript)) + return "transcript: string expected"; + } + if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { + if (properties.query === 1) + return "query: multiple values"; + properties.query = 1; + if (!$util.isString(message.triggerEvent)) + return "triggerEvent: string expected"; + } + if (message.matches != null && message.hasOwnProperty("matches")) { + if (!Array.isArray(message.matches)) + return "matches: array expected"; + for (var i = 0; i < message.matches.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Match.verify(message.matches[i]); + if (error) + return "matches." + error; + } + } + if (message.currentPage != null && message.hasOwnProperty("currentPage")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Page.verify(message.currentPage); + if (error) + return "currentPage." + error; + } return null; }; /** - * Creates an IntentInput message from a plain object. Also converts values to their respective internal types. + * Creates a MatchIntentResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.IntentInput} IntentInput + * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse} MatchIntentResponse */ - IntentInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.IntentInput) + MatchIntentResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.IntentInput(); - if (object.intent != null) - message.intent = String(object.intent); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse(); + if (object.text != null) + message.text = String(object.text); + if (object.triggerIntent != null) + message.triggerIntent = String(object.triggerIntent); + if (object.transcript != null) + message.transcript = String(object.transcript); + if (object.triggerEvent != null) + message.triggerEvent = String(object.triggerEvent); + if (object.matches) { + if (!Array.isArray(object.matches)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.matches: array expected"); + message.matches = []; + for (var i = 0; i < object.matches.length; ++i) { + if (typeof object.matches[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.matches: object expected"); + message.matches[i] = $root.google.cloud.dialogflow.cx.v3beta1.Match.fromObject(object.matches[i]); + } + } + if (object.currentPage != null) { + if (typeof object.currentPage !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.currentPage: object expected"); + message.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.fromObject(object.currentPage); + } return message; }; /** - * Creates a plain object from an IntentInput message. Also converts values to other types if specified. + * Creates a plain object from a MatchIntentResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IntentInput} message IntentInput + * @param {google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse} message MatchIntentResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IntentInput.toObject = function toObject(message, options) { + MatchIntentResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.matches = []; if (options.defaults) - object.intent = ""; - if (message.intent != null && message.hasOwnProperty("intent")) - object.intent = message.intent; + object.currentPage = null; + if (message.text != null && message.hasOwnProperty("text")) { + object.text = message.text; + if (options.oneofs) + object.query = "text"; + } + if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { + object.triggerIntent = message.triggerIntent; + if (options.oneofs) + object.query = "triggerIntent"; + } + if (message.transcript != null && message.hasOwnProperty("transcript")) { + object.transcript = message.transcript; + if (options.oneofs) + object.query = "transcript"; + } + if (message.matches && message.matches.length) { + object.matches = []; + for (var j = 0; j < message.matches.length; ++j) + object.matches[j] = $root.google.cloud.dialogflow.cx.v3beta1.Match.toObject(message.matches[j], options); + } + if (message.currentPage != null && message.hasOwnProperty("currentPage")) + object.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.toObject(message.currentPage, options); + if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { + object.triggerEvent = message.triggerEvent; + if (options.oneofs) + object.query = "triggerEvent"; + } return object; }; /** - * Converts this IntentInput to JSON. + * Converts this MatchIntentResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput + * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse * @instance * @returns {Object.} JSON object */ - IntentInput.prototype.toJSON = function toJSON() { + MatchIntentResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return IntentInput; + return MatchIntentResponse; })(); - v3beta1.AudioInput = (function() { + v3beta1.FulfillIntentRequest = (function() { /** - * Properties of an AudioInput. + * Properties of a FulfillIntentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IAudioInput - * @property {google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig|null} [config] AudioInput config - * @property {Uint8Array|null} [audio] AudioInput audio + * @interface IFulfillIntentRequest + * @property {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest|null} [matchIntentRequest] FulfillIntentRequest matchIntentRequest + * @property {google.cloud.dialogflow.cx.v3beta1.IMatch|null} [match] FulfillIntentRequest match + * @property {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null} [outputAudioConfig] FulfillIntentRequest outputAudioConfig */ /** - * Constructs a new AudioInput. + * Constructs a new FulfillIntentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an AudioInput. - * @implements IAudioInput + * @classdesc Represents a FulfillIntentRequest. + * @implements IFulfillIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IAudioInput=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest=} [properties] Properties to set */ - function AudioInput(properties) { + function FulfillIntentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -111577,88 +111017,101 @@ } /** - * AudioInput config. - * @member {google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig|null|undefined} config - * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * FulfillIntentRequest matchIntentRequest. + * @member {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest|null|undefined} matchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest * @instance */ - AudioInput.prototype.config = null; + FulfillIntentRequest.prototype.matchIntentRequest = null; /** - * AudioInput audio. - * @member {Uint8Array} audio - * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * FulfillIntentRequest match. + * @member {google.cloud.dialogflow.cx.v3beta1.IMatch|null|undefined} match + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest * @instance */ - AudioInput.prototype.audio = $util.newBuffer([]); + FulfillIntentRequest.prototype.match = null; /** - * Creates a new AudioInput instance using the specified properties. + * FulfillIntentRequest outputAudioConfig. + * @member {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null|undefined} outputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @instance + */ + FulfillIntentRequest.prototype.outputAudioConfig = null; + + /** + * Creates a new FulfillIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IAudioInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.AudioInput} AudioInput instance + * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest} FulfillIntentRequest instance */ - AudioInput.create = function create(properties) { - return new AudioInput(properties); + FulfillIntentRequest.create = function create(properties) { + return new FulfillIntentRequest(properties); }; /** - * Encodes the specified AudioInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AudioInput.verify|verify} messages. + * Encodes the specified FulfillIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IAudioInput} message AudioInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest} message FulfillIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudioInput.encode = function encode(message, writer) { + FulfillIntentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.config != null && Object.hasOwnProperty.call(message, "config")) - $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.encode(message.config, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.audio != null && Object.hasOwnProperty.call(message, "audio")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.audio); + if (message.matchIntentRequest != null && Object.hasOwnProperty.call(message, "matchIntentRequest")) + $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.encode(message.matchIntentRequest, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.match != null && Object.hasOwnProperty.call(message, "match")) + $root.google.cloud.dialogflow.cx.v3beta1.Match.encode(message.match, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) + $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified AudioInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AudioInput.verify|verify} messages. + * Encodes the specified FulfillIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IAudioInput} message AudioInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest} message FulfillIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudioInput.encodeDelimited = function encodeDelimited(message, writer) { + FulfillIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AudioInput message from the specified reader or buffer. + * Decodes a FulfillIntentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.AudioInput} AudioInput + * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest} FulfillIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudioInput.decode = function decode(reader, length) { + FulfillIntentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.AudioInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.config = $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.decode(reader, reader.uint32()); + message.matchIntentRequest = $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.decode(reader, reader.uint32()); break; case 2: - message.audio = reader.bytes(); + message.match = $root.google.cloud.dialogflow.cx.v3beta1.Match.decode(reader, reader.uint32()); + break; + case 3: + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -111669,130 +111122,142 @@ }; /** - * Decodes an AudioInput message from the specified reader or buffer, length delimited. + * Decodes a FulfillIntentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.AudioInput} AudioInput + * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest} FulfillIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudioInput.decodeDelimited = function decodeDelimited(reader) { + FulfillIntentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AudioInput message. + * Verifies a FulfillIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AudioInput.verify = function verify(message) { + FulfillIntentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.config != null && message.hasOwnProperty("config")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.verify(message.config); + if (message.matchIntentRequest != null && message.hasOwnProperty("matchIntentRequest")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.verify(message.matchIntentRequest); if (error) - return "config." + error; + return "matchIntentRequest." + error; + } + if (message.match != null && message.hasOwnProperty("match")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Match.verify(message.match); + if (error) + return "match." + error; + } + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify(message.outputAudioConfig); + if (error) + return "outputAudioConfig." + error; } - if (message.audio != null && message.hasOwnProperty("audio")) - if (!(message.audio && typeof message.audio.length === "number" || $util.isString(message.audio))) - return "audio: buffer expected"; return null; }; /** - * Creates an AudioInput message from a plain object. Also converts values to their respective internal types. + * Creates a FulfillIntentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.AudioInput} AudioInput + * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest} FulfillIntentRequest */ - AudioInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.AudioInput) + FulfillIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.AudioInput(); - if (object.config != null) { - if (typeof object.config !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.AudioInput.config: object expected"); - message.config = $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.fromObject(object.config); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest(); + if (object.matchIntentRequest != null) { + if (typeof object.matchIntentRequest !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.matchIntentRequest: object expected"); + message.matchIntentRequest = $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.fromObject(object.matchIntentRequest); + } + if (object.match != null) { + if (typeof object.match !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.match: object expected"); + message.match = $root.google.cloud.dialogflow.cx.v3beta1.Match.fromObject(object.match); + } + if (object.outputAudioConfig != null) { + if (typeof object.outputAudioConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.outputAudioConfig: object expected"); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.fromObject(object.outputAudioConfig); } - if (object.audio != null) - if (typeof object.audio === "string") - $util.base64.decode(object.audio, message.audio = $util.newBuffer($util.base64.length(object.audio)), 0); - else if (object.audio.length) - message.audio = object.audio; return message; }; /** - * Creates a plain object from an AudioInput message. Also converts values to other types if specified. + * Creates a plain object from a FulfillIntentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.AudioInput} message AudioInput + * @param {google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest} message FulfillIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AudioInput.toObject = function toObject(message, options) { + FulfillIntentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.config = null; - if (options.bytes === String) - object.audio = ""; - else { - object.audio = []; - if (options.bytes !== Array) - object.audio = $util.newBuffer(object.audio); - } + object.matchIntentRequest = null; + object.match = null; + object.outputAudioConfig = null; } - if (message.config != null && message.hasOwnProperty("config")) - object.config = $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.toObject(message.config, options); - if (message.audio != null && message.hasOwnProperty("audio")) - object.audio = options.bytes === String ? $util.base64.encode(message.audio, 0, message.audio.length) : options.bytes === Array ? Array.prototype.slice.call(message.audio) : message.audio; + if (message.matchIntentRequest != null && message.hasOwnProperty("matchIntentRequest")) + object.matchIntentRequest = $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.toObject(message.matchIntentRequest, options); + if (message.match != null && message.hasOwnProperty("match")) + object.match = $root.google.cloud.dialogflow.cx.v3beta1.Match.toObject(message.match, options); + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) + object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.toObject(message.outputAudioConfig, options); return object; }; /** - * Converts this AudioInput to JSON. + * Converts this FulfillIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest * @instance * @returns {Object.} JSON object */ - AudioInput.prototype.toJSON = function toJSON() { + FulfillIntentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AudioInput; + return FulfillIntentRequest; })(); - v3beta1.EventInput = (function() { + v3beta1.FulfillIntentResponse = (function() { /** - * Properties of an EventInput. + * Properties of a FulfillIntentResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IEventInput - * @property {string|null} [event] EventInput event + * @interface IFulfillIntentResponse + * @property {string|null} [responseId] FulfillIntentResponse responseId + * @property {google.cloud.dialogflow.cx.v3beta1.IQueryResult|null} [queryResult] FulfillIntentResponse queryResult + * @property {Uint8Array|null} [outputAudio] FulfillIntentResponse outputAudio + * @property {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null} [outputAudioConfig] FulfillIntentResponse outputAudioConfig */ /** - * Constructs a new EventInput. + * Constructs a new FulfillIntentResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an EventInput. - * @implements IEventInput + * @classdesc Represents a FulfillIntentResponse. + * @implements IFulfillIntentResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IEventInput=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse=} [properties] Properties to set */ - function EventInput(properties) { + function FulfillIntentResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -111800,75 +111265,114 @@ } /** - * EventInput event. - * @member {string} event - * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput + * FulfillIntentResponse responseId. + * @member {string} responseId + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse * @instance */ - EventInput.prototype.event = ""; + FulfillIntentResponse.prototype.responseId = ""; /** - * Creates a new EventInput instance using the specified properties. + * FulfillIntentResponse queryResult. + * @member {google.cloud.dialogflow.cx.v3beta1.IQueryResult|null|undefined} queryResult + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @instance + */ + FulfillIntentResponse.prototype.queryResult = null; + + /** + * FulfillIntentResponse outputAudio. + * @member {Uint8Array} outputAudio + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @instance + */ + FulfillIntentResponse.prototype.outputAudio = $util.newBuffer([]); + + /** + * FulfillIntentResponse outputAudioConfig. + * @member {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null|undefined} outputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @instance + */ + FulfillIntentResponse.prototype.outputAudioConfig = null; + + /** + * Creates a new FulfillIntentResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEventInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.EventInput} EventInput instance + * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse} FulfillIntentResponse instance */ - EventInput.create = function create(properties) { - return new EventInput(properties); + FulfillIntentResponse.create = function create(properties) { + return new FulfillIntentResponse(properties); }; /** - * Encodes the specified EventInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventInput.verify|verify} messages. + * Encodes the specified FulfillIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEventInput} message EventInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse} message FulfillIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EventInput.encode = function encode(message, writer) { + FulfillIntentResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.event != null && Object.hasOwnProperty.call(message, "event")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.event); + if (message.responseId != null && Object.hasOwnProperty.call(message, "responseId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.responseId); + if (message.queryResult != null && Object.hasOwnProperty.call(message, "queryResult")) + $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.encode(message.queryResult, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.outputAudio != null && Object.hasOwnProperty.call(message, "outputAudio")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.outputAudio); + if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) + $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified EventInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventInput.verify|verify} messages. + * Encodes the specified FulfillIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEventInput} message EventInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse} message FulfillIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EventInput.encodeDelimited = function encodeDelimited(message, writer) { + FulfillIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EventInput message from the specified reader or buffer. + * Decodes a FulfillIntentResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.EventInput} EventInput + * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse} FulfillIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EventInput.decode = function decode(reader, length) { + FulfillIntentResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.EventInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.event = reader.string(); + message.responseId = reader.string(); + break; + case 2: + message.queryResult = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.decode(reader, reader.uint32()); + break; + case 3: + message.outputAudio = reader.bytes(); + break; + case 4: + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -111879,108 +111383,152 @@ }; /** - * Decodes an EventInput message from the specified reader or buffer, length delimited. + * Decodes a FulfillIntentResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.EventInput} EventInput + * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse} FulfillIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EventInput.decodeDelimited = function decodeDelimited(reader) { + FulfillIntentResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EventInput message. + * Verifies a FulfillIntentResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EventInput.verify = function verify(message) { + FulfillIntentResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.event != null && message.hasOwnProperty("event")) - if (!$util.isString(message.event)) - return "event: string expected"; + if (message.responseId != null && message.hasOwnProperty("responseId")) + if (!$util.isString(message.responseId)) + return "responseId: string expected"; + if (message.queryResult != null && message.hasOwnProperty("queryResult")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.verify(message.queryResult); + if (error) + return "queryResult." + error; + } + if (message.outputAudio != null && message.hasOwnProperty("outputAudio")) + if (!(message.outputAudio && typeof message.outputAudio.length === "number" || $util.isString(message.outputAudio))) + return "outputAudio: buffer expected"; + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify(message.outputAudioConfig); + if (error) + return "outputAudioConfig." + error; + } return null; }; /** - * Creates an EventInput message from a plain object. Also converts values to their respective internal types. + * Creates a FulfillIntentResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.EventInput} EventInput + * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse} FulfillIntentResponse */ - EventInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.EventInput) + FulfillIntentResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.EventInput(); - if (object.event != null) - message.event = String(object.event); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse(); + if (object.responseId != null) + message.responseId = String(object.responseId); + if (object.queryResult != null) { + if (typeof object.queryResult !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse.queryResult: object expected"); + message.queryResult = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.fromObject(object.queryResult); + } + if (object.outputAudio != null) + if (typeof object.outputAudio === "string") + $util.base64.decode(object.outputAudio, message.outputAudio = $util.newBuffer($util.base64.length(object.outputAudio)), 0); + else if (object.outputAudio.length) + message.outputAudio = object.outputAudio; + if (object.outputAudioConfig != null) { + if (typeof object.outputAudioConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse.outputAudioConfig: object expected"); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.fromObject(object.outputAudioConfig); + } return message; }; /** - * Creates a plain object from an EventInput message. Also converts values to other types if specified. + * Creates a plain object from a FulfillIntentResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EventInput} message EventInput + * @param {google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse} message FulfillIntentResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EventInput.toObject = function toObject(message, options) { + FulfillIntentResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.event = ""; - if (message.event != null && message.hasOwnProperty("event")) - object.event = message.event; + if (options.defaults) { + object.responseId = ""; + object.queryResult = null; + if (options.bytes === String) + object.outputAudio = ""; + else { + object.outputAudio = []; + if (options.bytes !== Array) + object.outputAudio = $util.newBuffer(object.outputAudio); + } + object.outputAudioConfig = null; + } + if (message.responseId != null && message.hasOwnProperty("responseId")) + object.responseId = message.responseId; + if (message.queryResult != null && message.hasOwnProperty("queryResult")) + object.queryResult = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.toObject(message.queryResult, options); + if (message.outputAudio != null && message.hasOwnProperty("outputAudio")) + object.outputAudio = options.bytes === String ? $util.base64.encode(message.outputAudio, 0, message.outputAudio.length) : options.bytes === Array ? Array.prototype.slice.call(message.outputAudio) : message.outputAudio; + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) + object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.toObject(message.outputAudioConfig, options); return object; }; /** - * Converts this EventInput to JSON. + * Converts this FulfillIntentResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput + * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse * @instance * @returns {Object.} JSON object */ - EventInput.prototype.toJSON = function toJSON() { + FulfillIntentResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return EventInput; + return FulfillIntentResponse; })(); - v3beta1.DtmfInput = (function() { + v3beta1.SentimentAnalysisResult = (function() { /** - * Properties of a DtmfInput. + * Properties of a SentimentAnalysisResult. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDtmfInput - * @property {string|null} [digits] DtmfInput digits - * @property {string|null} [finishDigit] DtmfInput finishDigit + * @interface ISentimentAnalysisResult + * @property {number|null} [score] SentimentAnalysisResult score + * @property {number|null} [magnitude] SentimentAnalysisResult magnitude */ /** - * Constructs a new DtmfInput. + * Constructs a new SentimentAnalysisResult. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DtmfInput. - * @implements IDtmfInput + * @classdesc Represents a SentimentAnalysisResult. + * @implements ISentimentAnalysisResult * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDtmfInput=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult=} [properties] Properties to set */ - function DtmfInput(properties) { + function SentimentAnalysisResult(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -111988,88 +111536,88 @@ } /** - * DtmfInput digits. - * @member {string} digits - * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput + * SentimentAnalysisResult score. + * @member {number} score + * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult * @instance */ - DtmfInput.prototype.digits = ""; + SentimentAnalysisResult.prototype.score = 0; /** - * DtmfInput finishDigit. - * @member {string} finishDigit - * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput + * SentimentAnalysisResult magnitude. + * @member {number} magnitude + * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult * @instance */ - DtmfInput.prototype.finishDigit = ""; + SentimentAnalysisResult.prototype.magnitude = 0; /** - * Creates a new DtmfInput instance using the specified properties. + * Creates a new SentimentAnalysisResult instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDtmfInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DtmfInput} DtmfInput instance + * @param {google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult} SentimentAnalysisResult instance */ - DtmfInput.create = function create(properties) { - return new DtmfInput(properties); + SentimentAnalysisResult.create = function create(properties) { + return new SentimentAnalysisResult(properties); }; /** - * Encodes the specified DtmfInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DtmfInput.verify|verify} messages. + * Encodes the specified SentimentAnalysisResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDtmfInput} message DtmfInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult} message SentimentAnalysisResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DtmfInput.encode = function encode(message, writer) { + SentimentAnalysisResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.digits != null && Object.hasOwnProperty.call(message, "digits")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.digits); - if (message.finishDigit != null && Object.hasOwnProperty.call(message, "finishDigit")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.finishDigit); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); + if (message.magnitude != null && Object.hasOwnProperty.call(message, "magnitude")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.magnitude); return writer; }; /** - * Encodes the specified DtmfInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DtmfInput.verify|verify} messages. + * Encodes the specified SentimentAnalysisResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDtmfInput} message DtmfInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult} message SentimentAnalysisResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DtmfInput.encodeDelimited = function encodeDelimited(message, writer) { + SentimentAnalysisResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DtmfInput message from the specified reader or buffer. + * Decodes a SentimentAnalysisResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DtmfInput} DtmfInput + * @returns {google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult} SentimentAnalysisResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DtmfInput.decode = function decode(reader, length) { + SentimentAnalysisResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.digits = reader.string(); + message.score = reader.float(); break; case 2: - message.finishDigit = reader.string(); + message.magnitude = reader.float(); break; default: reader.skipType(tag & 7); @@ -112080,488 +111628,319 @@ }; /** - * Decodes a DtmfInput message from the specified reader or buffer, length delimited. + * Decodes a SentimentAnalysisResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DtmfInput} DtmfInput + * @returns {google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult} SentimentAnalysisResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DtmfInput.decodeDelimited = function decodeDelimited(reader) { + SentimentAnalysisResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DtmfInput message. + * Verifies a SentimentAnalysisResult message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DtmfInput.verify = function verify(message) { + SentimentAnalysisResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.digits != null && message.hasOwnProperty("digits")) - if (!$util.isString(message.digits)) - return "digits: string expected"; - if (message.finishDigit != null && message.hasOwnProperty("finishDigit")) - if (!$util.isString(message.finishDigit)) - return "finishDigit: string expected"; + if (message.score != null && message.hasOwnProperty("score")) + if (typeof message.score !== "number") + return "score: number expected"; + if (message.magnitude != null && message.hasOwnProperty("magnitude")) + if (typeof message.magnitude !== "number") + return "magnitude: number expected"; return null; }; /** - * Creates a DtmfInput message from a plain object. Also converts values to their respective internal types. + * Creates a SentimentAnalysisResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DtmfInput} DtmfInput + * @returns {google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult} SentimentAnalysisResult */ - DtmfInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput) + SentimentAnalysisResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput(); - if (object.digits != null) - message.digits = String(object.digits); - if (object.finishDigit != null) - message.finishDigit = String(object.finishDigit); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult(); + if (object.score != null) + message.score = Number(object.score); + if (object.magnitude != null) + message.magnitude = Number(object.magnitude); return message; }; /** - * Creates a plain object from a DtmfInput message. Also converts values to other types if specified. + * Creates a plain object from a SentimentAnalysisResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DtmfInput} message DtmfInput + * @param {google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult} message SentimentAnalysisResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DtmfInput.toObject = function toObject(message, options) { + SentimentAnalysisResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.digits = ""; - object.finishDigit = ""; + object.score = 0; + object.magnitude = 0; } - if (message.digits != null && message.hasOwnProperty("digits")) - object.digits = message.digits; - if (message.finishDigit != null && message.hasOwnProperty("finishDigit")) - object.finishDigit = message.finishDigit; + if (message.score != null && message.hasOwnProperty("score")) + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (message.magnitude != null && message.hasOwnProperty("magnitude")) + object.magnitude = options.json && !isFinite(message.magnitude) ? String(message.magnitude) : message.magnitude; return object; }; /** - * Converts this DtmfInput to JSON. + * Converts this SentimentAnalysisResult to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult * @instance * @returns {Object.} JSON object */ - DtmfInput.prototype.toJSON = function toJSON() { + SentimentAnalysisResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DtmfInput; + return SentimentAnalysisResult; })(); - v3beta1.Match = (function() { - - /** - * Properties of a Match. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IMatch - * @property {google.cloud.dialogflow.cx.v3beta1.IIntent|null} [intent] Match intent - * @property {string|null} [event] Match event - * @property {google.protobuf.IStruct|null} [parameters] Match parameters - * @property {string|null} [resolvedInput] Match resolvedInput - * @property {google.cloud.dialogflow.cx.v3beta1.Match.MatchType|null} [matchType] Match matchType - * @property {number|null} [confidence] Match confidence - */ + v3beta1.SessionEntityTypes = (function() { /** - * Constructs a new Match. + * Constructs a new SessionEntityTypes service. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a Match. - * @implements IMatch + * @classdesc Represents a SessionEntityTypes + * @extends $protobuf.rpc.Service * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IMatch=} [properties] Properties to set + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - function Match(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + function SessionEntityTypes(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } + (SessionEntityTypes.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = SessionEntityTypes; + /** - * Match intent. - * @member {google.cloud.dialogflow.cx.v3beta1.IIntent|null|undefined} intent - * @memberof google.cloud.dialogflow.cx.v3beta1.Match - * @instance + * Creates new SessionEntityTypes service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {SessionEntityTypes} RPC service. Useful where requests and/or responses are streamed. */ - Match.prototype.intent = null; + SessionEntityTypes.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * Match event. - * @member {string} event - * @memberof google.cloud.dialogflow.cx.v3beta1.Match - * @instance + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#listSessionEntityTypes}. + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @typedef ListSessionEntityTypesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse} [response] ListSessionEntityTypesResponse */ - Match.prototype.event = ""; /** - * Match parameters. - * @member {google.protobuf.IStruct|null|undefined} parameters - * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * Calls ListSessionEntityTypes. + * @function listSessionEntityTypes + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest} request ListSessionEntityTypesRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.ListSessionEntityTypesCallback} callback Node-style callback called with the error, if any, and ListSessionEntityTypesResponse + * @returns {undefined} + * @variation 1 */ - Match.prototype.parameters = null; + Object.defineProperty(SessionEntityTypes.prototype.listSessionEntityTypes = function listSessionEntityTypes(request, callback) { + return this.rpcCall(listSessionEntityTypes, $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse, request, callback); + }, "name", { value: "ListSessionEntityTypes" }); /** - * Match resolvedInput. - * @member {string} resolvedInput - * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * Calls ListSessionEntityTypes. + * @function listSessionEntityTypes + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest} request ListSessionEntityTypesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - Match.prototype.resolvedInput = ""; /** - * Match matchType. - * @member {google.cloud.dialogflow.cx.v3beta1.Match.MatchType} matchType - * @memberof google.cloud.dialogflow.cx.v3beta1.Match - * @instance + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#getSessionEntityType}. + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @typedef GetSessionEntityTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} [response] SessionEntityType */ - Match.prototype.matchType = 0; /** - * Match confidence. - * @member {number} confidence - * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * Calls GetSessionEntityType. + * @function getSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest} request GetSessionEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.GetSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and SessionEntityType + * @returns {undefined} + * @variation 1 */ - Match.prototype.confidence = 0; + Object.defineProperty(SessionEntityTypes.prototype.getSessionEntityType = function getSessionEntityType(request, callback) { + return this.rpcCall(getSessionEntityType, $root.google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType, request, callback); + }, "name", { value: "GetSessionEntityType" }); /** - * Creates a new Match instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Match - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IMatch=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Match} Match instance + * Calls GetSessionEntityType. + * @function getSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest} request GetSessionEntityTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - Match.create = function create(properties) { - return new Match(properties); - }; /** - * Encodes the specified Match message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Match.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Match - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IMatch} message Match message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#createSessionEntityType}. + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @typedef CreateSessionEntityTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} [response] SessionEntityType */ - Match.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) - $root.google.cloud.dialogflow.cx.v3beta1.Intent.encode(message.intent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - $root.google.protobuf.Struct.encode(message.parameters, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.resolvedInput != null && Object.hasOwnProperty.call(message, "resolvedInput")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.resolvedInput); - if (message.matchType != null && Object.hasOwnProperty.call(message, "matchType")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.matchType); - if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) - writer.uint32(/* id 5, wireType 5 =*/45).float(message.confidence); - if (message.event != null && Object.hasOwnProperty.call(message, "event")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.event); - return writer; - }; /** - * Encodes the specified Match message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Match.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Match - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IMatch} message Match message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateSessionEntityType. + * @function createSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest} request CreateSessionEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.CreateSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and SessionEntityType + * @returns {undefined} + * @variation 1 */ - Match.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(SessionEntityTypes.prototype.createSessionEntityType = function createSessionEntityType(request, callback) { + return this.rpcCall(createSessionEntityType, $root.google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType, request, callback); + }, "name", { value: "CreateSessionEntityType" }); /** - * Decodes a Match message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Match - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Match} Match - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateSessionEntityType. + * @function createSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest} request CreateSessionEntityTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - Match.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Match(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.decode(reader, reader.uint32()); - break; - case 6: - message.event = reader.string(); - break; - case 2: - message.parameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 3: - message.resolvedInput = reader.string(); - break; - case 4: - message.matchType = reader.int32(); - break; - case 5: - message.confidence = reader.float(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a Match message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Match - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Match} Match - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#updateSessionEntityType}. + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @typedef UpdateSessionEntityTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} [response] SessionEntityType */ - Match.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a Match message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Match - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Match.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.intent != null && message.hasOwnProperty("intent")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.verify(message.intent); - if (error) - return "intent." + error; - } - if (message.event != null && message.hasOwnProperty("event")) - if (!$util.isString(message.event)) - return "event: string expected"; - if (message.parameters != null && message.hasOwnProperty("parameters")) { - var error = $root.google.protobuf.Struct.verify(message.parameters); - if (error) - return "parameters." + error; - } - if (message.resolvedInput != null && message.hasOwnProperty("resolvedInput")) - if (!$util.isString(message.resolvedInput)) - return "resolvedInput: string expected"; - if (message.matchType != null && message.hasOwnProperty("matchType")) - switch (message.matchType) { - default: - return "matchType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.confidence != null && message.hasOwnProperty("confidence")) - if (typeof message.confidence !== "number") - return "confidence: number expected"; - return null; - }; + * Calls UpdateSessionEntityType. + * @function updateSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest} request UpdateSessionEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.UpdateSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and SessionEntityType + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SessionEntityTypes.prototype.updateSessionEntityType = function updateSessionEntityType(request, callback) { + return this.rpcCall(updateSessionEntityType, $root.google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType, request, callback); + }, "name", { value: "UpdateSessionEntityType" }); /** - * Creates a Match message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Match - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Match} Match + * Calls UpdateSessionEntityType. + * @function updateSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest} request UpdateSessionEntityTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - Match.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Match) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Match(); - if (object.intent != null) { - if (typeof object.intent !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Match.intent: object expected"); - message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.fromObject(object.intent); - } - if (object.event != null) - message.event = String(object.event); - if (object.parameters != null) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Match.parameters: object expected"); - message.parameters = $root.google.protobuf.Struct.fromObject(object.parameters); - } - if (object.resolvedInput != null) - message.resolvedInput = String(object.resolvedInput); - switch (object.matchType) { - case "MATCH_TYPE_UNSPECIFIED": - case 0: - message.matchType = 0; - break; - case "INTENT": - case 1: - message.matchType = 1; - break; - case "DIRECT_INTENT": - case 2: - message.matchType = 2; - break; - case "PARAMETER_FILLING": - case 3: - message.matchType = 3; - break; - case "NO_MATCH": - case 4: - message.matchType = 4; - break; - case "NO_INPUT": - case 5: - message.matchType = 5; - break; - case "EVENT": - case 6: - message.matchType = 6; - break; - } - if (object.confidence != null) - message.confidence = Number(object.confidence); - return message; - }; /** - * Creates a plain object from a Match message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Match - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Match} message Match - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#deleteSessionEntityType}. + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @typedef DeleteSessionEntityTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - Match.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.intent = null; - object.parameters = null; - object.resolvedInput = ""; - object.matchType = options.enums === String ? "MATCH_TYPE_UNSPECIFIED" : 0; - object.confidence = 0; - object.event = ""; - } - if (message.intent != null && message.hasOwnProperty("intent")) - object.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.toObject(message.intent, options); - if (message.parameters != null && message.hasOwnProperty("parameters")) - object.parameters = $root.google.protobuf.Struct.toObject(message.parameters, options); - if (message.resolvedInput != null && message.hasOwnProperty("resolvedInput")) - object.resolvedInput = message.resolvedInput; - if (message.matchType != null && message.hasOwnProperty("matchType")) - object.matchType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.Match.MatchType[message.matchType] : message.matchType; - if (message.confidence != null && message.hasOwnProperty("confidence")) - object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; - if (message.event != null && message.hasOwnProperty("event")) - object.event = message.event; - return object; - }; /** - * Converts this Match to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * Calls DeleteSessionEntityType. + * @function deleteSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes * @instance - * @returns {Object.} JSON object + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest} request DeleteSessionEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.DeleteSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - Match.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(SessionEntityTypes.prototype.deleteSessionEntityType = function deleteSessionEntityType(request, callback) { + return this.rpcCall(deleteSessionEntityType, $root.google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteSessionEntityType" }); /** - * MatchType enum. - * @name google.cloud.dialogflow.cx.v3beta1.Match.MatchType - * @enum {number} - * @property {number} MATCH_TYPE_UNSPECIFIED=0 MATCH_TYPE_UNSPECIFIED value - * @property {number} INTENT=1 INTENT value - * @property {number} DIRECT_INTENT=2 DIRECT_INTENT value - * @property {number} PARAMETER_FILLING=3 PARAMETER_FILLING value - * @property {number} NO_MATCH=4 NO_MATCH value - * @property {number} NO_INPUT=5 NO_INPUT value - * @property {number} EVENT=6 EVENT value + * Calls DeleteSessionEntityType. + * @function deleteSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest} request DeleteSessionEntityTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - Match.MatchType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MATCH_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "INTENT"] = 1; - values[valuesById[2] = "DIRECT_INTENT"] = 2; - values[valuesById[3] = "PARAMETER_FILLING"] = 3; - values[valuesById[4] = "NO_MATCH"] = 4; - values[valuesById[5] = "NO_INPUT"] = 5; - values[valuesById[6] = "EVENT"] = 6; - return values; - })(); - return Match; + return SessionEntityTypes; })(); - v3beta1.MatchIntentRequest = (function() { + v3beta1.SessionEntityType = (function() { /** - * Properties of a MatchIntentRequest. + * Properties of a SessionEntityType. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IMatchIntentRequest - * @property {string|null} [session] MatchIntentRequest session - * @property {google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null} [queryParams] MatchIntentRequest queryParams - * @property {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null} [queryInput] MatchIntentRequest queryInput + * @interface ISessionEntityType + * @property {string|null} [name] SessionEntityType name + * @property {google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode|null} [entityOverrideMode] SessionEntityType entityOverrideMode + * @property {Array.|null} [entities] SessionEntityType entities */ /** - * Constructs a new MatchIntentRequest. + * Constructs a new SessionEntityType. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a MatchIntentRequest. - * @implements IMatchIntentRequest + * @classdesc Represents a SessionEntityType. + * @implements ISessionEntityType * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType=} [properties] Properties to set */ - function MatchIntentRequest(properties) { + function SessionEntityType(properties) { + this.entities = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -112569,101 +111948,104 @@ } /** - * MatchIntentRequest session. - * @member {string} session - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * SessionEntityType name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType * @instance */ - MatchIntentRequest.prototype.session = ""; + SessionEntityType.prototype.name = ""; /** - * MatchIntentRequest queryParams. - * @member {google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null|undefined} queryParams - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * SessionEntityType entityOverrideMode. + * @member {google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode} entityOverrideMode + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType * @instance */ - MatchIntentRequest.prototype.queryParams = null; + SessionEntityType.prototype.entityOverrideMode = 0; /** - * MatchIntentRequest queryInput. - * @member {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null|undefined} queryInput - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * SessionEntityType entities. + * @member {Array.} entities + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType * @instance */ - MatchIntentRequest.prototype.queryInput = null; + SessionEntityType.prototype.entities = $util.emptyArray; /** - * Creates a new MatchIntentRequest instance using the specified properties. + * Creates a new SessionEntityType instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest} MatchIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} SessionEntityType instance */ - MatchIntentRequest.create = function create(properties) { - return new MatchIntentRequest(properties); + SessionEntityType.create = function create(properties) { + return new SessionEntityType(properties); }; /** - * Encodes the specified MatchIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.verify|verify} messages. + * Encodes the specified SessionEntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest} message MatchIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType} message SessionEntityType message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MatchIntentRequest.encode = function encode(message, writer) { + SessionEntityType.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.session != null && Object.hasOwnProperty.call(message, "session")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.session); - if (message.queryParams != null && Object.hasOwnProperty.call(message, "queryParams")) - $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.encode(message.queryParams, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.queryInput != null && Object.hasOwnProperty.call(message, "queryInput")) - $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.encode(message.queryInput, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.entityOverrideMode != null && Object.hasOwnProperty.call(message, "entityOverrideMode")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.entityOverrideMode); + if (message.entities != null && message.entities.length) + for (var i = 0; i < message.entities.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.encode(message.entities[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified MatchIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.verify|verify} messages. + * Encodes the specified SessionEntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest} message MatchIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType} message SessionEntityType message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MatchIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + SessionEntityType.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MatchIntentRequest message from the specified reader or buffer. + * Decodes a SessionEntityType message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest} MatchIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} SessionEntityType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MatchIntentRequest.decode = function decode(reader, length) { + SessionEntityType.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.session = reader.string(); - break; - case 2: - message.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.decode(reader, reader.uint32()); + message.name = reader.string(); break; case 3: - message.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.decode(reader, reader.uint32()); + message.entityOverrideMode = reader.int32(); + break; + case 4: + if (!(message.entities && message.entities.length)) + message.entities = []; + message.entities.push($root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -112674,140 +112056,178 @@ }; /** - * Decodes a MatchIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a SessionEntityType message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest} MatchIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} SessionEntityType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MatchIntentRequest.decodeDelimited = function decodeDelimited(reader) { + SessionEntityType.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MatchIntentRequest message. + * Verifies a SessionEntityType message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MatchIntentRequest.verify = function verify(message) { + SessionEntityType.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.session != null && message.hasOwnProperty("session")) - if (!$util.isString(message.session)) - return "session: string expected"; - if (message.queryParams != null && message.hasOwnProperty("queryParams")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify(message.queryParams); - if (error) - return "queryParams." + error; - } - if (message.queryInput != null && message.hasOwnProperty("queryInput")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.verify(message.queryInput); - if (error) - return "queryInput." + error; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.entityOverrideMode != null && message.hasOwnProperty("entityOverrideMode")) + switch (message.entityOverrideMode) { + default: + return "entityOverrideMode: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.entities != null && message.hasOwnProperty("entities")) { + if (!Array.isArray(message.entities)) + return "entities: array expected"; + for (var i = 0; i < message.entities.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.verify(message.entities[i]); + if (error) + return "entities." + error; + } } return null; }; /** - * Creates a MatchIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SessionEntityType message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest} MatchIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} SessionEntityType */ - MatchIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest) + SessionEntityType.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest(); - if (object.session != null) - message.session = String(object.session); - if (object.queryParams != null) { - if (typeof object.queryParams !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.queryParams: object expected"); - message.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.fromObject(object.queryParams); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType(); + if (object.name != null) + message.name = String(object.name); + switch (object.entityOverrideMode) { + case "ENTITY_OVERRIDE_MODE_UNSPECIFIED": + case 0: + message.entityOverrideMode = 0; + break; + case "ENTITY_OVERRIDE_MODE_OVERRIDE": + case 1: + message.entityOverrideMode = 1; + break; + case "ENTITY_OVERRIDE_MODE_SUPPLEMENT": + case 2: + message.entityOverrideMode = 2; + break; } - if (object.queryInput != null) { - if (typeof object.queryInput !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.queryInput: object expected"); - message.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.fromObject(object.queryInput); + if (object.entities) { + if (!Array.isArray(object.entities)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SessionEntityType.entities: array expected"); + message.entities = []; + for (var i = 0; i < object.entities.length; ++i) { + if (typeof object.entities[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SessionEntityType.entities: object expected"); + message.entities[i] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.fromObject(object.entities[i]); + } } return message; }; /** - * Creates a plain object from a MatchIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from a SessionEntityType message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType * @static - * @param {google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest} message MatchIntentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} message SessionEntityType * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MatchIntentRequest.toObject = function toObject(message, options) { + SessionEntityType.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.entities = []; if (options.defaults) { - object.session = ""; - object.queryParams = null; - object.queryInput = null; + object.name = ""; + object.entityOverrideMode = options.enums === String ? "ENTITY_OVERRIDE_MODE_UNSPECIFIED" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.entityOverrideMode != null && message.hasOwnProperty("entityOverrideMode")) + object.entityOverrideMode = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode[message.entityOverrideMode] : message.entityOverrideMode; + if (message.entities && message.entities.length) { + object.entities = []; + for (var j = 0; j < message.entities.length; ++j) + object.entities[j] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.toObject(message.entities[j], options); } - if (message.session != null && message.hasOwnProperty("session")) - object.session = message.session; - if (message.queryParams != null && message.hasOwnProperty("queryParams")) - object.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.toObject(message.queryParams, options); - if (message.queryInput != null && message.hasOwnProperty("queryInput")) - object.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.toObject(message.queryInput, options); return object; }; /** - * Converts this MatchIntentRequest to JSON. + * Converts this SessionEntityType to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType * @instance * @returns {Object.} JSON object */ - MatchIntentRequest.prototype.toJSON = function toJSON() { + SessionEntityType.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MatchIntentRequest; + /** + * EntityOverrideMode enum. + * @name google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode + * @enum {number} + * @property {number} ENTITY_OVERRIDE_MODE_UNSPECIFIED=0 ENTITY_OVERRIDE_MODE_UNSPECIFIED value + * @property {number} ENTITY_OVERRIDE_MODE_OVERRIDE=1 ENTITY_OVERRIDE_MODE_OVERRIDE value + * @property {number} ENTITY_OVERRIDE_MODE_SUPPLEMENT=2 ENTITY_OVERRIDE_MODE_SUPPLEMENT value + */ + SessionEntityType.EntityOverrideMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ENTITY_OVERRIDE_MODE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ENTITY_OVERRIDE_MODE_OVERRIDE"] = 1; + values[valuesById[2] = "ENTITY_OVERRIDE_MODE_SUPPLEMENT"] = 2; + return values; + })(); + + return SessionEntityType; })(); - v3beta1.MatchIntentResponse = (function() { + v3beta1.ListSessionEntityTypesRequest = (function() { /** - * Properties of a MatchIntentResponse. + * Properties of a ListSessionEntityTypesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IMatchIntentResponse - * @property {string|null} [text] MatchIntentResponse text - * @property {string|null} [triggerIntent] MatchIntentResponse triggerIntent - * @property {string|null} [transcript] MatchIntentResponse transcript - * @property {string|null} [triggerEvent] MatchIntentResponse triggerEvent - * @property {Array.|null} [matches] MatchIntentResponse matches - * @property {google.cloud.dialogflow.cx.v3beta1.IPage|null} [currentPage] MatchIntentResponse currentPage + * @interface IListSessionEntityTypesRequest + * @property {string|null} [parent] ListSessionEntityTypesRequest parent + * @property {number|null} [pageSize] ListSessionEntityTypesRequest pageSize + * @property {string|null} [pageToken] ListSessionEntityTypesRequest pageToken */ /** - * Constructs a new MatchIntentResponse. + * Constructs a new ListSessionEntityTypesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a MatchIntentResponse. - * @implements IMatchIntentResponse + * @classdesc Represents a ListSessionEntityTypesRequest. + * @implements IListSessionEntityTypesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest=} [properties] Properties to set */ - function MatchIntentResponse(properties) { - this.matches = []; + function ListSessionEntityTypesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -112815,157 +112235,101 @@ } /** - * MatchIntentResponse text. - * @member {string|null|undefined} text - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse - * @instance - */ - MatchIntentResponse.prototype.text = null; - - /** - * MatchIntentResponse triggerIntent. - * @member {string|null|undefined} triggerIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse - * @instance - */ - MatchIntentResponse.prototype.triggerIntent = null; - - /** - * MatchIntentResponse transcript. - * @member {string|null|undefined} transcript - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse - * @instance - */ - MatchIntentResponse.prototype.transcript = null; - - /** - * MatchIntentResponse triggerEvent. - * @member {string|null|undefined} triggerEvent - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse - * @instance - */ - MatchIntentResponse.prototype.triggerEvent = null; - - /** - * MatchIntentResponse matches. - * @member {Array.} matches - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * ListSessionEntityTypesRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest * @instance */ - MatchIntentResponse.prototype.matches = $util.emptyArray; + ListSessionEntityTypesRequest.prototype.parent = ""; /** - * MatchIntentResponse currentPage. - * @member {google.cloud.dialogflow.cx.v3beta1.IPage|null|undefined} currentPage - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * ListSessionEntityTypesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest * @instance */ - MatchIntentResponse.prototype.currentPage = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ListSessionEntityTypesRequest.prototype.pageSize = 0; /** - * MatchIntentResponse query. - * @member {"text"|"triggerIntent"|"transcript"|"triggerEvent"|undefined} query - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * ListSessionEntityTypesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest * @instance */ - Object.defineProperty(MatchIntentResponse.prototype, "query", { - get: $util.oneOfGetter($oneOfFields = ["text", "triggerIntent", "transcript", "triggerEvent"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListSessionEntityTypesRequest.prototype.pageToken = ""; /** - * Creates a new MatchIntentResponse instance using the specified properties. + * Creates a new ListSessionEntityTypesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse} MatchIntentResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest instance */ - MatchIntentResponse.create = function create(properties) { - return new MatchIntentResponse(properties); + ListSessionEntityTypesRequest.create = function create(properties) { + return new ListSessionEntityTypesRequest(properties); }; /** - * Encodes the specified MatchIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.verify|verify} messages. + * Encodes the specified ListSessionEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse} message MatchIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest} message ListSessionEntityTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MatchIntentResponse.encode = function encode(message, writer) { + ListSessionEntityTypesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.text != null && Object.hasOwnProperty.call(message, "text")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); - if (message.triggerIntent != null && Object.hasOwnProperty.call(message, "triggerIntent")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.triggerIntent); - if (message.transcript != null && Object.hasOwnProperty.call(message, "transcript")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.transcript); - if (message.matches != null && message.matches.length) - for (var i = 0; i < message.matches.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Match.encode(message.matches[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) - $root.google.cloud.dialogflow.cx.v3beta1.Page.encode(message.currentPage, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.triggerEvent != null && Object.hasOwnProperty.call(message, "triggerEvent")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.triggerEvent); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified MatchIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.verify|verify} messages. + * Encodes the specified ListSessionEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse} message MatchIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest} message ListSessionEntityTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MatchIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListSessionEntityTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MatchIntentResponse message from the specified reader or buffer. + * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse} MatchIntentResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MatchIntentResponse.decode = function decode(reader, length) { + ListSessionEntityTypesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.text = reader.string(); + message.parent = reader.string(); break; case 2: - message.triggerIntent = reader.string(); + message.pageSize = reader.int32(); break; case 3: - message.transcript = reader.string(); - break; - case 6: - message.triggerEvent = reader.string(); - break; - case 4: - if (!(message.matches && message.matches.length)) - message.matches = []; - message.matches.push($root.google.cloud.dialogflow.cx.v3beta1.Match.decode(reader, reader.uint32())); - break; - case 5: - message.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.decode(reader, reader.uint32()); + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -112976,195 +112340,126 @@ }; /** - * Decodes a MatchIntentResponse message from the specified reader or buffer, length delimited. + * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse} MatchIntentResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MatchIntentResponse.decodeDelimited = function decodeDelimited(reader) { + ListSessionEntityTypesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MatchIntentResponse message. + * Verifies a ListSessionEntityTypesRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MatchIntentResponse.verify = function verify(message) { + ListSessionEntityTypesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.text != null && message.hasOwnProperty("text")) { - properties.query = 1; - if (!$util.isString(message.text)) - return "text: string expected"; - } - if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { - if (properties.query === 1) - return "query: multiple values"; - properties.query = 1; - if (!$util.isString(message.triggerIntent)) - return "triggerIntent: string expected"; - } - if (message.transcript != null && message.hasOwnProperty("transcript")) { - if (properties.query === 1) - return "query: multiple values"; - properties.query = 1; - if (!$util.isString(message.transcript)) - return "transcript: string expected"; - } - if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { - if (properties.query === 1) - return "query: multiple values"; - properties.query = 1; - if (!$util.isString(message.triggerEvent)) - return "triggerEvent: string expected"; - } - if (message.matches != null && message.hasOwnProperty("matches")) { - if (!Array.isArray(message.matches)) - return "matches: array expected"; - for (var i = 0; i < message.matches.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Match.verify(message.matches[i]); - if (error) - return "matches." + error; - } - } - if (message.currentPage != null && message.hasOwnProperty("currentPage")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Page.verify(message.currentPage); - if (error) - return "currentPage." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a MatchIntentResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListSessionEntityTypesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse} MatchIntentResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest */ - MatchIntentResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse) + ListSessionEntityTypesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse(); - if (object.text != null) - message.text = String(object.text); - if (object.triggerIntent != null) - message.triggerIntent = String(object.triggerIntent); - if (object.transcript != null) - message.transcript = String(object.transcript); - if (object.triggerEvent != null) - message.triggerEvent = String(object.triggerEvent); - if (object.matches) { - if (!Array.isArray(object.matches)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.matches: array expected"); - message.matches = []; - for (var i = 0; i < object.matches.length; ++i) { - if (typeof object.matches[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.matches: object expected"); - message.matches[i] = $root.google.cloud.dialogflow.cx.v3beta1.Match.fromObject(object.matches[i]); - } - } - if (object.currentPage != null) { - if (typeof object.currentPage !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.currentPage: object expected"); - message.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.fromObject(object.currentPage); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a MatchIntentResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListSessionEntityTypesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse} message MatchIntentResponse + * @param {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest} message ListSessionEntityTypesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MatchIntentResponse.toObject = function toObject(message, options) { + ListSessionEntityTypesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.matches = []; - if (options.defaults) - object.currentPage = null; - if (message.text != null && message.hasOwnProperty("text")) { - object.text = message.text; - if (options.oneofs) - object.query = "text"; - } - if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { - object.triggerIntent = message.triggerIntent; - if (options.oneofs) - object.query = "triggerIntent"; - } - if (message.transcript != null && message.hasOwnProperty("transcript")) { - object.transcript = message.transcript; - if (options.oneofs) - object.query = "transcript"; - } - if (message.matches && message.matches.length) { - object.matches = []; - for (var j = 0; j < message.matches.length; ++j) - object.matches[j] = $root.google.cloud.dialogflow.cx.v3beta1.Match.toObject(message.matches[j], options); - } - if (message.currentPage != null && message.hasOwnProperty("currentPage")) - object.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.toObject(message.currentPage, options); - if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { - object.triggerEvent = message.triggerEvent; - if (options.oneofs) - object.query = "triggerEvent"; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this MatchIntentResponse to JSON. + * Converts this ListSessionEntityTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest * @instance * @returns {Object.} JSON object */ - MatchIntentResponse.prototype.toJSON = function toJSON() { + ListSessionEntityTypesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MatchIntentResponse; + return ListSessionEntityTypesRequest; })(); - v3beta1.FulfillIntentRequest = (function() { + v3beta1.ListSessionEntityTypesResponse = (function() { /** - * Properties of a FulfillIntentRequest. + * Properties of a ListSessionEntityTypesResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IFulfillIntentRequest - * @property {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest|null} [matchIntentRequest] FulfillIntentRequest matchIntentRequest - * @property {google.cloud.dialogflow.cx.v3beta1.IMatch|null} [match] FulfillIntentRequest match - * @property {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null} [outputAudioConfig] FulfillIntentRequest outputAudioConfig + * @interface IListSessionEntityTypesResponse + * @property {Array.|null} [sessionEntityTypes] ListSessionEntityTypesResponse sessionEntityTypes + * @property {string|null} [nextPageToken] ListSessionEntityTypesResponse nextPageToken */ /** - * Constructs a new FulfillIntentRequest. + * Constructs a new ListSessionEntityTypesResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a FulfillIntentRequest. - * @implements IFulfillIntentRequest + * @classdesc Represents a ListSessionEntityTypesResponse. + * @implements IListSessionEntityTypesResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse=} [properties] Properties to set */ - function FulfillIntentRequest(properties) { + function ListSessionEntityTypesResponse(properties) { + this.sessionEntityTypes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -113172,101 +112467,91 @@ } /** - * FulfillIntentRequest matchIntentRequest. - * @member {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest|null|undefined} matchIntentRequest - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest - * @instance - */ - FulfillIntentRequest.prototype.matchIntentRequest = null; - - /** - * FulfillIntentRequest match. - * @member {google.cloud.dialogflow.cx.v3beta1.IMatch|null|undefined} match - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * ListSessionEntityTypesResponse sessionEntityTypes. + * @member {Array.} sessionEntityTypes + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse * @instance */ - FulfillIntentRequest.prototype.match = null; + ListSessionEntityTypesResponse.prototype.sessionEntityTypes = $util.emptyArray; /** - * FulfillIntentRequest outputAudioConfig. - * @member {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null|undefined} outputAudioConfig - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * ListSessionEntityTypesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse * @instance */ - FulfillIntentRequest.prototype.outputAudioConfig = null; + ListSessionEntityTypesResponse.prototype.nextPageToken = ""; /** - * Creates a new FulfillIntentRequest instance using the specified properties. + * Creates a new ListSessionEntityTypesResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest} FulfillIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse instance */ - FulfillIntentRequest.create = function create(properties) { - return new FulfillIntentRequest(properties); + ListSessionEntityTypesResponse.create = function create(properties) { + return new ListSessionEntityTypesResponse(properties); }; /** - * Encodes the specified FulfillIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.verify|verify} messages. + * Encodes the specified ListSessionEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest} message FulfillIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse} message ListSessionEntityTypesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FulfillIntentRequest.encode = function encode(message, writer) { + ListSessionEntityTypesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.matchIntentRequest != null && Object.hasOwnProperty.call(message, "matchIntentRequest")) - $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.encode(message.matchIntentRequest, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.match != null && Object.hasOwnProperty.call(message, "match")) - $root.google.cloud.dialogflow.cx.v3beta1.Match.encode(message.match, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) - $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.sessionEntityTypes != null && message.sessionEntityTypes.length) + for (var i = 0; i < message.sessionEntityTypes.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.encode(message.sessionEntityTypes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified FulfillIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.verify|verify} messages. + * Encodes the specified ListSessionEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest} message FulfillIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse} message ListSessionEntityTypesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FulfillIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListSessionEntityTypesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FulfillIntentRequest message from the specified reader or buffer. + * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest} FulfillIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FulfillIntentRequest.decode = function decode(reader, length) { + ListSessionEntityTypesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.matchIntentRequest = $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.decode(reader, reader.uint32()); + if (!(message.sessionEntityTypes && message.sessionEntityTypes.length)) + message.sessionEntityTypes = []; + message.sessionEntityTypes.push($root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.decode(reader, reader.uint32())); break; case 2: - message.match = $root.google.cloud.dialogflow.cx.v3beta1.Match.decode(reader, reader.uint32()); - break; - case 3: - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -113277,142 +112562,133 @@ }; /** - * Decodes a FulfillIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest} FulfillIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FulfillIntentRequest.decodeDelimited = function decodeDelimited(reader) { + ListSessionEntityTypesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FulfillIntentRequest message. + * Verifies a ListSessionEntityTypesResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FulfillIntentRequest.verify = function verify(message) { + ListSessionEntityTypesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.matchIntentRequest != null && message.hasOwnProperty("matchIntentRequest")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.verify(message.matchIntentRequest); - if (error) - return "matchIntentRequest." + error; - } - if (message.match != null && message.hasOwnProperty("match")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Match.verify(message.match); - if (error) - return "match." + error; - } - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify(message.outputAudioConfig); - if (error) - return "outputAudioConfig." + error; + if (message.sessionEntityTypes != null && message.hasOwnProperty("sessionEntityTypes")) { + if (!Array.isArray(message.sessionEntityTypes)) + return "sessionEntityTypes: array expected"; + for (var i = 0; i < message.sessionEntityTypes.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify(message.sessionEntityTypes[i]); + if (error) + return "sessionEntityTypes." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a FulfillIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListSessionEntityTypesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest} FulfillIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse */ - FulfillIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest) + ListSessionEntityTypesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest(); - if (object.matchIntentRequest != null) { - if (typeof object.matchIntentRequest !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.matchIntentRequest: object expected"); - message.matchIntentRequest = $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.fromObject(object.matchIntentRequest); - } - if (object.match != null) { - if (typeof object.match !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.match: object expected"); - message.match = $root.google.cloud.dialogflow.cx.v3beta1.Match.fromObject(object.match); - } - if (object.outputAudioConfig != null) { - if (typeof object.outputAudioConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.outputAudioConfig: object expected"); - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.fromObject(object.outputAudioConfig); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse(); + if (object.sessionEntityTypes) { + if (!Array.isArray(object.sessionEntityTypes)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse.sessionEntityTypes: array expected"); + message.sessionEntityTypes = []; + for (var i = 0; i < object.sessionEntityTypes.length; ++i) { + if (typeof object.sessionEntityTypes[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse.sessionEntityTypes: object expected"); + message.sessionEntityTypes[i] = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.fromObject(object.sessionEntityTypes[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a FulfillIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListSessionEntityTypesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest} message FulfillIntentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse} message ListSessionEntityTypesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FulfillIntentRequest.toObject = function toObject(message, options) { + ListSessionEntityTypesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.matchIntentRequest = null; - object.match = null; - object.outputAudioConfig = null; + if (options.arrays || options.defaults) + object.sessionEntityTypes = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.sessionEntityTypes && message.sessionEntityTypes.length) { + object.sessionEntityTypes = []; + for (var j = 0; j < message.sessionEntityTypes.length; ++j) + object.sessionEntityTypes[j] = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.toObject(message.sessionEntityTypes[j], options); } - if (message.matchIntentRequest != null && message.hasOwnProperty("matchIntentRequest")) - object.matchIntentRequest = $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.toObject(message.matchIntentRequest, options); - if (message.match != null && message.hasOwnProperty("match")) - object.match = $root.google.cloud.dialogflow.cx.v3beta1.Match.toObject(message.match, options); - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) - object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.toObject(message.outputAudioConfig, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this FulfillIntentRequest to JSON. + * Converts this ListSessionEntityTypesResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse * @instance * @returns {Object.} JSON object */ - FulfillIntentRequest.prototype.toJSON = function toJSON() { + ListSessionEntityTypesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FulfillIntentRequest; + return ListSessionEntityTypesResponse; })(); - v3beta1.FulfillIntentResponse = (function() { + v3beta1.GetSessionEntityTypeRequest = (function() { /** - * Properties of a FulfillIntentResponse. + * Properties of a GetSessionEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IFulfillIntentResponse - * @property {string|null} [responseId] FulfillIntentResponse responseId - * @property {google.cloud.dialogflow.cx.v3beta1.IQueryResult|null} [queryResult] FulfillIntentResponse queryResult - * @property {Uint8Array|null} [outputAudio] FulfillIntentResponse outputAudio - * @property {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null} [outputAudioConfig] FulfillIntentResponse outputAudioConfig + * @interface IGetSessionEntityTypeRequest + * @property {string|null} [name] GetSessionEntityTypeRequest name */ /** - * Constructs a new FulfillIntentResponse. + * Constructs a new GetSessionEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a FulfillIntentResponse. - * @implements IFulfillIntentResponse + * @classdesc Represents a GetSessionEntityTypeRequest. + * @implements IGetSessionEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest=} [properties] Properties to set */ - function FulfillIntentResponse(properties) { + function GetSessionEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -113420,114 +112696,75 @@ } /** - * FulfillIntentResponse responseId. - * @member {string} responseId - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse - * @instance - */ - FulfillIntentResponse.prototype.responseId = ""; - - /** - * FulfillIntentResponse queryResult. - * @member {google.cloud.dialogflow.cx.v3beta1.IQueryResult|null|undefined} queryResult - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse - * @instance - */ - FulfillIntentResponse.prototype.queryResult = null; - - /** - * FulfillIntentResponse outputAudio. - * @member {Uint8Array} outputAudio - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse - * @instance - */ - FulfillIntentResponse.prototype.outputAudio = $util.newBuffer([]); - - /** - * FulfillIntentResponse outputAudioConfig. - * @member {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null|undefined} outputAudioConfig - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * GetSessionEntityTypeRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest * @instance */ - FulfillIntentResponse.prototype.outputAudioConfig = null; + GetSessionEntityTypeRequest.prototype.name = ""; /** - * Creates a new FulfillIntentResponse instance using the specified properties. + * Creates a new GetSessionEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse} FulfillIntentResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest instance */ - FulfillIntentResponse.create = function create(properties) { - return new FulfillIntentResponse(properties); + GetSessionEntityTypeRequest.create = function create(properties) { + return new GetSessionEntityTypeRequest(properties); }; /** - * Encodes the specified FulfillIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse.verify|verify} messages. + * Encodes the specified GetSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse} message FulfillIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest} message GetSessionEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FulfillIntentResponse.encode = function encode(message, writer) { + GetSessionEntityTypeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.responseId != null && Object.hasOwnProperty.call(message, "responseId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.responseId); - if (message.queryResult != null && Object.hasOwnProperty.call(message, "queryResult")) - $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.encode(message.queryResult, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.outputAudio != null && Object.hasOwnProperty.call(message, "outputAudio")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.outputAudio); - if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) - $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified FulfillIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse.verify|verify} messages. + * Encodes the specified GetSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse} message FulfillIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest} message GetSessionEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FulfillIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FulfillIntentResponse message from the specified reader or buffer. + * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse} FulfillIntentResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FulfillIntentResponse.decode = function decode(reader, length) { + GetSessionEntityTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.responseId = reader.string(); - break; - case 2: - message.queryResult = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.decode(reader, reader.uint32()); - break; - case 3: - message.outputAudio = reader.bytes(); - break; - case 4: - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -113538,152 +112775,108 @@ }; /** - * Decodes a FulfillIntentResponse message from the specified reader or buffer, length delimited. + * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse} FulfillIntentResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FulfillIntentResponse.decodeDelimited = function decodeDelimited(reader) { + GetSessionEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FulfillIntentResponse message. + * Verifies a GetSessionEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FulfillIntentResponse.verify = function verify(message) { + GetSessionEntityTypeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.responseId != null && message.hasOwnProperty("responseId")) - if (!$util.isString(message.responseId)) - return "responseId: string expected"; - if (message.queryResult != null && message.hasOwnProperty("queryResult")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.verify(message.queryResult); - if (error) - return "queryResult." + error; - } - if (message.outputAudio != null && message.hasOwnProperty("outputAudio")) - if (!(message.outputAudio && typeof message.outputAudio.length === "number" || $util.isString(message.outputAudio))) - return "outputAudio: buffer expected"; - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify(message.outputAudioConfig); - if (error) - return "outputAudioConfig." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a FulfillIntentResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse} FulfillIntentResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest */ - FulfillIntentResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse) + GetSessionEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse(); - if (object.responseId != null) - message.responseId = String(object.responseId); - if (object.queryResult != null) { - if (typeof object.queryResult !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse.queryResult: object expected"); - message.queryResult = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.fromObject(object.queryResult); - } - if (object.outputAudio != null) - if (typeof object.outputAudio === "string") - $util.base64.decode(object.outputAudio, message.outputAudio = $util.newBuffer($util.base64.length(object.outputAudio)), 0); - else if (object.outputAudio.length) - message.outputAudio = object.outputAudio; - if (object.outputAudioConfig != null) { - if (typeof object.outputAudioConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse.outputAudioConfig: object expected"); - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.fromObject(object.outputAudioConfig); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a FulfillIntentResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetSessionEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse} message FulfillIntentResponse + * @param {google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest} message GetSessionEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FulfillIntentResponse.toObject = function toObject(message, options) { + GetSessionEntityTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.responseId = ""; - object.queryResult = null; - if (options.bytes === String) - object.outputAudio = ""; - else { - object.outputAudio = []; - if (options.bytes !== Array) - object.outputAudio = $util.newBuffer(object.outputAudio); - } - object.outputAudioConfig = null; - } - if (message.responseId != null && message.hasOwnProperty("responseId")) - object.responseId = message.responseId; - if (message.queryResult != null && message.hasOwnProperty("queryResult")) - object.queryResult = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.toObject(message.queryResult, options); - if (message.outputAudio != null && message.hasOwnProperty("outputAudio")) - object.outputAudio = options.bytes === String ? $util.base64.encode(message.outputAudio, 0, message.outputAudio.length) : options.bytes === Array ? Array.prototype.slice.call(message.outputAudio) : message.outputAudio; - if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) - object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.toObject(message.outputAudioConfig, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this FulfillIntentResponse to JSON. + * Converts this GetSessionEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest * @instance * @returns {Object.} JSON object */ - FulfillIntentResponse.prototype.toJSON = function toJSON() { + GetSessionEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FulfillIntentResponse; + return GetSessionEntityTypeRequest; })(); - v3beta1.SentimentAnalysisResult = (function() { + v3beta1.CreateSessionEntityTypeRequest = (function() { /** - * Properties of a SentimentAnalysisResult. + * Properties of a CreateSessionEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ISentimentAnalysisResult - * @property {number|null} [score] SentimentAnalysisResult score - * @property {number|null} [magnitude] SentimentAnalysisResult magnitude + * @interface ICreateSessionEntityTypeRequest + * @property {string|null} [parent] CreateSessionEntityTypeRequest parent + * @property {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null} [sessionEntityType] CreateSessionEntityTypeRequest sessionEntityType */ /** - * Constructs a new SentimentAnalysisResult. + * Constructs a new CreateSessionEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a SentimentAnalysisResult. - * @implements ISentimentAnalysisResult + * @classdesc Represents a CreateSessionEntityTypeRequest. + * @implements ICreateSessionEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest=} [properties] Properties to set */ - function SentimentAnalysisResult(properties) { + function CreateSessionEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -113691,88 +112884,88 @@ } /** - * SentimentAnalysisResult score. - * @member {number} score - * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * CreateSessionEntityTypeRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest * @instance */ - SentimentAnalysisResult.prototype.score = 0; + CreateSessionEntityTypeRequest.prototype.parent = ""; /** - * SentimentAnalysisResult magnitude. - * @member {number} magnitude - * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * CreateSessionEntityTypeRequest sessionEntityType. + * @member {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null|undefined} sessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest * @instance */ - SentimentAnalysisResult.prototype.magnitude = 0; + CreateSessionEntityTypeRequest.prototype.sessionEntityType = null; /** - * Creates a new SentimentAnalysisResult instance using the specified properties. + * Creates a new CreateSessionEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult} SentimentAnalysisResult instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest instance */ - SentimentAnalysisResult.create = function create(properties) { - return new SentimentAnalysisResult(properties); + CreateSessionEntityTypeRequest.create = function create(properties) { + return new CreateSessionEntityTypeRequest(properties); }; /** - * Encodes the specified SentimentAnalysisResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.verify|verify} messages. + * Encodes the specified CreateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult} message SentimentAnalysisResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest} message CreateSessionEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SentimentAnalysisResult.encode = function encode(message, writer) { + CreateSessionEntityTypeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.score != null && Object.hasOwnProperty.call(message, "score")) - writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); - if (message.magnitude != null && Object.hasOwnProperty.call(message, "magnitude")) - writer.uint32(/* id 2, wireType 5 =*/21).float(message.magnitude); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.sessionEntityType != null && Object.hasOwnProperty.call(message, "sessionEntityType")) + $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.encode(message.sessionEntityType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified SentimentAnalysisResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.verify|verify} messages. + * Encodes the specified CreateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult} message SentimentAnalysisResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest} message CreateSessionEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SentimentAnalysisResult.encodeDelimited = function encodeDelimited(message, writer) { + CreateSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SentimentAnalysisResult message from the specified reader or buffer. + * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult} SentimentAnalysisResult + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SentimentAnalysisResult.decode = function decode(reader, length) { + CreateSessionEntityTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.score = reader.float(); + message.parent = reader.string(); break; case 2: - message.magnitude = reader.float(); + message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -113783,319 +112976,122 @@ }; /** - * Decodes a SentimentAnalysisResult message from the specified reader or buffer, length delimited. + * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult} SentimentAnalysisResult + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SentimentAnalysisResult.decodeDelimited = function decodeDelimited(reader) { + CreateSessionEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SentimentAnalysisResult message. + * Verifies a CreateSessionEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SentimentAnalysisResult.verify = function verify(message) { + CreateSessionEntityTypeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.score != null && message.hasOwnProperty("score")) - if (typeof message.score !== "number") - return "score: number expected"; - if (message.magnitude != null && message.hasOwnProperty("magnitude")) - if (typeof message.magnitude !== "number") - return "magnitude: number expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify(message.sessionEntityType); + if (error) + return "sessionEntityType." + error; + } return null; }; /** - * Creates a SentimentAnalysisResult message from a plain object. Also converts values to their respective internal types. + * Creates a CreateSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult} SentimentAnalysisResult + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest */ - SentimentAnalysisResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult) + CreateSessionEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult(); - if (object.score != null) - message.score = Number(object.score); - if (object.magnitude != null) - message.magnitude = Number(object.magnitude); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.sessionEntityType != null) { + if (typeof object.sessionEntityType !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest.sessionEntityType: object expected"); + message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.fromObject(object.sessionEntityType); + } return message; }; /** - * Creates a plain object from a SentimentAnalysisResult message. Also converts values to other types if specified. + * Creates a plain object from a CreateSessionEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult} message SentimentAnalysisResult + * @param {google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest} message CreateSessionEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SentimentAnalysisResult.toObject = function toObject(message, options) { + CreateSessionEntityTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.score = 0; - object.magnitude = 0; + object.parent = ""; + object.sessionEntityType = null; } - if (message.score != null && message.hasOwnProperty("score")) - object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; - if (message.magnitude != null && message.hasOwnProperty("magnitude")) - object.magnitude = options.json && !isFinite(message.magnitude) ? String(message.magnitude) : message.magnitude; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) + object.sessionEntityType = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.toObject(message.sessionEntityType, options); return object; }; /** - * Converts this SentimentAnalysisResult to JSON. + * Converts this CreateSessionEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest * @instance * @returns {Object.} JSON object */ - SentimentAnalysisResult.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return SentimentAnalysisResult; - })(); - - v3beta1.SessionEntityTypes = (function() { - - /** - * Constructs a new SessionEntityTypes service. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a SessionEntityTypes - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function SessionEntityTypes(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (SessionEntityTypes.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = SessionEntityTypes; - - /** - * Creates new SessionEntityTypes service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {SessionEntityTypes} RPC service. Useful where requests and/or responses are streamed. - */ - SessionEntityTypes.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#listSessionEntityTypes}. - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes - * @typedef ListSessionEntityTypesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse} [response] ListSessionEntityTypesResponse - */ - - /** - * Calls ListSessionEntityTypes. - * @function listSessionEntityTypes - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest} request ListSessionEntityTypesRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.ListSessionEntityTypesCallback} callback Node-style callback called with the error, if any, and ListSessionEntityTypesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SessionEntityTypes.prototype.listSessionEntityTypes = function listSessionEntityTypes(request, callback) { - return this.rpcCall(listSessionEntityTypes, $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse, request, callback); - }, "name", { value: "ListSessionEntityTypes" }); - - /** - * Calls ListSessionEntityTypes. - * @function listSessionEntityTypes - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest} request ListSessionEntityTypesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#getSessionEntityType}. - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes - * @typedef GetSessionEntityTypeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} [response] SessionEntityType - */ - - /** - * Calls GetSessionEntityType. - * @function getSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest} request GetSessionEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.GetSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and SessionEntityType - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SessionEntityTypes.prototype.getSessionEntityType = function getSessionEntityType(request, callback) { - return this.rpcCall(getSessionEntityType, $root.google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType, request, callback); - }, "name", { value: "GetSessionEntityType" }); - - /** - * Calls GetSessionEntityType. - * @function getSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest} request GetSessionEntityTypeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#createSessionEntityType}. - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes - * @typedef CreateSessionEntityTypeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} [response] SessionEntityType - */ - - /** - * Calls CreateSessionEntityType. - * @function createSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest} request CreateSessionEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.CreateSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and SessionEntityType - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SessionEntityTypes.prototype.createSessionEntityType = function createSessionEntityType(request, callback) { - return this.rpcCall(createSessionEntityType, $root.google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType, request, callback); - }, "name", { value: "CreateSessionEntityType" }); - - /** - * Calls CreateSessionEntityType. - * @function createSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest} request CreateSessionEntityTypeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#updateSessionEntityType}. - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes - * @typedef UpdateSessionEntityTypeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} [response] SessionEntityType - */ - - /** - * Calls UpdateSessionEntityType. - * @function updateSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest} request UpdateSessionEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.UpdateSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and SessionEntityType - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SessionEntityTypes.prototype.updateSessionEntityType = function updateSessionEntityType(request, callback) { - return this.rpcCall(updateSessionEntityType, $root.google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType, request, callback); - }, "name", { value: "UpdateSessionEntityType" }); - - /** - * Calls UpdateSessionEntityType. - * @function updateSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest} request UpdateSessionEntityTypeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#deleteSessionEntityType}. - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes - * @typedef DeleteSessionEntityTypeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ - - /** - * Calls DeleteSessionEntityType. - * @function deleteSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest} request DeleteSessionEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.DeleteSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SessionEntityTypes.prototype.deleteSessionEntityType = function deleteSessionEntityType(request, callback) { - return this.rpcCall(deleteSessionEntityType, $root.google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteSessionEntityType" }); - - /** - * Calls DeleteSessionEntityType. - * @function deleteSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest} request DeleteSessionEntityTypeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + CreateSessionEntityTypeRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return SessionEntityTypes; + return CreateSessionEntityTypeRequest; })(); - v3beta1.SessionEntityType = (function() { + v3beta1.UpdateSessionEntityTypeRequest = (function() { /** - * Properties of a SessionEntityType. + * Properties of an UpdateSessionEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ISessionEntityType - * @property {string|null} [name] SessionEntityType name - * @property {google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode|null} [entityOverrideMode] SessionEntityType entityOverrideMode - * @property {Array.|null} [entities] SessionEntityType entities + * @interface IUpdateSessionEntityTypeRequest + * @property {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null} [sessionEntityType] UpdateSessionEntityTypeRequest sessionEntityType + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSessionEntityTypeRequest updateMask */ /** - * Constructs a new SessionEntityType. + * Constructs a new UpdateSessionEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a SessionEntityType. - * @implements ISessionEntityType + * @classdesc Represents an UpdateSessionEntityTypeRequest. + * @implements IUpdateSessionEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest=} [properties] Properties to set */ - function SessionEntityType(properties) { - this.entities = []; + function UpdateSessionEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -114103,104 +113099,88 @@ } /** - * SessionEntityType name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType - * @instance - */ - SessionEntityType.prototype.name = ""; - - /** - * SessionEntityType entityOverrideMode. - * @member {google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode} entityOverrideMode - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * UpdateSessionEntityTypeRequest sessionEntityType. + * @member {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null|undefined} sessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest * @instance */ - SessionEntityType.prototype.entityOverrideMode = 0; + UpdateSessionEntityTypeRequest.prototype.sessionEntityType = null; /** - * SessionEntityType entities. - * @member {Array.} entities - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * UpdateSessionEntityTypeRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest * @instance */ - SessionEntityType.prototype.entities = $util.emptyArray; + UpdateSessionEntityTypeRequest.prototype.updateMask = null; /** - * Creates a new SessionEntityType instance using the specified properties. + * Creates a new UpdateSessionEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} SessionEntityType instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest instance */ - SessionEntityType.create = function create(properties) { - return new SessionEntityType(properties); + UpdateSessionEntityTypeRequest.create = function create(properties) { + return new UpdateSessionEntityTypeRequest(properties); }; /** - * Encodes the specified SessionEntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify|verify} messages. + * Encodes the specified UpdateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType} message SessionEntityType message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest} message UpdateSessionEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SessionEntityType.encode = function encode(message, writer) { + UpdateSessionEntityTypeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.entityOverrideMode != null && Object.hasOwnProperty.call(message, "entityOverrideMode")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.entityOverrideMode); - if (message.entities != null && message.entities.length) - for (var i = 0; i < message.entities.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.encode(message.entities[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.sessionEntityType != null && Object.hasOwnProperty.call(message, "sessionEntityType")) + $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.encode(message.sessionEntityType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified SessionEntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify|verify} messages. + * Encodes the specified UpdateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType} message SessionEntityType message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest} message UpdateSessionEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SessionEntityType.encodeDelimited = function encodeDelimited(message, writer) { + UpdateSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SessionEntityType message from the specified reader or buffer. + * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} SessionEntityType + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SessionEntityType.decode = function decode(reader, length) { + UpdateSessionEntityTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); - break; - case 3: - message.entityOverrideMode = reader.int32(); + message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.decode(reader, reader.uint32()); break; - case 4: - if (!(message.entities && message.entities.length)) - message.entities = []; - message.entities.push($root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.decode(reader, reader.uint32())); + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -114211,178 +113191,126 @@ }; /** - * Decodes a SessionEntityType message from the specified reader or buffer, length delimited. + * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} SessionEntityType + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SessionEntityType.decodeDelimited = function decodeDelimited(reader) { + UpdateSessionEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SessionEntityType message. + * Verifies an UpdateSessionEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SessionEntityType.verify = function verify(message) { + UpdateSessionEntityTypeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.entityOverrideMode != null && message.hasOwnProperty("entityOverrideMode")) - switch (message.entityOverrideMode) { - default: - return "entityOverrideMode: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.entities != null && message.hasOwnProperty("entities")) { - if (!Array.isArray(message.entities)) - return "entities: array expected"; - for (var i = 0; i < message.entities.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.verify(message.entities[i]); - if (error) - return "entities." + error; - } + if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify(message.sessionEntityType); + if (error) + return "sessionEntityType." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } return null; }; /** - * Creates a SessionEntityType message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} SessionEntityType + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest */ - SessionEntityType.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType) + UpdateSessionEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType(); - if (object.name != null) - message.name = String(object.name); - switch (object.entityOverrideMode) { - case "ENTITY_OVERRIDE_MODE_UNSPECIFIED": - case 0: - message.entityOverrideMode = 0; - break; - case "ENTITY_OVERRIDE_MODE_OVERRIDE": - case 1: - message.entityOverrideMode = 1; - break; - case "ENTITY_OVERRIDE_MODE_SUPPLEMENT": - case 2: - message.entityOverrideMode = 2; - break; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest(); + if (object.sessionEntityType != null) { + if (typeof object.sessionEntityType !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest.sessionEntityType: object expected"); + message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.fromObject(object.sessionEntityType); } - if (object.entities) { - if (!Array.isArray(object.entities)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SessionEntityType.entities: array expected"); - message.entities = []; - for (var i = 0; i < object.entities.length; ++i) { - if (typeof object.entities[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SessionEntityType.entities: object expected"); - message.entities[i] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.fromObject(object.entities[i]); - } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from a SessionEntityType message. Also converts values to other types if specified. + * Creates a plain object from an UpdateSessionEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} message SessionEntityType + * @param {google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest} message UpdateSessionEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SessionEntityType.toObject = function toObject(message, options) { + UpdateSessionEntityTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.entities = []; if (options.defaults) { - object.name = ""; - object.entityOverrideMode = options.enums === String ? "ENTITY_OVERRIDE_MODE_UNSPECIFIED" : 0; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.entityOverrideMode != null && message.hasOwnProperty("entityOverrideMode")) - object.entityOverrideMode = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode[message.entityOverrideMode] : message.entityOverrideMode; - if (message.entities && message.entities.length) { - object.entities = []; - for (var j = 0; j < message.entities.length; ++j) - object.entities[j] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.toObject(message.entities[j], options); + object.sessionEntityType = null; + object.updateMask = null; } + if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) + object.sessionEntityType = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.toObject(message.sessionEntityType, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this SessionEntityType to JSON. + * Converts this UpdateSessionEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest * @instance * @returns {Object.} JSON object */ - SessionEntityType.prototype.toJSON = function toJSON() { + UpdateSessionEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * EntityOverrideMode enum. - * @name google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode - * @enum {number} - * @property {number} ENTITY_OVERRIDE_MODE_UNSPECIFIED=0 ENTITY_OVERRIDE_MODE_UNSPECIFIED value - * @property {number} ENTITY_OVERRIDE_MODE_OVERRIDE=1 ENTITY_OVERRIDE_MODE_OVERRIDE value - * @property {number} ENTITY_OVERRIDE_MODE_SUPPLEMENT=2 ENTITY_OVERRIDE_MODE_SUPPLEMENT value - */ - SessionEntityType.EntityOverrideMode = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ENTITY_OVERRIDE_MODE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ENTITY_OVERRIDE_MODE_OVERRIDE"] = 1; - values[valuesById[2] = "ENTITY_OVERRIDE_MODE_SUPPLEMENT"] = 2; - return values; - })(); - - return SessionEntityType; + return UpdateSessionEntityTypeRequest; })(); - v3beta1.ListSessionEntityTypesRequest = (function() { + v3beta1.DeleteSessionEntityTypeRequest = (function() { /** - * Properties of a ListSessionEntityTypesRequest. + * Properties of a DeleteSessionEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListSessionEntityTypesRequest - * @property {string|null} [parent] ListSessionEntityTypesRequest parent - * @property {number|null} [pageSize] ListSessionEntityTypesRequest pageSize - * @property {string|null} [pageToken] ListSessionEntityTypesRequest pageToken + * @interface IDeleteSessionEntityTypeRequest + * @property {string|null} [name] DeleteSessionEntityTypeRequest name */ /** - * Constructs a new ListSessionEntityTypesRequest. + * Constructs a new DeleteSessionEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListSessionEntityTypesRequest. - * @implements IListSessionEntityTypesRequest + * @classdesc Represents a DeleteSessionEntityTypeRequest. + * @implements IDeleteSessionEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest=} [properties] Properties to set */ - function ListSessionEntityTypesRequest(properties) { + function DeleteSessionEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -114390,101 +113318,75 @@ } /** - * ListSessionEntityTypesRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest - * @instance - */ - ListSessionEntityTypesRequest.prototype.parent = ""; - - /** - * ListSessionEntityTypesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest - * @instance - */ - ListSessionEntityTypesRequest.prototype.pageSize = 0; - - /** - * ListSessionEntityTypesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * DeleteSessionEntityTypeRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest * @instance */ - ListSessionEntityTypesRequest.prototype.pageToken = ""; + DeleteSessionEntityTypeRequest.prototype.name = ""; /** - * Creates a new ListSessionEntityTypesRequest instance using the specified properties. + * Creates a new DeleteSessionEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest instance */ - ListSessionEntityTypesRequest.create = function create(properties) { - return new ListSessionEntityTypesRequest(properties); + DeleteSessionEntityTypeRequest.create = function create(properties) { + return new DeleteSessionEntityTypeRequest(properties); }; /** - * Encodes the specified ListSessionEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest.verify|verify} messages. + * Encodes the specified DeleteSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest} message ListSessionEntityTypesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest} message DeleteSessionEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSessionEntityTypesRequest.encode = function encode(message, writer) { + DeleteSessionEntityTypeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListSessionEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest.verify|verify} messages. + * Encodes the specified DeleteSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest} message ListSessionEntityTypesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest} message DeleteSessionEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSessionEntityTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer. + * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSessionEntityTypesRequest.decode = function decode(reader, length) { + DeleteSessionEntityTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -114495,355 +113397,310 @@ }; /** - * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSessionEntityTypesRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteSessionEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListSessionEntityTypesRequest message. + * Verifies a DeleteSessionEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListSessionEntityTypesRequest.verify = function verify(message) { + DeleteSessionEntityTypeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListSessionEntityTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest */ - ListSessionEntityTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest) + DeleteSessionEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListSessionEntityTypesRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteSessionEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest} message ListSessionEntityTypesRequest + * @param {google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest} message DeleteSessionEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListSessionEntityTypesRequest.toObject = function toObject(message, options) { + DeleteSessionEntityTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListSessionEntityTypesRequest to JSON. + * Converts this DeleteSessionEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest * @instance * @returns {Object.} JSON object */ - ListSessionEntityTypesRequest.prototype.toJSON = function toJSON() { + DeleteSessionEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListSessionEntityTypesRequest; + return DeleteSessionEntityTypeRequest; })(); - v3beta1.ListSessionEntityTypesResponse = (function() { + v3beta1.TransitionRouteGroups = (function() { /** - * Properties of a ListSessionEntityTypesResponse. + * Constructs a new TransitionRouteGroups service. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListSessionEntityTypesResponse - * @property {Array.|null} [sessionEntityTypes] ListSessionEntityTypesResponse sessionEntityTypes - * @property {string|null} [nextPageToken] ListSessionEntityTypesResponse nextPageToken + * @classdesc Represents a TransitionRouteGroups + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ + function TransitionRouteGroups(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (TransitionRouteGroups.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = TransitionRouteGroups; /** - * Constructs a new ListSessionEntityTypesResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListSessionEntityTypesResponse. - * @implements IListSessionEntityTypesResponse - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse=} [properties] Properties to set + * Creates new TransitionRouteGroups service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {TransitionRouteGroups} RPC service. Useful where requests and/or responses are streamed. */ - function ListSessionEntityTypesResponse(properties) { - this.sessionEntityTypes = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + TransitionRouteGroups.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * ListSessionEntityTypesResponse sessionEntityTypes. - * @member {Array.} sessionEntityTypes - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#listTransitionRouteGroups}. + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @typedef ListTransitionRouteGroupsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse} [response] ListTransitionRouteGroupsResponse + */ + + /** + * Calls ListTransitionRouteGroups. + * @function listTransitionRouteGroups + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest} request ListTransitionRouteGroupsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.ListTransitionRouteGroupsCallback} callback Node-style callback called with the error, if any, and ListTransitionRouteGroupsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(TransitionRouteGroups.prototype.listTransitionRouteGroups = function listTransitionRouteGroups(request, callback) { + return this.rpcCall(listTransitionRouteGroups, $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse, request, callback); + }, "name", { value: "ListTransitionRouteGroups" }); + + /** + * Calls ListTransitionRouteGroups. + * @function listTransitionRouteGroups + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest} request ListTransitionRouteGroupsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#getTransitionRouteGroup}. + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @typedef GetTransitionRouteGroupCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} [response] TransitionRouteGroup + */ + + /** + * Calls GetTransitionRouteGroup. + * @function getTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest} request GetTransitionRouteGroupRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.GetTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and TransitionRouteGroup + * @returns {undefined} + * @variation 1 */ - ListSessionEntityTypesResponse.prototype.sessionEntityTypes = $util.emptyArray; + Object.defineProperty(TransitionRouteGroups.prototype.getTransitionRouteGroup = function getTransitionRouteGroup(request, callback) { + return this.rpcCall(getTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest, $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup, request, callback); + }, "name", { value: "GetTransitionRouteGroup" }); /** - * ListSessionEntityTypesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse + * Calls GetTransitionRouteGroup. + * @function getTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest} request GetTransitionRouteGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListSessionEntityTypesResponse.prototype.nextPageToken = ""; /** - * Creates a new ListSessionEntityTypesResponse instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse instance + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#createTransitionRouteGroup}. + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @typedef CreateTransitionRouteGroupCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} [response] TransitionRouteGroup */ - ListSessionEntityTypesResponse.create = function create(properties) { - return new ListSessionEntityTypesResponse(properties); - }; /** - * Encodes the specified ListSessionEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse} message ListSessionEntityTypesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateTransitionRouteGroup. + * @function createTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest} request CreateTransitionRouteGroupRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.CreateTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and TransitionRouteGroup + * @returns {undefined} + * @variation 1 */ - ListSessionEntityTypesResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sessionEntityTypes != null && message.sessionEntityTypes.length) - for (var i = 0; i < message.sessionEntityTypes.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.encode(message.sessionEntityTypes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - return writer; - }; + Object.defineProperty(TransitionRouteGroups.prototype.createTransitionRouteGroup = function createTransitionRouteGroup(request, callback) { + return this.rpcCall(createTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest, $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup, request, callback); + }, "name", { value: "CreateTransitionRouteGroup" }); /** - * Encodes the specified ListSessionEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse} message ListSessionEntityTypesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateTransitionRouteGroup. + * @function createTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest} request CreateTransitionRouteGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListSessionEntityTypesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#updateTransitionRouteGroup}. + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @typedef UpdateTransitionRouteGroupCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} [response] TransitionRouteGroup */ - ListSessionEntityTypesResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.sessionEntityTypes && message.sessionEntityTypes.length)) - message.sessionEntityTypes = []; - message.sessionEntityTypes.push($root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls UpdateTransitionRouteGroup. + * @function updateTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest} request UpdateTransitionRouteGroupRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.UpdateTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and TransitionRouteGroup + * @returns {undefined} + * @variation 1 */ - ListSessionEntityTypesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(TransitionRouteGroups.prototype.updateTransitionRouteGroup = function updateTransitionRouteGroup(request, callback) { + return this.rpcCall(updateTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest, $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup, request, callback); + }, "name", { value: "UpdateTransitionRouteGroup" }); /** - * Verifies a ListSessionEntityTypesResponse message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls UpdateTransitionRouteGroup. + * @function updateTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest} request UpdateTransitionRouteGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListSessionEntityTypesResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sessionEntityTypes != null && message.hasOwnProperty("sessionEntityTypes")) { - if (!Array.isArray(message.sessionEntityTypes)) - return "sessionEntityTypes: array expected"; - for (var i = 0; i < message.sessionEntityTypes.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify(message.sessionEntityTypes[i]); - if (error) - return "sessionEntityTypes." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; /** - * Creates a ListSessionEntityTypesResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#deleteTransitionRouteGroup}. + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @typedef DeleteTransitionRouteGroupCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - ListSessionEntityTypesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse(); - if (object.sessionEntityTypes) { - if (!Array.isArray(object.sessionEntityTypes)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse.sessionEntityTypes: array expected"); - message.sessionEntityTypes = []; - for (var i = 0; i < object.sessionEntityTypes.length; ++i) { - if (typeof object.sessionEntityTypes[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse.sessionEntityTypes: object expected"); - message.sessionEntityTypes[i] = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.fromObject(object.sessionEntityTypes[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; /** - * Creates a plain object from a ListSessionEntityTypesResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse} message ListSessionEntityTypesResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls DeleteTransitionRouteGroup. + * @function deleteTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest} request DeleteTransitionRouteGroupRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.DeleteTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - ListSessionEntityTypesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.sessionEntityTypes = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.sessionEntityTypes && message.sessionEntityTypes.length) { - object.sessionEntityTypes = []; - for (var j = 0; j < message.sessionEntityTypes.length; ++j) - object.sessionEntityTypes[j] = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.toObject(message.sessionEntityTypes[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; + Object.defineProperty(TransitionRouteGroups.prototype.deleteTransitionRouteGroup = function deleteTransitionRouteGroup(request, callback) { + return this.rpcCall(deleteTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteTransitionRouteGroup" }); /** - * Converts this ListSessionEntityTypesResponse to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse + * Calls DeleteTransitionRouteGroup. + * @function deleteTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups * @instance - * @returns {Object.} JSON object + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest} request DeleteTransitionRouteGroupRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListSessionEntityTypesResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - return ListSessionEntityTypesResponse; + return TransitionRouteGroups; })(); - v3beta1.GetSessionEntityTypeRequest = (function() { + v3beta1.TransitionRouteGroup = (function() { /** - * Properties of a GetSessionEntityTypeRequest. + * Properties of a TransitionRouteGroup. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetSessionEntityTypeRequest - * @property {string|null} [name] GetSessionEntityTypeRequest name + * @interface ITransitionRouteGroup + * @property {string|null} [name] TransitionRouteGroup name + * @property {string|null} [displayName] TransitionRouteGroup displayName + * @property {Array.|null} [transitionRoutes] TransitionRouteGroup transitionRoutes */ /** - * Constructs a new GetSessionEntityTypeRequest. + * Constructs a new TransitionRouteGroup. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetSessionEntityTypeRequest. - * @implements IGetSessionEntityTypeRequest + * @classdesc Represents a TransitionRouteGroup. + * @implements ITransitionRouteGroup * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup=} [properties] Properties to set */ - function GetSessionEntityTypeRequest(properties) { + function TransitionRouteGroup(properties) { + this.transitionRoutes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -114851,76 +113708,105 @@ } /** - * GetSessionEntityTypeRequest name. + * TransitionRouteGroup name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup * @instance */ - GetSessionEntityTypeRequest.prototype.name = ""; + TransitionRouteGroup.prototype.name = ""; /** - * Creates a new GetSessionEntityTypeRequest instance using the specified properties. + * TransitionRouteGroup displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * @instance + */ + TransitionRouteGroup.prototype.displayName = ""; + + /** + * TransitionRouteGroup transitionRoutes. + * @member {Array.} transitionRoutes + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * @instance + */ + TransitionRouteGroup.prototype.transitionRoutes = $util.emptyArray; + + /** + * Creates a new TransitionRouteGroup instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} TransitionRouteGroup instance */ - GetSessionEntityTypeRequest.create = function create(properties) { - return new GetSessionEntityTypeRequest(properties); + TransitionRouteGroup.create = function create(properties) { + return new TransitionRouteGroup(properties); }; /** - * Encodes the specified GetSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified TransitionRouteGroup message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest} message GetSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup} message TransitionRouteGroup message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSessionEntityTypeRequest.encode = function encode(message, writer) { + TransitionRouteGroup.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.transitionRoutes != null && message.transitionRoutes.length) + for (var i = 0; i < message.transitionRoutes.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.encode(message.transitionRoutes[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified TransitionRouteGroup message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest} message GetSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup} message TransitionRouteGroup message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + TransitionRouteGroup.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer. + * Decodes a TransitionRouteGroup message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} TransitionRouteGroup * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSessionEntityTypeRequest.decode = function decode(reader, length) { + TransitionRouteGroup.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; + case 2: + message.displayName = reader.string(); + break; + case 5: + if (!(message.transitionRoutes && message.transitionRoutes.length)) + message.transitionRoutes = []; + message.transitionRoutes.push($root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.decode(reader, reader.uint32())); + break; default: reader.skipType(tag & 7); break; @@ -114930,108 +113816,145 @@ }; /** - * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a TransitionRouteGroup message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} TransitionRouteGroup * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetSessionEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + TransitionRouteGroup.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetSessionEntityTypeRequest message. + * Verifies a TransitionRouteGroup message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetSessionEntityTypeRequest.verify = function verify(message) { + TransitionRouteGroup.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.transitionRoutes != null && message.hasOwnProperty("transitionRoutes")) { + if (!Array.isArray(message.transitionRoutes)) + return "transitionRoutes: array expected"; + for (var i = 0; i < message.transitionRoutes.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify(message.transitionRoutes[i]); + if (error) + return "transitionRoutes." + error; + } + } return null; }; /** - * Creates a GetSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TransitionRouteGroup message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} TransitionRouteGroup */ - GetSessionEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest) + TransitionRouteGroup.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup(); if (object.name != null) message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.transitionRoutes) { + if (!Array.isArray(object.transitionRoutes)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.transitionRoutes: array expected"); + message.transitionRoutes = []; + for (var i = 0; i < object.transitionRoutes.length; ++i) { + if (typeof object.transitionRoutes[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.transitionRoutes: object expected"); + message.transitionRoutes[i] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.fromObject(object.transitionRoutes[i]); + } + } return message; }; /** - * Creates a plain object from a GetSessionEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a TransitionRouteGroup message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest} message GetSessionEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} message TransitionRouteGroup * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSessionEntityTypeRequest.toObject = function toObject(message, options) { + TransitionRouteGroup.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.arrays || options.defaults) + object.transitionRoutes = []; + if (options.defaults) { object.name = ""; + object.displayName = ""; + } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.transitionRoutes && message.transitionRoutes.length) { + object.transitionRoutes = []; + for (var j = 0; j < message.transitionRoutes.length; ++j) + object.transitionRoutes[j] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.toObject(message.transitionRoutes[j], options); + } return object; }; /** - * Converts this GetSessionEntityTypeRequest to JSON. + * Converts this TransitionRouteGroup to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup * @instance * @returns {Object.} JSON object */ - GetSessionEntityTypeRequest.prototype.toJSON = function toJSON() { + TransitionRouteGroup.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetSessionEntityTypeRequest; + return TransitionRouteGroup; })(); - v3beta1.CreateSessionEntityTypeRequest = (function() { + v3beta1.ListTransitionRouteGroupsRequest = (function() { /** - * Properties of a CreateSessionEntityTypeRequest. + * Properties of a ListTransitionRouteGroupsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ICreateSessionEntityTypeRequest - * @property {string|null} [parent] CreateSessionEntityTypeRequest parent - * @property {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null} [sessionEntityType] CreateSessionEntityTypeRequest sessionEntityType + * @interface IListTransitionRouteGroupsRequest + * @property {string|null} [parent] ListTransitionRouteGroupsRequest parent + * @property {number|null} [pageSize] ListTransitionRouteGroupsRequest pageSize + * @property {string|null} [pageToken] ListTransitionRouteGroupsRequest pageToken + * @property {string|null} [languageCode] ListTransitionRouteGroupsRequest languageCode */ /** - * Constructs a new CreateSessionEntityTypeRequest. + * Constructs a new ListTransitionRouteGroupsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CreateSessionEntityTypeRequest. - * @implements ICreateSessionEntityTypeRequest + * @classdesc Represents a ListTransitionRouteGroupsRequest. + * @implements IListTransitionRouteGroupsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest=} [properties] Properties to set */ - function CreateSessionEntityTypeRequest(properties) { + function ListTransitionRouteGroupsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -115039,80 +113962,100 @@ } /** - * CreateSessionEntityTypeRequest parent. + * ListTransitionRouteGroupsRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest * @instance */ - CreateSessionEntityTypeRequest.prototype.parent = ""; + ListTransitionRouteGroupsRequest.prototype.parent = ""; /** - * CreateSessionEntityTypeRequest sessionEntityType. - * @member {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null|undefined} sessionEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest + * ListTransitionRouteGroupsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest * @instance */ - CreateSessionEntityTypeRequest.prototype.sessionEntityType = null; + ListTransitionRouteGroupsRequest.prototype.pageSize = 0; /** - * Creates a new CreateSessionEntityTypeRequest instance using the specified properties. + * ListTransitionRouteGroupsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @instance + */ + ListTransitionRouteGroupsRequest.prototype.pageToken = ""; + + /** + * ListTransitionRouteGroupsRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @instance + */ + ListTransitionRouteGroupsRequest.prototype.languageCode = ""; + + /** + * Creates a new ListTransitionRouteGroupsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest instance */ - CreateSessionEntityTypeRequest.create = function create(properties) { - return new CreateSessionEntityTypeRequest(properties); + ListTransitionRouteGroupsRequest.create = function create(properties) { + return new ListTransitionRouteGroupsRequest(properties); }; /** - * Encodes the specified CreateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified ListTransitionRouteGroupsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest} message CreateSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest} message ListTransitionRouteGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateSessionEntityTypeRequest.encode = function encode(message, writer) { + ListTransitionRouteGroupsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.sessionEntityType != null && Object.hasOwnProperty.call(message, "sessionEntityType")) - $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.encode(message.sessionEntityType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.languageCode); return writer; }; /** - * Encodes the specified CreateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified ListTransitionRouteGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest} message CreateSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest} message ListTransitionRouteGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListTransitionRouteGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer. + * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateSessionEntityTypeRequest.decode = function decode(reader, length) { + ListTransitionRouteGroupsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -115120,7 +114063,13 @@ message.parent = reader.string(); break; case 2: - message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); + break; + case 4: + message.languageCode = reader.string(); break; default: reader.skipType(tag & 7); @@ -115131,122 +114080,134 @@ }; /** - * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateSessionEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + ListTransitionRouteGroupsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateSessionEntityTypeRequest message. + * Verifies a ListTransitionRouteGroupsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateSessionEntityTypeRequest.verify = function verify(message) { + ListTransitionRouteGroupsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify(message.sessionEntityType); - if (error) - return "sessionEntityType." + error; - } + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates a CreateSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListTransitionRouteGroupsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest */ - CreateSessionEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest) + ListTransitionRouteGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.sessionEntityType != null) { - if (typeof object.sessionEntityType !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest.sessionEntityType: object expected"); - message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.fromObject(object.sessionEntityType); - } + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a CreateSessionEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListTransitionRouteGroupsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest} message CreateSessionEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest} message ListTransitionRouteGroupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateSessionEntityTypeRequest.toObject = function toObject(message, options) { + ListTransitionRouteGroupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.sessionEntityType = null; + object.pageSize = 0; + object.pageToken = ""; + object.languageCode = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) - object.sessionEntityType = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.toObject(message.sessionEntityType, options); + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this CreateSessionEntityTypeRequest to JSON. + * Converts this ListTransitionRouteGroupsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest * @instance * @returns {Object.} JSON object */ - CreateSessionEntityTypeRequest.prototype.toJSON = function toJSON() { + ListTransitionRouteGroupsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateSessionEntityTypeRequest; + return ListTransitionRouteGroupsRequest; })(); - v3beta1.UpdateSessionEntityTypeRequest = (function() { + v3beta1.ListTransitionRouteGroupsResponse = (function() { /** - * Properties of an UpdateSessionEntityTypeRequest. + * Properties of a ListTransitionRouteGroupsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IUpdateSessionEntityTypeRequest - * @property {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null} [sessionEntityType] UpdateSessionEntityTypeRequest sessionEntityType - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSessionEntityTypeRequest updateMask + * @interface IListTransitionRouteGroupsResponse + * @property {Array.|null} [transitionRouteGroups] ListTransitionRouteGroupsResponse transitionRouteGroups + * @property {string|null} [nextPageToken] ListTransitionRouteGroupsResponse nextPageToken */ /** - * Constructs a new UpdateSessionEntityTypeRequest. + * Constructs a new ListTransitionRouteGroupsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an UpdateSessionEntityTypeRequest. - * @implements IUpdateSessionEntityTypeRequest + * @classdesc Represents a ListTransitionRouteGroupsResponse. + * @implements IListTransitionRouteGroupsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse=} [properties] Properties to set */ - function UpdateSessionEntityTypeRequest(properties) { + function ListTransitionRouteGroupsResponse(properties) { + this.transitionRouteGroups = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -115254,88 +114215,91 @@ } /** - * UpdateSessionEntityTypeRequest sessionEntityType. - * @member {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null|undefined} sessionEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest + * ListTransitionRouteGroupsResponse transitionRouteGroups. + * @member {Array.} transitionRouteGroups + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse * @instance */ - UpdateSessionEntityTypeRequest.prototype.sessionEntityType = null; + ListTransitionRouteGroupsResponse.prototype.transitionRouteGroups = $util.emptyArray; /** - * UpdateSessionEntityTypeRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest + * ListTransitionRouteGroupsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse * @instance */ - UpdateSessionEntityTypeRequest.prototype.updateMask = null; + ListTransitionRouteGroupsResponse.prototype.nextPageToken = ""; /** - * Creates a new UpdateSessionEntityTypeRequest instance using the specified properties. + * Creates a new ListTransitionRouteGroupsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse instance */ - UpdateSessionEntityTypeRequest.create = function create(properties) { - return new UpdateSessionEntityTypeRequest(properties); + ListTransitionRouteGroupsResponse.create = function create(properties) { + return new ListTransitionRouteGroupsResponse(properties); }; /** - * Encodes the specified UpdateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified ListTransitionRouteGroupsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest} message UpdateSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse} message ListTransitionRouteGroupsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateSessionEntityTypeRequest.encode = function encode(message, writer) { + ListTransitionRouteGroupsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sessionEntityType != null && Object.hasOwnProperty.call(message, "sessionEntityType")) - $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.encode(message.sessionEntityType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.transitionRouteGroups != null && message.transitionRouteGroups.length) + for (var i = 0; i < message.transitionRouteGroups.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.encode(message.transitionRouteGroups[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified UpdateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified ListTransitionRouteGroupsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest} message UpdateSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse} message ListTransitionRouteGroupsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListTransitionRouteGroupsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer. + * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateSessionEntityTypeRequest.decode = function decode(reader, length) { + ListTransitionRouteGroupsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.decode(reader, reader.uint32()); + if (!(message.transitionRouteGroups && message.transitionRouteGroups.length)) + message.transitionRouteGroups = []; + message.transitionRouteGroups.push($root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.decode(reader, reader.uint32())); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -115346,126 +114310,134 @@ }; /** - * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateSessionEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + ListTransitionRouteGroupsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateSessionEntityTypeRequest message. + * Verifies a ListTransitionRouteGroupsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateSessionEntityTypeRequest.verify = function verify(message) { + ListTransitionRouteGroupsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify(message.sessionEntityType); - if (error) - return "sessionEntityType." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; + if (message.transitionRouteGroups != null && message.hasOwnProperty("transitionRouteGroups")) { + if (!Array.isArray(message.transitionRouteGroups)) + return "transitionRouteGroups: array expected"; + for (var i = 0; i < message.transitionRouteGroups.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify(message.transitionRouteGroups[i]); + if (error) + return "transitionRouteGroups." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an UpdateSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListTransitionRouteGroupsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse */ - UpdateSessionEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest) + ListTransitionRouteGroupsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest(); - if (object.sessionEntityType != null) { - if (typeof object.sessionEntityType !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest.sessionEntityType: object expected"); - message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.fromObject(object.sessionEntityType); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse(); + if (object.transitionRouteGroups) { + if (!Array.isArray(object.transitionRouteGroups)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse.transitionRouteGroups: array expected"); + message.transitionRouteGroups = []; + for (var i = 0; i < object.transitionRouteGroups.length; ++i) { + if (typeof object.transitionRouteGroups[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse.transitionRouteGroups: object expected"); + message.transitionRouteGroups[i] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.fromObject(object.transitionRouteGroups[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an UpdateSessionEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListTransitionRouteGroupsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest} message UpdateSessionEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse} message ListTransitionRouteGroupsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateSessionEntityTypeRequest.toObject = function toObject(message, options) { + ListTransitionRouteGroupsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.sessionEntityType = null; - object.updateMask = null; + if (options.arrays || options.defaults) + object.transitionRouteGroups = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.transitionRouteGroups && message.transitionRouteGroups.length) { + object.transitionRouteGroups = []; + for (var j = 0; j < message.transitionRouteGroups.length; ++j) + object.transitionRouteGroups[j] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.toObject(message.transitionRouteGroups[j], options); } - if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) - object.sessionEntityType = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.toObject(message.sessionEntityType, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this UpdateSessionEntityTypeRequest to JSON. + * Converts this ListTransitionRouteGroupsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse * @instance * @returns {Object.} JSON object */ - UpdateSessionEntityTypeRequest.prototype.toJSON = function toJSON() { + ListTransitionRouteGroupsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateSessionEntityTypeRequest; + return ListTransitionRouteGroupsResponse; })(); - v3beta1.DeleteSessionEntityTypeRequest = (function() { + v3beta1.GetTransitionRouteGroupRequest = (function() { /** - * Properties of a DeleteSessionEntityTypeRequest. + * Properties of a GetTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDeleteSessionEntityTypeRequest - * @property {string|null} [name] DeleteSessionEntityTypeRequest name + * @interface IGetTransitionRouteGroupRequest + * @property {string|null} [name] GetTransitionRouteGroupRequest name + * @property {string|null} [languageCode] GetTransitionRouteGroupRequest languageCode */ /** - * Constructs a new DeleteSessionEntityTypeRequest. + * Constructs a new GetTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DeleteSessionEntityTypeRequest. - * @implements IDeleteSessionEntityTypeRequest + * @classdesc Represents a GetTransitionRouteGroupRequest. + * @implements IGetTransitionRouteGroupRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest=} [properties] Properties to set */ - function DeleteSessionEntityTypeRequest(properties) { + function GetTransitionRouteGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -115473,76 +114445,89 @@ } /** - * DeleteSessionEntityTypeRequest name. + * GetTransitionRouteGroupRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest * @instance */ - DeleteSessionEntityTypeRequest.prototype.name = ""; + GetTransitionRouteGroupRequest.prototype.name = ""; /** - * Creates a new DeleteSessionEntityTypeRequest instance using the specified properties. + * GetTransitionRouteGroupRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * @instance + */ + GetTransitionRouteGroupRequest.prototype.languageCode = ""; + + /** + * Creates a new GetTransitionRouteGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest instance */ - DeleteSessionEntityTypeRequest.create = function create(properties) { - return new DeleteSessionEntityTypeRequest(properties); + GetTransitionRouteGroupRequest.create = function create(properties) { + return new GetTransitionRouteGroupRequest(properties); }; /** - * Encodes the specified DeleteSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified GetTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest} message DeleteSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest} message GetTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteSessionEntityTypeRequest.encode = function encode(message, writer) { + GetTransitionRouteGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); return writer; }; /** - * Encodes the specified DeleteSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified GetTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest} message DeleteSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest} message GetTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer. + * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteSessionEntityTypeRequest.decode = function decode(reader, length) { + GetTransitionRouteGroupRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; + case 2: + message.languageCode = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -115552,310 +114537,355 @@ }; /** - * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteSessionEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + GetTransitionRouteGroupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteSessionEntityTypeRequest message. + * Verifies a GetTransitionRouteGroupRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteSessionEntityTypeRequest.verify = function verify(message) { + GetTransitionRouteGroupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates a DeleteSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest */ - DeleteSessionEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest) + GetTransitionRouteGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest(); if (object.name != null) message.name = String(object.name); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a DeleteSessionEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetTransitionRouteGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest} message DeleteSessionEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest} message GetTransitionRouteGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteSessionEntityTypeRequest.toObject = function toObject(message, options) { + GetTransitionRouteGroupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.name = ""; + object.languageCode = ""; + } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this DeleteSessionEntityTypeRequest to JSON. + * Converts this GetTransitionRouteGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest * @instance * @returns {Object.} JSON object */ - DeleteSessionEntityTypeRequest.prototype.toJSON = function toJSON() { + GetTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteSessionEntityTypeRequest; + return GetTransitionRouteGroupRequest; })(); - v3beta1.TransitionRouteGroups = (function() { + v3beta1.CreateTransitionRouteGroupRequest = (function() { /** - * Constructs a new TransitionRouteGroups service. + * Properties of a CreateTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TransitionRouteGroups - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function TransitionRouteGroups(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (TransitionRouteGroups.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = TransitionRouteGroups; - - /** - * Creates new TransitionRouteGroups service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {TransitionRouteGroups} RPC service. Useful where requests and/or responses are streamed. - */ - TransitionRouteGroups.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#listTransitionRouteGroups}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups - * @typedef ListTransitionRouteGroupsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse} [response] ListTransitionRouteGroupsResponse + * @interface ICreateTransitionRouteGroupRequest + * @property {string|null} [parent] CreateTransitionRouteGroupRequest parent + * @property {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null} [transitionRouteGroup] CreateTransitionRouteGroupRequest transitionRouteGroup + * @property {string|null} [languageCode] CreateTransitionRouteGroupRequest languageCode */ /** - * Calls ListTransitionRouteGroups. - * @function listTransitionRouteGroups - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest} request ListTransitionRouteGroupsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.ListTransitionRouteGroupsCallback} callback Node-style callback called with the error, if any, and ListTransitionRouteGroupsResponse - * @returns {undefined} - * @variation 1 + * Constructs a new CreateTransitionRouteGroupRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a CreateTransitionRouteGroupRequest. + * @implements ICreateTransitionRouteGroupRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest=} [properties] Properties to set */ - Object.defineProperty(TransitionRouteGroups.prototype.listTransitionRouteGroups = function listTransitionRouteGroups(request, callback) { - return this.rpcCall(listTransitionRouteGroups, $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse, request, callback); - }, "name", { value: "ListTransitionRouteGroups" }); + function CreateTransitionRouteGroupRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls ListTransitionRouteGroups. - * @function listTransitionRouteGroups - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * CreateTransitionRouteGroupRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest} request ListTransitionRouteGroupsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#getTransitionRouteGroup}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups - * @typedef GetTransitionRouteGroupCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} [response] TransitionRouteGroup */ + CreateTransitionRouteGroupRequest.prototype.parent = ""; /** - * Calls GetTransitionRouteGroup. - * @function getTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * CreateTransitionRouteGroupRequest transitionRouteGroup. + * @member {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null|undefined} transitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest} request GetTransitionRouteGroupRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.GetTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and TransitionRouteGroup - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(TransitionRouteGroups.prototype.getTransitionRouteGroup = function getTransitionRouteGroup(request, callback) { - return this.rpcCall(getTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest, $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup, request, callback); - }, "name", { value: "GetTransitionRouteGroup" }); + CreateTransitionRouteGroupRequest.prototype.transitionRouteGroup = null; /** - * Calls GetTransitionRouteGroup. - * @function getTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * CreateTransitionRouteGroupRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest} request GetTransitionRouteGroupRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + CreateTransitionRouteGroupRequest.prototype.languageCode = ""; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#createTransitionRouteGroup}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups - * @typedef CreateTransitionRouteGroupCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} [response] TransitionRouteGroup + * Creates a new CreateTransitionRouteGroupRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest instance */ + CreateTransitionRouteGroupRequest.create = function create(properties) { + return new CreateTransitionRouteGroupRequest(properties); + }; /** - * Calls CreateTransitionRouteGroup. - * @function createTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest} request CreateTransitionRouteGroupRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.CreateTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and TransitionRouteGroup - * @returns {undefined} - * @variation 1 + * Encodes the specified CreateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest} message CreateTransitionRouteGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(TransitionRouteGroups.prototype.createTransitionRouteGroup = function createTransitionRouteGroup(request, callback) { - return this.rpcCall(createTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest, $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup, request, callback); - }, "name", { value: "CreateTransitionRouteGroup" }); + CreateTransitionRouteGroupRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.transitionRouteGroup != null && Object.hasOwnProperty.call(message, "transitionRouteGroup")) + $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.encode(message.transitionRouteGroup, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); + return writer; + }; /** - * Calls CreateTransitionRouteGroup. - * @function createTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest} request CreateTransitionRouteGroupRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified CreateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest} message CreateTransitionRouteGroupRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + CreateTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#updateTransitionRouteGroup}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups - * @typedef UpdateTransitionRouteGroupCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} [response] TransitionRouteGroup + * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + CreateTransitionRouteGroupRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.decode(reader, reader.uint32()); + break; + case 3: + message.languageCode = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls UpdateTransitionRouteGroup. - * @function updateTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest} request UpdateTransitionRouteGroupRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.UpdateTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and TransitionRouteGroup - * @returns {undefined} - * @variation 1 + * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(TransitionRouteGroups.prototype.updateTransitionRouteGroup = function updateTransitionRouteGroup(request, callback) { - return this.rpcCall(updateTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest, $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup, request, callback); - }, "name", { value: "UpdateTransitionRouteGroup" }); + CreateTransitionRouteGroupRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls UpdateTransitionRouteGroup. - * @function updateTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest} request UpdateTransitionRouteGroupRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a CreateTransitionRouteGroupRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + CreateTransitionRouteGroupRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify(message.transitionRouteGroup); + if (error) + return "transitionRouteGroup." + error; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + return null; + }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#deleteTransitionRouteGroup}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups - * @typedef DeleteTransitionRouteGroupCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Creates a CreateTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest */ + CreateTransitionRouteGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.transitionRouteGroup != null) { + if (typeof object.transitionRouteGroup !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest.transitionRouteGroup: object expected"); + message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.fromObject(object.transitionRouteGroup); + } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + return message; + }; /** - * Calls DeleteTransitionRouteGroup. - * @function deleteTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest} request DeleteTransitionRouteGroupRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.DeleteTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * Creates a plain object from a CreateTransitionRouteGroupRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest} message CreateTransitionRouteGroupRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(TransitionRouteGroups.prototype.deleteTransitionRouteGroup = function deleteTransitionRouteGroup(request, callback) { - return this.rpcCall(deleteTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteTransitionRouteGroup" }); + CreateTransitionRouteGroupRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.transitionRouteGroup = null; + object.languageCode = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) + object.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.toObject(message.transitionRouteGroup, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + return object; + }; /** - * Calls DeleteTransitionRouteGroup. - * @function deleteTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * Converts this CreateTransitionRouteGroupRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest} request DeleteTransitionRouteGroupRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + CreateTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return TransitionRouteGroups; + return CreateTransitionRouteGroupRequest; })(); - v3beta1.TransitionRouteGroup = (function() { + v3beta1.UpdateTransitionRouteGroupRequest = (function() { /** - * Properties of a TransitionRouteGroup. + * Properties of an UpdateTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ITransitionRouteGroup - * @property {string|null} [name] TransitionRouteGroup name - * @property {string|null} [displayName] TransitionRouteGroup displayName - * @property {Array.|null} [transitionRoutes] TransitionRouteGroup transitionRoutes + * @interface IUpdateTransitionRouteGroupRequest + * @property {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null} [transitionRouteGroup] UpdateTransitionRouteGroupRequest transitionRouteGroup + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateTransitionRouteGroupRequest updateMask + * @property {string|null} [languageCode] UpdateTransitionRouteGroupRequest languageCode */ /** - * Constructs a new TransitionRouteGroup. + * Constructs a new UpdateTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TransitionRouteGroup. - * @implements ITransitionRouteGroup + * @classdesc Represents an UpdateTransitionRouteGroupRequest. + * @implements IUpdateTransitionRouteGroupRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest=} [properties] Properties to set */ - function TransitionRouteGroup(properties) { - this.transitionRoutes = []; + function UpdateTransitionRouteGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -115863,104 +114893,101 @@ } /** - * TransitionRouteGroup name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * UpdateTransitionRouteGroupRequest transitionRouteGroup. + * @member {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null|undefined} transitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest * @instance */ - TransitionRouteGroup.prototype.name = ""; + UpdateTransitionRouteGroupRequest.prototype.transitionRouteGroup = null; /** - * TransitionRouteGroup displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * UpdateTransitionRouteGroupRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest * @instance */ - TransitionRouteGroup.prototype.displayName = ""; + UpdateTransitionRouteGroupRequest.prototype.updateMask = null; /** - * TransitionRouteGroup transitionRoutes. - * @member {Array.} transitionRoutes - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * UpdateTransitionRouteGroupRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest * @instance */ - TransitionRouteGroup.prototype.transitionRoutes = $util.emptyArray; + UpdateTransitionRouteGroupRequest.prototype.languageCode = ""; /** - * Creates a new TransitionRouteGroup instance using the specified properties. + * Creates a new UpdateTransitionRouteGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} TransitionRouteGroup instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest instance */ - TransitionRouteGroup.create = function create(properties) { - return new TransitionRouteGroup(properties); + UpdateTransitionRouteGroupRequest.create = function create(properties) { + return new UpdateTransitionRouteGroupRequest(properties); }; /** - * Encodes the specified TransitionRouteGroup message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify|verify} messages. + * Encodes the specified UpdateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup} message TransitionRouteGroup message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest} message UpdateTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransitionRouteGroup.encode = function encode(message, writer) { + UpdateTransitionRouteGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.transitionRoutes != null && message.transitionRoutes.length) - for (var i = 0; i < message.transitionRoutes.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.encode(message.transitionRoutes[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.transitionRouteGroup != null && Object.hasOwnProperty.call(message, "transitionRouteGroup")) + $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.encode(message.transitionRouteGroup, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); return writer; }; /** - * Encodes the specified TransitionRouteGroup message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify|verify} messages. + * Encodes the specified UpdateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup} message TransitionRouteGroup message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest} message UpdateTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransitionRouteGroup.encodeDelimited = function encodeDelimited(message, writer) { + UpdateTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TransitionRouteGroup message from the specified reader or buffer. + * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} TransitionRouteGroup + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TransitionRouteGroup.decode = function decode(reader, length) { + UpdateTransitionRouteGroupRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.decode(reader, reader.uint32()); break; case 2: - message.displayName = reader.string(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; - case 5: - if (!(message.transitionRoutes && message.transitionRoutes.length)) - message.transitionRoutes = []; - message.transitionRoutes.push($root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.decode(reader, reader.uint32())); + case 3: + message.languageCode = reader.string(); break; default: reader.skipType(tag & 7); @@ -115971,145 +114998,135 @@ }; /** - * Decodes a TransitionRouteGroup message from the specified reader or buffer, length delimited. + * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} TransitionRouteGroup + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TransitionRouteGroup.decodeDelimited = function decodeDelimited(reader) { + UpdateTransitionRouteGroupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TransitionRouteGroup message. + * Verifies an UpdateTransitionRouteGroupRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TransitionRouteGroup.verify = function verify(message) { + UpdateTransitionRouteGroupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.transitionRoutes != null && message.hasOwnProperty("transitionRoutes")) { - if (!Array.isArray(message.transitionRoutes)) - return "transitionRoutes: array expected"; - for (var i = 0; i < message.transitionRoutes.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify(message.transitionRoutes[i]); - if (error) - return "transitionRoutes." + error; - } + if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify(message.transitionRouteGroup); + if (error) + return "transitionRouteGroup." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates a TransitionRouteGroup message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} TransitionRouteGroup + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest */ - TransitionRouteGroup.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup) + UpdateTransitionRouteGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.transitionRoutes) { - if (!Array.isArray(object.transitionRoutes)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.transitionRoutes: array expected"); - message.transitionRoutes = []; - for (var i = 0; i < object.transitionRoutes.length; ++i) { - if (typeof object.transitionRoutes[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.transitionRoutes: object expected"); - message.transitionRoutes[i] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.fromObject(object.transitionRoutes[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest(); + if (object.transitionRouteGroup != null) { + if (typeof object.transitionRouteGroup !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest.transitionRouteGroup: object expected"); + message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.fromObject(object.transitionRouteGroup); } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a TransitionRouteGroup message. Also converts values to other types if specified. + * Creates a plain object from an UpdateTransitionRouteGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} message TransitionRouteGroup + * @param {google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest} message UpdateTransitionRouteGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TransitionRouteGroup.toObject = function toObject(message, options) { + UpdateTransitionRouteGroupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.transitionRoutes = []; if (options.defaults) { - object.name = ""; - object.displayName = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.transitionRoutes && message.transitionRoutes.length) { - object.transitionRoutes = []; - for (var j = 0; j < message.transitionRoutes.length; ++j) - object.transitionRoutes[j] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.toObject(message.transitionRoutes[j], options); + object.transitionRouteGroup = null; + object.updateMask = null; + object.languageCode = ""; } + if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) + object.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.toObject(message.transitionRouteGroup, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this TransitionRouteGroup to JSON. + * Converts this UpdateTransitionRouteGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest * @instance * @returns {Object.} JSON object */ - TransitionRouteGroup.prototype.toJSON = function toJSON() { + UpdateTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TransitionRouteGroup; + return UpdateTransitionRouteGroupRequest; })(); - v3beta1.ListTransitionRouteGroupsRequest = (function() { + v3beta1.DeleteTransitionRouteGroupRequest = (function() { /** - * Properties of a ListTransitionRouteGroupsRequest. + * Properties of a DeleteTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListTransitionRouteGroupsRequest - * @property {string|null} [parent] ListTransitionRouteGroupsRequest parent - * @property {number|null} [pageSize] ListTransitionRouteGroupsRequest pageSize - * @property {string|null} [pageToken] ListTransitionRouteGroupsRequest pageToken - * @property {string|null} [languageCode] ListTransitionRouteGroupsRequest languageCode + * @interface IDeleteTransitionRouteGroupRequest + * @property {string|null} [name] DeleteTransitionRouteGroupRequest name + * @property {boolean|null} [force] DeleteTransitionRouteGroupRequest force */ /** - * Constructs a new ListTransitionRouteGroupsRequest. + * Constructs a new DeleteTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListTransitionRouteGroupsRequest. - * @implements IListTransitionRouteGroupsRequest + * @classdesc Represents a DeleteTransitionRouteGroupRequest. + * @implements IDeleteTransitionRouteGroupRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest=} [properties] Properties to set */ - function ListTransitionRouteGroupsRequest(properties) { + function DeleteTransitionRouteGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -116117,114 +115134,88 @@ } /** - * ListTransitionRouteGroupsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest - * @instance - */ - ListTransitionRouteGroupsRequest.prototype.parent = ""; - - /** - * ListTransitionRouteGroupsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest - * @instance - */ - ListTransitionRouteGroupsRequest.prototype.pageSize = 0; - - /** - * ListTransitionRouteGroupsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * DeleteTransitionRouteGroupRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest * @instance */ - ListTransitionRouteGroupsRequest.prototype.pageToken = ""; + DeleteTransitionRouteGroupRequest.prototype.name = ""; /** - * ListTransitionRouteGroupsRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * DeleteTransitionRouteGroupRequest force. + * @member {boolean} force + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest * @instance */ - ListTransitionRouteGroupsRequest.prototype.languageCode = ""; + DeleteTransitionRouteGroupRequest.prototype.force = false; /** - * Creates a new ListTransitionRouteGroupsRequest instance using the specified properties. + * Creates a new DeleteTransitionRouteGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest instance */ - ListTransitionRouteGroupsRequest.create = function create(properties) { - return new ListTransitionRouteGroupsRequest(properties); + DeleteTransitionRouteGroupRequest.create = function create(properties) { + return new DeleteTransitionRouteGroupRequest(properties); }; /** - * Encodes the specified ListTransitionRouteGroupsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest.verify|verify} messages. + * Encodes the specified DeleteTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest} message ListTransitionRouteGroupsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest} message DeleteTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTransitionRouteGroupsRequest.encode = function encode(message, writer) { + DeleteTransitionRouteGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.languageCode); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); return writer; }; /** - * Encodes the specified ListTransitionRouteGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest.verify|verify} messages. + * Encodes the specified DeleteTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest} message ListTransitionRouteGroupsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest} message DeleteTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTransitionRouteGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer. + * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTransitionRouteGroupsRequest.decode = function decode(reader, length) { + DeleteTransitionRouteGroupRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.name = reader.string(); break; case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); - break; - case 4: - message.languageCode = reader.string(); + message.force = reader.bool(); break; default: reader.skipType(tag & 7); @@ -116235,134 +115226,397 @@ }; /** - * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTransitionRouteGroupsRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteTransitionRouteGroupRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTransitionRouteGroupsRequest message. + * Verifies a DeleteTransitionRouteGroupRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTransitionRouteGroupsRequest.verify = function verify(message) { + DeleteTransitionRouteGroupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; return null; }; /** - * Creates a ListTransitionRouteGroupsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest */ - ListTransitionRouteGroupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest) + DeleteTransitionRouteGroupRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.force != null) + message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from a ListTransitionRouteGroupsRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteTransitionRouteGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest} message ListTransitionRouteGroupsRequest + * @param {google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest} message DeleteTransitionRouteGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTransitionRouteGroupsRequest.toObject = function toObject(message, options) { + DeleteTransitionRouteGroupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.languageCode = ""; + object.name = ""; + object.force = false; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; return object; }; /** - * Converts this ListTransitionRouteGroupsRequest to JSON. + * Converts this DeleteTransitionRouteGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest * @instance * @returns {Object.} JSON object */ - ListTransitionRouteGroupsRequest.prototype.toJSON = function toJSON() { + DeleteTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListTransitionRouteGroupsRequest; + return DeleteTransitionRouteGroupRequest; })(); - v3beta1.ListTransitionRouteGroupsResponse = (function() { + v3beta1.Experiments = (function() { /** - * Properties of a ListTransitionRouteGroupsResponse. + * Constructs a new Experiments service. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListTransitionRouteGroupsResponse - * @property {Array.|null} [transitionRouteGroups] ListTransitionRouteGroupsResponse transitionRouteGroups - * @property {string|null} [nextPageToken] ListTransitionRouteGroupsResponse nextPageToken + * @classdesc Represents an Experiments + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ + function Experiments(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Experiments.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Experiments; /** - * Constructs a new ListTransitionRouteGroupsResponse. + * Creates new Experiments service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {Experiments} RPC service. Useful where requests and/or responses are streamed. + */ + Experiments.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#listExperiments}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @typedef ListExperimentsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse} [response] ListExperimentsResponse + */ + + /** + * Calls ListExperiments. + * @function listExperiments + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest} request ListExperimentsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Experiments.ListExperimentsCallback} callback Node-style callback called with the error, if any, and ListExperimentsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Experiments.prototype.listExperiments = function listExperiments(request, callback) { + return this.rpcCall(listExperiments, $root.google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse, request, callback); + }, "name", { value: "ListExperiments" }); + + /** + * Calls ListExperiments. + * @function listExperiments + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest} request ListExperimentsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#getExperiment}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @typedef GetExperimentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment} [response] Experiment + */ + + /** + * Calls GetExperiment. + * @function getExperiment + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest} request GetExperimentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Experiments.GetExperimentCallback} callback Node-style callback called with the error, if any, and Experiment + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Experiments.prototype.getExperiment = function getExperiment(request, callback) { + return this.rpcCall(getExperiment, $root.google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Experiment, request, callback); + }, "name", { value: "GetExperiment" }); + + /** + * Calls GetExperiment. + * @function getExperiment + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest} request GetExperimentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#createExperiment}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @typedef CreateExperimentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment} [response] Experiment + */ + + /** + * Calls CreateExperiment. + * @function createExperiment + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest} request CreateExperimentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Experiments.CreateExperimentCallback} callback Node-style callback called with the error, if any, and Experiment + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Experiments.prototype.createExperiment = function createExperiment(request, callback) { + return this.rpcCall(createExperiment, $root.google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Experiment, request, callback); + }, "name", { value: "CreateExperiment" }); + + /** + * Calls CreateExperiment. + * @function createExperiment + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest} request CreateExperimentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#updateExperiment}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @typedef UpdateExperimentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment} [response] Experiment + */ + + /** + * Calls UpdateExperiment. + * @function updateExperiment + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest} request UpdateExperimentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Experiments.UpdateExperimentCallback} callback Node-style callback called with the error, if any, and Experiment + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Experiments.prototype.updateExperiment = function updateExperiment(request, callback) { + return this.rpcCall(updateExperiment, $root.google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Experiment, request, callback); + }, "name", { value: "UpdateExperiment" }); + + /** + * Calls UpdateExperiment. + * @function updateExperiment + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest} request UpdateExperimentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#deleteExperiment}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @typedef DeleteExperimentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteExperiment. + * @function deleteExperiment + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest} request DeleteExperimentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Experiments.DeleteExperimentCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Experiments.prototype.deleteExperiment = function deleteExperiment(request, callback) { + return this.rpcCall(deleteExperiment, $root.google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteExperiment" }); + + /** + * Calls DeleteExperiment. + * @function deleteExperiment + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest} request DeleteExperimentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#startExperiment}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @typedef StartExperimentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment} [response] Experiment + */ + + /** + * Calls StartExperiment. + * @function startExperiment + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest} request StartExperimentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Experiments.StartExperimentCallback} callback Node-style callback called with the error, if any, and Experiment + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Experiments.prototype.startExperiment = function startExperiment(request, callback) { + return this.rpcCall(startExperiment, $root.google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Experiment, request, callback); + }, "name", { value: "StartExperiment" }); + + /** + * Calls StartExperiment. + * @function startExperiment + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest} request StartExperimentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#stopExperiment}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @typedef StopExperimentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment} [response] Experiment + */ + + /** + * Calls StopExperiment. + * @function stopExperiment + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest} request StopExperimentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Experiments.StopExperimentCallback} callback Node-style callback called with the error, if any, and Experiment + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Experiments.prototype.stopExperiment = function stopExperiment(request, callback) { + return this.rpcCall(stopExperiment, $root.google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Experiment, request, callback); + }, "name", { value: "StopExperiment" }); + + /** + * Calls StopExperiment. + * @function stopExperiment + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest} request StopExperimentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Experiments; + })(); + + v3beta1.Experiment = (function() { + + /** + * Properties of an Experiment. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListTransitionRouteGroupsResponse. - * @implements IListTransitionRouteGroupsResponse + * @interface IExperiment + * @property {string|null} [name] Experiment name + * @property {string|null} [displayName] Experiment displayName + * @property {string|null} [description] Experiment description + * @property {google.cloud.dialogflow.cx.v3beta1.Experiment.State|null} [state] Experiment state + * @property {google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition|null} [definition] Experiment definition + * @property {google.cloud.dialogflow.cx.v3beta1.IRolloutConfig|null} [rolloutConfig] Experiment rolloutConfig + * @property {google.cloud.dialogflow.cx.v3beta1.IRolloutState|null} [rolloutState] Experiment rolloutState + * @property {string|null} [rolloutFailureReason] Experiment rolloutFailureReason + * @property {google.cloud.dialogflow.cx.v3beta1.Experiment.IResult|null} [result] Experiment result + * @property {google.protobuf.ITimestamp|null} [createTime] Experiment createTime + * @property {google.protobuf.ITimestamp|null} [startTime] Experiment startTime + * @property {google.protobuf.ITimestamp|null} [endTime] Experiment endTime + * @property {google.protobuf.ITimestamp|null} [lastUpdateTime] Experiment lastUpdateTime + * @property {google.protobuf.IDuration|null} [experimentLength] Experiment experimentLength + * @property {Array.|null} [variantsHistory] Experiment variantsHistory + */ + + /** + * Constructs a new Experiment. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents an Experiment. + * @implements IExperiment * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IExperiment=} [properties] Properties to set */ - function ListTransitionRouteGroupsResponse(properties) { - this.transitionRouteGroups = []; + function Experiment(properties) { + this.variantsHistory = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -116370,310 +115624,211 @@ } /** - * ListTransitionRouteGroupsResponse transitionRouteGroups. - * @member {Array.} transitionRouteGroups - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse + * Experiment name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment * @instance */ - ListTransitionRouteGroupsResponse.prototype.transitionRouteGroups = $util.emptyArray; + Experiment.prototype.name = ""; /** - * ListTransitionRouteGroupsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse + * Experiment displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment * @instance */ - ListTransitionRouteGroupsResponse.prototype.nextPageToken = ""; - - /** - * Creates a new ListTransitionRouteGroupsResponse instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse instance - */ - ListTransitionRouteGroupsResponse.create = function create(properties) { - return new ListTransitionRouteGroupsResponse(properties); - }; - - /** - * Encodes the specified ListTransitionRouteGroupsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse} message ListTransitionRouteGroupsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListTransitionRouteGroupsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.transitionRouteGroups != null && message.transitionRouteGroups.length) - for (var i = 0; i < message.transitionRouteGroups.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.encode(message.transitionRouteGroups[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - return writer; - }; + Experiment.prototype.displayName = ""; /** - * Encodes the specified ListTransitionRouteGroupsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse} message ListTransitionRouteGroupsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Experiment description. + * @member {string} description + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @instance */ - ListTransitionRouteGroupsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Experiment.prototype.description = ""; /** - * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Experiment state. + * @member {google.cloud.dialogflow.cx.v3beta1.Experiment.State} state + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @instance */ - ListTransitionRouteGroupsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.transitionRouteGroups && message.transitionRouteGroups.length)) - message.transitionRouteGroups = []; - message.transitionRouteGroups.push($root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + Experiment.prototype.state = 0; /** - * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Experiment definition. + * @member {google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition|null|undefined} definition + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @instance */ - ListTransitionRouteGroupsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Experiment.prototype.definition = null; /** - * Verifies a ListTransitionRouteGroupsResponse message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Experiment rolloutConfig. + * @member {google.cloud.dialogflow.cx.v3beta1.IRolloutConfig|null|undefined} rolloutConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @instance */ - ListTransitionRouteGroupsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.transitionRouteGroups != null && message.hasOwnProperty("transitionRouteGroups")) { - if (!Array.isArray(message.transitionRouteGroups)) - return "transitionRouteGroups: array expected"; - for (var i = 0; i < message.transitionRouteGroups.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify(message.transitionRouteGroups[i]); - if (error) - return "transitionRouteGroups." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; + Experiment.prototype.rolloutConfig = null; /** - * Creates a ListTransitionRouteGroupsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse + * Experiment rolloutState. + * @member {google.cloud.dialogflow.cx.v3beta1.IRolloutState|null|undefined} rolloutState + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @instance */ - ListTransitionRouteGroupsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse(); - if (object.transitionRouteGroups) { - if (!Array.isArray(object.transitionRouteGroups)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse.transitionRouteGroups: array expected"); - message.transitionRouteGroups = []; - for (var i = 0; i < object.transitionRouteGroups.length; ++i) { - if (typeof object.transitionRouteGroups[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse.transitionRouteGroups: object expected"); - message.transitionRouteGroups[i] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.fromObject(object.transitionRouteGroups[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; + Experiment.prototype.rolloutState = null; /** - * Creates a plain object from a ListTransitionRouteGroupsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse} message ListTransitionRouteGroupsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Experiment rolloutFailureReason. + * @member {string} rolloutFailureReason + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @instance */ - ListTransitionRouteGroupsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.transitionRouteGroups = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.transitionRouteGroups && message.transitionRouteGroups.length) { - object.transitionRouteGroups = []; - for (var j = 0; j < message.transitionRouteGroups.length; ++j) - object.transitionRouteGroups[j] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.toObject(message.transitionRouteGroups[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; + Experiment.prototype.rolloutFailureReason = ""; /** - * Converts this ListTransitionRouteGroupsResponse to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse + * Experiment result. + * @member {google.cloud.dialogflow.cx.v3beta1.Experiment.IResult|null|undefined} result + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment * @instance - * @returns {Object.} JSON object */ - ListTransitionRouteGroupsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Experiment.prototype.result = null; - return ListTransitionRouteGroupsResponse; - })(); + /** + * Experiment createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @instance + */ + Experiment.prototype.createTime = null; - v3beta1.GetTransitionRouteGroupRequest = (function() { + /** + * Experiment startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @instance + */ + Experiment.prototype.startTime = null; /** - * Properties of a GetTransitionRouteGroupRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetTransitionRouteGroupRequest - * @property {string|null} [name] GetTransitionRouteGroupRequest name - * @property {string|null} [languageCode] GetTransitionRouteGroupRequest languageCode + * Experiment endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @instance */ + Experiment.prototype.endTime = null; /** - * Constructs a new GetTransitionRouteGroupRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetTransitionRouteGroupRequest. - * @implements IGetTransitionRouteGroupRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest=} [properties] Properties to set + * Experiment lastUpdateTime. + * @member {google.protobuf.ITimestamp|null|undefined} lastUpdateTime + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @instance */ - function GetTransitionRouteGroupRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Experiment.prototype.lastUpdateTime = null; /** - * GetTransitionRouteGroupRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * Experiment experimentLength. + * @member {google.protobuf.IDuration|null|undefined} experimentLength + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment * @instance */ - GetTransitionRouteGroupRequest.prototype.name = ""; + Experiment.prototype.experimentLength = null; /** - * GetTransitionRouteGroupRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * Experiment variantsHistory. + * @member {Array.} variantsHistory + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment * @instance */ - GetTransitionRouteGroupRequest.prototype.languageCode = ""; + Experiment.prototype.variantsHistory = $util.emptyArray; /** - * Creates a new GetTransitionRouteGroupRequest instance using the specified properties. + * Creates a new Experiment instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IExperiment=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment} Experiment instance */ - GetTransitionRouteGroupRequest.create = function create(properties) { - return new GetTransitionRouteGroupRequest(properties); + Experiment.create = function create(properties) { + return new Experiment(properties); }; /** - * Encodes the specified GetTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest.verify|verify} messages. + * Encodes the specified Experiment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest} message GetTransitionRouteGroupRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IExperiment} message Experiment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTransitionRouteGroupRequest.encode = function encode(message, writer) { + Experiment.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state); + if (message.definition != null && Object.hasOwnProperty.call(message, "definition")) + $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.encode(message.definition, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.encode(message.result, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.lastUpdateTime != null && Object.hasOwnProperty.call(message, "lastUpdateTime")) + $root.google.protobuf.Timestamp.encode(message.lastUpdateTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.experimentLength != null && Object.hasOwnProperty.call(message, "experimentLength")) + $root.google.protobuf.Duration.encode(message.experimentLength, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.variantsHistory != null && message.variantsHistory.length) + for (var i = 0; i < message.variantsHistory.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.VariantsHistory.encode(message.variantsHistory[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.rolloutConfig != null && Object.hasOwnProperty.call(message, "rolloutConfig")) + $root.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.encode(message.rolloutConfig, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.rolloutState != null && Object.hasOwnProperty.call(message, "rolloutState")) + $root.google.cloud.dialogflow.cx.v3beta1.RolloutState.encode(message.rolloutState, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.rolloutFailureReason != null && Object.hasOwnProperty.call(message, "rolloutFailureReason")) + writer.uint32(/* id 16, wireType 2 =*/130).string(message.rolloutFailureReason); return writer; }; /** - * Encodes the specified GetTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest.verify|verify} messages. + * Encodes the specified Experiment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest} message GetTransitionRouteGroupRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IExperiment} message Experiment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + Experiment.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer. + * Decodes an Experiment message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment} Experiment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTransitionRouteGroupRequest.decode = function decode(reader, length) { + Experiment.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -116681,7 +115836,48 @@ message.name = reader.string(); break; case 2: - message.languageCode = reader.string(); + message.displayName = reader.string(); + break; + case 3: + message.description = reader.string(); + break; + case 4: + message.state = reader.int32(); + break; + case 5: + message.definition = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.decode(reader, reader.uint32()); + break; + case 14: + message.rolloutConfig = $root.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.decode(reader, reader.uint32()); + break; + case 15: + message.rolloutState = $root.google.cloud.dialogflow.cx.v3beta1.RolloutState.decode(reader, reader.uint32()); + break; + case 16: + message.rolloutFailureReason = reader.string(); + break; + case 6: + message.result = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.decode(reader, reader.uint32()); + break; + case 7: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 8: + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 9: + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 10: + message.lastUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 11: + message.experimentLength = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 12: + if (!(message.variantsHistory && message.variantsHistory.length)) + message.variantsHistory = []; + message.variantsHistory.push($root.google.cloud.dialogflow.cx.v3beta1.VariantsHistory.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -116692,1010 +115888,1712 @@ }; /** - * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. + * Decodes an Experiment message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment} Experiment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTransitionRouteGroupRequest.decodeDelimited = function decodeDelimited(reader) { + Experiment.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetTransitionRouteGroupRequest message. + * Verifies an Experiment message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetTransitionRouteGroupRequest.verify = function verify(message) { + Experiment.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.definition != null && message.hasOwnProperty("definition")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.verify(message.definition); + if (error) + return "definition." + error; + } + if (message.rolloutConfig != null && message.hasOwnProperty("rolloutConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.verify(message.rolloutConfig); + if (error) + return "rolloutConfig." + error; + } + if (message.rolloutState != null && message.hasOwnProperty("rolloutState")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.RolloutState.verify(message.rolloutState); + if (error) + return "rolloutState." + error; + } + if (message.rolloutFailureReason != null && message.hasOwnProperty("rolloutFailureReason")) + if (!$util.isString(message.rolloutFailureReason)) + return "rolloutFailureReason: string expected"; + if (message.result != null && message.hasOwnProperty("result")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.verify(message.result); + if (error) + return "result." + error; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.lastUpdateTime); + if (error) + return "lastUpdateTime." + error; + } + if (message.experimentLength != null && message.hasOwnProperty("experimentLength")) { + var error = $root.google.protobuf.Duration.verify(message.experimentLength); + if (error) + return "experimentLength." + error; + } + if (message.variantsHistory != null && message.hasOwnProperty("variantsHistory")) { + if (!Array.isArray(message.variantsHistory)) + return "variantsHistory: array expected"; + for (var i = 0; i < message.variantsHistory.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.VariantsHistory.verify(message.variantsHistory[i]); + if (error) + return "variantsHistory." + error; + } + } return null; }; /** - * Creates a GetTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. + * Creates an Experiment message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment} Experiment */ - GetTransitionRouteGroupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest) + Experiment.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Experiment) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment(); if (object.name != null) message.name = String(object.name); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.description != null) + message.description = String(object.description); + switch (object.state) { + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "DRAFT": + case 1: + message.state = 1; + break; + case "RUNNING": + case 2: + message.state = 2; + break; + case "DONE": + case 3: + message.state = 3; + break; + case "ROLLOUT_FAILED": + case 4: + message.state = 4; + break; + } + if (object.definition != null) { + if (typeof object.definition !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.definition: object expected"); + message.definition = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.fromObject(object.definition); + } + if (object.rolloutConfig != null) { + if (typeof object.rolloutConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.rolloutConfig: object expected"); + message.rolloutConfig = $root.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.fromObject(object.rolloutConfig); + } + if (object.rolloutState != null) { + if (typeof object.rolloutState !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.rolloutState: object expected"); + message.rolloutState = $root.google.cloud.dialogflow.cx.v3beta1.RolloutState.fromObject(object.rolloutState); + } + if (object.rolloutFailureReason != null) + message.rolloutFailureReason = String(object.rolloutFailureReason); + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.result: object expected"); + message.result = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.fromObject(object.result); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + if (object.lastUpdateTime != null) { + if (typeof object.lastUpdateTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.lastUpdateTime: object expected"); + message.lastUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.lastUpdateTime); + } + if (object.experimentLength != null) { + if (typeof object.experimentLength !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.experimentLength: object expected"); + message.experimentLength = $root.google.protobuf.Duration.fromObject(object.experimentLength); + } + if (object.variantsHistory) { + if (!Array.isArray(object.variantsHistory)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.variantsHistory: array expected"); + message.variantsHistory = []; + for (var i = 0; i < object.variantsHistory.length; ++i) { + if (typeof object.variantsHistory[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.variantsHistory: object expected"); + message.variantsHistory[i] = $root.google.cloud.dialogflow.cx.v3beta1.VariantsHistory.fromObject(object.variantsHistory[i]); + } + } return message; }; /** - * Creates a plain object from a GetTransitionRouteGroupRequest message. Also converts values to other types if specified. + * Creates a plain object from an Experiment message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest} message GetTransitionRouteGroupRequest + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment} message Experiment * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTransitionRouteGroupRequest.toObject = function toObject(message, options) { + Experiment.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.variantsHistory = []; if (options.defaults) { object.name = ""; - object.languageCode = ""; + object.displayName = ""; + object.description = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.definition = null; + object.result = null; + object.createTime = null; + object.startTime = null; + object.endTime = null; + object.lastUpdateTime = null; + object.experimentLength = null; + object.rolloutConfig = null; + object.rolloutState = null; + object.rolloutFailureReason = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.Experiment.State[message.state] : message.state; + if (message.definition != null && message.hasOwnProperty("definition")) + object.definition = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.toObject(message.definition, options); + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.toObject(message.result, options); + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) + object.lastUpdateTime = $root.google.protobuf.Timestamp.toObject(message.lastUpdateTime, options); + if (message.experimentLength != null && message.hasOwnProperty("experimentLength")) + object.experimentLength = $root.google.protobuf.Duration.toObject(message.experimentLength, options); + if (message.variantsHistory && message.variantsHistory.length) { + object.variantsHistory = []; + for (var j = 0; j < message.variantsHistory.length; ++j) + object.variantsHistory[j] = $root.google.cloud.dialogflow.cx.v3beta1.VariantsHistory.toObject(message.variantsHistory[j], options); + } + if (message.rolloutConfig != null && message.hasOwnProperty("rolloutConfig")) + object.rolloutConfig = $root.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.toObject(message.rolloutConfig, options); + if (message.rolloutState != null && message.hasOwnProperty("rolloutState")) + object.rolloutState = $root.google.cloud.dialogflow.cx.v3beta1.RolloutState.toObject(message.rolloutState, options); + if (message.rolloutFailureReason != null && message.hasOwnProperty("rolloutFailureReason")) + object.rolloutFailureReason = message.rolloutFailureReason; return object; }; /** - * Converts this GetTransitionRouteGroupRequest to JSON. + * Converts this Experiment to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment * @instance * @returns {Object.} JSON object */ - GetTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { + Experiment.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetTransitionRouteGroupRequest; - })(); - - v3beta1.CreateTransitionRouteGroupRequest = (function() { - /** - * Properties of a CreateTransitionRouteGroupRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ICreateTransitionRouteGroupRequest - * @property {string|null} [parent] CreateTransitionRouteGroupRequest parent - * @property {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null} [transitionRouteGroup] CreateTransitionRouteGroupRequest transitionRouteGroup - * @property {string|null} [languageCode] CreateTransitionRouteGroupRequest languageCode + * State enum. + * @name google.cloud.dialogflow.cx.v3beta1.Experiment.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} DRAFT=1 DRAFT value + * @property {number} RUNNING=2 RUNNING value + * @property {number} DONE=3 DONE value + * @property {number} ROLLOUT_FAILED=4 ROLLOUT_FAILED value */ + Experiment.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "DRAFT"] = 1; + values[valuesById[2] = "RUNNING"] = 2; + values[valuesById[3] = "DONE"] = 3; + values[valuesById[4] = "ROLLOUT_FAILED"] = 4; + return values; + })(); - /** - * Constructs a new CreateTransitionRouteGroupRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CreateTransitionRouteGroupRequest. - * @implements ICreateTransitionRouteGroupRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest=} [properties] Properties to set - */ - function CreateTransitionRouteGroupRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Experiment.Definition = (function() { - /** - * CreateTransitionRouteGroupRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest - * @instance - */ - CreateTransitionRouteGroupRequest.prototype.parent = ""; + /** + * Properties of a Definition. + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @interface IDefinition + * @property {string|null} [condition] Definition condition + * @property {google.cloud.dialogflow.cx.v3beta1.IVersionVariants|null} [versionVariants] Definition versionVariants + */ - /** - * CreateTransitionRouteGroupRequest transitionRouteGroup. - * @member {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null|undefined} transitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest - * @instance - */ - CreateTransitionRouteGroupRequest.prototype.transitionRouteGroup = null; + /** + * Constructs a new Definition. + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @classdesc Represents a Definition. + * @implements IDefinition + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition=} [properties] Properties to set + */ + function Definition(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * CreateTransitionRouteGroupRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest - * @instance - */ - CreateTransitionRouteGroupRequest.prototype.languageCode = ""; + /** + * Definition condition. + * @member {string} condition + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition + * @instance + */ + Definition.prototype.condition = ""; - /** - * Creates a new CreateTransitionRouteGroupRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest instance - */ - CreateTransitionRouteGroupRequest.create = function create(properties) { - return new CreateTransitionRouteGroupRequest(properties); - }; + /** + * Definition versionVariants. + * @member {google.cloud.dialogflow.cx.v3beta1.IVersionVariants|null|undefined} versionVariants + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition + * @instance + */ + Definition.prototype.versionVariants = null; - /** - * Encodes the specified CreateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest} message CreateTransitionRouteGroupRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateTransitionRouteGroupRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.transitionRouteGroup != null && Object.hasOwnProperty.call(message, "transitionRouteGroup")) - $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.encode(message.transitionRouteGroup, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); - return writer; - }; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Definition variants. + * @member {"versionVariants"|undefined} variants + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition + * @instance + */ + Object.defineProperty(Definition.prototype, "variants", { + get: $util.oneOfGetter($oneOfFields = ["versionVariants"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Definition instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Definition} Definition instance + */ + Definition.create = function create(properties) { + return new Definition(properties); + }; + + /** + * Encodes the specified Definition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition} message Definition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Definition.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.condition != null && Object.hasOwnProperty.call(message, "condition")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.condition); + if (message.versionVariants != null && Object.hasOwnProperty.call(message, "versionVariants")) + $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.encode(message.versionVariants, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Definition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition} message Definition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Definition.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Definition message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Definition} Definition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Definition.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.condition = reader.string(); + break; + case 2: + message.versionVariants = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Definition message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Definition} Definition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Definition.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Definition message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Definition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.condition != null && message.hasOwnProperty("condition")) + if (!$util.isString(message.condition)) + return "condition: string expected"; + if (message.versionVariants != null && message.hasOwnProperty("versionVariants")) { + properties.variants = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.verify(message.versionVariants); + if (error) + return "versionVariants." + error; + } + } + return null; + }; + + /** + * Creates a Definition message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Definition} Definition + */ + Definition.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition(); + if (object.condition != null) + message.condition = String(object.condition); + if (object.versionVariants != null) { + if (typeof object.versionVariants !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.versionVariants: object expected"); + message.versionVariants = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.fromObject(object.versionVariants); + } + return message; + }; + + /** + * Creates a plain object from a Definition message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Definition} message Definition + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Definition.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.condition = ""; + if (message.condition != null && message.hasOwnProperty("condition")) + object.condition = message.condition; + if (message.versionVariants != null && message.hasOwnProperty("versionVariants")) { + object.versionVariants = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.toObject(message.versionVariants, options); + if (options.oneofs) + object.variants = "versionVariants"; + } + return object; + }; + + /** + * Converts this Definition to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition + * @instance + * @returns {Object.} JSON object + */ + Definition.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Definition; + })(); + + Experiment.Result = (function() { + + /** + * Properties of a Result. + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @interface IResult + * @property {Array.|null} [versionMetrics] Result versionMetrics + * @property {google.protobuf.ITimestamp|null} [lastUpdateTime] Result lastUpdateTime + */ + + /** + * Constructs a new Result. + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @classdesc Represents a Result. + * @implements IResult + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.IResult=} [properties] Properties to set + */ + function Result(properties) { + this.versionMetrics = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Result versionMetrics. + * @member {Array.} versionMetrics + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @instance + */ + Result.prototype.versionMetrics = $util.emptyArray; + + /** + * Result lastUpdateTime. + * @member {google.protobuf.ITimestamp|null|undefined} lastUpdateTime + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @instance + */ + Result.prototype.lastUpdateTime = null; + + /** + * Creates a new Result instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.IResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result} Result instance + */ + Result.create = function create(properties) { + return new Result(properties); + }; + + /** + * Encodes the specified Result message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.IResult} message Result message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Result.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.versionMetrics != null && message.versionMetrics.length) + for (var i = 0; i < message.versionMetrics.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.encode(message.versionMetrics[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.lastUpdateTime != null && Object.hasOwnProperty.call(message, "lastUpdateTime")) + $root.google.protobuf.Timestamp.encode(message.lastUpdateTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Result message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.IResult} message Result message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Result.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Result message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result} Result + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Result.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.versionMetrics && message.versionMetrics.length)) + message.versionMetrics = []; + message.versionMetrics.push($root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.decode(reader, reader.uint32())); + break; + case 2: + message.lastUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Result message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result} Result + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Result.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified CreateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest} message CreateTransitionRouteGroupRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Verifies a Result message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Result.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.versionMetrics != null && message.hasOwnProperty("versionMetrics")) { + if (!Array.isArray(message.versionMetrics)) + return "versionMetrics: array expected"; + for (var i = 0; i < message.versionMetrics.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.verify(message.versionMetrics[i]); + if (error) + return "versionMetrics." + error; + } + } + if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.lastUpdateTime); + if (error) + return "lastUpdateTime." + error; + } + return null; + }; - /** - * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateTransitionRouteGroupRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.decode(reader, reader.uint32()); - break; - case 3: - message.languageCode = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Creates a Result message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result} Result + */ + Result.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result(); + if (object.versionMetrics) { + if (!Array.isArray(object.versionMetrics)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.Result.versionMetrics: array expected"); + message.versionMetrics = []; + for (var i = 0; i < object.versionMetrics.length; ++i) { + if (typeof object.versionMetrics[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.Result.versionMetrics: object expected"); + message.versionMetrics[i] = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.fromObject(object.versionMetrics[i]); + } } - } - return message; - }; + if (object.lastUpdateTime != null) { + if (typeof object.lastUpdateTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.Result.lastUpdateTime: object expected"); + message.lastUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.lastUpdateTime); + } + return message; + }; - /** - * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateTransitionRouteGroupRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a plain object from a Result message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result} message Result + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Result.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.versionMetrics = []; + if (options.defaults) + object.lastUpdateTime = null; + if (message.versionMetrics && message.versionMetrics.length) { + object.versionMetrics = []; + for (var j = 0; j < message.versionMetrics.length; ++j) + object.versionMetrics[j] = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.toObject(message.versionMetrics[j], options); + } + if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) + object.lastUpdateTime = $root.google.protobuf.Timestamp.toObject(message.lastUpdateTime, options); + return object; + }; - /** - * Verifies a CreateTransitionRouteGroupRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateTransitionRouteGroupRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify(message.transitionRouteGroup); - if (error) - return "transitionRouteGroup." + error; - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; - return null; - }; + /** + * Converts this Result to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @instance + * @returns {Object.} JSON object + */ + Result.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a CreateTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest - */ - CreateTransitionRouteGroupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.transitionRouteGroup != null) { - if (typeof object.transitionRouteGroup !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest.transitionRouteGroup: object expected"); - message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.fromObject(object.transitionRouteGroup); - } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); - return message; - }; + /** + * MetricType enum. + * @name google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType + * @enum {number} + * @property {number} METRIC_UNSPECIFIED=0 METRIC_UNSPECIFIED value + * @property {number} CONTAINED_SESSION_NO_CALLBACK_RATE=1 CONTAINED_SESSION_NO_CALLBACK_RATE value + * @property {number} LIVE_AGENT_HANDOFF_RATE=2 LIVE_AGENT_HANDOFF_RATE value + * @property {number} CALLBACK_SESSION_RATE=3 CALLBACK_SESSION_RATE value + * @property {number} ABANDONED_SESSION_RATE=4 ABANDONED_SESSION_RATE value + * @property {number} SESSION_END_RATE=5 SESSION_END_RATE value + */ + Result.MetricType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "METRIC_UNSPECIFIED"] = 0; + values[valuesById[1] = "CONTAINED_SESSION_NO_CALLBACK_RATE"] = 1; + values[valuesById[2] = "LIVE_AGENT_HANDOFF_RATE"] = 2; + values[valuesById[3] = "CALLBACK_SESSION_RATE"] = 3; + values[valuesById[4] = "ABANDONED_SESSION_RATE"] = 4; + values[valuesById[5] = "SESSION_END_RATE"] = 5; + return values; + })(); - /** - * Creates a plain object from a CreateTransitionRouteGroupRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest} message CreateTransitionRouteGroupRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CreateTransitionRouteGroupRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.transitionRouteGroup = null; - object.languageCode = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) - object.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.toObject(message.transitionRouteGroup, options); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; - return object; - }; + /** + * CountType enum. + * @name google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType + * @enum {number} + * @property {number} COUNT_TYPE_UNSPECIFIED=0 COUNT_TYPE_UNSPECIFIED value + * @property {number} TOTAL_NO_MATCH_COUNT=1 TOTAL_NO_MATCH_COUNT value + * @property {number} TOTAL_TURN_COUNT=2 TOTAL_TURN_COUNT value + * @property {number} AVERAGE_TURN_COUNT=3 AVERAGE_TURN_COUNT value + */ + Result.CountType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "COUNT_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "TOTAL_NO_MATCH_COUNT"] = 1; + values[valuesById[2] = "TOTAL_TURN_COUNT"] = 2; + values[valuesById[3] = "AVERAGE_TURN_COUNT"] = 3; + return values; + })(); - /** - * Converts this CreateTransitionRouteGroupRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest - * @instance - * @returns {Object.} JSON object - */ - CreateTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Result.ConfidenceInterval = (function() { - return CreateTransitionRouteGroupRequest; - })(); + /** + * Properties of a ConfidenceInterval. + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @interface IConfidenceInterval + * @property {number|null} [confidenceLevel] ConfidenceInterval confidenceLevel + * @property {number|null} [ratio] ConfidenceInterval ratio + * @property {number|null} [lowerBound] ConfidenceInterval lowerBound + * @property {number|null} [upperBound] ConfidenceInterval upperBound + */ - v3beta1.UpdateTransitionRouteGroupRequest = (function() { + /** + * Constructs a new ConfidenceInterval. + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @classdesc Represents a ConfidenceInterval. + * @implements IConfidenceInterval + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval=} [properties] Properties to set + */ + function ConfidenceInterval(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Properties of an UpdateTransitionRouteGroupRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IUpdateTransitionRouteGroupRequest - * @property {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null} [transitionRouteGroup] UpdateTransitionRouteGroupRequest transitionRouteGroup - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateTransitionRouteGroupRequest updateMask - * @property {string|null} [languageCode] UpdateTransitionRouteGroupRequest languageCode - */ + /** + * ConfidenceInterval confidenceLevel. + * @member {number} confidenceLevel + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval + * @instance + */ + ConfidenceInterval.prototype.confidenceLevel = 0; - /** - * Constructs a new UpdateTransitionRouteGroupRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an UpdateTransitionRouteGroupRequest. - * @implements IUpdateTransitionRouteGroupRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest=} [properties] Properties to set - */ - function UpdateTransitionRouteGroupRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * ConfidenceInterval ratio. + * @member {number} ratio + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval + * @instance + */ + ConfidenceInterval.prototype.ratio = 0; - /** - * UpdateTransitionRouteGroupRequest transitionRouteGroup. - * @member {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null|undefined} transitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest - * @instance - */ - UpdateTransitionRouteGroupRequest.prototype.transitionRouteGroup = null; + /** + * ConfidenceInterval lowerBound. + * @member {number} lowerBound + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval + * @instance + */ + ConfidenceInterval.prototype.lowerBound = 0; - /** - * UpdateTransitionRouteGroupRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest - * @instance - */ - UpdateTransitionRouteGroupRequest.prototype.updateMask = null; + /** + * ConfidenceInterval upperBound. + * @member {number} upperBound + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval + * @instance + */ + ConfidenceInterval.prototype.upperBound = 0; - /** - * UpdateTransitionRouteGroupRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest - * @instance - */ - UpdateTransitionRouteGroupRequest.prototype.languageCode = ""; + /** + * Creates a new ConfidenceInterval instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval} ConfidenceInterval instance + */ + ConfidenceInterval.create = function create(properties) { + return new ConfidenceInterval(properties); + }; - /** - * Creates a new UpdateTransitionRouteGroupRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest instance - */ - UpdateTransitionRouteGroupRequest.create = function create(properties) { - return new UpdateTransitionRouteGroupRequest(properties); - }; + /** + * Encodes the specified ConfidenceInterval message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval} message ConfidenceInterval message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConfidenceInterval.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.confidenceLevel != null && Object.hasOwnProperty.call(message, "confidenceLevel")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.confidenceLevel); + if (message.ratio != null && Object.hasOwnProperty.call(message, "ratio")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.ratio); + if (message.lowerBound != null && Object.hasOwnProperty.call(message, "lowerBound")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.lowerBound); + if (message.upperBound != null && Object.hasOwnProperty.call(message, "upperBound")) + writer.uint32(/* id 4, wireType 1 =*/33).double(message.upperBound); + return writer; + }; - /** - * Encodes the specified UpdateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest} message UpdateTransitionRouteGroupRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateTransitionRouteGroupRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.transitionRouteGroup != null && Object.hasOwnProperty.call(message, "transitionRouteGroup")) - $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.encode(message.transitionRouteGroup, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); - return writer; - }; + /** + * Encodes the specified ConfidenceInterval message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval} message ConfidenceInterval message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConfidenceInterval.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ConfidenceInterval message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval} ConfidenceInterval + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConfidenceInterval.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.confidenceLevel = reader.double(); + break; + case 2: + message.ratio = reader.double(); + break; + case 3: + message.lowerBound = reader.double(); + break; + case 4: + message.upperBound = reader.double(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ConfidenceInterval message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval} ConfidenceInterval + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConfidenceInterval.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified UpdateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest} message UpdateTransitionRouteGroupRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Verifies a ConfidenceInterval message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConfidenceInterval.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.confidenceLevel != null && message.hasOwnProperty("confidenceLevel")) + if (typeof message.confidenceLevel !== "number") + return "confidenceLevel: number expected"; + if (message.ratio != null && message.hasOwnProperty("ratio")) + if (typeof message.ratio !== "number") + return "ratio: number expected"; + if (message.lowerBound != null && message.hasOwnProperty("lowerBound")) + if (typeof message.lowerBound !== "number") + return "lowerBound: number expected"; + if (message.upperBound != null && message.hasOwnProperty("upperBound")) + if (typeof message.upperBound !== "number") + return "upperBound: number expected"; + return null; + }; - /** - * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateTransitionRouteGroupRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - case 3: - message.languageCode = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a ConfidenceInterval message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval} ConfidenceInterval + */ + ConfidenceInterval.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval(); + if (object.confidenceLevel != null) + message.confidenceLevel = Number(object.confidenceLevel); + if (object.ratio != null) + message.ratio = Number(object.ratio); + if (object.lowerBound != null) + message.lowerBound = Number(object.lowerBound); + if (object.upperBound != null) + message.upperBound = Number(object.upperBound); + return message; + }; - /** - * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateTransitionRouteGroupRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a plain object from a ConfidenceInterval message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval} message ConfidenceInterval + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ConfidenceInterval.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.confidenceLevel = 0; + object.ratio = 0; + object.lowerBound = 0; + object.upperBound = 0; + } + if (message.confidenceLevel != null && message.hasOwnProperty("confidenceLevel")) + object.confidenceLevel = options.json && !isFinite(message.confidenceLevel) ? String(message.confidenceLevel) : message.confidenceLevel; + if (message.ratio != null && message.hasOwnProperty("ratio")) + object.ratio = options.json && !isFinite(message.ratio) ? String(message.ratio) : message.ratio; + if (message.lowerBound != null && message.hasOwnProperty("lowerBound")) + object.lowerBound = options.json && !isFinite(message.lowerBound) ? String(message.lowerBound) : message.lowerBound; + if (message.upperBound != null && message.hasOwnProperty("upperBound")) + object.upperBound = options.json && !isFinite(message.upperBound) ? String(message.upperBound) : message.upperBound; + return object; + }; - /** - * Verifies an UpdateTransitionRouteGroupRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UpdateTransitionRouteGroupRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify(message.transitionRouteGroup); - if (error) - return "transitionRouteGroup." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; - return null; - }; + /** + * Converts this ConfidenceInterval to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval + * @instance + * @returns {Object.} JSON object + */ + ConfidenceInterval.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates an UpdateTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest - */ - UpdateTransitionRouteGroupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest(); - if (object.transitionRouteGroup != null) { - if (typeof object.transitionRouteGroup !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest.transitionRouteGroup: object expected"); - message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.fromObject(object.transitionRouteGroup); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); - return message; - }; + return ConfidenceInterval; + })(); - /** - * Creates a plain object from an UpdateTransitionRouteGroupRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest} message UpdateTransitionRouteGroupRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UpdateTransitionRouteGroupRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.transitionRouteGroup = null; - object.updateMask = null; - object.languageCode = ""; - } - if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) - object.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.toObject(message.transitionRouteGroup, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; - return object; - }; + Result.Metric = (function() { - /** - * Converts this UpdateTransitionRouteGroupRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest - * @instance - * @returns {Object.} JSON object - */ - UpdateTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Properties of a Metric. + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @interface IMetric + * @property {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType|null} [type] Metric type + * @property {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType|null} [countType] Metric countType + * @property {number|null} [ratio] Metric ratio + * @property {number|null} [count] Metric count + * @property {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval|null} [confidenceInterval] Metric confidenceInterval + */ - return UpdateTransitionRouteGroupRequest; - })(); + /** + * Constructs a new Metric. + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @classdesc Represents a Metric. + * @implements IMetric + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric=} [properties] Properties to set + */ + function Metric(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - v3beta1.DeleteTransitionRouteGroupRequest = (function() { + /** + * Metric type. + * @member {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType} type + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric + * @instance + */ + Metric.prototype.type = 0; - /** - * Properties of a DeleteTransitionRouteGroupRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDeleteTransitionRouteGroupRequest - * @property {string|null} [name] DeleteTransitionRouteGroupRequest name - * @property {boolean|null} [force] DeleteTransitionRouteGroupRequest force - */ + /** + * Metric countType. + * @member {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType} countType + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric + * @instance + */ + Metric.prototype.countType = 0; - /** - * Constructs a new DeleteTransitionRouteGroupRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DeleteTransitionRouteGroupRequest. - * @implements IDeleteTransitionRouteGroupRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest=} [properties] Properties to set - */ - function DeleteTransitionRouteGroupRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Metric ratio. + * @member {number|null|undefined} ratio + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric + * @instance + */ + Metric.prototype.ratio = null; - /** - * DeleteTransitionRouteGroupRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest - * @instance - */ - DeleteTransitionRouteGroupRequest.prototype.name = ""; + /** + * Metric count. + * @member {number|null|undefined} count + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric + * @instance + */ + Metric.prototype.count = null; - /** - * DeleteTransitionRouteGroupRequest force. - * @member {boolean} force - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest - * @instance - */ - DeleteTransitionRouteGroupRequest.prototype.force = false; + /** + * Metric confidenceInterval. + * @member {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval|null|undefined} confidenceInterval + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric + * @instance + */ + Metric.prototype.confidenceInterval = null; - /** - * Creates a new DeleteTransitionRouteGroupRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest instance - */ - DeleteTransitionRouteGroupRequest.create = function create(properties) { - return new DeleteTransitionRouteGroupRequest(properties); - }; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Encodes the specified DeleteTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest} message DeleteTransitionRouteGroupRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteTransitionRouteGroupRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); - return writer; - }; + /** + * Metric value. + * @member {"ratio"|"count"|undefined} value + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric + * @instance + */ + Object.defineProperty(Metric.prototype, "value", { + get: $util.oneOfGetter($oneOfFields = ["ratio", "count"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Encodes the specified DeleteTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest} message DeleteTransitionRouteGroupRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new Metric instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric} Metric instance + */ + Metric.create = function create(properties) { + return new Metric(properties); + }; - /** - * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteTransitionRouteGroupRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.force = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified Metric message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric} message Metric message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Metric.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.ratio != null && Object.hasOwnProperty.call(message, "ratio")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.ratio); + if (message.confidenceInterval != null && Object.hasOwnProperty.call(message, "confidenceInterval")) + $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.encode(message.confidenceInterval, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.count != null && Object.hasOwnProperty.call(message, "count")) + writer.uint32(/* id 4, wireType 1 =*/33).double(message.count); + if (message.countType != null && Object.hasOwnProperty.call(message, "countType")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.countType); + return writer; + }; - /** - * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteTransitionRouteGroupRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric} message Metric message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Metric.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies a DeleteTransitionRouteGroupRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeleteTransitionRouteGroupRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; - return null; - }; + /** + * Decodes a Metric message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric} Metric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Metric.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = reader.int32(); + break; + case 5: + message.countType = reader.int32(); + break; + case 2: + message.ratio = reader.double(); + break; + case 4: + message.count = reader.double(); + break; + case 3: + message.confidenceInterval = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a DeleteTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest - */ - DeleteTransitionRouteGroupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.force != null) - message.force = Boolean(object.force); - return message; - }; + /** + * Decodes a Metric message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric} Metric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Metric.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from a DeleteTransitionRouteGroupRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest} message DeleteTransitionRouteGroupRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteTransitionRouteGroupRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.force = false; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; - return object; - }; + /** + * Verifies a Metric message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Metric.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.countType != null && message.hasOwnProperty("countType")) + switch (message.countType) { + default: + return "countType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.ratio != null && message.hasOwnProperty("ratio")) { + properties.value = 1; + if (typeof message.ratio !== "number") + return "ratio: number expected"; + } + if (message.count != null && message.hasOwnProperty("count")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (typeof message.count !== "number") + return "count: number expected"; + } + if (message.confidenceInterval != null && message.hasOwnProperty("confidenceInterval")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.verify(message.confidenceInterval); + if (error) + return "confidenceInterval." + error; + } + return null; + }; - /** - * Converts this DeleteTransitionRouteGroupRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest - * @instance - * @returns {Object.} JSON object - */ - DeleteTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a Metric message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric} Metric + */ + Metric.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric(); + switch (object.type) { + case "METRIC_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "CONTAINED_SESSION_NO_CALLBACK_RATE": + case 1: + message.type = 1; + break; + case "LIVE_AGENT_HANDOFF_RATE": + case 2: + message.type = 2; + break; + case "CALLBACK_SESSION_RATE": + case 3: + message.type = 3; + break; + case "ABANDONED_SESSION_RATE": + case 4: + message.type = 4; + break; + case "SESSION_END_RATE": + case 5: + message.type = 5; + break; + } + switch (object.countType) { + case "COUNT_TYPE_UNSPECIFIED": + case 0: + message.countType = 0; + break; + case "TOTAL_NO_MATCH_COUNT": + case 1: + message.countType = 1; + break; + case "TOTAL_TURN_COUNT": + case 2: + message.countType = 2; + break; + case "AVERAGE_TURN_COUNT": + case 3: + message.countType = 3; + break; + } + if (object.ratio != null) + message.ratio = Number(object.ratio); + if (object.count != null) + message.count = Number(object.count); + if (object.confidenceInterval != null) { + if (typeof object.confidenceInterval !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.confidenceInterval: object expected"); + message.confidenceInterval = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.fromObject(object.confidenceInterval); + } + return message; + }; - return DeleteTransitionRouteGroupRequest; - })(); + /** + * Creates a plain object from a Metric message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric} message Metric + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Metric.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type = options.enums === String ? "METRIC_UNSPECIFIED" : 0; + object.confidenceInterval = null; + object.countType = options.enums === String ? "COUNT_TYPE_UNSPECIFIED" : 0; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType[message.type] : message.type; + if (message.ratio != null && message.hasOwnProperty("ratio")) { + object.ratio = options.json && !isFinite(message.ratio) ? String(message.ratio) : message.ratio; + if (options.oneofs) + object.value = "ratio"; + } + if (message.confidenceInterval != null && message.hasOwnProperty("confidenceInterval")) + object.confidenceInterval = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.toObject(message.confidenceInterval, options); + if (message.count != null && message.hasOwnProperty("count")) { + object.count = options.json && !isFinite(message.count) ? String(message.count) : message.count; + if (options.oneofs) + object.value = "count"; + } + if (message.countType != null && message.hasOwnProperty("countType")) + object.countType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType[message.countType] : message.countType; + return object; + }; - v3beta1.Webhooks = (function() { + /** + * Converts this Metric to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric + * @instance + * @returns {Object.} JSON object + */ + Metric.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new Webhooks service. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a Webhooks - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Webhooks(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } + return Metric; + })(); - (Webhooks.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Webhooks; + Result.VersionMetrics = (function() { - /** - * Creates new Webhooks service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {Webhooks} RPC service. Useful where requests and/or responses are streamed. - */ - Webhooks.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; + /** + * Properties of a VersionMetrics. + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @interface IVersionMetrics + * @property {string|null} [version] VersionMetrics version + * @property {Array.|null} [metrics] VersionMetrics metrics + * @property {number|null} [sessionCount] VersionMetrics sessionCount + */ - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Webhooks#listWebhooks}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks - * @typedef ListWebhooksCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse} [response] ListWebhooksResponse - */ + /** + * Constructs a new VersionMetrics. + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @classdesc Represents a VersionMetrics. + * @implements IVersionMetrics + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics=} [properties] Properties to set + */ + function VersionMetrics(properties) { + this.metrics = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Calls ListWebhooks. - * @function listWebhooks - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest} request ListWebhooksRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Webhooks.ListWebhooksCallback} callback Node-style callback called with the error, if any, and ListWebhooksResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Webhooks.prototype.listWebhooks = function listWebhooks(request, callback) { - return this.rpcCall(listWebhooks, $root.google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse, request, callback); - }, "name", { value: "ListWebhooks" }); + /** + * VersionMetrics version. + * @member {string} version + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics + * @instance + */ + VersionMetrics.prototype.version = ""; - /** - * Calls ListWebhooks. - * @function listWebhooks - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest} request ListWebhooksRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * VersionMetrics metrics. + * @member {Array.} metrics + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics + * @instance + */ + VersionMetrics.prototype.metrics = $util.emptyArray; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Webhooks#getWebhook}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks - * @typedef GetWebhookCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Webhook} [response] Webhook - */ + /** + * VersionMetrics sessionCount. + * @member {number} sessionCount + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics + * @instance + */ + VersionMetrics.prototype.sessionCount = 0; - /** - * Calls GetWebhook. - * @function getWebhook - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest} request GetWebhookRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Webhooks.GetWebhookCallback} callback Node-style callback called with the error, if any, and Webhook - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Webhooks.prototype.getWebhook = function getWebhook(request, callback) { - return this.rpcCall(getWebhook, $root.google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest, $root.google.cloud.dialogflow.cx.v3beta1.Webhook, request, callback); - }, "name", { value: "GetWebhook" }); + /** + * Creates a new VersionMetrics instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics} VersionMetrics instance + */ + VersionMetrics.create = function create(properties) { + return new VersionMetrics(properties); + }; - /** - * Calls GetWebhook. - * @function getWebhook - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest} request GetWebhookRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Encodes the specified VersionMetrics message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics} message VersionMetrics message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VersionMetrics.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); + if (message.metrics != null && message.metrics.length) + for (var i = 0; i < message.metrics.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.encode(message.metrics[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.sessionCount != null && Object.hasOwnProperty.call(message, "sessionCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.sessionCount); + return writer; + }; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Webhooks#createWebhook}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks - * @typedef CreateWebhookCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Webhook} [response] Webhook - */ + /** + * Encodes the specified VersionMetrics message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics} message VersionMetrics message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VersionMetrics.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Calls CreateWebhook. - * @function createWebhook - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest} request CreateWebhookRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Webhooks.CreateWebhookCallback} callback Node-style callback called with the error, if any, and Webhook - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Webhooks.prototype.createWebhook = function createWebhook(request, callback) { - return this.rpcCall(createWebhook, $root.google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest, $root.google.cloud.dialogflow.cx.v3beta1.Webhook, request, callback); - }, "name", { value: "CreateWebhook" }); + /** + * Decodes a VersionMetrics message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics} VersionMetrics + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VersionMetrics.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.version = reader.string(); + break; + case 2: + if (!(message.metrics && message.metrics.length)) + message.metrics = []; + message.metrics.push($root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.decode(reader, reader.uint32())); + break; + case 3: + message.sessionCount = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Calls CreateWebhook. - * @function createWebhook - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest} request CreateWebhookRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Decodes a VersionMetrics message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics} VersionMetrics + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VersionMetrics.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Webhooks#updateWebhook}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks - * @typedef UpdateWebhookCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Webhook} [response] Webhook - */ + /** + * Verifies a VersionMetrics message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VersionMetrics.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.metrics != null && message.hasOwnProperty("metrics")) { + if (!Array.isArray(message.metrics)) + return "metrics: array expected"; + for (var i = 0; i < message.metrics.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.verify(message.metrics[i]); + if (error) + return "metrics." + error; + } + } + if (message.sessionCount != null && message.hasOwnProperty("sessionCount")) + if (!$util.isInteger(message.sessionCount)) + return "sessionCount: integer expected"; + return null; + }; - /** - * Calls UpdateWebhook. - * @function updateWebhook - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest} request UpdateWebhookRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Webhooks.UpdateWebhookCallback} callback Node-style callback called with the error, if any, and Webhook - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Webhooks.prototype.updateWebhook = function updateWebhook(request, callback) { - return this.rpcCall(updateWebhook, $root.google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest, $root.google.cloud.dialogflow.cx.v3beta1.Webhook, request, callback); - }, "name", { value: "UpdateWebhook" }); + /** + * Creates a VersionMetrics message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics} VersionMetrics + */ + VersionMetrics.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics(); + if (object.version != null) + message.version = String(object.version); + if (object.metrics) { + if (!Array.isArray(object.metrics)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.metrics: array expected"); + message.metrics = []; + for (var i = 0; i < object.metrics.length; ++i) { + if (typeof object.metrics[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.metrics: object expected"); + message.metrics[i] = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.fromObject(object.metrics[i]); + } + } + if (object.sessionCount != null) + message.sessionCount = object.sessionCount | 0; + return message; + }; - /** - * Calls UpdateWebhook. - * @function updateWebhook - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest} request UpdateWebhookRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Creates a plain object from a VersionMetrics message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics} message VersionMetrics + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VersionMetrics.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.metrics = []; + if (options.defaults) { + object.version = ""; + object.sessionCount = 0; + } + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message.metrics && message.metrics.length) { + object.metrics = []; + for (var j = 0; j < message.metrics.length; ++j) + object.metrics[j] = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.toObject(message.metrics[j], options); + } + if (message.sessionCount != null && message.hasOwnProperty("sessionCount")) + object.sessionCount = message.sessionCount; + return object; + }; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Webhooks#deleteWebhook}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks - * @typedef DeleteWebhookCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ + /** + * Converts this VersionMetrics to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics + * @instance + * @returns {Object.} JSON object + */ + VersionMetrics.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Calls DeleteWebhook. - * @function deleteWebhook - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest} request DeleteWebhookRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Webhooks.DeleteWebhookCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Webhooks.prototype.deleteWebhook = function deleteWebhook(request, callback) { - return this.rpcCall(deleteWebhook, $root.google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteWebhook" }); + return VersionMetrics; + })(); - /** - * Calls DeleteWebhook. - * @function deleteWebhook - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest} request DeleteWebhookRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + return Result; + })(); - return Webhooks; + return Experiment; })(); - v3beta1.Webhook = (function() { + v3beta1.VersionVariants = (function() { /** - * Properties of a Webhook. + * Properties of a VersionVariants. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IWebhook - * @property {string|null} [name] Webhook name - * @property {string|null} [displayName] Webhook displayName - * @property {google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService|null} [genericWebService] Webhook genericWebService - * @property {google.cloud.dialogflow.cx.v3beta1.Webhook.IServiceDirectoryConfig|null} [serviceDirectory] Webhook serviceDirectory - * @property {google.protobuf.IDuration|null} [timeout] Webhook timeout - * @property {boolean|null} [disabled] Webhook disabled + * @interface IVersionVariants + * @property {Array.|null} [variants] VersionVariants variants */ /** - * Constructs a new Webhook. + * Constructs a new VersionVariants. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a Webhook. - * @implements IWebhook + * @classdesc Represents a VersionVariants. + * @implements IVersionVariants * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IWebhook=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IVersionVariants=} [properties] Properties to set */ - function Webhook(properties) { + function VersionVariants(properties) { + this.variants = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -117703,154 +117601,78 @@ } /** - * Webhook name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook - * @instance - */ - Webhook.prototype.name = ""; - - /** - * Webhook displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook - * @instance - */ - Webhook.prototype.displayName = ""; - - /** - * Webhook genericWebService. - * @member {google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService|null|undefined} genericWebService - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook - * @instance - */ - Webhook.prototype.genericWebService = null; - - /** - * Webhook serviceDirectory. - * @member {google.cloud.dialogflow.cx.v3beta1.Webhook.IServiceDirectoryConfig|null|undefined} serviceDirectory - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook - * @instance - */ - Webhook.prototype.serviceDirectory = null; - - /** - * Webhook timeout. - * @member {google.protobuf.IDuration|null|undefined} timeout - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook - * @instance - */ - Webhook.prototype.timeout = null; - - /** - * Webhook disabled. - * @member {boolean} disabled - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook - * @instance - */ - Webhook.prototype.disabled = false; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Webhook webhook. - * @member {"genericWebService"|"serviceDirectory"|undefined} webhook - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * VersionVariants variants. + * @member {Array.} variants + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants * @instance */ - Object.defineProperty(Webhook.prototype, "webhook", { - get: $util.oneOfGetter($oneOfFields = ["genericWebService", "serviceDirectory"]), - set: $util.oneOfSetter($oneOfFields) - }); + VersionVariants.prototype.variants = $util.emptyArray; /** - * Creates a new Webhook instance using the specified properties. + * Creates a new VersionVariants instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IWebhook=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Webhook} Webhook instance + * @param {google.cloud.dialogflow.cx.v3beta1.IVersionVariants=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.VersionVariants} VersionVariants instance */ - Webhook.create = function create(properties) { - return new Webhook(properties); + VersionVariants.create = function create(properties) { + return new VersionVariants(properties); }; /** - * Encodes the specified Webhook message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Webhook.verify|verify} messages. + * Encodes the specified VersionVariants message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VersionVariants.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IWebhook} message Webhook message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IVersionVariants} message VersionVariants message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Webhook.encode = function encode(message, writer) { + VersionVariants.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.genericWebService != null && Object.hasOwnProperty.call(message, "genericWebService")) - $root.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.encode(message.genericWebService, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.disabled); - if (message.timeout != null && Object.hasOwnProperty.call(message, "timeout")) - $root.google.protobuf.Duration.encode(message.timeout, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.serviceDirectory != null && Object.hasOwnProperty.call(message, "serviceDirectory")) - $root.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig.encode(message.serviceDirectory, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.variants != null && message.variants.length) + for (var i = 0; i < message.variants.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.encode(message.variants[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified Webhook message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Webhook.verify|verify} messages. + * Encodes the specified VersionVariants message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VersionVariants.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IWebhook} message Webhook message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IVersionVariants} message VersionVariants message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Webhook.encodeDelimited = function encodeDelimited(message, writer) { + VersionVariants.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Webhook message from the specified reader or buffer. + * Decodes a VersionVariants message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Webhook} Webhook + * @returns {google.cloud.dialogflow.cx.v3beta1.VersionVariants} VersionVariants * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Webhook.decode = function decode(reader, length) { + VersionVariants.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Webhook(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); - break; - case 2: - message.displayName = reader.string(); - break; - case 4: - message.genericWebService = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.decode(reader, reader.uint32()); - break; - case 7: - message.serviceDirectory = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig.decode(reader, reader.uint32()); - break; - case 6: - message.timeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 5: - message.disabled = reader.bool(); + if (!(message.variants && message.variants.length)) + message.variants = []; + message.variants.push($root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -117861,179 +117683,123 @@ }; /** - * Decodes a Webhook message from the specified reader or buffer, length delimited. + * Decodes a VersionVariants message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Webhook} Webhook + * @returns {google.cloud.dialogflow.cx.v3beta1.VersionVariants} VersionVariants * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Webhook.decodeDelimited = function decodeDelimited(reader) { + VersionVariants.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Webhook message. + * Verifies a VersionVariants message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Webhook.verify = function verify(message) { + VersionVariants.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.genericWebService != null && message.hasOwnProperty("genericWebService")) { - properties.webhook = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.verify(message.genericWebService); - if (error) - return "genericWebService." + error; - } - } - if (message.serviceDirectory != null && message.hasOwnProperty("serviceDirectory")) { - if (properties.webhook === 1) - return "webhook: multiple values"; - properties.webhook = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig.verify(message.serviceDirectory); + if (message.variants != null && message.hasOwnProperty("variants")) { + if (!Array.isArray(message.variants)) + return "variants: array expected"; + for (var i = 0; i < message.variants.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.verify(message.variants[i]); if (error) - return "serviceDirectory." + error; + return "variants." + error; } } - if (message.timeout != null && message.hasOwnProperty("timeout")) { - var error = $root.google.protobuf.Duration.verify(message.timeout); - if (error) - return "timeout." + error; - } - if (message.disabled != null && message.hasOwnProperty("disabled")) - if (typeof message.disabled !== "boolean") - return "disabled: boolean expected"; return null; }; /** - * Creates a Webhook message from a plain object. Also converts values to their respective internal types. + * Creates a VersionVariants message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Webhook} Webhook + * @returns {google.cloud.dialogflow.cx.v3beta1.VersionVariants} VersionVariants */ - Webhook.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Webhook) + VersionVariants.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Webhook(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.genericWebService != null) { - if (typeof object.genericWebService !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Webhook.genericWebService: object expected"); - message.genericWebService = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.fromObject(object.genericWebService); - } - if (object.serviceDirectory != null) { - if (typeof object.serviceDirectory !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Webhook.serviceDirectory: object expected"); - message.serviceDirectory = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig.fromObject(object.serviceDirectory); - } - if (object.timeout != null) { - if (typeof object.timeout !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Webhook.timeout: object expected"); - message.timeout = $root.google.protobuf.Duration.fromObject(object.timeout); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants(); + if (object.variants) { + if (!Array.isArray(object.variants)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.VersionVariants.variants: array expected"); + message.variants = []; + for (var i = 0; i < object.variants.length; ++i) { + if (typeof object.variants[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.VersionVariants.variants: object expected"); + message.variants[i] = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.fromObject(object.variants[i]); + } } - if (object.disabled != null) - message.disabled = Boolean(object.disabled); return message; }; /** - * Creates a plain object from a Webhook message. Also converts values to other types if specified. + * Creates a plain object from a VersionVariants message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Webhook} message Webhook + * @param {google.cloud.dialogflow.cx.v3beta1.VersionVariants} message VersionVariants * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Webhook.toObject = function toObject(message, options) { + VersionVariants.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.disabled = false; - object.timeout = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.genericWebService != null && message.hasOwnProperty("genericWebService")) { - object.genericWebService = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.toObject(message.genericWebService, options); - if (options.oneofs) - object.webhook = "genericWebService"; - } - if (message.disabled != null && message.hasOwnProperty("disabled")) - object.disabled = message.disabled; - if (message.timeout != null && message.hasOwnProperty("timeout")) - object.timeout = $root.google.protobuf.Duration.toObject(message.timeout, options); - if (message.serviceDirectory != null && message.hasOwnProperty("serviceDirectory")) { - object.serviceDirectory = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig.toObject(message.serviceDirectory, options); - if (options.oneofs) - object.webhook = "serviceDirectory"; + if (options.arrays || options.defaults) + object.variants = []; + if (message.variants && message.variants.length) { + object.variants = []; + for (var j = 0; j < message.variants.length; ++j) + object.variants[j] = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.toObject(message.variants[j], options); } return object; }; /** - * Converts this Webhook to JSON. + * Converts this VersionVariants to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants * @instance * @returns {Object.} JSON object */ - Webhook.prototype.toJSON = function toJSON() { + VersionVariants.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - Webhook.GenericWebService = (function() { + VersionVariants.Variant = (function() { /** - * Properties of a GenericWebService. - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook - * @interface IGenericWebService - * @property {string|null} [uri] GenericWebService uri - * @property {string|null} [username] GenericWebService username - * @property {string|null} [password] GenericWebService password - * @property {Object.|null} [requestHeaders] GenericWebService requestHeaders - * @property {Array.|null} [allowedCaCerts] GenericWebService allowedCaCerts + * Properties of a Variant. + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants + * @interface IVariant + * @property {string|null} [version] Variant version + * @property {number|null} [trafficAllocation] Variant trafficAllocation + * @property {boolean|null} [isControlGroup] Variant isControlGroup */ /** - * Constructs a new GenericWebService. - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook - * @classdesc Represents a GenericWebService. - * @implements IGenericWebService + * Constructs a new Variant. + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants + * @classdesc Represents a Variant. + * @implements IVariant * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant=} [properties] Properties to set */ - function GenericWebService(properties) { - this.requestHeaders = {}; - this.allowedCaCerts = []; + function Variant(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -118041,150 +117807,101 @@ } /** - * GenericWebService uri. - * @member {string} uri - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService - * @instance - */ - GenericWebService.prototype.uri = ""; - - /** - * GenericWebService username. - * @member {string} username - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService - * @instance - */ - GenericWebService.prototype.username = ""; - - /** - * GenericWebService password. - * @member {string} password - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * Variant version. + * @member {string} version + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant * @instance */ - GenericWebService.prototype.password = ""; + Variant.prototype.version = ""; /** - * GenericWebService requestHeaders. - * @member {Object.} requestHeaders - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * Variant trafficAllocation. + * @member {number} trafficAllocation + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant * @instance */ - GenericWebService.prototype.requestHeaders = $util.emptyObject; + Variant.prototype.trafficAllocation = 0; /** - * GenericWebService allowedCaCerts. - * @member {Array.} allowedCaCerts - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * Variant isControlGroup. + * @member {boolean} isControlGroup + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant * @instance */ - GenericWebService.prototype.allowedCaCerts = $util.emptyArray; + Variant.prototype.isControlGroup = false; /** - * Creates a new GenericWebService instance using the specified properties. + * Creates a new Variant instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService} GenericWebService instance + * @param {google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant} Variant instance */ - GenericWebService.create = function create(properties) { - return new GenericWebService(properties); + Variant.create = function create(properties) { + return new Variant(properties); }; /** - * Encodes the specified GenericWebService message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.verify|verify} messages. + * Encodes the specified Variant message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService} message GenericWebService message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant} message Variant message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenericWebService.encode = function encode(message, writer) { + Variant.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.uri != null && Object.hasOwnProperty.call(message, "uri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); - if (message.password != null && Object.hasOwnProperty.call(message, "password")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.password); - if (message.requestHeaders != null && Object.hasOwnProperty.call(message, "requestHeaders")) - for (var keys = Object.keys(message.requestHeaders), i = 0; i < keys.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.requestHeaders[keys[i]]).ldelim(); - if (message.allowedCaCerts != null && message.allowedCaCerts.length) - for (var i = 0; i < message.allowedCaCerts.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.allowedCaCerts[i]); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); + if (message.trafficAllocation != null && Object.hasOwnProperty.call(message, "trafficAllocation")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.trafficAllocation); + if (message.isControlGroup != null && Object.hasOwnProperty.call(message, "isControlGroup")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isControlGroup); return writer; }; /** - * Encodes the specified GenericWebService message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.verify|verify} messages. + * Encodes the specified Variant message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService} message GenericWebService message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant} message Variant message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenericWebService.encodeDelimited = function encodeDelimited(message, writer) { + Variant.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GenericWebService message from the specified reader or buffer. + * Decodes a Variant message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService} GenericWebService + * @returns {google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant} Variant * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenericWebService.decode = function decode(reader, length) { + Variant.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.uri = reader.string(); + message.version = reader.string(); break; case 2: - message.username = reader.string(); + message.trafficAllocation = reader.float(); break; case 3: - message.password = reader.string(); - break; - case 4: - if (message.requestHeaders === $util.emptyObject) - message.requestHeaders = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.requestHeaders[key] = value; - break; - case 5: - if (!(message.allowedCaCerts && message.allowedCaCerts.length)) - message.allowedCaCerts = []; - message.allowedCaCerts.push(reader.bytes()); + message.isControlGroup = reader.bool(); break; default: reader.skipType(tag & 7); @@ -118195,172 +117912,380 @@ }; /** - * Decodes a GenericWebService message from the specified reader or buffer, length delimited. + * Decodes a Variant message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService} GenericWebService + * @returns {google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant} Variant * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenericWebService.decodeDelimited = function decodeDelimited(reader) { + Variant.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GenericWebService message. + * Verifies a Variant message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GenericWebService.verify = function verify(message) { + Variant.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.uri != null && message.hasOwnProperty("uri")) - if (!$util.isString(message.uri)) - return "uri: string expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.password != null && message.hasOwnProperty("password")) - if (!$util.isString(message.password)) - return "password: string expected"; - if (message.requestHeaders != null && message.hasOwnProperty("requestHeaders")) { - if (!$util.isObject(message.requestHeaders)) - return "requestHeaders: object expected"; - var key = Object.keys(message.requestHeaders); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.requestHeaders[key[i]])) - return "requestHeaders: string{k:string} expected"; - } - if (message.allowedCaCerts != null && message.hasOwnProperty("allowedCaCerts")) { - if (!Array.isArray(message.allowedCaCerts)) - return "allowedCaCerts: array expected"; - for (var i = 0; i < message.allowedCaCerts.length; ++i) - if (!(message.allowedCaCerts[i] && typeof message.allowedCaCerts[i].length === "number" || $util.isString(message.allowedCaCerts[i]))) - return "allowedCaCerts: buffer[] expected"; - } + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.trafficAllocation != null && message.hasOwnProperty("trafficAllocation")) + if (typeof message.trafficAllocation !== "number") + return "trafficAllocation: number expected"; + if (message.isControlGroup != null && message.hasOwnProperty("isControlGroup")) + if (typeof message.isControlGroup !== "boolean") + return "isControlGroup: boolean expected"; return null; }; /** - * Creates a GenericWebService message from a plain object. Also converts values to their respective internal types. + * Creates a Variant message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService} GenericWebService + * @returns {google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant} Variant */ - GenericWebService.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService) + Variant.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService(); - if (object.uri != null) - message.uri = String(object.uri); - if (object.username != null) - message.username = String(object.username); - if (object.password != null) - message.password = String(object.password); - if (object.requestHeaders) { - if (typeof object.requestHeaders !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.requestHeaders: object expected"); - message.requestHeaders = {}; - for (var keys = Object.keys(object.requestHeaders), i = 0; i < keys.length; ++i) - message.requestHeaders[keys[i]] = String(object.requestHeaders[keys[i]]); - } - if (object.allowedCaCerts) { - if (!Array.isArray(object.allowedCaCerts)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.allowedCaCerts: array expected"); - message.allowedCaCerts = []; - for (var i = 0; i < object.allowedCaCerts.length; ++i) - if (typeof object.allowedCaCerts[i] === "string") - $util.base64.decode(object.allowedCaCerts[i], message.allowedCaCerts[i] = $util.newBuffer($util.base64.length(object.allowedCaCerts[i])), 0); - else if (object.allowedCaCerts[i].length) - message.allowedCaCerts[i] = object.allowedCaCerts[i]; - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant(); + if (object.version != null) + message.version = String(object.version); + if (object.trafficAllocation != null) + message.trafficAllocation = Number(object.trafficAllocation); + if (object.isControlGroup != null) + message.isControlGroup = Boolean(object.isControlGroup); return message; }; /** - * Creates a plain object from a GenericWebService message. Also converts values to other types if specified. + * Creates a plain object from a Variant message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService} message GenericWebService + * @param {google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant} message Variant * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GenericWebService.toObject = function toObject(message, options) { + Variant.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.allowedCaCerts = []; - if (options.objects || options.defaults) - object.requestHeaders = {}; if (options.defaults) { - object.uri = ""; - object.username = ""; - object.password = ""; - } - if (message.uri != null && message.hasOwnProperty("uri")) - object.uri = message.uri; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.password != null && message.hasOwnProperty("password")) - object.password = message.password; - var keys2; - if (message.requestHeaders && (keys2 = Object.keys(message.requestHeaders)).length) { - object.requestHeaders = {}; - for (var j = 0; j < keys2.length; ++j) - object.requestHeaders[keys2[j]] = message.requestHeaders[keys2[j]]; - } - if (message.allowedCaCerts && message.allowedCaCerts.length) { - object.allowedCaCerts = []; - for (var j = 0; j < message.allowedCaCerts.length; ++j) - object.allowedCaCerts[j] = options.bytes === String ? $util.base64.encode(message.allowedCaCerts[j], 0, message.allowedCaCerts[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.allowedCaCerts[j]) : message.allowedCaCerts[j]; + object.version = ""; + object.trafficAllocation = 0; + object.isControlGroup = false; } + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message.trafficAllocation != null && message.hasOwnProperty("trafficAllocation")) + object.trafficAllocation = options.json && !isFinite(message.trafficAllocation) ? String(message.trafficAllocation) : message.trafficAllocation; + if (message.isControlGroup != null && message.hasOwnProperty("isControlGroup")) + object.isControlGroup = message.isControlGroup; return object; }; /** - * Converts this GenericWebService to JSON. + * Converts this Variant to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant * @instance * @returns {Object.} JSON object */ - GenericWebService.prototype.toJSON = function toJSON() { + Variant.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GenericWebService; + return Variant; })(); - Webhook.ServiceDirectoryConfig = (function() { + return VersionVariants; + })(); - /** - * Properties of a ServiceDirectoryConfig. - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook - * @interface IServiceDirectoryConfig - * @property {string|null} [service] ServiceDirectoryConfig service - * @property {google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService|null} [genericWebService] ServiceDirectoryConfig genericWebService + v3beta1.RolloutConfig = (function() { + + /** + * Properties of a RolloutConfig. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IRolloutConfig + * @property {Array.|null} [rolloutSteps] RolloutConfig rolloutSteps + * @property {string|null} [rolloutCondition] RolloutConfig rolloutCondition + * @property {string|null} [failureCondition] RolloutConfig failureCondition + */ + + /** + * Constructs a new RolloutConfig. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a RolloutConfig. + * @implements IRolloutConfig + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IRolloutConfig=} [properties] Properties to set + */ + function RolloutConfig(properties) { + this.rolloutSteps = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RolloutConfig rolloutSteps. + * @member {Array.} rolloutSteps + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig + * @instance + */ + RolloutConfig.prototype.rolloutSteps = $util.emptyArray; + + /** + * RolloutConfig rolloutCondition. + * @member {string} rolloutCondition + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig + * @instance + */ + RolloutConfig.prototype.rolloutCondition = ""; + + /** + * RolloutConfig failureCondition. + * @member {string} failureCondition + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig + * @instance + */ + RolloutConfig.prototype.failureCondition = ""; + + /** + * Creates a new RolloutConfig instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IRolloutConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.RolloutConfig} RolloutConfig instance + */ + RolloutConfig.create = function create(properties) { + return new RolloutConfig(properties); + }; + + /** + * Encodes the specified RolloutConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RolloutConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IRolloutConfig} message RolloutConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RolloutConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rolloutSteps != null && message.rolloutSteps.length) + for (var i = 0; i < message.rolloutSteps.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep.encode(message.rolloutSteps[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.rolloutCondition != null && Object.hasOwnProperty.call(message, "rolloutCondition")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.rolloutCondition); + if (message.failureCondition != null && Object.hasOwnProperty.call(message, "failureCondition")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.failureCondition); + return writer; + }; + + /** + * Encodes the specified RolloutConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RolloutConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IRolloutConfig} message RolloutConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RolloutConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RolloutConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.RolloutConfig} RolloutConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RolloutConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.RolloutConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.rolloutSteps && message.rolloutSteps.length)) + message.rolloutSteps = []; + message.rolloutSteps.push($root.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep.decode(reader, reader.uint32())); + break; + case 2: + message.rolloutCondition = reader.string(); + break; + case 3: + message.failureCondition = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RolloutConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.RolloutConfig} RolloutConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RolloutConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RolloutConfig message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RolloutConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.rolloutSteps != null && message.hasOwnProperty("rolloutSteps")) { + if (!Array.isArray(message.rolloutSteps)) + return "rolloutSteps: array expected"; + for (var i = 0; i < message.rolloutSteps.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep.verify(message.rolloutSteps[i]); + if (error) + return "rolloutSteps." + error; + } + } + if (message.rolloutCondition != null && message.hasOwnProperty("rolloutCondition")) + if (!$util.isString(message.rolloutCondition)) + return "rolloutCondition: string expected"; + if (message.failureCondition != null && message.hasOwnProperty("failureCondition")) + if (!$util.isString(message.failureCondition)) + return "failureCondition: string expected"; + return null; + }; + + /** + * Creates a RolloutConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.RolloutConfig} RolloutConfig + */ + RolloutConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RolloutConfig) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.RolloutConfig(); + if (object.rolloutSteps) { + if (!Array.isArray(object.rolloutSteps)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.RolloutConfig.rolloutSteps: array expected"); + message.rolloutSteps = []; + for (var i = 0; i < object.rolloutSteps.length; ++i) { + if (typeof object.rolloutSteps[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.RolloutConfig.rolloutSteps: object expected"); + message.rolloutSteps[i] = $root.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep.fromObject(object.rolloutSteps[i]); + } + } + if (object.rolloutCondition != null) + message.rolloutCondition = String(object.rolloutCondition); + if (object.failureCondition != null) + message.failureCondition = String(object.failureCondition); + return message; + }; + + /** + * Creates a plain object from a RolloutConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.RolloutConfig} message RolloutConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RolloutConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.rolloutSteps = []; + if (options.defaults) { + object.rolloutCondition = ""; + object.failureCondition = ""; + } + if (message.rolloutSteps && message.rolloutSteps.length) { + object.rolloutSteps = []; + for (var j = 0; j < message.rolloutSteps.length; ++j) + object.rolloutSteps[j] = $root.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep.toObject(message.rolloutSteps[j], options); + } + if (message.rolloutCondition != null && message.hasOwnProperty("rolloutCondition")) + object.rolloutCondition = message.rolloutCondition; + if (message.failureCondition != null && message.hasOwnProperty("failureCondition")) + object.failureCondition = message.failureCondition; + return object; + }; + + /** + * Converts this RolloutConfig to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig + * @instance + * @returns {Object.} JSON object + */ + RolloutConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + RolloutConfig.RolloutStep = (function() { + + /** + * Properties of a RolloutStep. + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig + * @interface IRolloutStep + * @property {string|null} [displayName] RolloutStep displayName + * @property {number|null} [trafficPercent] RolloutStep trafficPercent + * @property {google.protobuf.IDuration|null} [minDuration] RolloutStep minDuration */ /** - * Constructs a new ServiceDirectoryConfig. - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook - * @classdesc Represents a ServiceDirectoryConfig. - * @implements IServiceDirectoryConfig + * Constructs a new RolloutStep. + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig + * @classdesc Represents a RolloutStep. + * @implements IRolloutStep * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Webhook.IServiceDirectoryConfig=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.RolloutConfig.IRolloutStep=} [properties] Properties to set */ - function ServiceDirectoryConfig(properties) { + function RolloutStep(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -118368,88 +118293,101 @@ } /** - * ServiceDirectoryConfig service. - * @member {string} service - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig + * RolloutStep displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep * @instance */ - ServiceDirectoryConfig.prototype.service = ""; + RolloutStep.prototype.displayName = ""; /** - * ServiceDirectoryConfig genericWebService. - * @member {google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService|null|undefined} genericWebService - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig + * RolloutStep trafficPercent. + * @member {number} trafficPercent + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep * @instance */ - ServiceDirectoryConfig.prototype.genericWebService = null; + RolloutStep.prototype.trafficPercent = 0; /** - * Creates a new ServiceDirectoryConfig instance using the specified properties. + * RolloutStep minDuration. + * @member {google.protobuf.IDuration|null|undefined} minDuration + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep + * @instance + */ + RolloutStep.prototype.minDuration = null; + + /** + * Creates a new RolloutStep instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Webhook.IServiceDirectoryConfig=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig} ServiceDirectoryConfig instance + * @param {google.cloud.dialogflow.cx.v3beta1.RolloutConfig.IRolloutStep=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep} RolloutStep instance */ - ServiceDirectoryConfig.create = function create(properties) { - return new ServiceDirectoryConfig(properties); + RolloutStep.create = function create(properties) { + return new RolloutStep(properties); }; /** - * Encodes the specified ServiceDirectoryConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig.verify|verify} messages. + * Encodes the specified RolloutStep message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Webhook.IServiceDirectoryConfig} message ServiceDirectoryConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.RolloutConfig.IRolloutStep} message RolloutStep message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceDirectoryConfig.encode = function encode(message, writer) { + RolloutStep.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.service != null && Object.hasOwnProperty.call(message, "service")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.service); - if (message.genericWebService != null && Object.hasOwnProperty.call(message, "genericWebService")) - $root.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.encode(message.genericWebService, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName); + if (message.trafficPercent != null && Object.hasOwnProperty.call(message, "trafficPercent")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.trafficPercent); + if (message.minDuration != null && Object.hasOwnProperty.call(message, "minDuration")) + $root.google.protobuf.Duration.encode(message.minDuration, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ServiceDirectoryConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig.verify|verify} messages. + * Encodes the specified RolloutStep message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Webhook.IServiceDirectoryConfig} message ServiceDirectoryConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.RolloutConfig.IRolloutStep} message RolloutStep message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceDirectoryConfig.encodeDelimited = function encodeDelimited(message, writer) { + RolloutStep.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ServiceDirectoryConfig message from the specified reader or buffer. + * Decodes a RolloutStep message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig} ServiceDirectoryConfig + * @returns {google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep} RolloutStep * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceDirectoryConfig.decode = function decode(reader, length) { + RolloutStep.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.service = reader.string(); + message.displayName = reader.string(); break; case 2: - message.genericWebService = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.decode(reader, reader.uint32()); + message.trafficPercent = reader.int32(); + break; + case 3: + message.minDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -118460,126 +118398,134 @@ }; /** - * Decodes a ServiceDirectoryConfig message from the specified reader or buffer, length delimited. + * Decodes a RolloutStep message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig} ServiceDirectoryConfig + * @returns {google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep} RolloutStep * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceDirectoryConfig.decodeDelimited = function decodeDelimited(reader) { + RolloutStep.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ServiceDirectoryConfig message. + * Verifies a RolloutStep message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServiceDirectoryConfig.verify = function verify(message) { + RolloutStep.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.service != null && message.hasOwnProperty("service")) - if (!$util.isString(message.service)) - return "service: string expected"; - if (message.genericWebService != null && message.hasOwnProperty("genericWebService")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.verify(message.genericWebService); + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.trafficPercent != null && message.hasOwnProperty("trafficPercent")) + if (!$util.isInteger(message.trafficPercent)) + return "trafficPercent: integer expected"; + if (message.minDuration != null && message.hasOwnProperty("minDuration")) { + var error = $root.google.protobuf.Duration.verify(message.minDuration); if (error) - return "genericWebService." + error; + return "minDuration." + error; } return null; }; /** - * Creates a ServiceDirectoryConfig message from a plain object. Also converts values to their respective internal types. + * Creates a RolloutStep message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig} ServiceDirectoryConfig + * @returns {google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep} RolloutStep */ - ServiceDirectoryConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig) + RolloutStep.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig(); - if (object.service != null) - message.service = String(object.service); - if (object.genericWebService != null) { - if (typeof object.genericWebService !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig.genericWebService: object expected"); - message.genericWebService = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.fromObject(object.genericWebService); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep(); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.trafficPercent != null) + message.trafficPercent = object.trafficPercent | 0; + if (object.minDuration != null) { + if (typeof object.minDuration !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep.minDuration: object expected"); + message.minDuration = $root.google.protobuf.Duration.fromObject(object.minDuration); } return message; }; /** - * Creates a plain object from a ServiceDirectoryConfig message. Also converts values to other types if specified. + * Creates a plain object from a RolloutStep message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig} message ServiceDirectoryConfig + * @param {google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep} message RolloutStep * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceDirectoryConfig.toObject = function toObject(message, options) { + RolloutStep.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.service = ""; - object.genericWebService = null; + object.displayName = ""; + object.trafficPercent = 0; + object.minDuration = null; } - if (message.service != null && message.hasOwnProperty("service")) - object.service = message.service; - if (message.genericWebService != null && message.hasOwnProperty("genericWebService")) - object.genericWebService = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.toObject(message.genericWebService, options); + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.trafficPercent != null && message.hasOwnProperty("trafficPercent")) + object.trafficPercent = message.trafficPercent; + if (message.minDuration != null && message.hasOwnProperty("minDuration")) + object.minDuration = $root.google.protobuf.Duration.toObject(message.minDuration, options); return object; }; /** - * Converts this ServiceDirectoryConfig to JSON. + * Converts this RolloutStep to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep * @instance * @returns {Object.} JSON object */ - ServiceDirectoryConfig.prototype.toJSON = function toJSON() { + RolloutStep.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ServiceDirectoryConfig; + return RolloutStep; })(); - return Webhook; + return RolloutConfig; })(); - v3beta1.ListWebhooksRequest = (function() { + v3beta1.RolloutState = (function() { /** - * Properties of a ListWebhooksRequest. + * Properties of a RolloutState. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListWebhooksRequest - * @property {string|null} [parent] ListWebhooksRequest parent - * @property {number|null} [pageSize] ListWebhooksRequest pageSize - * @property {string|null} [pageToken] ListWebhooksRequest pageToken + * @interface IRolloutState + * @property {string|null} [step] RolloutState step + * @property {number|null} [stepIndex] RolloutState stepIndex + * @property {google.protobuf.ITimestamp|null} [startTime] RolloutState startTime */ /** - * Constructs a new ListWebhooksRequest. + * Constructs a new RolloutState. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListWebhooksRequest. - * @implements IListWebhooksRequest + * @classdesc Represents a RolloutState. + * @implements IRolloutState * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IRolloutState=} [properties] Properties to set */ - function ListWebhooksRequest(properties) { + function RolloutState(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -118587,101 +118533,101 @@ } /** - * ListWebhooksRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest + * RolloutState step. + * @member {string} step + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutState * @instance */ - ListWebhooksRequest.prototype.parent = ""; + RolloutState.prototype.step = ""; /** - * ListWebhooksRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest + * RolloutState stepIndex. + * @member {number} stepIndex + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutState * @instance */ - ListWebhooksRequest.prototype.pageSize = 0; + RolloutState.prototype.stepIndex = 0; /** - * ListWebhooksRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest + * RolloutState startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutState * @instance */ - ListWebhooksRequest.prototype.pageToken = ""; + RolloutState.prototype.startTime = null; /** - * Creates a new ListWebhooksRequest instance using the specified properties. + * Creates a new RolloutState instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutState * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest} ListWebhooksRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IRolloutState=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.RolloutState} RolloutState instance */ - ListWebhooksRequest.create = function create(properties) { - return new ListWebhooksRequest(properties); + RolloutState.create = function create(properties) { + return new RolloutState(properties); }; /** - * Encodes the specified ListWebhooksRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest.verify|verify} messages. + * Encodes the specified RolloutState message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RolloutState.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutState * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest} message ListWebhooksRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IRolloutState} message RolloutState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListWebhooksRequest.encode = function encode(message, writer) { + RolloutState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.step != null && Object.hasOwnProperty.call(message, "step")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.step); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.stepIndex != null && Object.hasOwnProperty.call(message, "stepIndex")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.stepIndex); return writer; }; /** - * Encodes the specified ListWebhooksRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest.verify|verify} messages. + * Encodes the specified RolloutState message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RolloutState.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutState * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest} message ListWebhooksRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IRolloutState} message RolloutState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListWebhooksRequest.encodeDelimited = function encodeDelimited(message, writer) { + RolloutState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListWebhooksRequest message from the specified reader or buffer. + * Decodes a RolloutState message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest} ListWebhooksRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.RolloutState} RolloutState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListWebhooksRequest.decode = function decode(reader, length) { + RolloutState.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.RolloutState(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - message.pageSize = reader.int32(); + message.step = reader.string(); break; case 3: - message.pageToken = reader.string(); + message.stepIndex = reader.int32(); + break; + case 2: + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -118692,126 +118638,130 @@ }; /** - * Decodes a ListWebhooksRequest message from the specified reader or buffer, length delimited. + * Decodes a RolloutState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest} ListWebhooksRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.RolloutState} RolloutState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListWebhooksRequest.decodeDelimited = function decodeDelimited(reader) { + RolloutState.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListWebhooksRequest message. + * Verifies a RolloutState message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListWebhooksRequest.verify = function verify(message) { + RolloutState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.step != null && message.hasOwnProperty("step")) + if (!$util.isString(message.step)) + return "step: string expected"; + if (message.stepIndex != null && message.hasOwnProperty("stepIndex")) + if (!$util.isInteger(message.stepIndex)) + return "stepIndex: integer expected"; + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } return null; }; /** - * Creates a ListWebhooksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RolloutState message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutState * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest} ListWebhooksRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.RolloutState} RolloutState */ - ListWebhooksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest) + RolloutState.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RolloutState) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.RolloutState(); + if (object.step != null) + message.step = String(object.step); + if (object.stepIndex != null) + message.stepIndex = object.stepIndex | 0; + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.RolloutState.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } return message; }; /** - * Creates a plain object from a ListWebhooksRequest message. Also converts values to other types if specified. + * Creates a plain object from a RolloutState message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutState * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest} message ListWebhooksRequest + * @param {google.cloud.dialogflow.cx.v3beta1.RolloutState} message RolloutState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListWebhooksRequest.toObject = function toObject(message, options) { + RolloutState.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.step = ""; + object.startTime = null; + object.stepIndex = 0; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.step != null && message.hasOwnProperty("step")) + object.step = message.step; + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.stepIndex != null && message.hasOwnProperty("stepIndex")) + object.stepIndex = message.stepIndex; return object; }; /** - * Converts this ListWebhooksRequest to JSON. + * Converts this RolloutState to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutState * @instance * @returns {Object.} JSON object */ - ListWebhooksRequest.prototype.toJSON = function toJSON() { + RolloutState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListWebhooksRequest; + return RolloutState; })(); - v3beta1.ListWebhooksResponse = (function() { + v3beta1.VariantsHistory = (function() { /** - * Properties of a ListWebhooksResponse. + * Properties of a VariantsHistory. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListWebhooksResponse - * @property {Array.|null} [webhooks] ListWebhooksResponse webhooks - * @property {string|null} [nextPageToken] ListWebhooksResponse nextPageToken + * @interface IVariantsHistory + * @property {google.cloud.dialogflow.cx.v3beta1.IVersionVariants|null} [versionVariants] VariantsHistory versionVariants + * @property {google.protobuf.ITimestamp|null} [updateTime] VariantsHistory updateTime */ /** - * Constructs a new ListWebhooksResponse. + * Constructs a new VariantsHistory. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListWebhooksResponse. - * @implements IListWebhooksResponse + * @classdesc Represents a VariantsHistory. + * @implements IVariantsHistory * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListWebhooksResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IVariantsHistory=} [properties] Properties to set */ - function ListWebhooksResponse(properties) { - this.webhooks = []; + function VariantsHistory(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -118819,91 +118769,102 @@ } /** - * ListWebhooksResponse webhooks. - * @member {Array.} webhooks - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse + * VariantsHistory versionVariants. + * @member {google.cloud.dialogflow.cx.v3beta1.IVersionVariants|null|undefined} versionVariants + * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory * @instance */ - ListWebhooksResponse.prototype.webhooks = $util.emptyArray; + VariantsHistory.prototype.versionVariants = null; /** - * ListWebhooksResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse + * VariantsHistory updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory * @instance */ - ListWebhooksResponse.prototype.nextPageToken = ""; + VariantsHistory.prototype.updateTime = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Creates a new ListWebhooksResponse instance using the specified properties. + * VariantsHistory variants. + * @member {"versionVariants"|undefined} variants + * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory + * @instance + */ + Object.defineProperty(VariantsHistory.prototype, "variants", { + get: $util.oneOfGetter($oneOfFields = ["versionVariants"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new VariantsHistory instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListWebhooksResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse} ListWebhooksResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IVariantsHistory=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.VariantsHistory} VariantsHistory instance */ - ListWebhooksResponse.create = function create(properties) { - return new ListWebhooksResponse(properties); + VariantsHistory.create = function create(properties) { + return new VariantsHistory(properties); }; /** - * Encodes the specified ListWebhooksResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse.verify|verify} messages. + * Encodes the specified VariantsHistory message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VariantsHistory.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListWebhooksResponse} message ListWebhooksResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IVariantsHistory} message VariantsHistory message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListWebhooksResponse.encode = function encode(message, writer) { + VariantsHistory.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.webhooks != null && message.webhooks.length) - for (var i = 0; i < message.webhooks.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Webhook.encode(message.webhooks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.versionVariants != null && Object.hasOwnProperty.call(message, "versionVariants")) + $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.encode(message.versionVariants, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListWebhooksResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse.verify|verify} messages. + * Encodes the specified VariantsHistory message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VariantsHistory.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListWebhooksResponse} message ListWebhooksResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IVariantsHistory} message VariantsHistory message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListWebhooksResponse.encodeDelimited = function encodeDelimited(message, writer) { + VariantsHistory.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListWebhooksResponse message from the specified reader or buffer. + * Decodes a VariantsHistory message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse} ListWebhooksResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.VariantsHistory} VariantsHistory * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListWebhooksResponse.decode = function decode(reader, length) { + VariantsHistory.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.VariantsHistory(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.webhooks && message.webhooks.length)) - message.webhooks = []; - message.webhooks.push($root.google.cloud.dialogflow.cx.v3beta1.Webhook.decode(reader, reader.uint32())); + message.versionVariants = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.decode(reader, reader.uint32()); break; case 2: - message.nextPageToken = reader.string(); + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -118914,133 +118875,133 @@ }; /** - * Decodes a ListWebhooksResponse message from the specified reader or buffer, length delimited. + * Decodes a VariantsHistory message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse} ListWebhooksResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.VariantsHistory} VariantsHistory * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListWebhooksResponse.decodeDelimited = function decodeDelimited(reader) { + VariantsHistory.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListWebhooksResponse message. + * Verifies a VariantsHistory message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListWebhooksResponse.verify = function verify(message) { + VariantsHistory.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.webhooks != null && message.hasOwnProperty("webhooks")) { - if (!Array.isArray(message.webhooks)) - return "webhooks: array expected"; - for (var i = 0; i < message.webhooks.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.verify(message.webhooks[i]); + var properties = {}; + if (message.versionVariants != null && message.hasOwnProperty("versionVariants")) { + properties.variants = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.verify(message.versionVariants); if (error) - return "webhooks." + error; + return "versionVariants." + error; } } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } return null; }; /** - * Creates a ListWebhooksResponse message from a plain object. Also converts values to their respective internal types. + * Creates a VariantsHistory message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse} ListWebhooksResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.VariantsHistory} VariantsHistory */ - ListWebhooksResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse) + VariantsHistory.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.VariantsHistory) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse(); - if (object.webhooks) { - if (!Array.isArray(object.webhooks)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse.webhooks: array expected"); - message.webhooks = []; - for (var i = 0; i < object.webhooks.length; ++i) { - if (typeof object.webhooks[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse.webhooks: object expected"); - message.webhooks[i] = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.fromObject(object.webhooks[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.VariantsHistory(); + if (object.versionVariants != null) { + if (typeof object.versionVariants !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.VariantsHistory.versionVariants: object expected"); + message.versionVariants = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.fromObject(object.versionVariants); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.VariantsHistory.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListWebhooksResponse message. Also converts values to other types if specified. + * Creates a plain object from a VariantsHistory message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse} message ListWebhooksResponse + * @param {google.cloud.dialogflow.cx.v3beta1.VariantsHistory} message VariantsHistory * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListWebhooksResponse.toObject = function toObject(message, options) { + VariantsHistory.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.webhooks = []; if (options.defaults) - object.nextPageToken = ""; - if (message.webhooks && message.webhooks.length) { - object.webhooks = []; - for (var j = 0; j < message.webhooks.length; ++j) - object.webhooks[j] = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.toObject(message.webhooks[j], options); + object.updateTime = null; + if (message.versionVariants != null && message.hasOwnProperty("versionVariants")) { + object.versionVariants = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.toObject(message.versionVariants, options); + if (options.oneofs) + object.variants = "versionVariants"; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); return object; }; /** - * Converts this ListWebhooksResponse to JSON. + * Converts this VariantsHistory to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory * @instance * @returns {Object.} JSON object */ - ListWebhooksResponse.prototype.toJSON = function toJSON() { + VariantsHistory.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListWebhooksResponse; + return VariantsHistory; })(); - v3beta1.GetWebhookRequest = (function() { + v3beta1.ListExperimentsRequest = (function() { /** - * Properties of a GetWebhookRequest. + * Properties of a ListExperimentsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetWebhookRequest - * @property {string|null} [name] GetWebhookRequest name + * @interface IListExperimentsRequest + * @property {string|null} [parent] ListExperimentsRequest parent + * @property {number|null} [pageSize] ListExperimentsRequest pageSize + * @property {string|null} [pageToken] ListExperimentsRequest pageToken */ /** - * Constructs a new GetWebhookRequest. + * Constructs a new ListExperimentsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetWebhookRequest. - * @implements IGetWebhookRequest + * @classdesc Represents a ListExperimentsRequest. + * @implements IListExperimentsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest=} [properties] Properties to set */ - function GetWebhookRequest(properties) { + function ListExperimentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -119048,75 +119009,101 @@ } /** - * GetWebhookRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest + * ListExperimentsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest * @instance */ - GetWebhookRequest.prototype.name = ""; + ListExperimentsRequest.prototype.parent = ""; /** - * Creates a new GetWebhookRequest instance using the specified properties. + * ListExperimentsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest + * @instance + */ + ListExperimentsRequest.prototype.pageSize = 0; + + /** + * ListExperimentsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest + * @instance + */ + ListExperimentsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListExperimentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest} GetWebhookRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest} ListExperimentsRequest instance */ - GetWebhookRequest.create = function create(properties) { - return new GetWebhookRequest(properties); + ListExperimentsRequest.create = function create(properties) { + return new ListExperimentsRequest(properties); }; /** - * Encodes the specified GetWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest.verify|verify} messages. + * Encodes the specified ListExperimentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest} message GetWebhookRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest} message ListExperimentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetWebhookRequest.encode = function encode(message, writer) { + ListExperimentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified GetWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest.verify|verify} messages. + * Encodes the specified ListExperimentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest} message GetWebhookRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest} message ListExperimentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetWebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListExperimentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetWebhookRequest message from the specified reader or buffer. + * Decodes a ListExperimentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest} GetWebhookRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest} ListExperimentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetWebhookRequest.decode = function decode(reader, length) { + ListExperimentsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); + break; + case 2: + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -119127,108 +119114,126 @@ }; /** - * Decodes a GetWebhookRequest message from the specified reader or buffer, length delimited. + * Decodes a ListExperimentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest} GetWebhookRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest} ListExperimentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetWebhookRequest.decodeDelimited = function decodeDelimited(reader) { + ListExperimentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetWebhookRequest message. + * Verifies a ListExperimentsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetWebhookRequest.verify = function verify(message) { + ListExperimentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a GetWebhookRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListExperimentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest} GetWebhookRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest} ListExperimentsRequest */ - GetWebhookRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest) + ListExperimentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a GetWebhookRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListExperimentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest} message GetWebhookRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest} message ListExperimentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetWebhookRequest.toObject = function toObject(message, options) { + ListExperimentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this GetWebhookRequest to JSON. + * Converts this ListExperimentsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest * @instance * @returns {Object.} JSON object */ - GetWebhookRequest.prototype.toJSON = function toJSON() { + ListExperimentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetWebhookRequest; + return ListExperimentsRequest; })(); - v3beta1.CreateWebhookRequest = (function() { + v3beta1.ListExperimentsResponse = (function() { /** - * Properties of a CreateWebhookRequest. + * Properties of a ListExperimentsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ICreateWebhookRequest - * @property {string|null} [parent] CreateWebhookRequest parent - * @property {google.cloud.dialogflow.cx.v3beta1.IWebhook|null} [webhook] CreateWebhookRequest webhook + * @interface IListExperimentsResponse + * @property {Array.|null} [experiments] ListExperimentsResponse experiments + * @property {string|null} [nextPageToken] ListExperimentsResponse nextPageToken */ /** - * Constructs a new CreateWebhookRequest. + * Constructs a new ListExperimentsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CreateWebhookRequest. - * @implements ICreateWebhookRequest + * @classdesc Represents a ListExperimentsResponse. + * @implements IListExperimentsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsResponse=} [properties] Properties to set */ - function CreateWebhookRequest(properties) { + function ListExperimentsResponse(properties) { + this.experiments = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -119236,88 +119241,91 @@ } /** - * CreateWebhookRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest + * ListExperimentsResponse experiments. + * @member {Array.} experiments + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse * @instance */ - CreateWebhookRequest.prototype.parent = ""; + ListExperimentsResponse.prototype.experiments = $util.emptyArray; /** - * CreateWebhookRequest webhook. - * @member {google.cloud.dialogflow.cx.v3beta1.IWebhook|null|undefined} webhook - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest + * ListExperimentsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse * @instance */ - CreateWebhookRequest.prototype.webhook = null; + ListExperimentsResponse.prototype.nextPageToken = ""; /** - * Creates a new CreateWebhookRequest instance using the specified properties. + * Creates a new ListExperimentsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest} CreateWebhookRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse} ListExperimentsResponse instance */ - CreateWebhookRequest.create = function create(properties) { - return new CreateWebhookRequest(properties); + ListExperimentsResponse.create = function create(properties) { + return new ListExperimentsResponse(properties); }; /** - * Encodes the specified CreateWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest.verify|verify} messages. + * Encodes the specified ListExperimentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest} message CreateWebhookRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsResponse} message ListExperimentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateWebhookRequest.encode = function encode(message, writer) { + ListExperimentsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.webhook != null && Object.hasOwnProperty.call(message, "webhook")) - $root.google.cloud.dialogflow.cx.v3beta1.Webhook.encode(message.webhook, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.experiments != null && message.experiments.length) + for (var i = 0; i < message.experiments.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Experiment.encode(message.experiments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified CreateWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest.verify|verify} messages. + * Encodes the specified ListExperimentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest} message CreateWebhookRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsResponse} message ListExperimentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateWebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListExperimentsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateWebhookRequest message from the specified reader or buffer. + * Decodes a ListExperimentsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest} CreateWebhookRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse} ListExperimentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateWebhookRequest.decode = function decode(reader, length) { + ListExperimentsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + if (!(message.experiments && message.experiments.length)) + message.experiments = []; + message.experiments.push($root.google.cloud.dialogflow.cx.v3beta1.Experiment.decode(reader, reader.uint32())); break; case 2: - message.webhook = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -119328,122 +119336,133 @@ }; /** - * Decodes a CreateWebhookRequest message from the specified reader or buffer, length delimited. + * Decodes a ListExperimentsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest} CreateWebhookRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse} ListExperimentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateWebhookRequest.decodeDelimited = function decodeDelimited(reader) { + ListExperimentsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateWebhookRequest message. + * Verifies a ListExperimentsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateWebhookRequest.verify = function verify(message) { + ListExperimentsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.webhook != null && message.hasOwnProperty("webhook")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.verify(message.webhook); - if (error) - return "webhook." + error; + if (message.experiments != null && message.hasOwnProperty("experiments")) { + if (!Array.isArray(message.experiments)) + return "experiments: array expected"; + for (var i = 0; i < message.experiments.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.verify(message.experiments[i]); + if (error) + return "experiments." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a CreateWebhookRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListExperimentsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest} CreateWebhookRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse} ListExperimentsResponse */ - CreateWebhookRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest) + ListExperimentsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.webhook != null) { - if (typeof object.webhook !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest.webhook: object expected"); - message.webhook = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.fromObject(object.webhook); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse(); + if (object.experiments) { + if (!Array.isArray(object.experiments)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse.experiments: array expected"); + message.experiments = []; + for (var i = 0; i < object.experiments.length; ++i) { + if (typeof object.experiments[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse.experiments: object expected"); + message.experiments[i] = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.fromObject(object.experiments[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a CreateWebhookRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListExperimentsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest} message CreateWebhookRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse} message ListExperimentsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateWebhookRequest.toObject = function toObject(message, options) { + ListExperimentsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.webhook = null; + if (options.arrays || options.defaults) + object.experiments = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.experiments && message.experiments.length) { + object.experiments = []; + for (var j = 0; j < message.experiments.length; ++j) + object.experiments[j] = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.toObject(message.experiments[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.webhook != null && message.hasOwnProperty("webhook")) - object.webhook = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.toObject(message.webhook, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this CreateWebhookRequest to JSON. + * Converts this ListExperimentsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse * @instance * @returns {Object.} JSON object */ - CreateWebhookRequest.prototype.toJSON = function toJSON() { + ListExperimentsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateWebhookRequest; + return ListExperimentsResponse; })(); - v3beta1.UpdateWebhookRequest = (function() { + v3beta1.GetExperimentRequest = (function() { /** - * Properties of an UpdateWebhookRequest. + * Properties of a GetExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IUpdateWebhookRequest - * @property {google.cloud.dialogflow.cx.v3beta1.IWebhook|null} [webhook] UpdateWebhookRequest webhook - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateWebhookRequest updateMask + * @interface IGetExperimentRequest + * @property {string|null} [name] GetExperimentRequest name */ /** - * Constructs a new UpdateWebhookRequest. + * Constructs a new GetExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an UpdateWebhookRequest. - * @implements IUpdateWebhookRequest + * @classdesc Represents a GetExperimentRequest. + * @implements IGetExperimentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest=} [properties] Properties to set */ - function UpdateWebhookRequest(properties) { + function GetExperimentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -119451,88 +119470,75 @@ } /** - * UpdateWebhookRequest webhook. - * @member {google.cloud.dialogflow.cx.v3beta1.IWebhook|null|undefined} webhook - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest - * @instance - */ - UpdateWebhookRequest.prototype.webhook = null; - - /** - * UpdateWebhookRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest + * GetExperimentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest * @instance */ - UpdateWebhookRequest.prototype.updateMask = null; + GetExperimentRequest.prototype.name = ""; /** - * Creates a new UpdateWebhookRequest instance using the specified properties. + * Creates a new GetExperimentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest} UpdateWebhookRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest} GetExperimentRequest instance */ - UpdateWebhookRequest.create = function create(properties) { - return new UpdateWebhookRequest(properties); + GetExperimentRequest.create = function create(properties) { + return new GetExperimentRequest(properties); }; /** - * Encodes the specified UpdateWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest.verify|verify} messages. + * Encodes the specified GetExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest} message UpdateWebhookRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest} message GetExperimentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateWebhookRequest.encode = function encode(message, writer) { + GetExperimentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.webhook != null && Object.hasOwnProperty.call(message, "webhook")) - $root.google.cloud.dialogflow.cx.v3beta1.Webhook.encode(message.webhook, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified UpdateWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest.verify|verify} messages. + * Encodes the specified GetExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest} message UpdateWebhookRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest} message GetExperimentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateWebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateWebhookRequest message from the specified reader or buffer. + * Decodes a GetExperimentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest} UpdateWebhookRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest} GetExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateWebhookRequest.decode = function decode(reader, length) { + GetExperimentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.webhook = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -119543,127 +119549,108 @@ }; /** - * Decodes an UpdateWebhookRequest message from the specified reader or buffer, length delimited. + * Decodes a GetExperimentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest} UpdateWebhookRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest} GetExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateWebhookRequest.decodeDelimited = function decodeDelimited(reader) { + GetExperimentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateWebhookRequest message. + * Verifies a GetExperimentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateWebhookRequest.verify = function verify(message) { + GetExperimentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.webhook != null && message.hasOwnProperty("webhook")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.verify(message.webhook); - if (error) - return "webhook." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an UpdateWebhookRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetExperimentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest} UpdateWebhookRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest} GetExperimentRequest */ - UpdateWebhookRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest) + GetExperimentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest(); - if (object.webhook != null) { - if (typeof object.webhook !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest.webhook: object expected"); - message.webhook = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.fromObject(object.webhook); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an UpdateWebhookRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetExperimentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest} message UpdateWebhookRequest + * @param {google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest} message GetExperimentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateWebhookRequest.toObject = function toObject(message, options) { + GetExperimentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.webhook = null; - object.updateMask = null; - } - if (message.webhook != null && message.hasOwnProperty("webhook")) - object.webhook = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.toObject(message.webhook, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this UpdateWebhookRequest to JSON. + * Converts this GetExperimentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest * @instance * @returns {Object.} JSON object */ - UpdateWebhookRequest.prototype.toJSON = function toJSON() { + GetExperimentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateWebhookRequest; + return GetExperimentRequest; })(); - v3beta1.DeleteWebhookRequest = (function() { + v3beta1.CreateExperimentRequest = (function() { /** - * Properties of a DeleteWebhookRequest. + * Properties of a CreateExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDeleteWebhookRequest - * @property {string|null} [name] DeleteWebhookRequest name - * @property {boolean|null} [force] DeleteWebhookRequest force + * @interface ICreateExperimentRequest + * @property {string|null} [parent] CreateExperimentRequest parent + * @property {google.cloud.dialogflow.cx.v3beta1.IExperiment|null} [experiment] CreateExperimentRequest experiment */ /** - * Constructs a new DeleteWebhookRequest. + * Constructs a new CreateExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DeleteWebhookRequest. - * @implements IDeleteWebhookRequest + * @classdesc Represents a CreateExperimentRequest. + * @implements ICreateExperimentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest=} [properties] Properties to set */ - function DeleteWebhookRequest(properties) { + function CreateExperimentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -119671,88 +119658,88 @@ } /** - * DeleteWebhookRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest + * CreateExperimentRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest * @instance */ - DeleteWebhookRequest.prototype.name = ""; + CreateExperimentRequest.prototype.parent = ""; /** - * DeleteWebhookRequest force. - * @member {boolean} force - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest + * CreateExperimentRequest experiment. + * @member {google.cloud.dialogflow.cx.v3beta1.IExperiment|null|undefined} experiment + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest * @instance */ - DeleteWebhookRequest.prototype.force = false; + CreateExperimentRequest.prototype.experiment = null; /** - * Creates a new DeleteWebhookRequest instance using the specified properties. + * Creates a new CreateExperimentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest} DeleteWebhookRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest} CreateExperimentRequest instance */ - DeleteWebhookRequest.create = function create(properties) { - return new DeleteWebhookRequest(properties); + CreateExperimentRequest.create = function create(properties) { + return new CreateExperimentRequest(properties); }; /** - * Encodes the specified DeleteWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest.verify|verify} messages. + * Encodes the specified CreateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest} message DeleteWebhookRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest} message CreateExperimentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteWebhookRequest.encode = function encode(message, writer) { + CreateExperimentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.experiment != null && Object.hasOwnProperty.call(message, "experiment")) + $root.google.cloud.dialogflow.cx.v3beta1.Experiment.encode(message.experiment, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest.verify|verify} messages. + * Encodes the specified CreateExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest} message DeleteWebhookRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest} message CreateExperimentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteWebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteWebhookRequest message from the specified reader or buffer. + * Decodes a CreateExperimentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest} DeleteWebhookRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest} CreateExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteWebhookRequest.decode = function decode(reader, length) { + CreateExperimentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); break; case 2: - message.force = reader.bool(); + message.experiment = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -119763,129 +119750,122 @@ }; /** - * Decodes a DeleteWebhookRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateExperimentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest} DeleteWebhookRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest} CreateExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteWebhookRequest.decodeDelimited = function decodeDelimited(reader) { + CreateExperimentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteWebhookRequest message. + * Verifies a CreateExperimentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteWebhookRequest.verify = function verify(message) { + CreateExperimentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.experiment != null && message.hasOwnProperty("experiment")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.verify(message.experiment); + if (error) + return "experiment." + error; + } return null; }; /** - * Creates a DeleteWebhookRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateExperimentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest} DeleteWebhookRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest} CreateExperimentRequest */ - DeleteWebhookRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest) + CreateExperimentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.force != null) - message.force = Boolean(object.force); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.experiment != null) { + if (typeof object.experiment !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest.experiment: object expected"); + message.experiment = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.fromObject(object.experiment); + } return message; }; /** - * Creates a plain object from a DeleteWebhookRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateExperimentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest} message DeleteWebhookRequest + * @param {google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest} message CreateExperimentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteWebhookRequest.toObject = function toObject(message, options) { + CreateExperimentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.force = false; + object.parent = ""; + object.experiment = null; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.experiment != null && message.hasOwnProperty("experiment")) + object.experiment = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.toObject(message.experiment, options); return object; }; /** - * Converts this DeleteWebhookRequest to JSON. + * Converts this CreateExperimentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest * @instance * @returns {Object.} JSON object */ - DeleteWebhookRequest.prototype.toJSON = function toJSON() { + CreateExperimentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteWebhookRequest; + return CreateExperimentRequest; })(); - v3beta1.WebhookRequest = (function() { + v3beta1.UpdateExperimentRequest = (function() { /** - * Properties of a WebhookRequest. + * Properties of an UpdateExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IWebhookRequest - * @property {string|null} [detectIntentResponseId] WebhookRequest detectIntentResponseId - * @property {string|null} [text] WebhookRequest text - * @property {string|null} [triggerIntent] WebhookRequest triggerIntent - * @property {string|null} [transcript] WebhookRequest transcript - * @property {string|null} [triggerEvent] WebhookRequest triggerEvent - * @property {string|null} [languageCode] WebhookRequest languageCode - * @property {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IFulfillmentInfo|null} [fulfillmentInfo] WebhookRequest fulfillmentInfo - * @property {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IIntentInfo|null} [intentInfo] WebhookRequest intentInfo - * @property {google.cloud.dialogflow.cx.v3beta1.IPageInfo|null} [pageInfo] WebhookRequest pageInfo - * @property {google.cloud.dialogflow.cx.v3beta1.ISessionInfo|null} [sessionInfo] WebhookRequest sessionInfo - * @property {Array.|null} [messages] WebhookRequest messages - * @property {google.protobuf.IStruct|null} [payload] WebhookRequest payload - * @property {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.ISentimentAnalysisResult|null} [sentimentAnalysisResult] WebhookRequest sentimentAnalysisResult + * @interface IUpdateExperimentRequest + * @property {google.cloud.dialogflow.cx.v3beta1.IExperiment|null} [experiment] UpdateExperimentRequest experiment + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateExperimentRequest updateMask */ /** - * Constructs a new WebhookRequest. + * Constructs a new UpdateExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a WebhookRequest. - * @implements IWebhookRequest + * @classdesc Represents an UpdateExperimentRequest. + * @implements IUpdateExperimentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IWebhookRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest=} [properties] Properties to set */ - function WebhookRequest(properties) { - this.messages = []; + function UpdateExperimentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -119893,248 +119873,88 @@ } /** - * WebhookRequest detectIntentResponseId. - * @member {string} detectIntentResponseId - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest - * @instance - */ - WebhookRequest.prototype.detectIntentResponseId = ""; - - /** - * WebhookRequest text. - * @member {string|null|undefined} text - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest - * @instance - */ - WebhookRequest.prototype.text = null; - - /** - * WebhookRequest triggerIntent. - * @member {string|null|undefined} triggerIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest - * @instance - */ - WebhookRequest.prototype.triggerIntent = null; - - /** - * WebhookRequest transcript. - * @member {string|null|undefined} transcript - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest - * @instance - */ - WebhookRequest.prototype.transcript = null; - - /** - * WebhookRequest triggerEvent. - * @member {string|null|undefined} triggerEvent - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest - * @instance - */ - WebhookRequest.prototype.triggerEvent = null; - - /** - * WebhookRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest - * @instance - */ - WebhookRequest.prototype.languageCode = ""; - - /** - * WebhookRequest fulfillmentInfo. - * @member {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IFulfillmentInfo|null|undefined} fulfillmentInfo - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest - * @instance - */ - WebhookRequest.prototype.fulfillmentInfo = null; - - /** - * WebhookRequest intentInfo. - * @member {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IIntentInfo|null|undefined} intentInfo - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest - * @instance - */ - WebhookRequest.prototype.intentInfo = null; - - /** - * WebhookRequest pageInfo. - * @member {google.cloud.dialogflow.cx.v3beta1.IPageInfo|null|undefined} pageInfo - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest - * @instance - */ - WebhookRequest.prototype.pageInfo = null; - - /** - * WebhookRequest sessionInfo. - * @member {google.cloud.dialogflow.cx.v3beta1.ISessionInfo|null|undefined} sessionInfo - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest - * @instance - */ - WebhookRequest.prototype.sessionInfo = null; - - /** - * WebhookRequest messages. - * @member {Array.} messages - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest - * @instance - */ - WebhookRequest.prototype.messages = $util.emptyArray; - - /** - * WebhookRequest payload. - * @member {google.protobuf.IStruct|null|undefined} payload - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest - * @instance - */ - WebhookRequest.prototype.payload = null; - - /** - * WebhookRequest sentimentAnalysisResult. - * @member {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.ISentimentAnalysisResult|null|undefined} sentimentAnalysisResult - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * UpdateExperimentRequest experiment. + * @member {google.cloud.dialogflow.cx.v3beta1.IExperiment|null|undefined} experiment + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest * @instance */ - WebhookRequest.prototype.sentimentAnalysisResult = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + UpdateExperimentRequest.prototype.experiment = null; /** - * WebhookRequest query. - * @member {"text"|"triggerIntent"|"transcript"|"triggerEvent"|undefined} query - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * UpdateExperimentRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest * @instance */ - Object.defineProperty(WebhookRequest.prototype, "query", { - get: $util.oneOfGetter($oneOfFields = ["text", "triggerIntent", "transcript", "triggerEvent"]), - set: $util.oneOfSetter($oneOfFields) - }); + UpdateExperimentRequest.prototype.updateMask = null; /** - * Creates a new WebhookRequest instance using the specified properties. + * Creates a new UpdateExperimentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IWebhookRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest} WebhookRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest} UpdateExperimentRequest instance */ - WebhookRequest.create = function create(properties) { - return new WebhookRequest(properties); + UpdateExperimentRequest.create = function create(properties) { + return new UpdateExperimentRequest(properties); }; /** - * Encodes the specified WebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.verify|verify} messages. + * Encodes the specified UpdateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IWebhookRequest} message WebhookRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest} message UpdateExperimentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WebhookRequest.encode = function encode(message, writer) { + UpdateExperimentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.detectIntentResponseId != null && Object.hasOwnProperty.call(message, "detectIntentResponseId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.detectIntentResponseId); - if (message.intentInfo != null && Object.hasOwnProperty.call(message, "intentInfo")) - $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.encode(message.intentInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.pageInfo != null && Object.hasOwnProperty.call(message, "pageInfo")) - $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.encode(message.pageInfo, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.sessionInfo != null && Object.hasOwnProperty.call(message, "sessionInfo")) - $root.google.cloud.dialogflow.cx.v3beta1.SessionInfo.encode(message.sessionInfo, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.fulfillmentInfo != null && Object.hasOwnProperty.call(message, "fulfillmentInfo")) - $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.encode(message.fulfillmentInfo, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.messages != null && message.messages.length) - for (var i = 0; i < message.messages.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.encode(message.messages[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) - $root.google.protobuf.Struct.encode(message.payload, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.sentimentAnalysisResult != null && Object.hasOwnProperty.call(message, "sentimentAnalysisResult")) - $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult.encode(message.sentimentAnalysisResult, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.text != null && Object.hasOwnProperty.call(message, "text")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.text); - if (message.triggerIntent != null && Object.hasOwnProperty.call(message, "triggerIntent")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.triggerIntent); - if (message.transcript != null && Object.hasOwnProperty.call(message, "transcript")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.transcript); - if (message.triggerEvent != null && Object.hasOwnProperty.call(message, "triggerEvent")) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.triggerEvent); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 15, wireType 2 =*/122).string(message.languageCode); + if (message.experiment != null && Object.hasOwnProperty.call(message, "experiment")) + $root.google.cloud.dialogflow.cx.v3beta1.Experiment.encode(message.experiment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified WebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.verify|verify} messages. + * Encodes the specified UpdateExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IWebhookRequest} message WebhookRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest} message UpdateExperimentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WebhookRequest message from the specified reader or buffer. + * Decodes an UpdateExperimentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest} WebhookRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest} UpdateExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WebhookRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.detectIntentResponseId = reader.string(); - break; - case 10: - message.text = reader.string(); - break; - case 11: - message.triggerIntent = reader.string(); - break; - case 12: - message.transcript = reader.string(); - break; - case 14: - message.triggerEvent = reader.string(); - break; - case 15: - message.languageCode = reader.string(); - break; - case 6: - message.fulfillmentInfo = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.decode(reader, reader.uint32()); - break; - case 3: - message.intentInfo = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.decode(reader, reader.uint32()); - break; - case 4: - message.pageInfo = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.decode(reader, reader.uint32()); - break; - case 5: - message.sessionInfo = $root.google.cloud.dialogflow.cx.v3beta1.SessionInfo.decode(reader, reader.uint32()); - break; - case 7: - if (!(message.messages && message.messages.length)) - message.messages = []; - message.messages.push($root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.decode(reader, reader.uint32())); - break; - case 8: - message.payload = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + UpdateExperimentRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.experiment = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.decode(reader, reader.uint32()); break; - case 9: - message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult.decode(reader, reader.uint32()); + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -120145,1189 +119965,887 @@ }; /** - * Decodes a WebhookRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateExperimentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest} WebhookRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest} UpdateExperimentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WebhookRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateExperimentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WebhookRequest message. + * Verifies an UpdateExperimentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WebhookRequest.verify = function verify(message) { + UpdateExperimentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.detectIntentResponseId != null && message.hasOwnProperty("detectIntentResponseId")) - if (!$util.isString(message.detectIntentResponseId)) - return "detectIntentResponseId: string expected"; - if (message.text != null && message.hasOwnProperty("text")) { - properties.query = 1; - if (!$util.isString(message.text)) - return "text: string expected"; - } - if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { - if (properties.query === 1) - return "query: multiple values"; - properties.query = 1; - if (!$util.isString(message.triggerIntent)) - return "triggerIntent: string expected"; - } - if (message.transcript != null && message.hasOwnProperty("transcript")) { - if (properties.query === 1) - return "query: multiple values"; - properties.query = 1; - if (!$util.isString(message.transcript)) - return "transcript: string expected"; - } - if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { - if (properties.query === 1) - return "query: multiple values"; - properties.query = 1; - if (!$util.isString(message.triggerEvent)) - return "triggerEvent: string expected"; - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; - if (message.fulfillmentInfo != null && message.hasOwnProperty("fulfillmentInfo")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.verify(message.fulfillmentInfo); - if (error) - return "fulfillmentInfo." + error; - } - if (message.intentInfo != null && message.hasOwnProperty("intentInfo")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.verify(message.intentInfo); - if (error) - return "intentInfo." + error; - } - if (message.pageInfo != null && message.hasOwnProperty("pageInfo")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.verify(message.pageInfo); - if (error) - return "pageInfo." + error; - } - if (message.sessionInfo != null && message.hasOwnProperty("sessionInfo")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.SessionInfo.verify(message.sessionInfo); - if (error) - return "sessionInfo." + error; - } - if (message.messages != null && message.hasOwnProperty("messages")) { - if (!Array.isArray(message.messages)) - return "messages: array expected"; - for (var i = 0; i < message.messages.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify(message.messages[i]); - if (error) - return "messages." + error; - } - } - if (message.payload != null && message.hasOwnProperty("payload")) { - var error = $root.google.protobuf.Struct.verify(message.payload); + if (message.experiment != null && message.hasOwnProperty("experiment")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.verify(message.experiment); if (error) - return "payload." + error; + return "experiment." + error; } - if (message.sentimentAnalysisResult != null && message.hasOwnProperty("sentimentAnalysisResult")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult.verify(message.sentimentAnalysisResult); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); if (error) - return "sentimentAnalysisResult." + error; + return "updateMask." + error; } return null; }; /** - * Creates a WebhookRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateExperimentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest} WebhookRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest} UpdateExperimentRequest */ - WebhookRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest) + UpdateExperimentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest(); - if (object.detectIntentResponseId != null) - message.detectIntentResponseId = String(object.detectIntentResponseId); - if (object.text != null) - message.text = String(object.text); - if (object.triggerIntent != null) - message.triggerIntent = String(object.triggerIntent); - if (object.transcript != null) - message.transcript = String(object.transcript); - if (object.triggerEvent != null) - message.triggerEvent = String(object.triggerEvent); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); - if (object.fulfillmentInfo != null) { - if (typeof object.fulfillmentInfo !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookRequest.fulfillmentInfo: object expected"); - message.fulfillmentInfo = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.fromObject(object.fulfillmentInfo); - } - if (object.intentInfo != null) { - if (typeof object.intentInfo !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookRequest.intentInfo: object expected"); - message.intentInfo = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.fromObject(object.intentInfo); - } - if (object.pageInfo != null) { - if (typeof object.pageInfo !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookRequest.pageInfo: object expected"); - message.pageInfo = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.fromObject(object.pageInfo); - } - if (object.sessionInfo != null) { - if (typeof object.sessionInfo !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookRequest.sessionInfo: object expected"); - message.sessionInfo = $root.google.cloud.dialogflow.cx.v3beta1.SessionInfo.fromObject(object.sessionInfo); - } - if (object.messages) { - if (!Array.isArray(object.messages)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookRequest.messages: array expected"); - message.messages = []; - for (var i = 0; i < object.messages.length; ++i) { - if (typeof object.messages[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookRequest.messages: object expected"); - message.messages[i] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.fromObject(object.messages[i]); - } - } - if (object.payload != null) { - if (typeof object.payload !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookRequest.payload: object expected"); - message.payload = $root.google.protobuf.Struct.fromObject(object.payload); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest(); + if (object.experiment != null) { + if (typeof object.experiment !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest.experiment: object expected"); + message.experiment = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.fromObject(object.experiment); } - if (object.sentimentAnalysisResult != null) { - if (typeof object.sentimentAnalysisResult !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookRequest.sentimentAnalysisResult: object expected"); - message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult.fromObject(object.sentimentAnalysisResult); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from a WebhookRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateExperimentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest} message WebhookRequest + * @param {google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest} message UpdateExperimentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WebhookRequest.toObject = function toObject(message, options) { + UpdateExperimentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.messages = []; if (options.defaults) { - object.detectIntentResponseId = ""; - object.intentInfo = null; - object.pageInfo = null; - object.sessionInfo = null; - object.fulfillmentInfo = null; - object.payload = null; - object.sentimentAnalysisResult = null; - object.languageCode = ""; - } - if (message.detectIntentResponseId != null && message.hasOwnProperty("detectIntentResponseId")) - object.detectIntentResponseId = message.detectIntentResponseId; - if (message.intentInfo != null && message.hasOwnProperty("intentInfo")) - object.intentInfo = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.toObject(message.intentInfo, options); - if (message.pageInfo != null && message.hasOwnProperty("pageInfo")) - object.pageInfo = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.toObject(message.pageInfo, options); - if (message.sessionInfo != null && message.hasOwnProperty("sessionInfo")) - object.sessionInfo = $root.google.cloud.dialogflow.cx.v3beta1.SessionInfo.toObject(message.sessionInfo, options); - if (message.fulfillmentInfo != null && message.hasOwnProperty("fulfillmentInfo")) - object.fulfillmentInfo = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.toObject(message.fulfillmentInfo, options); - if (message.messages && message.messages.length) { - object.messages = []; - for (var j = 0; j < message.messages.length; ++j) - object.messages[j] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.toObject(message.messages[j], options); - } - if (message.payload != null && message.hasOwnProperty("payload")) - object.payload = $root.google.protobuf.Struct.toObject(message.payload, options); - if (message.sentimentAnalysisResult != null && message.hasOwnProperty("sentimentAnalysisResult")) - object.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult.toObject(message.sentimentAnalysisResult, options); - if (message.text != null && message.hasOwnProperty("text")) { - object.text = message.text; - if (options.oneofs) - object.query = "text"; - } - if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { - object.triggerIntent = message.triggerIntent; - if (options.oneofs) - object.query = "triggerIntent"; - } - if (message.transcript != null && message.hasOwnProperty("transcript")) { - object.transcript = message.transcript; - if (options.oneofs) - object.query = "transcript"; - } - if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { - object.triggerEvent = message.triggerEvent; - if (options.oneofs) - object.query = "triggerEvent"; + object.experiment = null; + object.updateMask = null; } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; + if (message.experiment != null && message.hasOwnProperty("experiment")) + object.experiment = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.toObject(message.experiment, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this WebhookRequest to JSON. + * Converts this UpdateExperimentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest * @instance * @returns {Object.} JSON object */ - WebhookRequest.prototype.toJSON = function toJSON() { + UpdateExperimentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - WebhookRequest.FulfillmentInfo = (function() { - - /** - * Properties of a FulfillmentInfo. - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest - * @interface IFulfillmentInfo - * @property {string|null} [tag] FulfillmentInfo tag - */ - - /** - * Constructs a new FulfillmentInfo. - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest - * @classdesc Represents a FulfillmentInfo. - * @implements IFulfillmentInfo - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IFulfillmentInfo=} [properties] Properties to set - */ - function FulfillmentInfo(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FulfillmentInfo tag. - * @member {string} tag - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo - * @instance - */ - FulfillmentInfo.prototype.tag = ""; - - /** - * Creates a new FulfillmentInfo instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IFulfillmentInfo=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo} FulfillmentInfo instance - */ - FulfillmentInfo.create = function create(properties) { - return new FulfillmentInfo(properties); - }; + return UpdateExperimentRequest; + })(); - /** - * Encodes the specified FulfillmentInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IFulfillmentInfo} message FulfillmentInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FulfillmentInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.tag != null && Object.hasOwnProperty.call(message, "tag")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.tag); - return writer; - }; + v3beta1.DeleteExperimentRequest = (function() { - /** - * Encodes the specified FulfillmentInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IFulfillmentInfo} message FulfillmentInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FulfillmentInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Properties of a DeleteExperimentRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IDeleteExperimentRequest + * @property {string|null} [name] DeleteExperimentRequest name + */ - /** - * Decodes a FulfillmentInfo message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo} FulfillmentInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FulfillmentInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tag = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Constructs a new DeleteExperimentRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a DeleteExperimentRequest. + * @implements IDeleteExperimentRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest=} [properties] Properties to set + */ + function DeleteExperimentRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Decodes a FulfillmentInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo} FulfillmentInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FulfillmentInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * DeleteExperimentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest + * @instance + */ + DeleteExperimentRequest.prototype.name = ""; - /** - * Verifies a FulfillmentInfo message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FulfillmentInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.tag != null && message.hasOwnProperty("tag")) - if (!$util.isString(message.tag)) - return "tag: string expected"; - return null; - }; + /** + * Creates a new DeleteExperimentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest} DeleteExperimentRequest instance + */ + DeleteExperimentRequest.create = function create(properties) { + return new DeleteExperimentRequest(properties); + }; - /** - * Creates a FulfillmentInfo message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo} FulfillmentInfo - */ - FulfillmentInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo(); - if (object.tag != null) - message.tag = String(object.tag); - return message; - }; + /** + * Encodes the specified DeleteExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest} message DeleteExperimentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteExperimentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; - /** - * Creates a plain object from a FulfillmentInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo} message FulfillmentInfo - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FulfillmentInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.tag = ""; - if (message.tag != null && message.hasOwnProperty("tag")) - object.tag = message.tag; - return object; - }; + /** + * Encodes the specified DeleteExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest} message DeleteExperimentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Converts this FulfillmentInfo to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo - * @instance - * @returns {Object.} JSON object - */ - FulfillmentInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a DeleteExperimentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest} DeleteExperimentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteExperimentRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - return FulfillmentInfo; - })(); + /** + * Decodes a DeleteExperimentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest} DeleteExperimentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteExperimentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - WebhookRequest.IntentInfo = (function() { + /** + * Verifies a DeleteExperimentRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteExperimentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; - /** - * Properties of an IntentInfo. - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest - * @interface IIntentInfo - * @property {string|null} [lastMatchedIntent] IntentInfo lastMatchedIntent - * @property {string|null} [displayName] IntentInfo displayName - * @property {Object.|null} [parameters] IntentInfo parameters - * @property {number|null} [confidence] IntentInfo confidence - */ + /** + * Creates a DeleteExperimentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest} DeleteExperimentRequest + */ + DeleteExperimentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - /** - * Constructs a new IntentInfo. - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest - * @classdesc Represents an IntentInfo. - * @implements IIntentInfo - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IIntentInfo=} [properties] Properties to set - */ - function IntentInfo(properties) { - this.parameters = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Creates a plain object from a DeleteExperimentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest} message DeleteExperimentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteExperimentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; - /** - * IntentInfo lastMatchedIntent. - * @member {string} lastMatchedIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo - * @instance - */ - IntentInfo.prototype.lastMatchedIntent = ""; + /** + * Converts this DeleteExperimentRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteExperimentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * IntentInfo displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo - * @instance - */ - IntentInfo.prototype.displayName = ""; + return DeleteExperimentRequest; + })(); - /** - * IntentInfo parameters. - * @member {Object.} parameters - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo - * @instance - */ - IntentInfo.prototype.parameters = $util.emptyObject; + v3beta1.StartExperimentRequest = (function() { - /** - * IntentInfo confidence. - * @member {number} confidence - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo - * @instance - */ - IntentInfo.prototype.confidence = 0; + /** + * Properties of a StartExperimentRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IStartExperimentRequest + * @property {string|null} [name] StartExperimentRequest name + */ - /** - * Creates a new IntentInfo instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IIntentInfo=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo} IntentInfo instance - */ - IntentInfo.create = function create(properties) { - return new IntentInfo(properties); - }; + /** + * Constructs a new StartExperimentRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a StartExperimentRequest. + * @implements IStartExperimentRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest=} [properties] Properties to set + */ + function StartExperimentRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified IntentInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IIntentInfo} message IntentInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IntentInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.lastMatchedIntent != null && Object.hasOwnProperty.call(message, "lastMatchedIntent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.lastMatchedIntent); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - for (var keys = Object.keys(message.parameters), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue.encode(message.parameters[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); - if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) - writer.uint32(/* id 4, wireType 5 =*/37).float(message.confidence); - return writer; - }; + /** + * StartExperimentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest + * @instance + */ + StartExperimentRequest.prototype.name = ""; - /** - * Encodes the specified IntentInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IIntentInfo} message IntentInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IntentInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new StartExperimentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest} StartExperimentRequest instance + */ + StartExperimentRequest.create = function create(properties) { + return new StartExperimentRequest(properties); + }; - /** - * Decodes an IntentInfo message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo} IntentInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IntentInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.lastMatchedIntent = reader.string(); - break; - case 3: - message.displayName = reader.string(); - break; - case 2: - if (message.parameters === $util.emptyObject) - message.parameters = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.parameters[key] = value; - break; - case 4: - message.confidence = reader.float(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified StartExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest} message StartExperimentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StartExperimentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; - /** - * Decodes an IntentInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo} IntentInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IntentInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified StartExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest} message StartExperimentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StartExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies an IntentInfo message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - IntentInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.lastMatchedIntent != null && message.hasOwnProperty("lastMatchedIntent")) - if (!$util.isString(message.lastMatchedIntent)) - return "lastMatchedIntent: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.parameters != null && message.hasOwnProperty("parameters")) { - if (!$util.isObject(message.parameters)) - return "parameters: object expected"; - var key = Object.keys(message.parameters); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue.verify(message.parameters[key[i]]); - if (error) - return "parameters." + error; - } + /** + * Decodes a StartExperimentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest} StartExperimentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StartExperimentRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; } - if (message.confidence != null && message.hasOwnProperty("confidence")) - if (typeof message.confidence !== "number") - return "confidence: number expected"; - return null; - }; + } + return message; + }; - /** - * Creates an IntentInfo message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo} IntentInfo - */ - IntentInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo(); - if (object.lastMatchedIntent != null) - message.lastMatchedIntent = String(object.lastMatchedIntent); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.parameters) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.parameters: object expected"); - message.parameters = {}; - for (var keys = Object.keys(object.parameters), i = 0; i < keys.length; ++i) { - if (typeof object.parameters[keys[i]] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.parameters: object expected"); - message.parameters[keys[i]] = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue.fromObject(object.parameters[keys[i]]); - } - } - if (object.confidence != null) - message.confidence = Number(object.confidence); - return message; - }; + /** + * Decodes a StartExperimentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest} StartExperimentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StartExperimentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from an IntentInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo} message IntentInfo - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - IntentInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) - object.parameters = {}; - if (options.defaults) { - object.lastMatchedIntent = ""; - object.displayName = ""; - object.confidence = 0; - } - if (message.lastMatchedIntent != null && message.hasOwnProperty("lastMatchedIntent")) - object.lastMatchedIntent = message.lastMatchedIntent; - var keys2; - if (message.parameters && (keys2 = Object.keys(message.parameters)).length) { - object.parameters = {}; - for (var j = 0; j < keys2.length; ++j) - object.parameters[keys2[j]] = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue.toObject(message.parameters[keys2[j]], options); - } - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.confidence != null && message.hasOwnProperty("confidence")) - object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; + /** + * Verifies a StartExperimentRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StartExperimentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a StartExperimentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest} StartExperimentRequest + */ + StartExperimentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest) return object; - }; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a StartExperimentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest} message StartExperimentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StartExperimentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this StartExperimentRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest + * @instance + * @returns {Object.} JSON object + */ + StartExperimentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this IntentInfo to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo - * @instance - * @returns {Object.} JSON object - */ - IntentInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return StartExperimentRequest; + })(); - IntentInfo.IntentParameterValue = (function() { + v3beta1.StopExperimentRequest = (function() { - /** - * Properties of an IntentParameterValue. - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo - * @interface IIntentParameterValue - * @property {string|null} [originalValue] IntentParameterValue originalValue - * @property {google.protobuf.IValue|null} [resolvedValue] IntentParameterValue resolvedValue - */ + /** + * Properties of a StopExperimentRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IStopExperimentRequest + * @property {string|null} [name] StopExperimentRequest name + */ - /** - * Constructs a new IntentParameterValue. - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo - * @classdesc Represents an IntentParameterValue. - * @implements IIntentParameterValue - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IIntentParameterValue=} [properties] Properties to set - */ - function IntentParameterValue(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new StopExperimentRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a StopExperimentRequest. + * @implements IStopExperimentRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest=} [properties] Properties to set + */ + function StopExperimentRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * IntentParameterValue originalValue. - * @member {string} originalValue - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue - * @instance - */ - IntentParameterValue.prototype.originalValue = ""; + /** + * StopExperimentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest + * @instance + */ + StopExperimentRequest.prototype.name = ""; - /** - * IntentParameterValue resolvedValue. - * @member {google.protobuf.IValue|null|undefined} resolvedValue - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue - * @instance - */ - IntentParameterValue.prototype.resolvedValue = null; + /** + * Creates a new StopExperimentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest} StopExperimentRequest instance + */ + StopExperimentRequest.create = function create(properties) { + return new StopExperimentRequest(properties); + }; - /** - * Creates a new IntentParameterValue instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IIntentParameterValue=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue} IntentParameterValue instance - */ - IntentParameterValue.create = function create(properties) { - return new IntentParameterValue(properties); - }; + /** + * Encodes the specified StopExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest} message StopExperimentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StopExperimentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; - /** - * Encodes the specified IntentParameterValue message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IIntentParameterValue} message IntentParameterValue message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IntentParameterValue.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.originalValue != null && Object.hasOwnProperty.call(message, "originalValue")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.originalValue); - if (message.resolvedValue != null && Object.hasOwnProperty.call(message, "resolvedValue")) - $root.google.protobuf.Value.encode(message.resolvedValue, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified StopExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest} message StopExperimentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StopExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified IntentParameterValue message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IIntentParameterValue} message IntentParameterValue message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IntentParameterValue.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a StopExperimentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest} StopExperimentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StopExperimentRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Decodes an IntentParameterValue message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue} IntentParameterValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IntentParameterValue.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.originalValue = reader.string(); - break; - case 2: - message.resolvedValue = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Decodes a StopExperimentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest} StopExperimentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StopExperimentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes an IntentParameterValue message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue} IntentParameterValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IntentParameterValue.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Verifies a StopExperimentRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StopExperimentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; - /** - * Verifies an IntentParameterValue message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - IntentParameterValue.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.originalValue != null && message.hasOwnProperty("originalValue")) - if (!$util.isString(message.originalValue)) - return "originalValue: string expected"; - if (message.resolvedValue != null && message.hasOwnProperty("resolvedValue")) { - var error = $root.google.protobuf.Value.verify(message.resolvedValue); - if (error) - return "resolvedValue." + error; - } - return null; - }; + /** + * Creates a StopExperimentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest} StopExperimentRequest + */ + StopExperimentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - /** - * Creates an IntentParameterValue message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue} IntentParameterValue - */ - IntentParameterValue.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue(); - if (object.originalValue != null) - message.originalValue = String(object.originalValue); - if (object.resolvedValue != null) { - if (typeof object.resolvedValue !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue.resolvedValue: object expected"); - message.resolvedValue = $root.google.protobuf.Value.fromObject(object.resolvedValue); - } - return message; - }; + /** + * Creates a plain object from a StopExperimentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest} message StopExperimentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StopExperimentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; - /** - * Creates a plain object from an IntentParameterValue message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue} message IntentParameterValue - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - IntentParameterValue.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.originalValue = ""; - object.resolvedValue = null; - } - if (message.originalValue != null && message.hasOwnProperty("originalValue")) - object.originalValue = message.originalValue; - if (message.resolvedValue != null && message.hasOwnProperty("resolvedValue")) - object.resolvedValue = $root.google.protobuf.Value.toObject(message.resolvedValue, options); - return object; - }; + /** + * Converts this StopExperimentRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest + * @instance + * @returns {Object.} JSON object + */ + StopExperimentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this IntentParameterValue to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue - * @instance - * @returns {Object.} JSON object - */ - IntentParameterValue.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return StopExperimentRequest; + })(); - return IntentParameterValue; - })(); + v3beta1.SecuritySettingsService = (function() { - return IntentInfo; - })(); + /** + * Constructs a new SecuritySettingsService service. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a SecuritySettingsService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function SecuritySettingsService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } - WebhookRequest.SentimentAnalysisResult = (function() { + (SecuritySettingsService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = SecuritySettingsService; - /** - * Properties of a SentimentAnalysisResult. - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest - * @interface ISentimentAnalysisResult - * @property {number|null} [score] SentimentAnalysisResult score - * @property {number|null} [magnitude] SentimentAnalysisResult magnitude - */ + /** + * Creates new SecuritySettingsService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {SecuritySettingsService} RPC service. Useful where requests and/or responses are streamed. + */ + SecuritySettingsService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; - /** - * Constructs a new SentimentAnalysisResult. - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest - * @classdesc Represents a SentimentAnalysisResult. - * @implements ISentimentAnalysisResult - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.ISentimentAnalysisResult=} [properties] Properties to set - */ - function SentimentAnalysisResult(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService#createSecuritySettings}. + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService + * @typedef CreateSecuritySettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.SecuritySettings} [response] SecuritySettings + */ - /** - * SentimentAnalysisResult score. - * @member {number} score - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult - * @instance - */ - SentimentAnalysisResult.prototype.score = 0; + /** + * Calls CreateSecuritySettings. + * @function createSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSecuritySettingsRequest} request CreateSecuritySettingsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.CreateSecuritySettingsCallback} callback Node-style callback called with the error, if any, and SecuritySettings + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecuritySettingsService.prototype.createSecuritySettings = function createSecuritySettings(request, callback) { + return this.rpcCall(createSecuritySettings, $root.google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest, $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings, request, callback); + }, "name", { value: "CreateSecuritySettings" }); - /** - * SentimentAnalysisResult magnitude. - * @member {number} magnitude - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult - * @instance - */ - SentimentAnalysisResult.prototype.magnitude = 0; + /** + * Calls CreateSecuritySettings. + * @function createSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSecuritySettingsRequest} request CreateSecuritySettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Creates a new SentimentAnalysisResult instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.ISentimentAnalysisResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult} SentimentAnalysisResult instance - */ - SentimentAnalysisResult.create = function create(properties) { - return new SentimentAnalysisResult(properties); - }; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService#getSecuritySettings}. + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService + * @typedef GetSecuritySettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.SecuritySettings} [response] SecuritySettings + */ + + /** + * Calls GetSecuritySettings. + * @function getSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetSecuritySettingsRequest} request GetSecuritySettingsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.GetSecuritySettingsCallback} callback Node-style callback called with the error, if any, and SecuritySettings + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecuritySettingsService.prototype.getSecuritySettings = function getSecuritySettings(request, callback) { + return this.rpcCall(getSecuritySettings, $root.google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest, $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings, request, callback); + }, "name", { value: "GetSecuritySettings" }); - /** - * Encodes the specified SentimentAnalysisResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.ISentimentAnalysisResult} message SentimentAnalysisResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SentimentAnalysisResult.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.score != null && Object.hasOwnProperty.call(message, "score")) - writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); - if (message.magnitude != null && Object.hasOwnProperty.call(message, "magnitude")) - writer.uint32(/* id 2, wireType 5 =*/21).float(message.magnitude); - return writer; - }; + /** + * Calls GetSecuritySettings. + * @function getSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetSecuritySettingsRequest} request GetSecuritySettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Encodes the specified SentimentAnalysisResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.ISentimentAnalysisResult} message SentimentAnalysisResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SentimentAnalysisResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService#updateSecuritySettings}. + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService + * @typedef UpdateSecuritySettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.SecuritySettings} [response] SecuritySettings + */ - /** - * Decodes a SentimentAnalysisResult message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult} SentimentAnalysisResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SentimentAnalysisResult.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.score = reader.float(); - break; - case 2: - message.magnitude = reader.float(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Calls UpdateSecuritySettings. + * @function updateSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSecuritySettingsRequest} request UpdateSecuritySettingsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.UpdateSecuritySettingsCallback} callback Node-style callback called with the error, if any, and SecuritySettings + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecuritySettingsService.prototype.updateSecuritySettings = function updateSecuritySettings(request, callback) { + return this.rpcCall(updateSecuritySettings, $root.google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest, $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings, request, callback); + }, "name", { value: "UpdateSecuritySettings" }); - /** - * Decodes a SentimentAnalysisResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult} SentimentAnalysisResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SentimentAnalysisResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Calls UpdateSecuritySettings. + * @function updateSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSecuritySettingsRequest} request UpdateSecuritySettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Verifies a SentimentAnalysisResult message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SentimentAnalysisResult.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.score != null && message.hasOwnProperty("score")) - if (typeof message.score !== "number") - return "score: number expected"; - if (message.magnitude != null && message.hasOwnProperty("magnitude")) - if (typeof message.magnitude !== "number") - return "magnitude: number expected"; - return null; - }; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService#listSecuritySettings}. + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService + * @typedef ListSecuritySettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse} [response] ListSecuritySettingsResponse + */ - /** - * Creates a SentimentAnalysisResult message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult} SentimentAnalysisResult - */ - SentimentAnalysisResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult(); - if (object.score != null) - message.score = Number(object.score); - if (object.magnitude != null) - message.magnitude = Number(object.magnitude); - return message; - }; + /** + * Calls ListSecuritySettings. + * @function listSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsRequest} request ListSecuritySettingsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.ListSecuritySettingsCallback} callback Node-style callback called with the error, if any, and ListSecuritySettingsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecuritySettingsService.prototype.listSecuritySettings = function listSecuritySettings(request, callback) { + return this.rpcCall(listSecuritySettings, $root.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse, request, callback); + }, "name", { value: "ListSecuritySettings" }); - /** - * Creates a plain object from a SentimentAnalysisResult message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult} message SentimentAnalysisResult - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SentimentAnalysisResult.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.score = 0; - object.magnitude = 0; - } - if (message.score != null && message.hasOwnProperty("score")) - object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; - if (message.magnitude != null && message.hasOwnProperty("magnitude")) - object.magnitude = options.json && !isFinite(message.magnitude) ? String(message.magnitude) : message.magnitude; - return object; - }; + /** + * Calls ListSecuritySettings. + * @function listSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsRequest} request ListSecuritySettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Converts this SentimentAnalysisResult to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult - * @instance - * @returns {Object.} JSON object - */ - SentimentAnalysisResult.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService#deleteSecuritySettings}. + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService + * @typedef DeleteSecuritySettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ - return SentimentAnalysisResult; - })(); + /** + * Calls DeleteSecuritySettings. + * @function deleteSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSecuritySettingsRequest} request DeleteSecuritySettingsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.DeleteSecuritySettingsCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecuritySettingsService.prototype.deleteSecuritySettings = function deleteSecuritySettings(request, callback) { + return this.rpcCall(deleteSecuritySettings, $root.google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteSecuritySettings" }); - return WebhookRequest; + /** + * Calls DeleteSecuritySettings. + * @function deleteSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSecuritySettingsRequest} request DeleteSecuritySettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return SecuritySettingsService; })(); - v3beta1.WebhookResponse = (function() { + v3beta1.GetSecuritySettingsRequest = (function() { /** - * Properties of a WebhookResponse. + * Properties of a GetSecuritySettingsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IWebhookResponse - * @property {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.IFulfillmentResponse|null} [fulfillmentResponse] WebhookResponse fulfillmentResponse - * @property {google.cloud.dialogflow.cx.v3beta1.IPageInfo|null} [pageInfo] WebhookResponse pageInfo - * @property {google.cloud.dialogflow.cx.v3beta1.ISessionInfo|null} [sessionInfo] WebhookResponse sessionInfo - * @property {google.protobuf.IStruct|null} [payload] WebhookResponse payload - * @property {string|null} [targetPage] WebhookResponse targetPage - * @property {string|null} [targetFlow] WebhookResponse targetFlow + * @interface IGetSecuritySettingsRequest + * @property {string|null} [name] GetSecuritySettingsRequest name */ /** - * Constructs a new WebhookResponse. + * Constructs a new GetSecuritySettingsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a WebhookResponse. - * @implements IWebhookResponse + * @classdesc Represents a GetSecuritySettingsRequest. + * @implements IGetSecuritySettingsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IWebhookResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IGetSecuritySettingsRequest=} [properties] Properties to set */ - function WebhookResponse(properties) { + function GetSecuritySettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -121335,154 +120853,276 @@ } /** - * WebhookResponse fulfillmentResponse. - * @member {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.IFulfillmentResponse|null|undefined} fulfillmentResponse - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse + * GetSecuritySettingsRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest * @instance */ - WebhookResponse.prototype.fulfillmentResponse = null; + GetSecuritySettingsRequest.prototype.name = ""; /** - * WebhookResponse pageInfo. - * @member {google.cloud.dialogflow.cx.v3beta1.IPageInfo|null|undefined} pageInfo - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse - * @instance + * Creates a new GetSecuritySettingsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGetSecuritySettingsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest} GetSecuritySettingsRequest instance */ - WebhookResponse.prototype.pageInfo = null; + GetSecuritySettingsRequest.create = function create(properties) { + return new GetSecuritySettingsRequest(properties); + }; /** - * WebhookResponse sessionInfo. - * @member {google.cloud.dialogflow.cx.v3beta1.ISessionInfo|null|undefined} sessionInfo - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse - * @instance + * Encodes the specified GetSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGetSecuritySettingsRequest} message GetSecuritySettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - WebhookResponse.prototype.sessionInfo = null; + GetSecuritySettingsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; /** - * WebhookResponse payload. - * @member {google.protobuf.IStruct|null|undefined} payload - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse - * @instance + * Encodes the specified GetSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGetSecuritySettingsRequest} message GetSecuritySettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - WebhookResponse.prototype.payload = null; + GetSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * WebhookResponse targetPage. - * @member {string|null|undefined} targetPage - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse - * @instance + * Decodes a GetSecuritySettingsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest} GetSecuritySettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WebhookResponse.prototype.targetPage = null; + GetSecuritySettingsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * WebhookResponse targetFlow. - * @member {string|null|undefined} targetFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse + * Decodes a GetSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest} GetSecuritySettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetSecuritySettingsRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetSecuritySettingsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest} GetSecuritySettingsRequest + */ + GetSecuritySettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetSecuritySettingsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest} message GetSecuritySettingsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetSecuritySettingsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetSecuritySettingsRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest * @instance + * @returns {Object.} JSON object */ - WebhookResponse.prototype.targetFlow = null; + GetSecuritySettingsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + return GetSecuritySettingsRequest; + })(); + + v3beta1.UpdateSecuritySettingsRequest = (function() { /** - * WebhookResponse transition. - * @member {"targetPage"|"targetFlow"|undefined} transition - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse + * Properties of an UpdateSecuritySettingsRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IUpdateSecuritySettingsRequest + * @property {google.cloud.dialogflow.cx.v3beta1.ISecuritySettings|null} [securitySettings] UpdateSecuritySettingsRequest securitySettings + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSecuritySettingsRequest updateMask + */ + + /** + * Constructs a new UpdateSecuritySettingsRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents an UpdateSecuritySettingsRequest. + * @implements IUpdateSecuritySettingsRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSecuritySettingsRequest=} [properties] Properties to set + */ + function UpdateSecuritySettingsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UpdateSecuritySettingsRequest securitySettings. + * @member {google.cloud.dialogflow.cx.v3beta1.ISecuritySettings|null|undefined} securitySettings + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest * @instance */ - Object.defineProperty(WebhookResponse.prototype, "transition", { - get: $util.oneOfGetter($oneOfFields = ["targetPage", "targetFlow"]), - set: $util.oneOfSetter($oneOfFields) - }); + UpdateSecuritySettingsRequest.prototype.securitySettings = null; /** - * Creates a new WebhookResponse instance using the specified properties. + * UpdateSecuritySettingsRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest + * @instance + */ + UpdateSecuritySettingsRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateSecuritySettingsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IWebhookResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookResponse} WebhookResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSecuritySettingsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest} UpdateSecuritySettingsRequest instance */ - WebhookResponse.create = function create(properties) { - return new WebhookResponse(properties); + UpdateSecuritySettingsRequest.create = function create(properties) { + return new UpdateSecuritySettingsRequest(properties); }; /** - * Encodes the specified WebhookResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookResponse.verify|verify} messages. + * Encodes the specified UpdateSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IWebhookResponse} message WebhookResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSecuritySettingsRequest} message UpdateSecuritySettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WebhookResponse.encode = function encode(message, writer) { + UpdateSecuritySettingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.fulfillmentResponse != null && Object.hasOwnProperty.call(message, "fulfillmentResponse")) - $root.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.encode(message.fulfillmentResponse, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.pageInfo != null && Object.hasOwnProperty.call(message, "pageInfo")) - $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.encode(message.pageInfo, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.sessionInfo != null && Object.hasOwnProperty.call(message, "sessionInfo")) - $root.google.cloud.dialogflow.cx.v3beta1.SessionInfo.encode(message.sessionInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) - $root.google.protobuf.Struct.encode(message.payload, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.targetPage != null && Object.hasOwnProperty.call(message, "targetPage")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.targetPage); - if (message.targetFlow != null && Object.hasOwnProperty.call(message, "targetFlow")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.targetFlow); + if (message.securitySettings != null && Object.hasOwnProperty.call(message, "securitySettings")) + $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.encode(message.securitySettings, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified WebhookResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookResponse.verify|verify} messages. + * Encodes the specified UpdateSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IWebhookResponse} message WebhookResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSecuritySettingsRequest} message UpdateSecuritySettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WebhookResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WebhookResponse message from the specified reader or buffer. + * Decodes an UpdateSecuritySettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookResponse} WebhookResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest} UpdateSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WebhookResponse.decode = function decode(reader, length) { + UpdateSecuritySettingsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.WebhookResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.fulfillmentResponse = $root.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.decode(reader, reader.uint32()); + message.securitySettings = $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.decode(reader, reader.uint32()); break; case 2: - message.pageInfo = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.decode(reader, reader.uint32()); - break; - case 3: - message.sessionInfo = $root.google.cloud.dialogflow.cx.v3beta1.SessionInfo.decode(reader, reader.uint32()); - break; - case 4: - message.payload = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 5: - message.targetPage = reader.string(); - break; - case 6: - message.targetFlow = reader.string(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -121493,446 +121133,128 @@ }; /** - * Decodes a WebhookResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateSecuritySettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookResponse} WebhookResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest} UpdateSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WebhookResponse.decodeDelimited = function decodeDelimited(reader) { + UpdateSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WebhookResponse message. + * Verifies an UpdateSecuritySettingsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WebhookResponse.verify = function verify(message) { + UpdateSecuritySettingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.fulfillmentResponse != null && message.hasOwnProperty("fulfillmentResponse")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.verify(message.fulfillmentResponse); - if (error) - return "fulfillmentResponse." + error; - } - if (message.pageInfo != null && message.hasOwnProperty("pageInfo")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.verify(message.pageInfo); - if (error) - return "pageInfo." + error; - } - if (message.sessionInfo != null && message.hasOwnProperty("sessionInfo")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.SessionInfo.verify(message.sessionInfo); + if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.verify(message.securitySettings); if (error) - return "sessionInfo." + error; + return "securitySettings." + error; } - if (message.payload != null && message.hasOwnProperty("payload")) { - var error = $root.google.protobuf.Struct.verify(message.payload); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); if (error) - return "payload." + error; - } - if (message.targetPage != null && message.hasOwnProperty("targetPage")) { - properties.transition = 1; - if (!$util.isString(message.targetPage)) - return "targetPage: string expected"; - } - if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { - if (properties.transition === 1) - return "transition: multiple values"; - properties.transition = 1; - if (!$util.isString(message.targetFlow)) - return "targetFlow: string expected"; + return "updateMask." + error; } return null; }; /** - * Creates a WebhookResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookResponse} WebhookResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest} UpdateSecuritySettingsRequest */ - WebhookResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.WebhookResponse) + UpdateSecuritySettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.WebhookResponse(); - if (object.fulfillmentResponse != null) { - if (typeof object.fulfillmentResponse !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookResponse.fulfillmentResponse: object expected"); - message.fulfillmentResponse = $root.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.fromObject(object.fulfillmentResponse); - } - if (object.pageInfo != null) { - if (typeof object.pageInfo !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookResponse.pageInfo: object expected"); - message.pageInfo = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.fromObject(object.pageInfo); - } - if (object.sessionInfo != null) { - if (typeof object.sessionInfo !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookResponse.sessionInfo: object expected"); - message.sessionInfo = $root.google.cloud.dialogflow.cx.v3beta1.SessionInfo.fromObject(object.sessionInfo); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest(); + if (object.securitySettings != null) { + if (typeof object.securitySettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest.securitySettings: object expected"); + message.securitySettings = $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.fromObject(object.securitySettings); } - if (object.payload != null) { - if (typeof object.payload !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookResponse.payload: object expected"); - message.payload = $root.google.protobuf.Struct.fromObject(object.payload); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } - if (object.targetPage != null) - message.targetPage = String(object.targetPage); - if (object.targetFlow != null) - message.targetFlow = String(object.targetFlow); return message; }; /** - * Creates a plain object from a WebhookResponse message. Also converts values to other types if specified. + * Creates a plain object from an UpdateSecuritySettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookResponse} message WebhookResponse + * @param {google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest} message UpdateSecuritySettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WebhookResponse.toObject = function toObject(message, options) { + UpdateSecuritySettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.fulfillmentResponse = null; - object.pageInfo = null; - object.sessionInfo = null; - object.payload = null; - } - if (message.fulfillmentResponse != null && message.hasOwnProperty("fulfillmentResponse")) - object.fulfillmentResponse = $root.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.toObject(message.fulfillmentResponse, options); - if (message.pageInfo != null && message.hasOwnProperty("pageInfo")) - object.pageInfo = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.toObject(message.pageInfo, options); - if (message.sessionInfo != null && message.hasOwnProperty("sessionInfo")) - object.sessionInfo = $root.google.cloud.dialogflow.cx.v3beta1.SessionInfo.toObject(message.sessionInfo, options); - if (message.payload != null && message.hasOwnProperty("payload")) - object.payload = $root.google.protobuf.Struct.toObject(message.payload, options); - if (message.targetPage != null && message.hasOwnProperty("targetPage")) { - object.targetPage = message.targetPage; - if (options.oneofs) - object.transition = "targetPage"; - } - if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { - object.targetFlow = message.targetFlow; - if (options.oneofs) - object.transition = "targetFlow"; + object.securitySettings = null; + object.updateMask = null; } + if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) + object.securitySettings = $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.toObject(message.securitySettings, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this WebhookResponse to JSON. + * Converts this UpdateSecuritySettingsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest * @instance * @returns {Object.} JSON object */ - WebhookResponse.prototype.toJSON = function toJSON() { + UpdateSecuritySettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - WebhookResponse.FulfillmentResponse = (function() { - - /** - * Properties of a FulfillmentResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse - * @interface IFulfillmentResponse - * @property {Array.|null} [messages] FulfillmentResponse messages - * @property {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior|null} [mergeBehavior] FulfillmentResponse mergeBehavior - */ - - /** - * Constructs a new FulfillmentResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse - * @classdesc Represents a FulfillmentResponse. - * @implements IFulfillmentResponse - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.IFulfillmentResponse=} [properties] Properties to set - */ - function FulfillmentResponse(properties) { - this.messages = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FulfillmentResponse messages. - * @member {Array.} messages - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse - * @instance - */ - FulfillmentResponse.prototype.messages = $util.emptyArray; - - /** - * FulfillmentResponse mergeBehavior. - * @member {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior} mergeBehavior - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse - * @instance - */ - FulfillmentResponse.prototype.mergeBehavior = 0; - - /** - * Creates a new FulfillmentResponse instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.IFulfillmentResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse} FulfillmentResponse instance - */ - FulfillmentResponse.create = function create(properties) { - return new FulfillmentResponse(properties); - }; - - /** - * Encodes the specified FulfillmentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.IFulfillmentResponse} message FulfillmentResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FulfillmentResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.messages != null && message.messages.length) - for (var i = 0; i < message.messages.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.encode(message.messages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.mergeBehavior != null && Object.hasOwnProperty.call(message, "mergeBehavior")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.mergeBehavior); - return writer; - }; - - /** - * Encodes the specified FulfillmentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.IFulfillmentResponse} message FulfillmentResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FulfillmentResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FulfillmentResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse} FulfillmentResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FulfillmentResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.messages && message.messages.length)) - message.messages = []; - message.messages.push($root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.decode(reader, reader.uint32())); - break; - case 2: - message.mergeBehavior = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FulfillmentResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse} FulfillmentResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FulfillmentResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FulfillmentResponse message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FulfillmentResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.messages != null && message.hasOwnProperty("messages")) { - if (!Array.isArray(message.messages)) - return "messages: array expected"; - for (var i = 0; i < message.messages.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify(message.messages[i]); - if (error) - return "messages." + error; - } - } - if (message.mergeBehavior != null && message.hasOwnProperty("mergeBehavior")) - switch (message.mergeBehavior) { - default: - return "mergeBehavior: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; - - /** - * Creates a FulfillmentResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse} FulfillmentResponse - */ - FulfillmentResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse(); - if (object.messages) { - if (!Array.isArray(object.messages)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.messages: array expected"); - message.messages = []; - for (var i = 0; i < object.messages.length; ++i) { - if (typeof object.messages[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.messages: object expected"); - message.messages[i] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.fromObject(object.messages[i]); - } - } - switch (object.mergeBehavior) { - case "MERGE_BEHAVIOR_UNSPECIFIED": - case 0: - message.mergeBehavior = 0; - break; - case "APPEND": - case 1: - message.mergeBehavior = 1; - break; - case "REPLACE": - case 2: - message.mergeBehavior = 2; - break; - } - return message; - }; - - /** - * Creates a plain object from a FulfillmentResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse} message FulfillmentResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FulfillmentResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.messages = []; - if (options.defaults) - object.mergeBehavior = options.enums === String ? "MERGE_BEHAVIOR_UNSPECIFIED" : 0; - if (message.messages && message.messages.length) { - object.messages = []; - for (var j = 0; j < message.messages.length; ++j) - object.messages[j] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.toObject(message.messages[j], options); - } - if (message.mergeBehavior != null && message.hasOwnProperty("mergeBehavior")) - object.mergeBehavior = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior[message.mergeBehavior] : message.mergeBehavior; - return object; - }; - - /** - * Converts this FulfillmentResponse to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse - * @instance - * @returns {Object.} JSON object - */ - FulfillmentResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * MergeBehavior enum. - * @name google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior - * @enum {number} - * @property {number} MERGE_BEHAVIOR_UNSPECIFIED=0 MERGE_BEHAVIOR_UNSPECIFIED value - * @property {number} APPEND=1 APPEND value - * @property {number} REPLACE=2 REPLACE value - */ - FulfillmentResponse.MergeBehavior = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MERGE_BEHAVIOR_UNSPECIFIED"] = 0; - values[valuesById[1] = "APPEND"] = 1; - values[valuesById[2] = "REPLACE"] = 2; - return values; - })(); - - return FulfillmentResponse; - })(); - - return WebhookResponse; + return UpdateSecuritySettingsRequest; })(); - v3beta1.PageInfo = (function() { + v3beta1.ListSecuritySettingsRequest = (function() { /** - * Properties of a PageInfo. + * Properties of a ListSecuritySettingsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IPageInfo - * @property {string|null} [currentPage] PageInfo currentPage - * @property {string|null} [displayName] PageInfo displayName - * @property {google.cloud.dialogflow.cx.v3beta1.PageInfo.IFormInfo|null} [formInfo] PageInfo formInfo + * @interface IListSecuritySettingsRequest + * @property {string|null} [parent] ListSecuritySettingsRequest parent + * @property {number|null} [pageSize] ListSecuritySettingsRequest pageSize + * @property {string|null} [pageToken] ListSecuritySettingsRequest pageToken */ /** - * Constructs a new PageInfo. + * Constructs a new ListSecuritySettingsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a PageInfo. - * @implements IPageInfo + * @classdesc Represents a ListSecuritySettingsRequest. + * @implements IListSecuritySettingsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IPageInfo=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsRequest=} [properties] Properties to set */ - function PageInfo(properties) { + function ListSecuritySettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -121940,101 +121262,101 @@ } /** - * PageInfo currentPage. - * @member {string} currentPage - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo + * ListSecuritySettingsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest * @instance */ - PageInfo.prototype.currentPage = ""; + ListSecuritySettingsRequest.prototype.parent = ""; /** - * PageInfo displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo + * ListSecuritySettingsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest * @instance */ - PageInfo.prototype.displayName = ""; + ListSecuritySettingsRequest.prototype.pageSize = 0; /** - * PageInfo formInfo. - * @member {google.cloud.dialogflow.cx.v3beta1.PageInfo.IFormInfo|null|undefined} formInfo - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo + * ListSecuritySettingsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest * @instance */ - PageInfo.prototype.formInfo = null; + ListSecuritySettingsRequest.prototype.pageToken = ""; /** - * Creates a new PageInfo instance using the specified properties. + * Creates a new ListSecuritySettingsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IPageInfo=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.PageInfo} PageInfo instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest} ListSecuritySettingsRequest instance */ - PageInfo.create = function create(properties) { - return new PageInfo(properties); + ListSecuritySettingsRequest.create = function create(properties) { + return new ListSecuritySettingsRequest(properties); }; /** - * Encodes the specified PageInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.PageInfo.verify|verify} messages. + * Encodes the specified ListSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IPageInfo} message PageInfo message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsRequest} message ListSecuritySettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PageInfo.encode = function encode(message, writer) { + ListSecuritySettingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.currentPage); - if (message.formInfo != null && Object.hasOwnProperty.call(message, "formInfo")) - $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.encode(message.formInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.displayName); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified PageInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.PageInfo.verify|verify} messages. + * Encodes the specified ListSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IPageInfo} message PageInfo message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsRequest} message ListSecuritySettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PageInfo.encodeDelimited = function encodeDelimited(message, writer) { + ListSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PageInfo message from the specified reader or buffer. + * Decodes a ListSecuritySettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.PageInfo} PageInfo + * @returns {google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest} ListSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PageInfo.decode = function decode(reader, length) { + ListSecuritySettingsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.PageInfo(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.currentPage = reader.string(); + message.parent = reader.string(); break; - case 4: - message.displayName = reader.string(); + case 2: + message.pageSize = reader.int32(); break; case 3: - message.formInfo = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.decode(reader, reader.uint32()); + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -122045,661 +121367,570 @@ }; /** - * Decodes a PageInfo message from the specified reader or buffer, length delimited. + * Decodes a ListSecuritySettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.PageInfo} PageInfo + * @returns {google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest} ListSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PageInfo.decodeDelimited = function decodeDelimited(reader) { + ListSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PageInfo message. + * Verifies a ListSecuritySettingsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PageInfo.verify = function verify(message) { + ListSecuritySettingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.currentPage != null && message.hasOwnProperty("currentPage")) - if (!$util.isString(message.currentPage)) - return "currentPage: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.formInfo != null && message.hasOwnProperty("formInfo")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.verify(message.formInfo); - if (error) - return "formInfo." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a PageInfo message from a plain object. Also converts values to their respective internal types. + * Creates a ListSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.PageInfo} PageInfo + * @returns {google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest} ListSecuritySettingsRequest */ - PageInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.PageInfo) + ListSecuritySettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.PageInfo(); - if (object.currentPage != null) - message.currentPage = String(object.currentPage); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.formInfo != null) { - if (typeof object.formInfo !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.PageInfo.formInfo: object expected"); - message.formInfo = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.fromObject(object.formInfo); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a PageInfo message. Also converts values to other types if specified. + * Creates a plain object from a ListSecuritySettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.PageInfo} message PageInfo + * @param {google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest} message ListSecuritySettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PageInfo.toObject = function toObject(message, options) { + ListSecuritySettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.currentPage = ""; - object.formInfo = null; - object.displayName = ""; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.currentPage != null && message.hasOwnProperty("currentPage")) - object.currentPage = message.currentPage; - if (message.formInfo != null && message.hasOwnProperty("formInfo")) - object.formInfo = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.toObject(message.formInfo, options); - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this PageInfo to JSON. + * Converts this ListSecuritySettingsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest * @instance * @returns {Object.} JSON object */ - PageInfo.prototype.toJSON = function toJSON() { + ListSecuritySettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - PageInfo.FormInfo = (function() { + return ListSecuritySettingsRequest; + })(); - /** - * Properties of a FormInfo. - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo - * @interface IFormInfo - * @property {Array.|null} [parameterInfo] FormInfo parameterInfo - */ + v3beta1.ListSecuritySettingsResponse = (function() { - /** - * Constructs a new FormInfo. - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo - * @classdesc Represents a FormInfo. - * @implements IFormInfo - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.PageInfo.IFormInfo=} [properties] Properties to set - */ - function FormInfo(properties) { - this.parameterInfo = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a ListSecuritySettingsResponse. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IListSecuritySettingsResponse + * @property {Array.|null} [securitySettings] ListSecuritySettingsResponse securitySettings + * @property {string|null} [nextPageToken] ListSecuritySettingsResponse nextPageToken + */ - /** - * FormInfo parameterInfo. - * @member {Array.} parameterInfo - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo - * @instance - */ - FormInfo.prototype.parameterInfo = $util.emptyArray; + /** + * Constructs a new ListSecuritySettingsResponse. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a ListSecuritySettingsResponse. + * @implements IListSecuritySettingsResponse + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsResponse=} [properties] Properties to set + */ + function ListSecuritySettingsResponse(properties) { + this.securitySettings = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a new FormInfo instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.PageInfo.IFormInfo=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo} FormInfo instance - */ - FormInfo.create = function create(properties) { - return new FormInfo(properties); - }; + /** + * ListSecuritySettingsResponse securitySettings. + * @member {Array.} securitySettings + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse + * @instance + */ + ListSecuritySettingsResponse.prototype.securitySettings = $util.emptyArray; - /** - * Encodes the specified FormInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.PageInfo.IFormInfo} message FormInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FormInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parameterInfo != null && message.parameterInfo.length) - for (var i = 0; i < message.parameterInfo.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.encode(message.parameterInfo[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * ListSecuritySettingsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse + * @instance + */ + ListSecuritySettingsResponse.prototype.nextPageToken = ""; - /** - * Encodes the specified FormInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.PageInfo.IFormInfo} message FormInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FormInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new ListSecuritySettingsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse} ListSecuritySettingsResponse instance + */ + ListSecuritySettingsResponse.create = function create(properties) { + return new ListSecuritySettingsResponse(properties); + }; - /** - * Decodes a FormInfo message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo} FormInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FormInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - if (!(message.parameterInfo && message.parameterInfo.length)) - message.parameterInfo = []; - message.parameterInfo.push($root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified ListSecuritySettingsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsResponse} message ListSecuritySettingsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListSecuritySettingsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.securitySettings != null && message.securitySettings.length) + for (var i = 0; i < message.securitySettings.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.encode(message.securitySettings[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; - /** - * Decodes a FormInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo} FormInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FormInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified ListSecuritySettingsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IListSecuritySettingsResponse} message ListSecuritySettingsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListSecuritySettingsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies a FormInfo message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FormInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parameterInfo != null && message.hasOwnProperty("parameterInfo")) { - if (!Array.isArray(message.parameterInfo)) - return "parameterInfo: array expected"; - for (var i = 0; i < message.parameterInfo.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.verify(message.parameterInfo[i]); - if (error) - return "parameterInfo." + error; - } + /** + * Decodes a ListSecuritySettingsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse} ListSecuritySettingsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListSecuritySettingsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.securitySettings && message.securitySettings.length)) + message.securitySettings = []; + message.securitySettings.push($root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; } - return null; - }; + } + return message; + }; - /** - * Creates a FormInfo message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo} FormInfo - */ - FormInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo(); - if (object.parameterInfo) { - if (!Array.isArray(object.parameterInfo)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.parameterInfo: array expected"); - message.parameterInfo = []; - for (var i = 0; i < object.parameterInfo.length; ++i) { - if (typeof object.parameterInfo[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.parameterInfo: object expected"); - message.parameterInfo[i] = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.fromObject(object.parameterInfo[i]); - } - } - return message; - }; + /** + * Decodes a ListSecuritySettingsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse} ListSecuritySettingsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListSecuritySettingsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from a FormInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo} message FormInfo - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FormInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.parameterInfo = []; - if (message.parameterInfo && message.parameterInfo.length) { - object.parameterInfo = []; - for (var j = 0; j < message.parameterInfo.length; ++j) - object.parameterInfo[j] = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.toObject(message.parameterInfo[j], options); + /** + * Verifies a ListSecuritySettingsResponse message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListSecuritySettingsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) { + if (!Array.isArray(message.securitySettings)) + return "securitySettings: array expected"; + for (var i = 0; i < message.securitySettings.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.verify(message.securitySettings[i]); + if (error) + return "securitySettings." + error; } - return object; - }; - - /** - * Converts this FormInfo to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo - * @instance - * @returns {Object.} JSON object - */ - FormInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - FormInfo.ParameterInfo = (function() { - - /** - * Properties of a ParameterInfo. - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo - * @interface IParameterInfo - * @property {string|null} [displayName] ParameterInfo displayName - * @property {boolean|null} [required] ParameterInfo required - * @property {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.ParameterState|null} [state] ParameterInfo state - * @property {google.protobuf.IValue|null} [value] ParameterInfo value - * @property {boolean|null} [justCollected] ParameterInfo justCollected - */ + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; - /** - * Constructs a new ParameterInfo. - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo - * @classdesc Represents a ParameterInfo. - * @implements IParameterInfo - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.IParameterInfo=} [properties] Properties to set - */ - function ParameterInfo(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Creates a ListSecuritySettingsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse} ListSecuritySettingsResponse + */ + ListSecuritySettingsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse(); + if (object.securitySettings) { + if (!Array.isArray(object.securitySettings)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse.securitySettings: array expected"); + message.securitySettings = []; + for (var i = 0; i < object.securitySettings.length; ++i) { + if (typeof object.securitySettings[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse.securitySettings: object expected"); + message.securitySettings[i] = $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.fromObject(object.securitySettings[i]); } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; - /** - * ParameterInfo displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo - * @instance - */ - ParameterInfo.prototype.displayName = ""; + /** + * Creates a plain object from a ListSecuritySettingsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse} message ListSecuritySettingsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListSecuritySettingsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.securitySettings = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.securitySettings && message.securitySettings.length) { + object.securitySettings = []; + for (var j = 0; j < message.securitySettings.length; ++j) + object.securitySettings[j] = $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.toObject(message.securitySettings[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; - /** - * ParameterInfo required. - * @member {boolean} required - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo - * @instance - */ - ParameterInfo.prototype.required = false; + /** + * Converts this ListSecuritySettingsResponse to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse + * @instance + * @returns {Object.} JSON object + */ + ListSecuritySettingsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * ParameterInfo state. - * @member {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.ParameterState} state - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo - * @instance - */ - ParameterInfo.prototype.state = 0; + return ListSecuritySettingsResponse; + })(); - /** - * ParameterInfo value. - * @member {google.protobuf.IValue|null|undefined} value - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo - * @instance - */ - ParameterInfo.prototype.value = null; + v3beta1.CreateSecuritySettingsRequest = (function() { - /** - * ParameterInfo justCollected. - * @member {boolean} justCollected - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo - * @instance - */ - ParameterInfo.prototype.justCollected = false; + /** + * Properties of a CreateSecuritySettingsRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface ICreateSecuritySettingsRequest + * @property {string|null} [parent] CreateSecuritySettingsRequest parent + * @property {google.cloud.dialogflow.cx.v3beta1.ISecuritySettings|null} [securitySettings] CreateSecuritySettingsRequest securitySettings + */ - /** - * Creates a new ParameterInfo instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.IParameterInfo=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo} ParameterInfo instance - */ - ParameterInfo.create = function create(properties) { - return new ParameterInfo(properties); - }; + /** + * Constructs a new CreateSecuritySettingsRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a CreateSecuritySettingsRequest. + * @implements ICreateSecuritySettingsRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSecuritySettingsRequest=} [properties] Properties to set + */ + function CreateSecuritySettingsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified ParameterInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.IParameterInfo} message ParameterInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ParameterInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName); - if (message.required != null && Object.hasOwnProperty.call(message, "required")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.required); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - $root.google.protobuf.Value.encode(message.value, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.justCollected != null && Object.hasOwnProperty.call(message, "justCollected")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.justCollected); - return writer; - }; + /** + * CreateSecuritySettingsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest + * @instance + */ + CreateSecuritySettingsRequest.prototype.parent = ""; - /** - * Encodes the specified ParameterInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.IParameterInfo} message ParameterInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ParameterInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * CreateSecuritySettingsRequest securitySettings. + * @member {google.cloud.dialogflow.cx.v3beta1.ISecuritySettings|null|undefined} securitySettings + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest + * @instance + */ + CreateSecuritySettingsRequest.prototype.securitySettings = null; - /** - * Decodes a ParameterInfo message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo} ParameterInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ParameterInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.displayName = reader.string(); - break; - case 2: - message.required = reader.bool(); - break; - case 3: - message.state = reader.int32(); - break; - case 4: - message.value = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - case 5: - message.justCollected = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a new CreateSecuritySettingsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSecuritySettingsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest} CreateSecuritySettingsRequest instance + */ + CreateSecuritySettingsRequest.create = function create(properties) { + return new CreateSecuritySettingsRequest(properties); + }; - /** - * Decodes a ParameterInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo} ParameterInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ParameterInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified CreateSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSecuritySettingsRequest} message CreateSecuritySettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateSecuritySettingsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.securitySettings != null && Object.hasOwnProperty.call(message, "securitySettings")) + $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.encode(message.securitySettings, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Verifies a ParameterInfo message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ParameterInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.required != null && message.hasOwnProperty("required")) - if (typeof message.required !== "boolean") - return "required: boolean expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.value != null && message.hasOwnProperty("value")) { - var error = $root.google.protobuf.Value.verify(message.value); - if (error) - return "value." + error; - } - if (message.justCollected != null && message.hasOwnProperty("justCollected")) - if (typeof message.justCollected !== "boolean") - return "justCollected: boolean expected"; - return null; - }; + /** + * Encodes the specified CreateSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSecuritySettingsRequest} message CreateSecuritySettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a ParameterInfo message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo} ParameterInfo - */ - ParameterInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo(); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.required != null) - message.required = Boolean(object.required); - switch (object.state) { - case "PARAMETER_STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "EMPTY": - case 1: - message.state = 1; - break; - case "INVALID": - case 2: - message.state = 2; - break; - case "FILLED": - case 3: - message.state = 3; - break; - } - if (object.value != null) { - if (typeof object.value !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.value: object expected"); - message.value = $root.google.protobuf.Value.fromObject(object.value); - } - if (object.justCollected != null) - message.justCollected = Boolean(object.justCollected); - return message; - }; + /** + * Decodes a CreateSecuritySettingsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest} CreateSecuritySettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateSecuritySettingsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.securitySettings = $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a plain object from a ParameterInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo} message ParameterInfo - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ParameterInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.displayName = ""; - object.required = false; - object.state = options.enums === String ? "PARAMETER_STATE_UNSPECIFIED" : 0; - object.value = null; - object.justCollected = false; - } - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.required != null && message.hasOwnProperty("required")) - object.required = message.required; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.ParameterState[message.state] : message.state; - if (message.value != null && message.hasOwnProperty("value")) - object.value = $root.google.protobuf.Value.toObject(message.value, options); - if (message.justCollected != null && message.hasOwnProperty("justCollected")) - object.justCollected = message.justCollected; - return object; - }; + /** + * Decodes a CreateSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest} CreateSecuritySettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Converts this ParameterInfo to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo - * @instance - * @returns {Object.} JSON object - */ - ParameterInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Verifies a CreateSecuritySettingsRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateSecuritySettingsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.verify(message.securitySettings); + if (error) + return "securitySettings." + error; + } + return null; + }; - /** - * ParameterState enum. - * @name google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.ParameterState - * @enum {number} - * @property {number} PARAMETER_STATE_UNSPECIFIED=0 PARAMETER_STATE_UNSPECIFIED value - * @property {number} EMPTY=1 EMPTY value - * @property {number} INVALID=2 INVALID value - * @property {number} FILLED=3 FILLED value - */ - ParameterInfo.ParameterState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "PARAMETER_STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "EMPTY"] = 1; - values[valuesById[2] = "INVALID"] = 2; - values[valuesById[3] = "FILLED"] = 3; - return values; - })(); + /** + * Creates a CreateSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest} CreateSecuritySettingsRequest + */ + CreateSecuritySettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.securitySettings != null) { + if (typeof object.securitySettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest.securitySettings: object expected"); + message.securitySettings = $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.fromObject(object.securitySettings); + } + return message; + }; - return ParameterInfo; - })(); + /** + * Creates a plain object from a CreateSecuritySettingsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest} message CreateSecuritySettingsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateSecuritySettingsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.securitySettings = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) + object.securitySettings = $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.toObject(message.securitySettings, options); + return object; + }; - return FormInfo; - })(); + /** + * Converts this CreateSecuritySettingsRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest + * @instance + * @returns {Object.} JSON object + */ + CreateSecuritySettingsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return PageInfo; + return CreateSecuritySettingsRequest; })(); - v3beta1.SessionInfo = (function() { + v3beta1.DeleteSecuritySettingsRequest = (function() { /** - * Properties of a SessionInfo. + * Properties of a DeleteSecuritySettingsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ISessionInfo - * @property {string|null} [session] SessionInfo session - * @property {Object.|null} [parameters] SessionInfo parameters + * @interface IDeleteSecuritySettingsRequest + * @property {string|null} [name] DeleteSecuritySettingsRequest name */ /** - * Constructs a new SessionInfo. + * Constructs a new DeleteSecuritySettingsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a SessionInfo. - * @implements ISessionInfo + * @classdesc Represents a DeleteSecuritySettingsRequest. + * @implements IDeleteSecuritySettingsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ISessionInfo=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSecuritySettingsRequest=} [properties] Properties to set */ - function SessionInfo(properties) { - this.parameters = {}; + function DeleteSecuritySettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -122707,110 +121938,75 @@ } /** - * SessionInfo session. - * @member {string} session - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionInfo - * @instance - */ - SessionInfo.prototype.session = ""; - - /** - * SessionInfo parameters. - * @member {Object.} parameters - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionInfo + * DeleteSecuritySettingsRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest * @instance */ - SessionInfo.prototype.parameters = $util.emptyObject; + DeleteSecuritySettingsRequest.prototype.name = ""; /** - * Creates a new SessionInfo instance using the specified properties. + * Creates a new DeleteSecuritySettingsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISessionInfo=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.SessionInfo} SessionInfo instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSecuritySettingsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest} DeleteSecuritySettingsRequest instance */ - SessionInfo.create = function create(properties) { - return new SessionInfo(properties); + DeleteSecuritySettingsRequest.create = function create(properties) { + return new DeleteSecuritySettingsRequest(properties); }; /** - * Encodes the specified SessionInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SessionInfo.verify|verify} messages. + * Encodes the specified DeleteSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISessionInfo} message SessionInfo message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSecuritySettingsRequest} message DeleteSecuritySettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SessionInfo.encode = function encode(message, writer) { + DeleteSecuritySettingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.session != null && Object.hasOwnProperty.call(message, "session")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.session); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - for (var keys = Object.keys(message.parameters), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.protobuf.Value.encode(message.parameters[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified SessionInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SessionInfo.verify|verify} messages. + * Encodes the specified DeleteSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISessionInfo} message SessionInfo message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSecuritySettingsRequest} message DeleteSecuritySettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SessionInfo.encodeDelimited = function encodeDelimited(message, writer) { + DeleteSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SessionInfo message from the specified reader or buffer. + * Decodes a DeleteSecuritySettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.SessionInfo} SessionInfo + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest} DeleteSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SessionInfo.decode = function decode(reader, length) { + DeleteSecuritySettingsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.SessionInfo(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.session = reader.string(); - break; - case 2: - if (message.parameters === $util.emptyObject) - message.parameters = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.parameters[key] = value; + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -122821,416 +122017,116 @@ }; /** - * Decodes a SessionInfo message from the specified reader or buffer, length delimited. + * Decodes a DeleteSecuritySettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.SessionInfo} SessionInfo + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest} DeleteSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SessionInfo.decodeDelimited = function decodeDelimited(reader) { + DeleteSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SessionInfo message. + * Verifies a DeleteSecuritySettingsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SessionInfo.verify = function verify(message) { + DeleteSecuritySettingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.session != null && message.hasOwnProperty("session")) - if (!$util.isString(message.session)) - return "session: string expected"; - if (message.parameters != null && message.hasOwnProperty("parameters")) { - if (!$util.isObject(message.parameters)) - return "parameters: object expected"; - var key = Object.keys(message.parameters); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.protobuf.Value.verify(message.parameters[key[i]]); - if (error) - return "parameters." + error; - } - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a SessionInfo message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.SessionInfo} SessionInfo + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest} DeleteSecuritySettingsRequest */ - SessionInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SessionInfo) + DeleteSecuritySettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.SessionInfo(); - if (object.session != null) - message.session = String(object.session); - if (object.parameters) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SessionInfo.parameters: object expected"); - message.parameters = {}; - for (var keys = Object.keys(object.parameters), i = 0; i < keys.length; ++i) { - if (typeof object.parameters[keys[i]] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SessionInfo.parameters: object expected"); - message.parameters[keys[i]] = $root.google.protobuf.Value.fromObject(object.parameters[keys[i]]); - } - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a SessionInfo message. Also converts values to other types if specified. + * Creates a plain object from a DeleteSecuritySettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.SessionInfo} message SessionInfo + * @param {google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest} message DeleteSecuritySettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SessionInfo.toObject = function toObject(message, options) { + DeleteSecuritySettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.parameters = {}; if (options.defaults) - object.session = ""; - if (message.session != null && message.hasOwnProperty("session")) - object.session = message.session; - var keys2; - if (message.parameters && (keys2 = Object.keys(message.parameters)).length) { - object.parameters = {}; - for (var j = 0; j < keys2.length; ++j) - object.parameters[keys2[j]] = $root.google.protobuf.Value.toObject(message.parameters[keys2[j]], options); - } + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this SessionInfo to JSON. + * Converts this DeleteSecuritySettingsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest * @instance * @returns {Object.} JSON object */ - SessionInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return SessionInfo; - })(); - - v3beta1.Experiments = (function() { - - /** - * Constructs a new Experiments service. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an Experiments - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Experiments(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Experiments.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Experiments; - - /** - * Creates new Experiments service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {Experiments} RPC service. Useful where requests and/or responses are streamed. - */ - Experiments.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#listExperiments}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @typedef ListExperimentsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse} [response] ListExperimentsResponse - */ - - /** - * Calls ListExperiments. - * @function listExperiments - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest} request ListExperimentsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Experiments.ListExperimentsCallback} callback Node-style callback called with the error, if any, and ListExperimentsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Experiments.prototype.listExperiments = function listExperiments(request, callback) { - return this.rpcCall(listExperiments, $root.google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse, request, callback); - }, "name", { value: "ListExperiments" }); - - /** - * Calls ListExperiments. - * @function listExperiments - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest} request ListExperimentsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#getExperiment}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @typedef GetExperimentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment} [response] Experiment - */ - - /** - * Calls GetExperiment. - * @function getExperiment - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest} request GetExperimentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Experiments.GetExperimentCallback} callback Node-style callback called with the error, if any, and Experiment - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Experiments.prototype.getExperiment = function getExperiment(request, callback) { - return this.rpcCall(getExperiment, $root.google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Experiment, request, callback); - }, "name", { value: "GetExperiment" }); - - /** - * Calls GetExperiment. - * @function getExperiment - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest} request GetExperimentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#createExperiment}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @typedef CreateExperimentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment} [response] Experiment - */ - - /** - * Calls CreateExperiment. - * @function createExperiment - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest} request CreateExperimentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Experiments.CreateExperimentCallback} callback Node-style callback called with the error, if any, and Experiment - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Experiments.prototype.createExperiment = function createExperiment(request, callback) { - return this.rpcCall(createExperiment, $root.google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Experiment, request, callback); - }, "name", { value: "CreateExperiment" }); - - /** - * Calls CreateExperiment. - * @function createExperiment - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest} request CreateExperimentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#updateExperiment}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @typedef UpdateExperimentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment} [response] Experiment - */ - - /** - * Calls UpdateExperiment. - * @function updateExperiment - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest} request UpdateExperimentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Experiments.UpdateExperimentCallback} callback Node-style callback called with the error, if any, and Experiment - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Experiments.prototype.updateExperiment = function updateExperiment(request, callback) { - return this.rpcCall(updateExperiment, $root.google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Experiment, request, callback); - }, "name", { value: "UpdateExperiment" }); - - /** - * Calls UpdateExperiment. - * @function updateExperiment - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest} request UpdateExperimentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#deleteExperiment}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @typedef DeleteExperimentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ - - /** - * Calls DeleteExperiment. - * @function deleteExperiment - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest} request DeleteExperimentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Experiments.DeleteExperimentCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Experiments.prototype.deleteExperiment = function deleteExperiment(request, callback) { - return this.rpcCall(deleteExperiment, $root.google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteExperiment" }); - - /** - * Calls DeleteExperiment. - * @function deleteExperiment - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest} request DeleteExperimentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#startExperiment}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @typedef StartExperimentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment} [response] Experiment - */ - - /** - * Calls StartExperiment. - * @function startExperiment - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest} request StartExperimentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Experiments.StartExperimentCallback} callback Node-style callback called with the error, if any, and Experiment - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Experiments.prototype.startExperiment = function startExperiment(request, callback) { - return this.rpcCall(startExperiment, $root.google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Experiment, request, callback); - }, "name", { value: "StartExperiment" }); - - /** - * Calls StartExperiment. - * @function startExperiment - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest} request StartExperimentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Experiments#stopExperiment}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @typedef StopExperimentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment} [response] Experiment - */ - - /** - * Calls StopExperiment. - * @function stopExperiment - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest} request StopExperimentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Experiments.StopExperimentCallback} callback Node-style callback called with the error, if any, and Experiment - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Experiments.prototype.stopExperiment = function stopExperiment(request, callback) { - return this.rpcCall(stopExperiment, $root.google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Experiment, request, callback); - }, "name", { value: "StopExperiment" }); - - /** - * Calls StopExperiment. - * @function stopExperiment - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest} request StopExperimentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return Experiments; - })(); - - v3beta1.Experiment = (function() { - - /** - * Properties of an Experiment. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IExperiment - * @property {string|null} [name] Experiment name - * @property {string|null} [displayName] Experiment displayName - * @property {string|null} [description] Experiment description - * @property {google.cloud.dialogflow.cx.v3beta1.Experiment.State|null} [state] Experiment state - * @property {google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition|null} [definition] Experiment definition - * @property {google.cloud.dialogflow.cx.v3beta1.IRolloutConfig|null} [rolloutConfig] Experiment rolloutConfig - * @property {google.cloud.dialogflow.cx.v3beta1.IRolloutState|null} [rolloutState] Experiment rolloutState - * @property {string|null} [rolloutFailureReason] Experiment rolloutFailureReason - * @property {google.cloud.dialogflow.cx.v3beta1.Experiment.IResult|null} [result] Experiment result - * @property {google.protobuf.ITimestamp|null} [createTime] Experiment createTime - * @property {google.protobuf.ITimestamp|null} [startTime] Experiment startTime - * @property {google.protobuf.ITimestamp|null} [endTime] Experiment endTime - * @property {google.protobuf.ITimestamp|null} [lastUpdateTime] Experiment lastUpdateTime - * @property {google.protobuf.IDuration|null} [experimentLength] Experiment experimentLength - * @property {Array.|null} [variantsHistory] Experiment variantsHistory + DeleteSecuritySettingsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteSecuritySettingsRequest; + })(); + + v3beta1.SecuritySettings = (function() { + + /** + * Properties of a SecuritySettings. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface ISecuritySettings + * @property {string|null} [name] SecuritySettings name + * @property {string|null} [displayName] SecuritySettings displayName + * @property {google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionStrategy|null} [redactionStrategy] SecuritySettings redactionStrategy + * @property {google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionScope|null} [redactionScope] SecuritySettings redactionScope + * @property {string|null} [inspectTemplate] SecuritySettings inspectTemplate + * @property {string|null} [deidentifyTemplate] SecuritySettings deidentifyTemplate + * @property {number|null} [retentionWindowDays] SecuritySettings retentionWindowDays + * @property {Array.|null} [purgeDataTypes] SecuritySettings purgeDataTypes + * @property {google.cloud.dialogflow.cx.v3beta1.SecuritySettings.IInsightsExportSettings|null} [insightsExportSettings] SecuritySettings insightsExportSettings */ /** - * Constructs a new Experiment. + * Constructs a new SecuritySettings. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an Experiment. - * @implements IExperiment + * @classdesc Represents a SecuritySettings. + * @implements ISecuritySettings * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IExperiment=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ISecuritySettings=} [properties] Properties to set */ - function Experiment(properties) { - this.variantsHistory = []; + function SecuritySettings(properties) { + this.purgeDataTypes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -123238,211 +122134,168 @@ } /** - * Experiment name. + * SecuritySettings name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings * @instance */ - Experiment.prototype.name = ""; + SecuritySettings.prototype.name = ""; /** - * Experiment displayName. + * SecuritySettings displayName. * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment - * @instance - */ - Experiment.prototype.displayName = ""; - - /** - * Experiment description. - * @member {string} description - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment - * @instance - */ - Experiment.prototype.description = ""; - - /** - * Experiment state. - * @member {google.cloud.dialogflow.cx.v3beta1.Experiment.State} state - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment - * @instance - */ - Experiment.prototype.state = 0; - - /** - * Experiment definition. - * @member {google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition|null|undefined} definition - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment - * @instance - */ - Experiment.prototype.definition = null; - - /** - * Experiment rolloutConfig. - * @member {google.cloud.dialogflow.cx.v3beta1.IRolloutConfig|null|undefined} rolloutConfig - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings * @instance */ - Experiment.prototype.rolloutConfig = null; + SecuritySettings.prototype.displayName = ""; /** - * Experiment rolloutState. - * @member {google.cloud.dialogflow.cx.v3beta1.IRolloutState|null|undefined} rolloutState - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * SecuritySettings redactionStrategy. + * @member {google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionStrategy} redactionStrategy + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings * @instance */ - Experiment.prototype.rolloutState = null; + SecuritySettings.prototype.redactionStrategy = 0; /** - * Experiment rolloutFailureReason. - * @member {string} rolloutFailureReason - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * SecuritySettings redactionScope. + * @member {google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionScope} redactionScope + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings * @instance */ - Experiment.prototype.rolloutFailureReason = ""; + SecuritySettings.prototype.redactionScope = 0; /** - * Experiment result. - * @member {google.cloud.dialogflow.cx.v3beta1.Experiment.IResult|null|undefined} result - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * SecuritySettings inspectTemplate. + * @member {string} inspectTemplate + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings * @instance */ - Experiment.prototype.result = null; + SecuritySettings.prototype.inspectTemplate = ""; /** - * Experiment createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * SecuritySettings deidentifyTemplate. + * @member {string} deidentifyTemplate + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings * @instance */ - Experiment.prototype.createTime = null; + SecuritySettings.prototype.deidentifyTemplate = ""; /** - * Experiment startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * SecuritySettings retentionWindowDays. + * @member {number|null|undefined} retentionWindowDays + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings * @instance */ - Experiment.prototype.startTime = null; + SecuritySettings.prototype.retentionWindowDays = null; /** - * Experiment endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * SecuritySettings purgeDataTypes. + * @member {Array.} purgeDataTypes + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings * @instance */ - Experiment.prototype.endTime = null; + SecuritySettings.prototype.purgeDataTypes = $util.emptyArray; /** - * Experiment lastUpdateTime. - * @member {google.protobuf.ITimestamp|null|undefined} lastUpdateTime - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * SecuritySettings insightsExportSettings. + * @member {google.cloud.dialogflow.cx.v3beta1.SecuritySettings.IInsightsExportSettings|null|undefined} insightsExportSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings * @instance */ - Experiment.prototype.lastUpdateTime = null; + SecuritySettings.prototype.insightsExportSettings = null; - /** - * Experiment experimentLength. - * @member {google.protobuf.IDuration|null|undefined} experimentLength - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment - * @instance - */ - Experiment.prototype.experimentLength = null; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Experiment variantsHistory. - * @member {Array.} variantsHistory - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * SecuritySettings dataRetention. + * @member {"retentionWindowDays"|undefined} dataRetention + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings * @instance */ - Experiment.prototype.variantsHistory = $util.emptyArray; + Object.defineProperty(SecuritySettings.prototype, "dataRetention", { + get: $util.oneOfGetter($oneOfFields = ["retentionWindowDays"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new Experiment instance using the specified properties. + * Creates a new SecuritySettings instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExperiment=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment} Experiment instance + * @param {google.cloud.dialogflow.cx.v3beta1.ISecuritySettings=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.SecuritySettings} SecuritySettings instance */ - Experiment.create = function create(properties) { - return new Experiment(properties); + SecuritySettings.create = function create(properties) { + return new SecuritySettings(properties); }; /** - * Encodes the specified Experiment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.verify|verify} messages. + * Encodes the specified SecuritySettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettings.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExperiment} message Experiment message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ISecuritySettings} message SecuritySettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Experiment.encode = function encode(message, writer) { + SecuritySettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state); - if (message.definition != null && Object.hasOwnProperty.call(message, "definition")) - $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.encode(message.definition, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.encode(message.result, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.lastUpdateTime != null && Object.hasOwnProperty.call(message, "lastUpdateTime")) - $root.google.protobuf.Timestamp.encode(message.lastUpdateTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.experimentLength != null && Object.hasOwnProperty.call(message, "experimentLength")) - $root.google.protobuf.Duration.encode(message.experimentLength, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.variantsHistory != null && message.variantsHistory.length) - for (var i = 0; i < message.variantsHistory.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.VariantsHistory.encode(message.variantsHistory[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.rolloutConfig != null && Object.hasOwnProperty.call(message, "rolloutConfig")) - $root.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.encode(message.rolloutConfig, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.rolloutState != null && Object.hasOwnProperty.call(message, "rolloutState")) - $root.google.cloud.dialogflow.cx.v3beta1.RolloutState.encode(message.rolloutState, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.rolloutFailureReason != null && Object.hasOwnProperty.call(message, "rolloutFailureReason")) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.rolloutFailureReason); + if (message.redactionStrategy != null && Object.hasOwnProperty.call(message, "redactionStrategy")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.redactionStrategy); + if (message.redactionScope != null && Object.hasOwnProperty.call(message, "redactionScope")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.redactionScope); + if (message.retentionWindowDays != null && Object.hasOwnProperty.call(message, "retentionWindowDays")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.retentionWindowDays); + if (message.purgeDataTypes != null && message.purgeDataTypes.length) { + writer.uint32(/* id 8, wireType 2 =*/66).fork(); + for (var i = 0; i < message.purgeDataTypes.length; ++i) + writer.int32(message.purgeDataTypes[i]); + writer.ldelim(); + } + if (message.inspectTemplate != null && Object.hasOwnProperty.call(message, "inspectTemplate")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.inspectTemplate); + if (message.insightsExportSettings != null && Object.hasOwnProperty.call(message, "insightsExportSettings")) + $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings.encode(message.insightsExportSettings, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.deidentifyTemplate != null && Object.hasOwnProperty.call(message, "deidentifyTemplate")) + writer.uint32(/* id 17, wireType 2 =*/138).string(message.deidentifyTemplate); return writer; }; /** - * Encodes the specified Experiment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.verify|verify} messages. + * Encodes the specified SecuritySettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettings.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExperiment} message Experiment message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ISecuritySettings} message SecuritySettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Experiment.encodeDelimited = function encodeDelimited(message, writer) { + SecuritySettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Experiment message from the specified reader or buffer. + * Decodes a SecuritySettings message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment} Experiment + * @returns {google.cloud.dialogflow.cx.v3beta1.SecuritySettings} SecuritySettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Experiment.decode = function decode(reader, length) { + SecuritySettings.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -123453,45 +122306,32 @@ message.displayName = reader.string(); break; case 3: - message.description = reader.string(); + message.redactionStrategy = reader.int32(); break; case 4: - message.state = reader.int32(); - break; - case 5: - message.definition = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.decode(reader, reader.uint32()); - break; - case 14: - message.rolloutConfig = $root.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.decode(reader, reader.uint32()); + message.redactionScope = reader.int32(); break; - case 15: - message.rolloutState = $root.google.cloud.dialogflow.cx.v3beta1.RolloutState.decode(reader, reader.uint32()); + case 9: + message.inspectTemplate = reader.string(); break; - case 16: - message.rolloutFailureReason = reader.string(); + case 17: + message.deidentifyTemplate = reader.string(); break; case 6: - message.result = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.decode(reader, reader.uint32()); - break; - case 7: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.retentionWindowDays = reader.int32(); break; case 8: - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 9: - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 10: - message.lastUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 11: - message.experimentLength = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + if (!(message.purgeDataTypes && message.purgeDataTypes.length)) + message.purgeDataTypes = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.purgeDataTypes.push(reader.int32()); + } else + message.purgeDataTypes.push(reader.int32()); break; - case 12: - if (!(message.variantsHistory && message.variantsHistory.length)) - message.variantsHistory = []; - message.variantsHistory.push($root.google.cloud.dialogflow.cx.v3beta1.VariantsHistory.decode(reader, reader.uint32())); + case 13: + message.insightsExportSettings = $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -123502,564 +122342,275 @@ }; /** - * Decodes an Experiment message from the specified reader or buffer, length delimited. + * Decodes a SecuritySettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment} Experiment + * @returns {google.cloud.dialogflow.cx.v3beta1.SecuritySettings} SecuritySettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Experiment.decodeDelimited = function decodeDelimited(reader) { + SecuritySettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Experiment message. + * Verifies a SecuritySettings message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Experiment.verify = function verify(message) { + SecuritySettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; if (message.displayName != null && message.hasOwnProperty("displayName")) if (!$util.isString(message.displayName)) return "displayName: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { + if (message.redactionStrategy != null && message.hasOwnProperty("redactionStrategy")) + switch (message.redactionStrategy) { default: - return "state: enum value expected"; + return "redactionStrategy: enum value expected"; case 0: case 1: + break; + } + if (message.redactionScope != null && message.hasOwnProperty("redactionScope")) + switch (message.redactionScope) { + default: + return "redactionScope: enum value expected"; + case 0: case 2: - case 3: - case 4: break; } - if (message.definition != null && message.hasOwnProperty("definition")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.verify(message.definition); - if (error) - return "definition." + error; - } - if (message.rolloutConfig != null && message.hasOwnProperty("rolloutConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.verify(message.rolloutConfig); - if (error) - return "rolloutConfig." + error; - } - if (message.rolloutState != null && message.hasOwnProperty("rolloutState")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.RolloutState.verify(message.rolloutState); - if (error) - return "rolloutState." + error; - } - if (message.rolloutFailureReason != null && message.hasOwnProperty("rolloutFailureReason")) - if (!$util.isString(message.rolloutFailureReason)) - return "rolloutFailureReason: string expected"; - if (message.result != null && message.hasOwnProperty("result")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.verify(message.result); - if (error) - return "result." + error; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; + if (message.inspectTemplate != null && message.hasOwnProperty("inspectTemplate")) + if (!$util.isString(message.inspectTemplate)) + return "inspectTemplate: string expected"; + if (message.deidentifyTemplate != null && message.hasOwnProperty("deidentifyTemplate")) + if (!$util.isString(message.deidentifyTemplate)) + return "deidentifyTemplate: string expected"; + if (message.retentionWindowDays != null && message.hasOwnProperty("retentionWindowDays")) { + properties.dataRetention = 1; + if (!$util.isInteger(message.retentionWindowDays)) + return "retentionWindowDays: integer expected"; } - if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.lastUpdateTime); - if (error) - return "lastUpdateTime." + error; + if (message.purgeDataTypes != null && message.hasOwnProperty("purgeDataTypes")) { + if (!Array.isArray(message.purgeDataTypes)) + return "purgeDataTypes: array expected"; + for (var i = 0; i < message.purgeDataTypes.length; ++i) + switch (message.purgeDataTypes[i]) { + default: + return "purgeDataTypes: enum value[] expected"; + case 0: + case 1: + break; + } } - if (message.experimentLength != null && message.hasOwnProperty("experimentLength")) { - var error = $root.google.protobuf.Duration.verify(message.experimentLength); + if (message.insightsExportSettings != null && message.hasOwnProperty("insightsExportSettings")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings.verify(message.insightsExportSettings); if (error) - return "experimentLength." + error; - } - if (message.variantsHistory != null && message.hasOwnProperty("variantsHistory")) { - if (!Array.isArray(message.variantsHistory)) - return "variantsHistory: array expected"; - for (var i = 0; i < message.variantsHistory.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.VariantsHistory.verify(message.variantsHistory[i]); - if (error) - return "variantsHistory." + error; - } + return "insightsExportSettings." + error; } return null; }; /** - * Creates an Experiment message from a plain object. Also converts values to their respective internal types. + * Creates a SecuritySettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment} Experiment + * @returns {google.cloud.dialogflow.cx.v3beta1.SecuritySettings} SecuritySettings */ - Experiment.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Experiment) + SecuritySettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings(); if (object.name != null) message.name = String(object.name); if (object.displayName != null) message.displayName = String(object.displayName); - if (object.description != null) - message.description = String(object.description); - switch (object.state) { - case "STATE_UNSPECIFIED": + switch (object.redactionStrategy) { + case "REDACTION_STRATEGY_UNSPECIFIED": case 0: - message.state = 0; + message.redactionStrategy = 0; break; - case "DRAFT": + case "REDACT_WITH_SERVICE": case 1: - message.state = 1; - break; - case "RUNNING": - case 2: - message.state = 2; + message.redactionStrategy = 1; break; - case "DONE": - case 3: - message.state = 3; + } + switch (object.redactionScope) { + case "REDACTION_SCOPE_UNSPECIFIED": + case 0: + message.redactionScope = 0; break; - case "ROLLOUT_FAILED": - case 4: - message.state = 4; + case "REDACT_DISK_STORAGE": + case 2: + message.redactionScope = 2; break; } - if (object.definition != null) { - if (typeof object.definition !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.definition: object expected"); - message.definition = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.fromObject(object.definition); - } - if (object.rolloutConfig != null) { - if (typeof object.rolloutConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.rolloutConfig: object expected"); - message.rolloutConfig = $root.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.fromObject(object.rolloutConfig); - } - if (object.rolloutState != null) { - if (typeof object.rolloutState !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.rolloutState: object expected"); - message.rolloutState = $root.google.cloud.dialogflow.cx.v3beta1.RolloutState.fromObject(object.rolloutState); - } - if (object.rolloutFailureReason != null) - message.rolloutFailureReason = String(object.rolloutFailureReason); - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.result: object expected"); - message.result = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.fromObject(object.result); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); - } - if (object.lastUpdateTime != null) { - if (typeof object.lastUpdateTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.lastUpdateTime: object expected"); - message.lastUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.lastUpdateTime); - } - if (object.experimentLength != null) { - if (typeof object.experimentLength !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.experimentLength: object expected"); - message.experimentLength = $root.google.protobuf.Duration.fromObject(object.experimentLength); - } - if (object.variantsHistory) { - if (!Array.isArray(object.variantsHistory)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.variantsHistory: array expected"); - message.variantsHistory = []; - for (var i = 0; i < object.variantsHistory.length; ++i) { - if (typeof object.variantsHistory[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.variantsHistory: object expected"); - message.variantsHistory[i] = $root.google.cloud.dialogflow.cx.v3beta1.VariantsHistory.fromObject(object.variantsHistory[i]); - } + if (object.inspectTemplate != null) + message.inspectTemplate = String(object.inspectTemplate); + if (object.deidentifyTemplate != null) + message.deidentifyTemplate = String(object.deidentifyTemplate); + if (object.retentionWindowDays != null) + message.retentionWindowDays = object.retentionWindowDays | 0; + if (object.purgeDataTypes) { + if (!Array.isArray(object.purgeDataTypes)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SecuritySettings.purgeDataTypes: array expected"); + message.purgeDataTypes = []; + for (var i = 0; i < object.purgeDataTypes.length; ++i) + switch (object.purgeDataTypes[i]) { + default: + case "PURGE_DATA_TYPE_UNSPECIFIED": + case 0: + message.purgeDataTypes[i] = 0; + break; + case "DIALOGFLOW_HISTORY": + case 1: + message.purgeDataTypes[i] = 1; + break; + } + } + if (object.insightsExportSettings != null) { + if (typeof object.insightsExportSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SecuritySettings.insightsExportSettings: object expected"); + message.insightsExportSettings = $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings.fromObject(object.insightsExportSettings); } return message; }; /** - * Creates a plain object from an Experiment message. Also converts values to other types if specified. + * Creates a plain object from a SecuritySettings message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment} message Experiment + * @param {google.cloud.dialogflow.cx.v3beta1.SecuritySettings} message SecuritySettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Experiment.toObject = function toObject(message, options) { + SecuritySettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.variantsHistory = []; + object.purgeDataTypes = []; if (options.defaults) { object.name = ""; object.displayName = ""; - object.description = ""; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.definition = null; - object.result = null; - object.createTime = null; - object.startTime = null; - object.endTime = null; - object.lastUpdateTime = null; - object.experimentLength = null; - object.rolloutConfig = null; - object.rolloutState = null; - object.rolloutFailureReason = ""; + object.redactionStrategy = options.enums === String ? "REDACTION_STRATEGY_UNSPECIFIED" : 0; + object.redactionScope = options.enums === String ? "REDACTION_SCOPE_UNSPECIFIED" : 0; + object.inspectTemplate = ""; + object.insightsExportSettings = null; + object.deidentifyTemplate = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; if (message.displayName != null && message.hasOwnProperty("displayName")) object.displayName = message.displayName; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.Experiment.State[message.state] : message.state; - if (message.definition != null && message.hasOwnProperty("definition")) - object.definition = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.toObject(message.definition, options); - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.toObject(message.result, options); - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) - object.lastUpdateTime = $root.google.protobuf.Timestamp.toObject(message.lastUpdateTime, options); - if (message.experimentLength != null && message.hasOwnProperty("experimentLength")) - object.experimentLength = $root.google.protobuf.Duration.toObject(message.experimentLength, options); - if (message.variantsHistory && message.variantsHistory.length) { - object.variantsHistory = []; - for (var j = 0; j < message.variantsHistory.length; ++j) - object.variantsHistory[j] = $root.google.cloud.dialogflow.cx.v3beta1.VariantsHistory.toObject(message.variantsHistory[j], options); + if (message.redactionStrategy != null && message.hasOwnProperty("redactionStrategy")) + object.redactionStrategy = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionStrategy[message.redactionStrategy] : message.redactionStrategy; + if (message.redactionScope != null && message.hasOwnProperty("redactionScope")) + object.redactionScope = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionScope[message.redactionScope] : message.redactionScope; + if (message.retentionWindowDays != null && message.hasOwnProperty("retentionWindowDays")) { + object.retentionWindowDays = message.retentionWindowDays; + if (options.oneofs) + object.dataRetention = "retentionWindowDays"; } - if (message.rolloutConfig != null && message.hasOwnProperty("rolloutConfig")) - object.rolloutConfig = $root.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.toObject(message.rolloutConfig, options); - if (message.rolloutState != null && message.hasOwnProperty("rolloutState")) - object.rolloutState = $root.google.cloud.dialogflow.cx.v3beta1.RolloutState.toObject(message.rolloutState, options); - if (message.rolloutFailureReason != null && message.hasOwnProperty("rolloutFailureReason")) - object.rolloutFailureReason = message.rolloutFailureReason; + if (message.purgeDataTypes && message.purgeDataTypes.length) { + object.purgeDataTypes = []; + for (var j = 0; j < message.purgeDataTypes.length; ++j) + object.purgeDataTypes[j] = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.PurgeDataType[message.purgeDataTypes[j]] : message.purgeDataTypes[j]; + } + if (message.inspectTemplate != null && message.hasOwnProperty("inspectTemplate")) + object.inspectTemplate = message.inspectTemplate; + if (message.insightsExportSettings != null && message.hasOwnProperty("insightsExportSettings")) + object.insightsExportSettings = $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings.toObject(message.insightsExportSettings, options); + if (message.deidentifyTemplate != null && message.hasOwnProperty("deidentifyTemplate")) + object.deidentifyTemplate = message.deidentifyTemplate; return object; }; /** - * Converts this Experiment to JSON. + * Converts this SecuritySettings to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings * @instance * @returns {Object.} JSON object */ - Experiment.prototype.toJSON = function toJSON() { + SecuritySettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * State enum. - * @name google.cloud.dialogflow.cx.v3beta1.Experiment.State + * RedactionStrategy enum. + * @name google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionStrategy * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} DRAFT=1 DRAFT value - * @property {number} RUNNING=2 RUNNING value - * @property {number} DONE=3 DONE value - * @property {number} ROLLOUT_FAILED=4 ROLLOUT_FAILED value + * @property {number} REDACTION_STRATEGY_UNSPECIFIED=0 REDACTION_STRATEGY_UNSPECIFIED value + * @property {number} REDACT_WITH_SERVICE=1 REDACT_WITH_SERVICE value */ - Experiment.State = (function() { + SecuritySettings.RedactionStrategy = (function() { var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "DRAFT"] = 1; - values[valuesById[2] = "RUNNING"] = 2; - values[valuesById[3] = "DONE"] = 3; - values[valuesById[4] = "ROLLOUT_FAILED"] = 4; + values[valuesById[0] = "REDACTION_STRATEGY_UNSPECIFIED"] = 0; + values[valuesById[1] = "REDACT_WITH_SERVICE"] = 1; return values; })(); - Experiment.Definition = (function() { - - /** - * Properties of a Definition. - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment - * @interface IDefinition - * @property {string|null} [condition] Definition condition - * @property {google.cloud.dialogflow.cx.v3beta1.IVersionVariants|null} [versionVariants] Definition versionVariants - */ - - /** - * Constructs a new Definition. - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment - * @classdesc Represents a Definition. - * @implements IDefinition - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition=} [properties] Properties to set - */ - function Definition(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Definition condition. - * @member {string} condition - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition - * @instance - */ - Definition.prototype.condition = ""; - - /** - * Definition versionVariants. - * @member {google.cloud.dialogflow.cx.v3beta1.IVersionVariants|null|undefined} versionVariants - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition - * @instance - */ - Definition.prototype.versionVariants = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Definition variants. - * @member {"versionVariants"|undefined} variants - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition - * @instance - */ - Object.defineProperty(Definition.prototype, "variants", { - get: $util.oneOfGetter($oneOfFields = ["versionVariants"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Definition instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Definition} Definition instance - */ - Definition.create = function create(properties) { - return new Definition(properties); - }; - - /** - * Encodes the specified Definition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition} message Definition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Definition.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.condition != null && Object.hasOwnProperty.call(message, "condition")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.condition); - if (message.versionVariants != null && Object.hasOwnProperty.call(message, "versionVariants")) - $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.encode(message.versionVariants, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified Definition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.IDefinition} message Definition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Definition.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Definition message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Definition} Definition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Definition.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.condition = reader.string(); - break; - case 2: - message.versionVariants = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Definition message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Definition} Definition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Definition.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Definition message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Definition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.condition != null && message.hasOwnProperty("condition")) - if (!$util.isString(message.condition)) - return "condition: string expected"; - if (message.versionVariants != null && message.hasOwnProperty("versionVariants")) { - properties.variants = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.verify(message.versionVariants); - if (error) - return "versionVariants." + error; - } - } - return null; - }; - - /** - * Creates a Definition message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Definition} Definition - */ - Definition.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition(); - if (object.condition != null) - message.condition = String(object.condition); - if (object.versionVariants != null) { - if (typeof object.versionVariants !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.versionVariants: object expected"); - message.versionVariants = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.fromObject(object.versionVariants); - } - return message; - }; - - /** - * Creates a plain object from a Definition message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Definition} message Definition - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Definition.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.condition = ""; - if (message.condition != null && message.hasOwnProperty("condition")) - object.condition = message.condition; - if (message.versionVariants != null && message.hasOwnProperty("versionVariants")) { - object.versionVariants = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.toObject(message.versionVariants, options); - if (options.oneofs) - object.variants = "versionVariants"; - } - return object; - }; - - /** - * Converts this Definition to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Definition - * @instance - * @returns {Object.} JSON object - */ - Definition.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * RedactionScope enum. + * @name google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionScope + * @enum {number} + * @property {number} REDACTION_SCOPE_UNSPECIFIED=0 REDACTION_SCOPE_UNSPECIFIED value + * @property {number} REDACT_DISK_STORAGE=2 REDACT_DISK_STORAGE value + */ + SecuritySettings.RedactionScope = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "REDACTION_SCOPE_UNSPECIFIED"] = 0; + values[valuesById[2] = "REDACT_DISK_STORAGE"] = 2; + return values; + })(); - return Definition; + /** + * PurgeDataType enum. + * @name google.cloud.dialogflow.cx.v3beta1.SecuritySettings.PurgeDataType + * @enum {number} + * @property {number} PURGE_DATA_TYPE_UNSPECIFIED=0 PURGE_DATA_TYPE_UNSPECIFIED value + * @property {number} DIALOGFLOW_HISTORY=1 DIALOGFLOW_HISTORY value + */ + SecuritySettings.PurgeDataType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PURGE_DATA_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "DIALOGFLOW_HISTORY"] = 1; + return values; })(); - Experiment.Result = (function() { + SecuritySettings.InsightsExportSettings = (function() { /** - * Properties of a Result. - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment - * @interface IResult - * @property {Array.|null} [versionMetrics] Result versionMetrics - * @property {google.protobuf.ITimestamp|null} [lastUpdateTime] Result lastUpdateTime + * Properties of an InsightsExportSettings. + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings + * @interface IInsightsExportSettings + * @property {boolean|null} [enableInsightsExport] InsightsExportSettings enableInsightsExport */ /** - * Constructs a new Result. - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment - * @classdesc Represents a Result. - * @implements IResult + * Constructs a new InsightsExportSettings. + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings + * @classdesc Represents an InsightsExportSettings. + * @implements IInsightsExportSettings * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.IResult=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.SecuritySettings.IInsightsExportSettings=} [properties] Properties to set */ - function Result(properties) { - this.versionMetrics = []; + function InsightsExportSettings(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -124067,91 +122618,75 @@ } /** - * Result versionMetrics. - * @member {Array.} versionMetrics - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result - * @instance - */ - Result.prototype.versionMetrics = $util.emptyArray; - - /** - * Result lastUpdateTime. - * @member {google.protobuf.ITimestamp|null|undefined} lastUpdateTime - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * InsightsExportSettings enableInsightsExport. + * @member {boolean} enableInsightsExport + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings * @instance */ - Result.prototype.lastUpdateTime = null; + InsightsExportSettings.prototype.enableInsightsExport = false; /** - * Creates a new Result instance using the specified properties. + * Creates a new InsightsExportSettings instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.IResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result} Result instance + * @param {google.cloud.dialogflow.cx.v3beta1.SecuritySettings.IInsightsExportSettings=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings} InsightsExportSettings instance */ - Result.create = function create(properties) { - return new Result(properties); + InsightsExportSettings.create = function create(properties) { + return new InsightsExportSettings(properties); }; /** - * Encodes the specified Result message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.verify|verify} messages. + * Encodes the specified InsightsExportSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.IResult} message Result message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.SecuritySettings.IInsightsExportSettings} message InsightsExportSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Result.encode = function encode(message, writer) { + InsightsExportSettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.versionMetrics != null && message.versionMetrics.length) - for (var i = 0; i < message.versionMetrics.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.encode(message.versionMetrics[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.lastUpdateTime != null && Object.hasOwnProperty.call(message, "lastUpdateTime")) - $root.google.protobuf.Timestamp.encode(message.lastUpdateTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.enableInsightsExport != null && Object.hasOwnProperty.call(message, "enableInsightsExport")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enableInsightsExport); return writer; }; /** - * Encodes the specified Result message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.verify|verify} messages. + * Encodes the specified InsightsExportSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.IResult} message Result message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.SecuritySettings.IInsightsExportSettings} message InsightsExportSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Result.encodeDelimited = function encodeDelimited(message, writer) { + InsightsExportSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Result message from the specified reader or buffer. + * Decodes an InsightsExportSettings message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result} Result + * @returns {google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings} InsightsExportSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Result.decode = function decode(reader, length) { + InsightsExportSettings.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.versionMetrics && message.versionMetrics.length)) - message.versionMetrics = []; - message.versionMetrics.push($root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.decode(reader, reader.uint32())); - break; - case 2: - message.lastUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.enableInsightsExport = reader.bool(); break; default: reader.skipType(tag & 7); @@ -124162,1052 +122697,914 @@ }; /** - * Decodes a Result message from the specified reader or buffer, length delimited. + * Decodes an InsightsExportSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result} Result + * @returns {google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings} InsightsExportSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Result.decodeDelimited = function decodeDelimited(reader) { + InsightsExportSettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Result message. + * Verifies an InsightsExportSettings message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Result.verify = function verify(message) { + InsightsExportSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.versionMetrics != null && message.hasOwnProperty("versionMetrics")) { - if (!Array.isArray(message.versionMetrics)) - return "versionMetrics: array expected"; - for (var i = 0; i < message.versionMetrics.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.verify(message.versionMetrics[i]); - if (error) - return "versionMetrics." + error; - } - } - if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.lastUpdateTime); - if (error) - return "lastUpdateTime." + error; - } + if (message.enableInsightsExport != null && message.hasOwnProperty("enableInsightsExport")) + if (typeof message.enableInsightsExport !== "boolean") + return "enableInsightsExport: boolean expected"; return null; }; /** - * Creates a Result message from a plain object. Also converts values to their respective internal types. + * Creates an InsightsExportSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result} Result - */ - Result.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result(); - if (object.versionMetrics) { - if (!Array.isArray(object.versionMetrics)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.Result.versionMetrics: array expected"); - message.versionMetrics = []; - for (var i = 0; i < object.versionMetrics.length; ++i) { - if (typeof object.versionMetrics[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.Result.versionMetrics: object expected"); - message.versionMetrics[i] = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.fromObject(object.versionMetrics[i]); - } - } - if (object.lastUpdateTime != null) { - if (typeof object.lastUpdateTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.Result.lastUpdateTime: object expected"); - message.lastUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.lastUpdateTime); - } + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings} InsightsExportSettings + */ + InsightsExportSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings(); + if (object.enableInsightsExport != null) + message.enableInsightsExport = Boolean(object.enableInsightsExport); return message; }; /** - * Creates a plain object from a Result message. Also converts values to other types if specified. + * Creates a plain object from an InsightsExportSettings message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result} message Result + * @param {google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings} message InsightsExportSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Result.toObject = function toObject(message, options) { + InsightsExportSettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.versionMetrics = []; if (options.defaults) - object.lastUpdateTime = null; - if (message.versionMetrics && message.versionMetrics.length) { - object.versionMetrics = []; - for (var j = 0; j < message.versionMetrics.length; ++j) - object.versionMetrics[j] = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.toObject(message.versionMetrics[j], options); - } - if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) - object.lastUpdateTime = $root.google.protobuf.Timestamp.toObject(message.lastUpdateTime, options); + object.enableInsightsExport = false; + if (message.enableInsightsExport != null && message.hasOwnProperty("enableInsightsExport")) + object.enableInsightsExport = message.enableInsightsExport; return object; }; /** - * Converts this Result to JSON. + * Converts this InsightsExportSettings to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings * @instance * @returns {Object.} JSON object */ - Result.prototype.toJSON = function toJSON() { + InsightsExportSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * MetricType enum. - * @name google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType - * @enum {number} - * @property {number} METRIC_UNSPECIFIED=0 METRIC_UNSPECIFIED value - * @property {number} CONTAINED_SESSION_NO_CALLBACK_RATE=1 CONTAINED_SESSION_NO_CALLBACK_RATE value - * @property {number} LIVE_AGENT_HANDOFF_RATE=2 LIVE_AGENT_HANDOFF_RATE value - * @property {number} CALLBACK_SESSION_RATE=3 CALLBACK_SESSION_RATE value - * @property {number} ABANDONED_SESSION_RATE=4 ABANDONED_SESSION_RATE value - * @property {number} SESSION_END_RATE=5 SESSION_END_RATE value - */ - Result.MetricType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "METRIC_UNSPECIFIED"] = 0; - values[valuesById[1] = "CONTAINED_SESSION_NO_CALLBACK_RATE"] = 1; - values[valuesById[2] = "LIVE_AGENT_HANDOFF_RATE"] = 2; - values[valuesById[3] = "CALLBACK_SESSION_RATE"] = 3; - values[valuesById[4] = "ABANDONED_SESSION_RATE"] = 4; - values[valuesById[5] = "SESSION_END_RATE"] = 5; - return values; - })(); + return InsightsExportSettings; + })(); - /** - * CountType enum. - * @name google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType - * @enum {number} - * @property {number} COUNT_TYPE_UNSPECIFIED=0 COUNT_TYPE_UNSPECIFIED value - * @property {number} TOTAL_NO_MATCH_COUNT=1 TOTAL_NO_MATCH_COUNT value - * @property {number} TOTAL_TURN_COUNT=2 TOTAL_TURN_COUNT value - * @property {number} AVERAGE_TURN_COUNT=3 AVERAGE_TURN_COUNT value - */ - Result.CountType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "COUNT_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "TOTAL_NO_MATCH_COUNT"] = 1; - values[valuesById[2] = "TOTAL_TURN_COUNT"] = 2; - values[valuesById[3] = "AVERAGE_TURN_COUNT"] = 3; - return values; - })(); + return SecuritySettings; + })(); - Result.ConfidenceInterval = (function() { + v3beta1.Versions = (function() { - /** - * Properties of a ConfidenceInterval. - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result - * @interface IConfidenceInterval - * @property {number|null} [confidenceLevel] ConfidenceInterval confidenceLevel - * @property {number|null} [ratio] ConfidenceInterval ratio - * @property {number|null} [lowerBound] ConfidenceInterval lowerBound - * @property {number|null} [upperBound] ConfidenceInterval upperBound - */ + /** + * Constructs a new Versions service. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a Versions + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function Versions(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } - /** - * Constructs a new ConfidenceInterval. - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result - * @classdesc Represents a ConfidenceInterval. - * @implements IConfidenceInterval - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval=} [properties] Properties to set - */ - function ConfidenceInterval(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + (Versions.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Versions; - /** - * ConfidenceInterval confidenceLevel. - * @member {number} confidenceLevel - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval - * @instance - */ - ConfidenceInterval.prototype.confidenceLevel = 0; + /** + * Creates new Versions service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {Versions} RPC service. Useful where requests and/or responses are streamed. + */ + Versions.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; - /** - * ConfidenceInterval ratio. - * @member {number} ratio - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval - * @instance - */ - ConfidenceInterval.prototype.ratio = 0; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#listVersions}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * @typedef ListVersionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse} [response] ListVersionsResponse + */ - /** - * ConfidenceInterval lowerBound. - * @member {number} lowerBound - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval - * @instance - */ - ConfidenceInterval.prototype.lowerBound = 0; + /** + * Calls ListVersions. + * @function listVersions + * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest} request ListVersionsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Versions.ListVersionsCallback} callback Node-style callback called with the error, if any, and ListVersionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Versions.prototype.listVersions = function listVersions(request, callback) { + return this.rpcCall(listVersions, $root.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse, request, callback); + }, "name", { value: "ListVersions" }); - /** - * ConfidenceInterval upperBound. - * @member {number} upperBound - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval - * @instance - */ - ConfidenceInterval.prototype.upperBound = 0; + /** + * Calls ListVersions. + * @function listVersions + * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest} request ListVersionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Creates a new ConfidenceInterval instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval} ConfidenceInterval instance - */ - ConfidenceInterval.create = function create(properties) { - return new ConfidenceInterval(properties); - }; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#getVersion}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * @typedef GetVersionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Version} [response] Version + */ - /** - * Encodes the specified ConfidenceInterval message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval} message ConfidenceInterval message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConfidenceInterval.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.confidenceLevel != null && Object.hasOwnProperty.call(message, "confidenceLevel")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.confidenceLevel); - if (message.ratio != null && Object.hasOwnProperty.call(message, "ratio")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.ratio); - if (message.lowerBound != null && Object.hasOwnProperty.call(message, "lowerBound")) - writer.uint32(/* id 3, wireType 1 =*/25).double(message.lowerBound); - if (message.upperBound != null && Object.hasOwnProperty.call(message, "upperBound")) - writer.uint32(/* id 4, wireType 1 =*/33).double(message.upperBound); - return writer; - }; + /** + * Calls GetVersion. + * @function getVersion + * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest} request GetVersionRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Versions.GetVersionCallback} callback Node-style callback called with the error, if any, and Version + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Versions.prototype.getVersion = function getVersion(request, callback) { + return this.rpcCall(getVersion, $root.google.cloud.dialogflow.cx.v3beta1.GetVersionRequest, $root.google.cloud.dialogflow.cx.v3beta1.Version, request, callback); + }, "name", { value: "GetVersion" }); - /** - * Encodes the specified ConfidenceInterval message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval} message ConfidenceInterval message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConfidenceInterval.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Calls GetVersion. + * @function getVersion + * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest} request GetVersionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Decodes a ConfidenceInterval message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval} ConfidenceInterval - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConfidenceInterval.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.confidenceLevel = reader.double(); - break; - case 2: - message.ratio = reader.double(); - break; - case 3: - message.lowerBound = reader.double(); - break; - case 4: - message.upperBound = reader.double(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#createVersion}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * @typedef CreateVersionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ - /** - * Decodes a ConfidenceInterval message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval} ConfidenceInterval - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConfidenceInterval.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Calls CreateVersion. + * @function createVersion + * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest} request CreateVersionRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Versions.CreateVersionCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Versions.prototype.createVersion = function createVersion(request, callback) { + return this.rpcCall(createVersion, $root.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateVersion" }); - /** - * Verifies a ConfidenceInterval message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ConfidenceInterval.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.confidenceLevel != null && message.hasOwnProperty("confidenceLevel")) - if (typeof message.confidenceLevel !== "number") - return "confidenceLevel: number expected"; - if (message.ratio != null && message.hasOwnProperty("ratio")) - if (typeof message.ratio !== "number") - return "ratio: number expected"; - if (message.lowerBound != null && message.hasOwnProperty("lowerBound")) - if (typeof message.lowerBound !== "number") - return "lowerBound: number expected"; - if (message.upperBound != null && message.hasOwnProperty("upperBound")) - if (typeof message.upperBound !== "number") - return "upperBound: number expected"; - return null; - }; + /** + * Calls CreateVersion. + * @function createVersion + * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest} request CreateVersionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Creates a ConfidenceInterval message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval} ConfidenceInterval - */ - ConfidenceInterval.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval(); - if (object.confidenceLevel != null) - message.confidenceLevel = Number(object.confidenceLevel); - if (object.ratio != null) - message.ratio = Number(object.ratio); - if (object.lowerBound != null) - message.lowerBound = Number(object.lowerBound); - if (object.upperBound != null) - message.upperBound = Number(object.upperBound); - return message; - }; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#updateVersion}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * @typedef UpdateVersionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Version} [response] Version + */ - /** - * Creates a plain object from a ConfidenceInterval message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval} message ConfidenceInterval - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ConfidenceInterval.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.confidenceLevel = 0; - object.ratio = 0; - object.lowerBound = 0; - object.upperBound = 0; - } - if (message.confidenceLevel != null && message.hasOwnProperty("confidenceLevel")) - object.confidenceLevel = options.json && !isFinite(message.confidenceLevel) ? String(message.confidenceLevel) : message.confidenceLevel; - if (message.ratio != null && message.hasOwnProperty("ratio")) - object.ratio = options.json && !isFinite(message.ratio) ? String(message.ratio) : message.ratio; - if (message.lowerBound != null && message.hasOwnProperty("lowerBound")) - object.lowerBound = options.json && !isFinite(message.lowerBound) ? String(message.lowerBound) : message.lowerBound; - if (message.upperBound != null && message.hasOwnProperty("upperBound")) - object.upperBound = options.json && !isFinite(message.upperBound) ? String(message.upperBound) : message.upperBound; - return object; - }; + /** + * Calls UpdateVersion. + * @function updateVersion + * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest} request UpdateVersionRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Versions.UpdateVersionCallback} callback Node-style callback called with the error, if any, and Version + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Versions.prototype.updateVersion = function updateVersion(request, callback) { + return this.rpcCall(updateVersion, $root.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest, $root.google.cloud.dialogflow.cx.v3beta1.Version, request, callback); + }, "name", { value: "UpdateVersion" }); - /** - * Converts this ConfidenceInterval to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval - * @instance - * @returns {Object.} JSON object - */ - ConfidenceInterval.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Calls UpdateVersion. + * @function updateVersion + * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest} request UpdateVersionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#deleteVersion}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * @typedef DeleteVersionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteVersion. + * @function deleteVersion + * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest} request DeleteVersionRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Versions.DeleteVersionCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Versions.prototype.deleteVersion = function deleteVersion(request, callback) { + return this.rpcCall(deleteVersion, $root.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteVersion" }); + + /** + * Calls DeleteVersion. + * @function deleteVersion + * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest} request DeleteVersionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#loadVersion}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * @typedef LoadVersionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls LoadVersion. + * @function loadVersion + * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest} request LoadVersionRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Versions.LoadVersionCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Versions.prototype.loadVersion = function loadVersion(request, callback) { + return this.rpcCall(loadVersion, $root.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "LoadVersion" }); - return ConfidenceInterval; - })(); + /** + * Calls LoadVersion. + * @function loadVersion + * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest} request LoadVersionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - Result.Metric = (function() { + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#compareVersions}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * @typedef CompareVersionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse} [response] CompareVersionsResponse + */ - /** - * Properties of a Metric. - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result - * @interface IMetric - * @property {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType|null} [type] Metric type - * @property {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType|null} [countType] Metric countType - * @property {number|null} [ratio] Metric ratio - * @property {number|null} [count] Metric count - * @property {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval|null} [confidenceInterval] Metric confidenceInterval - */ + /** + * Calls CompareVersions. + * @function compareVersions + * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICompareVersionsRequest} request CompareVersionsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Versions.CompareVersionsCallback} callback Node-style callback called with the error, if any, and CompareVersionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Versions.prototype.compareVersions = function compareVersions(request, callback) { + return this.rpcCall(compareVersions, $root.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest, $root.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse, request, callback); + }, "name", { value: "CompareVersions" }); - /** - * Constructs a new Metric. - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result - * @classdesc Represents a Metric. - * @implements IMetric - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric=} [properties] Properties to set - */ - function Metric(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Calls CompareVersions. + * @function compareVersions + * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICompareVersionsRequest} request CompareVersionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Metric type. - * @member {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType} type - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric - * @instance - */ - Metric.prototype.type = 0; + return Versions; + })(); - /** - * Metric countType. - * @member {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType} countType - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric - * @instance - */ - Metric.prototype.countType = 0; + v3beta1.CreateVersionOperationMetadata = (function() { - /** - * Metric ratio. - * @member {number|null|undefined} ratio - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric - * @instance - */ - Metric.prototype.ratio = null; + /** + * Properties of a CreateVersionOperationMetadata. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface ICreateVersionOperationMetadata + * @property {string|null} [version] CreateVersionOperationMetadata version + */ - /** - * Metric count. - * @member {number|null|undefined} count - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric - * @instance - */ - Metric.prototype.count = null; + /** + * Constructs a new CreateVersionOperationMetadata. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a CreateVersionOperationMetadata. + * @implements ICreateVersionOperationMetadata + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateVersionOperationMetadata=} [properties] Properties to set + */ + function CreateVersionOperationMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Metric confidenceInterval. - * @member {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IConfidenceInterval|null|undefined} confidenceInterval - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric - * @instance - */ - Metric.prototype.confidenceInterval = null; + /** + * CreateVersionOperationMetadata version. + * @member {string} version + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata + * @instance + */ + CreateVersionOperationMetadata.prototype.version = ""; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Creates a new CreateVersionOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateVersionOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata} CreateVersionOperationMetadata instance + */ + CreateVersionOperationMetadata.create = function create(properties) { + return new CreateVersionOperationMetadata(properties); + }; - /** - * Metric value. - * @member {"ratio"|"count"|undefined} value - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric - * @instance - */ - Object.defineProperty(Metric.prototype, "value", { - get: $util.oneOfGetter($oneOfFields = ["ratio", "count"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Encodes the specified CreateVersionOperationMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateVersionOperationMetadata} message CreateVersionOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateVersionOperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); + return writer; + }; - /** - * Creates a new Metric instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric} Metric instance - */ - Metric.create = function create(properties) { - return new Metric(properties); - }; + /** + * Encodes the specified CreateVersionOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateVersionOperationMetadata} message CreateVersionOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateVersionOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified Metric message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric} message Metric message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Metric.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.ratio != null && Object.hasOwnProperty.call(message, "ratio")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.ratio); - if (message.confidenceInterval != null && Object.hasOwnProperty.call(message, "confidenceInterval")) - $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.encode(message.confidenceInterval, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.count != null && Object.hasOwnProperty.call(message, "count")) - writer.uint32(/* id 4, wireType 1 =*/33).double(message.count); - if (message.countType != null && Object.hasOwnProperty.call(message, "countType")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.countType); - return writer; - }; + /** + * Decodes a CreateVersionOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata} CreateVersionOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateVersionOperationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.version = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IMetric} message Metric message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Metric.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a CreateVersionOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata} CreateVersionOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateVersionOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a Metric message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric} Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Metric.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = reader.int32(); - break; - case 5: - message.countType = reader.int32(); - break; - case 2: - message.ratio = reader.double(); - break; - case 4: - message.count = reader.double(); - break; - case 3: - message.confidenceInterval = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Verifies a CreateVersionOperationMetadata message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateVersionOperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + return null; + }; - /** - * Decodes a Metric message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric} Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Metric.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a CreateVersionOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata} CreateVersionOperationMetadata + */ + CreateVersionOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata(); + if (object.version != null) + message.version = String(object.version); + return message; + }; - /** - * Verifies a Metric message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Metric.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.countType != null && message.hasOwnProperty("countType")) - switch (message.countType) { - default: - return "countType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.ratio != null && message.hasOwnProperty("ratio")) { - properties.value = 1; - if (typeof message.ratio !== "number") - return "ratio: number expected"; - } - if (message.count != null && message.hasOwnProperty("count")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - if (typeof message.count !== "number") - return "count: number expected"; - } - if (message.confidenceInterval != null && message.hasOwnProperty("confidenceInterval")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.verify(message.confidenceInterval); - if (error) - return "confidenceInterval." + error; - } - return null; - }; + /** + * Creates a plain object from a CreateVersionOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata} message CreateVersionOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateVersionOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.version = ""; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + return object; + }; - /** - * Creates a Metric message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric} Metric - */ - Metric.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric(); - switch (object.type) { - case "METRIC_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "CONTAINED_SESSION_NO_CALLBACK_RATE": - case 1: - message.type = 1; - break; - case "LIVE_AGENT_HANDOFF_RATE": - case 2: - message.type = 2; - break; - case "CALLBACK_SESSION_RATE": - case 3: - message.type = 3; - break; - case "ABANDONED_SESSION_RATE": - case 4: - message.type = 4; - break; - case "SESSION_END_RATE": - case 5: - message.type = 5; - break; - } - switch (object.countType) { - case "COUNT_TYPE_UNSPECIFIED": - case 0: - message.countType = 0; - break; - case "TOTAL_NO_MATCH_COUNT": - case 1: - message.countType = 1; - break; - case "TOTAL_TURN_COUNT": - case 2: - message.countType = 2; - break; - case "AVERAGE_TURN_COUNT": - case 3: - message.countType = 3; - break; - } - if (object.ratio != null) - message.ratio = Number(object.ratio); - if (object.count != null) - message.count = Number(object.count); - if (object.confidenceInterval != null) { - if (typeof object.confidenceInterval !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.confidenceInterval: object expected"); - message.confidenceInterval = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.fromObject(object.confidenceInterval); - } - return message; - }; + /** + * Converts this CreateVersionOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + CreateVersionOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a plain object from a Metric message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric} message Metric - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Metric.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.type = options.enums === String ? "METRIC_UNSPECIFIED" : 0; - object.confidenceInterval = null; - object.countType = options.enums === String ? "COUNT_TYPE_UNSPECIFIED" : 0; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType[message.type] : message.type; - if (message.ratio != null && message.hasOwnProperty("ratio")) { - object.ratio = options.json && !isFinite(message.ratio) ? String(message.ratio) : message.ratio; - if (options.oneofs) - object.value = "ratio"; - } - if (message.confidenceInterval != null && message.hasOwnProperty("confidenceInterval")) - object.confidenceInterval = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.toObject(message.confidenceInterval, options); - if (message.count != null && message.hasOwnProperty("count")) { - object.count = options.json && !isFinite(message.count) ? String(message.count) : message.count; - if (options.oneofs) - object.value = "count"; - } - if (message.countType != null && message.hasOwnProperty("countType")) - object.countType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType[message.countType] : message.countType; - return object; - }; + return CreateVersionOperationMetadata; + })(); - /** - * Converts this Metric to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric - * @instance - * @returns {Object.} JSON object - */ - Metric.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + v3beta1.Version = (function() { - return Metric; - })(); + /** + * Properties of a Version. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IVersion + * @property {string|null} [name] Version name + * @property {string|null} [displayName] Version displayName + * @property {string|null} [description] Version description + * @property {google.cloud.dialogflow.cx.v3beta1.INluSettings|null} [nluSettings] Version nluSettings + * @property {google.protobuf.ITimestamp|null} [createTime] Version createTime + * @property {google.cloud.dialogflow.cx.v3beta1.Version.State|null} [state] Version state + */ - Result.VersionMetrics = (function() { + /** + * Constructs a new Version. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a Version. + * @implements IVersion + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IVersion=} [properties] Properties to set + */ + function Version(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Properties of a VersionMetrics. - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result - * @interface IVersionMetrics - * @property {string|null} [version] VersionMetrics version - * @property {Array.|null} [metrics] VersionMetrics metrics - * @property {number|null} [sessionCount] VersionMetrics sessionCount - */ + /** + * Version name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @instance + */ + Version.prototype.name = ""; - /** - * Constructs a new VersionMetrics. - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result - * @classdesc Represents a VersionMetrics. - * @implements IVersionMetrics - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics=} [properties] Properties to set - */ - function VersionMetrics(properties) { - this.metrics = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Version displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @instance + */ + Version.prototype.displayName = ""; - /** - * VersionMetrics version. - * @member {string} version - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics - * @instance - */ - VersionMetrics.prototype.version = ""; + /** + * Version description. + * @member {string} description + * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @instance + */ + Version.prototype.description = ""; - /** - * VersionMetrics metrics. - * @member {Array.} metrics - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics - * @instance - */ - VersionMetrics.prototype.metrics = $util.emptyArray; + /** + * Version nluSettings. + * @member {google.cloud.dialogflow.cx.v3beta1.INluSettings|null|undefined} nluSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @instance + */ + Version.prototype.nluSettings = null; - /** - * VersionMetrics sessionCount. - * @member {number} sessionCount - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics - * @instance - */ - VersionMetrics.prototype.sessionCount = 0; + /** + * Version createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @instance + */ + Version.prototype.createTime = null; - /** - * Creates a new VersionMetrics instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics} VersionMetrics instance - */ - VersionMetrics.create = function create(properties) { - return new VersionMetrics(properties); - }; + /** + * Version state. + * @member {google.cloud.dialogflow.cx.v3beta1.Version.State} state + * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @instance + */ + Version.prototype.state = 0; - /** - * Encodes the specified VersionMetrics message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics} message VersionMetrics message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VersionMetrics.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); - if (message.metrics != null && message.metrics.length) - for (var i = 0; i < message.metrics.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.encode(message.metrics[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.sessionCount != null && Object.hasOwnProperty.call(message, "sessionCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.sessionCount); - return writer; - }; + /** + * Creates a new Version instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IVersion=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Version} Version instance + */ + Version.create = function create(properties) { + return new Version(properties); + }; - /** - * Encodes the specified VersionMetrics message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.IVersionMetrics} message VersionMetrics message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VersionMetrics.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Version message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Version.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IVersion} message Version message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Version.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); + if (message.nluSettings != null && Object.hasOwnProperty.call(message, "nluSettings")) + $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.encode(message.nluSettings, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state); + return writer; + }; - /** - * Decodes a VersionMetrics message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics} VersionMetrics - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VersionMetrics.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.version = reader.string(); - break; - case 2: - if (!(message.metrics && message.metrics.length)) - message.metrics = []; - message.metrics.push($root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.decode(reader, reader.uint32())); - break; - case 3: - message.sessionCount = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified Version message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Version.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IVersion} message Version message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Version.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a VersionMetrics message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics} VersionMetrics - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VersionMetrics.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a Version message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.Version} Version + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Version.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Version(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.displayName = reader.string(); + break; + case 3: + message.description = reader.string(); + break; + case 4: + message.nluSettings = $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.decode(reader, reader.uint32()); + break; + case 5: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 6: + message.state = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Verifies a VersionMetrics message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - VersionMetrics.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - if (message.metrics != null && message.hasOwnProperty("metrics")) { - if (!Array.isArray(message.metrics)) - return "metrics: array expected"; - for (var i = 0; i < message.metrics.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.verify(message.metrics[i]); - if (error) - return "metrics." + error; - } - } - if (message.sessionCount != null && message.hasOwnProperty("sessionCount")) - if (!$util.isInteger(message.sessionCount)) - return "sessionCount: integer expected"; - return null; - }; + /** + * Decodes a Version message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Version} Version + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Version.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a VersionMetrics message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics} VersionMetrics - */ - VersionMetrics.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics(); - if (object.version != null) - message.version = String(object.version); - if (object.metrics) { - if (!Array.isArray(object.metrics)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.metrics: array expected"); - message.metrics = []; - for (var i = 0; i < object.metrics.length; ++i) { - if (typeof object.metrics[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics.metrics: object expected"); - message.metrics[i] = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.fromObject(object.metrics[i]); - } - } - if (object.sessionCount != null) - message.sessionCount = object.sessionCount | 0; - return message; - }; + /** + * Verifies a Version message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Version.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.nluSettings != null && message.hasOwnProperty("nluSettings")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.verify(message.nluSettings); + if (error) + return "nluSettings." + error; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + return null; + }; - /** - * Creates a plain object from a VersionMetrics message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics} message VersionMetrics - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - VersionMetrics.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.metrics = []; - if (options.defaults) { - object.version = ""; - object.sessionCount = 0; - } - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.metrics && message.metrics.length) { - object.metrics = []; - for (var j = 0; j < message.metrics.length; ++j) - object.metrics[j] = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.toObject(message.metrics[j], options); - } - if (message.sessionCount != null && message.hasOwnProperty("sessionCount")) - object.sessionCount = message.sessionCount; - return object; - }; + /** + * Creates a Version message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Version} Version + */ + Version.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Version) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Version(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.description != null) + message.description = String(object.description); + if (object.nluSettings != null) { + if (typeof object.nluSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Version.nluSettings: object expected"); + message.nluSettings = $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.fromObject(object.nluSettings); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Version.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + switch (object.state) { + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "RUNNING": + case 1: + message.state = 1; + break; + case "SUCCEEDED": + case 2: + message.state = 2; + break; + case "FAILED": + case 3: + message.state = 3; + break; + } + return message; + }; - /** - * Converts this VersionMetrics to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics - * @instance - * @returns {Object.} JSON object - */ - VersionMetrics.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a Version message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Version} message Version + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Version.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.description = ""; + object.nluSettings = null; + object.createTime = null; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.nluSettings != null && message.hasOwnProperty("nluSettings")) + object.nluSettings = $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.toObject(message.nluSettings, options); + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.Version.State[message.state] : message.state; + return object; + }; - return VersionMetrics; - })(); + /** + * Converts this Version to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @instance + * @returns {Object.} JSON object + */ + Version.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Result; + /** + * State enum. + * @name google.cloud.dialogflow.cx.v3beta1.Version.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} RUNNING=1 RUNNING value + * @property {number} SUCCEEDED=2 SUCCEEDED value + * @property {number} FAILED=3 FAILED value + */ + Version.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "RUNNING"] = 1; + values[valuesById[2] = "SUCCEEDED"] = 2; + values[valuesById[3] = "FAILED"] = 3; + return values; })(); - return Experiment; + return Version; })(); - v3beta1.VersionVariants = (function() { + v3beta1.ListVersionsRequest = (function() { /** - * Properties of a VersionVariants. + * Properties of a ListVersionsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IVersionVariants - * @property {Array.|null} [variants] VersionVariants variants + * @interface IListVersionsRequest + * @property {string|null} [parent] ListVersionsRequest parent + * @property {number|null} [pageSize] ListVersionsRequest pageSize + * @property {string|null} [pageToken] ListVersionsRequest pageToken */ /** - * Constructs a new VersionVariants. + * Constructs a new ListVersionsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a VersionVariants. - * @implements IVersionVariants + * @classdesc Represents a ListVersionsRequest. + * @implements IListVersionsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IVersionVariants=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest=} [properties] Properties to set */ - function VersionVariants(properties) { - this.variants = []; + function ListVersionsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -125215,78 +123612,101 @@ } /** - * VersionVariants variants. - * @member {Array.} variants - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants + * ListVersionsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest * @instance */ - VersionVariants.prototype.variants = $util.emptyArray; + ListVersionsRequest.prototype.parent = ""; /** - * Creates a new VersionVariants instance using the specified properties. + * ListVersionsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest + * @instance + */ + ListVersionsRequest.prototype.pageSize = 0; + + /** + * ListVersionsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest + * @instance + */ + ListVersionsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListVersionsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IVersionVariants=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.VersionVariants} VersionVariants instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest} ListVersionsRequest instance */ - VersionVariants.create = function create(properties) { - return new VersionVariants(properties); + ListVersionsRequest.create = function create(properties) { + return new ListVersionsRequest(properties); }; /** - * Encodes the specified VersionVariants message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VersionVariants.verify|verify} messages. + * Encodes the specified ListVersionsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IVersionVariants} message VersionVariants message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest} message ListVersionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VersionVariants.encode = function encode(message, writer) { + ListVersionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.variants != null && message.variants.length) - for (var i = 0; i < message.variants.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.encode(message.variants[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified VersionVariants message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VersionVariants.verify|verify} messages. + * Encodes the specified ListVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IVersionVariants} message VersionVariants message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest} message ListVersionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VersionVariants.encodeDelimited = function encodeDelimited(message, writer) { + ListVersionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VersionVariants message from the specified reader or buffer. + * Decodes a ListVersionsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.VersionVariants} VersionVariants + * @returns {google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest} ListVersionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VersionVariants.decode = function decode(reader, length) { + ListVersionsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.variants && message.variants.length)) - message.variants = []; - message.variants.push($root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.decode(reader, reader.uint32())); + message.parent = reader.string(); + break; + case 2: + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -125297,359 +123717,126 @@ }; /** - * Decodes a VersionVariants message from the specified reader or buffer, length delimited. + * Decodes a ListVersionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.VersionVariants} VersionVariants + * @returns {google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest} ListVersionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VersionVariants.decodeDelimited = function decodeDelimited(reader) { + ListVersionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VersionVariants message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - VersionVariants.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.variants != null && message.hasOwnProperty("variants")) { - if (!Array.isArray(message.variants)) - return "variants: array expected"; - for (var i = 0; i < message.variants.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.verify(message.variants[i]); - if (error) - return "variants." + error; - } - } - return null; - }; - - /** - * Creates a VersionVariants message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.VersionVariants} VersionVariants - */ - VersionVariants.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants(); - if (object.variants) { - if (!Array.isArray(object.variants)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.VersionVariants.variants: array expected"); - message.variants = []; - for (var i = 0; i < object.variants.length; ++i) { - if (typeof object.variants[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.VersionVariants.variants: object expected"); - message.variants[i] = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.fromObject(object.variants[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a VersionVariants message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.VersionVariants} message VersionVariants - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - VersionVariants.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.variants = []; - if (message.variants && message.variants.length) { - object.variants = []; - for (var j = 0; j < message.variants.length; ++j) - object.variants[j] = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.toObject(message.variants[j], options); - } - return object; - }; - - /** - * Converts this VersionVariants to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants - * @instance - * @returns {Object.} JSON object - */ - VersionVariants.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - VersionVariants.Variant = (function() { - - /** - * Properties of a Variant. - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants - * @interface IVariant - * @property {string|null} [version] Variant version - * @property {number|null} [trafficAllocation] Variant trafficAllocation - * @property {boolean|null} [isControlGroup] Variant isControlGroup - */ - - /** - * Constructs a new Variant. - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants - * @classdesc Represents a Variant. - * @implements IVariant - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant=} [properties] Properties to set - */ - function Variant(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Variant version. - * @member {string} version - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant - * @instance - */ - Variant.prototype.version = ""; - - /** - * Variant trafficAllocation. - * @member {number} trafficAllocation - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant - * @instance - */ - Variant.prototype.trafficAllocation = 0; - - /** - * Variant isControlGroup. - * @member {boolean} isControlGroup - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant - * @instance - */ - Variant.prototype.isControlGroup = false; - - /** - * Creates a new Variant instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant} Variant instance - */ - Variant.create = function create(properties) { - return new Variant(properties); - }; - - /** - * Encodes the specified Variant message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant} message Variant message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Variant.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); - if (message.trafficAllocation != null && Object.hasOwnProperty.call(message, "trafficAllocation")) - writer.uint32(/* id 2, wireType 5 =*/21).float(message.trafficAllocation); - if (message.isControlGroup != null && Object.hasOwnProperty.call(message, "isControlGroup")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isControlGroup); - return writer; - }; - - /** - * Encodes the specified Variant message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.VersionVariants.IVariant} message Variant message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Variant.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Variant message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant} Variant - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Variant.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.version = reader.string(); - break; - case 2: - message.trafficAllocation = reader.float(); - break; - case 3: - message.isControlGroup = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Variant message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant} Variant - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Variant.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Variant message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Variant.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - if (message.trafficAllocation != null && message.hasOwnProperty("trafficAllocation")) - if (typeof message.trafficAllocation !== "number") - return "trafficAllocation: number expected"; - if (message.isControlGroup != null && message.hasOwnProperty("isControlGroup")) - if (typeof message.isControlGroup !== "boolean") - return "isControlGroup: boolean expected"; - return null; - }; - - /** - * Creates a Variant message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant} Variant - */ - Variant.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant(); - if (object.version != null) - message.version = String(object.version); - if (object.trafficAllocation != null) - message.trafficAllocation = Number(object.trafficAllocation); - if (object.isControlGroup != null) - message.isControlGroup = Boolean(object.isControlGroup); - return message; - }; - - /** - * Creates a plain object from a Variant message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant} message Variant - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Variant.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.version = ""; - object.trafficAllocation = 0; - object.isControlGroup = false; - } - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.trafficAllocation != null && message.hasOwnProperty("trafficAllocation")) - object.trafficAllocation = options.json && !isFinite(message.trafficAllocation) ? String(message.trafficAllocation) : message.trafficAllocation; - if (message.isControlGroup != null && message.hasOwnProperty("isControlGroup")) - object.isControlGroup = message.isControlGroup; + * Verifies a ListVersionsRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListVersionsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + return null; + }; + + /** + * Creates a ListVersionsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest} ListVersionsRequest + */ + ListVersionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest) return object; - }; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + return message; + }; - /** - * Converts this Variant to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant - * @instance - * @returns {Object.} JSON object - */ - Variant.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ListVersionsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest} message ListVersionsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListVersionsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + return object; + }; - return Variant; - })(); + /** + * Converts this ListVersionsRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest + * @instance + * @returns {Object.} JSON object + */ + ListVersionsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return VersionVariants; + return ListVersionsRequest; })(); - v3beta1.RolloutConfig = (function() { + v3beta1.ListVersionsResponse = (function() { /** - * Properties of a RolloutConfig. + * Properties of a ListVersionsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IRolloutConfig - * @property {Array.|null} [rolloutSteps] RolloutConfig rolloutSteps - * @property {string|null} [rolloutCondition] RolloutConfig rolloutCondition - * @property {string|null} [failureCondition] RolloutConfig failureCondition + * @interface IListVersionsResponse + * @property {Array.|null} [versions] ListVersionsResponse versions + * @property {string|null} [nextPageToken] ListVersionsResponse nextPageToken */ /** - * Constructs a new RolloutConfig. + * Constructs a new ListVersionsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a RolloutConfig. - * @implements IRolloutConfig + * @classdesc Represents a ListVersionsResponse. + * @implements IListVersionsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IRolloutConfig=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListVersionsResponse=} [properties] Properties to set */ - function RolloutConfig(properties) { - this.rolloutSteps = []; + function ListVersionsResponse(properties) { + this.versions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -125657,104 +123844,91 @@ } /** - * RolloutConfig rolloutSteps. - * @member {Array.} rolloutSteps - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig - * @instance - */ - RolloutConfig.prototype.rolloutSteps = $util.emptyArray; - - /** - * RolloutConfig rolloutCondition. - * @member {string} rolloutCondition - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig + * ListVersionsResponse versions. + * @member {Array.} versions + * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse * @instance */ - RolloutConfig.prototype.rolloutCondition = ""; + ListVersionsResponse.prototype.versions = $util.emptyArray; /** - * RolloutConfig failureCondition. - * @member {string} failureCondition - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig + * ListVersionsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse * @instance */ - RolloutConfig.prototype.failureCondition = ""; + ListVersionsResponse.prototype.nextPageToken = ""; /** - * Creates a new RolloutConfig instance using the specified properties. + * Creates a new ListVersionsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRolloutConfig=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.RolloutConfig} RolloutConfig instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListVersionsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse} ListVersionsResponse instance */ - RolloutConfig.create = function create(properties) { - return new RolloutConfig(properties); + ListVersionsResponse.create = function create(properties) { + return new ListVersionsResponse(properties); }; /** - * Encodes the specified RolloutConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RolloutConfig.verify|verify} messages. + * Encodes the specified ListVersionsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRolloutConfig} message RolloutConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListVersionsResponse} message ListVersionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RolloutConfig.encode = function encode(message, writer) { + ListVersionsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rolloutSteps != null && message.rolloutSteps.length) - for (var i = 0; i < message.rolloutSteps.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep.encode(message.rolloutSteps[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.rolloutCondition != null && Object.hasOwnProperty.call(message, "rolloutCondition")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.rolloutCondition); - if (message.failureCondition != null && Object.hasOwnProperty.call(message, "failureCondition")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.failureCondition); + if (message.versions != null && message.versions.length) + for (var i = 0; i < message.versions.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Version.encode(message.versions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified RolloutConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RolloutConfig.verify|verify} messages. + * Encodes the specified ListVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRolloutConfig} message RolloutConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListVersionsResponse} message ListVersionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RolloutConfig.encodeDelimited = function encodeDelimited(message, writer) { + ListVersionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RolloutConfig message from the specified reader or buffer. + * Decodes a ListVersionsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.RolloutConfig} RolloutConfig + * @returns {google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse} ListVersionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RolloutConfig.decode = function decode(reader, length) { + ListVersionsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.RolloutConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.rolloutSteps && message.rolloutSteps.length)) - message.rolloutSteps = []; - message.rolloutSteps.push($root.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep.decode(reader, reader.uint32())); + if (!(message.versions && message.versions.length)) + message.versions = []; + message.versions.push($root.google.cloud.dialogflow.cx.v3beta1.Version.decode(reader, reader.uint32())); break; case 2: - message.rolloutCondition = reader.string(); - break; - case 3: - message.failureCondition = reader.string(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -125765,381 +123939,321 @@ }; /** - * Decodes a RolloutConfig message from the specified reader or buffer, length delimited. + * Decodes a ListVersionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.RolloutConfig} RolloutConfig + * @returns {google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse} ListVersionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RolloutConfig.decodeDelimited = function decodeDelimited(reader) { + ListVersionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RolloutConfig message. + * Verifies a ListVersionsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RolloutConfig.verify = function verify(message) { + ListVersionsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.rolloutSteps != null && message.hasOwnProperty("rolloutSteps")) { - if (!Array.isArray(message.rolloutSteps)) - return "rolloutSteps: array expected"; - for (var i = 0; i < message.rolloutSteps.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep.verify(message.rolloutSteps[i]); + if (message.versions != null && message.hasOwnProperty("versions")) { + if (!Array.isArray(message.versions)) + return "versions: array expected"; + for (var i = 0; i < message.versions.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Version.verify(message.versions[i]); if (error) - return "rolloutSteps." + error; + return "versions." + error; } } - if (message.rolloutCondition != null && message.hasOwnProperty("rolloutCondition")) - if (!$util.isString(message.rolloutCondition)) - return "rolloutCondition: string expected"; - if (message.failureCondition != null && message.hasOwnProperty("failureCondition")) - if (!$util.isString(message.failureCondition)) - return "failureCondition: string expected"; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a RolloutConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ListVersionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.RolloutConfig} RolloutConfig + * @returns {google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse} ListVersionsResponse */ - RolloutConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RolloutConfig) + ListVersionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.RolloutConfig(); - if (object.rolloutSteps) { - if (!Array.isArray(object.rolloutSteps)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.RolloutConfig.rolloutSteps: array expected"); - message.rolloutSteps = []; - for (var i = 0; i < object.rolloutSteps.length; ++i) { - if (typeof object.rolloutSteps[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.RolloutConfig.rolloutSteps: object expected"); - message.rolloutSteps[i] = $root.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep.fromObject(object.rolloutSteps[i]); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse(); + if (object.versions) { + if (!Array.isArray(object.versions)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse.versions: array expected"); + message.versions = []; + for (var i = 0; i < object.versions.length; ++i) { + if (typeof object.versions[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse.versions: object expected"); + message.versions[i] = $root.google.cloud.dialogflow.cx.v3beta1.Version.fromObject(object.versions[i]); } } - if (object.rolloutCondition != null) - message.rolloutCondition = String(object.rolloutCondition); - if (object.failureCondition != null) - message.failureCondition = String(object.failureCondition); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a RolloutConfig message. Also converts values to other types if specified. + * Creates a plain object from a ListVersionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.RolloutConfig} message RolloutConfig + * @param {google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse} message ListVersionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RolloutConfig.toObject = function toObject(message, options) { + ListVersionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.rolloutSteps = []; - if (options.defaults) { - object.rolloutCondition = ""; - object.failureCondition = ""; - } - if (message.rolloutSteps && message.rolloutSteps.length) { - object.rolloutSteps = []; - for (var j = 0; j < message.rolloutSteps.length; ++j) - object.rolloutSteps[j] = $root.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep.toObject(message.rolloutSteps[j], options); + object.versions = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.versions && message.versions.length) { + object.versions = []; + for (var j = 0; j < message.versions.length; ++j) + object.versions[j] = $root.google.cloud.dialogflow.cx.v3beta1.Version.toObject(message.versions[j], options); } - if (message.rolloutCondition != null && message.hasOwnProperty("rolloutCondition")) - object.rolloutCondition = message.rolloutCondition; - if (message.failureCondition != null && message.hasOwnProperty("failureCondition")) - object.failureCondition = message.failureCondition; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this RolloutConfig to JSON. + * Converts this ListVersionsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse * @instance * @returns {Object.} JSON object */ - RolloutConfig.prototype.toJSON = function toJSON() { + ListVersionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - RolloutConfig.RolloutStep = (function() { - - /** - * Properties of a RolloutStep. - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig - * @interface IRolloutStep - * @property {string|null} [displayName] RolloutStep displayName - * @property {number|null} [trafficPercent] RolloutStep trafficPercent - * @property {google.protobuf.IDuration|null} [minDuration] RolloutStep minDuration - */ - - /** - * Constructs a new RolloutStep. - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig - * @classdesc Represents a RolloutStep. - * @implements IRolloutStep - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.RolloutConfig.IRolloutStep=} [properties] Properties to set - */ - function RolloutStep(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * RolloutStep displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep - * @instance - */ - RolloutStep.prototype.displayName = ""; + return ListVersionsResponse; + })(); - /** - * RolloutStep trafficPercent. - * @member {number} trafficPercent - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep - * @instance - */ - RolloutStep.prototype.trafficPercent = 0; + v3beta1.GetVersionRequest = (function() { - /** - * RolloutStep minDuration. - * @member {google.protobuf.IDuration|null|undefined} minDuration - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep - * @instance - */ - RolloutStep.prototype.minDuration = null; + /** + * Properties of a GetVersionRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IGetVersionRequest + * @property {string|null} [name] GetVersionRequest name + */ - /** - * Creates a new RolloutStep instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.RolloutConfig.IRolloutStep=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep} RolloutStep instance - */ - RolloutStep.create = function create(properties) { - return new RolloutStep(properties); - }; + /** + * Constructs a new GetVersionRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a GetVersionRequest. + * @implements IGetVersionRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest=} [properties] Properties to set + */ + function GetVersionRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified RolloutStep message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.RolloutConfig.IRolloutStep} message RolloutStep message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RolloutStep.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName); - if (message.trafficPercent != null && Object.hasOwnProperty.call(message, "trafficPercent")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.trafficPercent); - if (message.minDuration != null && Object.hasOwnProperty.call(message, "minDuration")) - $root.google.protobuf.Duration.encode(message.minDuration, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; + /** + * GetVersionRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.GetVersionRequest + * @instance + */ + GetVersionRequest.prototype.name = ""; - /** - * Encodes the specified RolloutStep message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.RolloutConfig.IRolloutStep} message RolloutStep message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RolloutStep.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new GetVersionRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.GetVersionRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetVersionRequest} GetVersionRequest instance + */ + GetVersionRequest.create = function create(properties) { + return new GetVersionRequest(properties); + }; - /** - * Decodes a RolloutStep message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep} RolloutStep - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RolloutStep.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.displayName = reader.string(); - break; - case 2: - message.trafficPercent = reader.int32(); - break; - case 3: - message.minDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified GetVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetVersionRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.GetVersionRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest} message GetVersionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetVersionRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; - /** - * Decodes a RolloutStep message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep} RolloutStep - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RolloutStep.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified GetVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetVersionRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.GetVersionRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest} message GetVersionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies a RolloutStep message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RolloutStep.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.trafficPercent != null && message.hasOwnProperty("trafficPercent")) - if (!$util.isInteger(message.trafficPercent)) - return "trafficPercent: integer expected"; - if (message.minDuration != null && message.hasOwnProperty("minDuration")) { - var error = $root.google.protobuf.Duration.verify(message.minDuration); - if (error) - return "minDuration." + error; + /** + * Decodes a GetVersionRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.GetVersionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.GetVersionRequest} GetVersionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetVersionRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetVersionRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; } - return null; - }; + } + return message; + }; - /** - * Creates a RolloutStep message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep} RolloutStep - */ - RolloutStep.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep(); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.trafficPercent != null) - message.trafficPercent = object.trafficPercent | 0; - if (object.minDuration != null) { - if (typeof object.minDuration !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep.minDuration: object expected"); - message.minDuration = $root.google.protobuf.Duration.fromObject(object.minDuration); - } - return message; - }; + /** + * Decodes a GetVersionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.GetVersionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.GetVersionRequest} GetVersionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetVersionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from a RolloutStep message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep} message RolloutStep - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RolloutStep.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.displayName = ""; - object.trafficPercent = 0; - object.minDuration = null; - } - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.trafficPercent != null && message.hasOwnProperty("trafficPercent")) - object.trafficPercent = message.trafficPercent; - if (message.minDuration != null && message.hasOwnProperty("minDuration")) - object.minDuration = $root.google.protobuf.Duration.toObject(message.minDuration, options); + /** + * Verifies a GetVersionRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.GetVersionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetVersionRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetVersionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.GetVersionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.GetVersionRequest} GetVersionRequest + */ + GetVersionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetVersionRequest) return object; - }; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetVersionRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - /** - * Converts this RolloutStep to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep - * @instance - * @returns {Object.} JSON object - */ - RolloutStep.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a GetVersionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.GetVersionRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.GetVersionRequest} message GetVersionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetVersionRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; - return RolloutStep; - })(); + /** + * Converts this GetVersionRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.GetVersionRequest + * @instance + * @returns {Object.} JSON object + */ + GetVersionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return RolloutConfig; + return GetVersionRequest; })(); - v3beta1.RolloutState = (function() { + v3beta1.CreateVersionRequest = (function() { /** - * Properties of a RolloutState. + * Properties of a CreateVersionRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IRolloutState - * @property {string|null} [step] RolloutState step - * @property {number|null} [stepIndex] RolloutState stepIndex - * @property {google.protobuf.ITimestamp|null} [startTime] RolloutState startTime + * @interface ICreateVersionRequest + * @property {string|null} [parent] CreateVersionRequest parent + * @property {google.cloud.dialogflow.cx.v3beta1.IVersion|null} [version] CreateVersionRequest version */ /** - * Constructs a new RolloutState. + * Constructs a new CreateVersionRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a RolloutState. - * @implements IRolloutState + * @classdesc Represents a CreateVersionRequest. + * @implements ICreateVersionRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IRolloutState=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest=} [properties] Properties to set */ - function RolloutState(properties) { + function CreateVersionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -126147,101 +124261,88 @@ } /** - * RolloutState step. - * @member {string} step - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutState - * @instance - */ - RolloutState.prototype.step = ""; - - /** - * RolloutState stepIndex. - * @member {number} stepIndex - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutState + * CreateVersionRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest * @instance */ - RolloutState.prototype.stepIndex = 0; + CreateVersionRequest.prototype.parent = ""; /** - * RolloutState startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutState + * CreateVersionRequest version. + * @member {google.cloud.dialogflow.cx.v3beta1.IVersion|null|undefined} version + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest * @instance */ - RolloutState.prototype.startTime = null; + CreateVersionRequest.prototype.version = null; /** - * Creates a new RolloutState instance using the specified properties. + * Creates a new CreateVersionRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutState + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRolloutState=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.RolloutState} RolloutState instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest} CreateVersionRequest instance */ - RolloutState.create = function create(properties) { - return new RolloutState(properties); + CreateVersionRequest.create = function create(properties) { + return new CreateVersionRequest(properties); }; /** - * Encodes the specified RolloutState message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RolloutState.verify|verify} messages. + * Encodes the specified CreateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutState + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRolloutState} message RolloutState message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest} message CreateVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RolloutState.encode = function encode(message, writer) { + CreateVersionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.step != null && Object.hasOwnProperty.call(message, "step")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.step); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.stepIndex != null && Object.hasOwnProperty.call(message, "stepIndex")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.stepIndex); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + $root.google.cloud.dialogflow.cx.v3beta1.Version.encode(message.version, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified RolloutState message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RolloutState.verify|verify} messages. + * Encodes the specified CreateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutState + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRolloutState} message RolloutState message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest} message CreateVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RolloutState.encodeDelimited = function encodeDelimited(message, writer) { + CreateVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RolloutState message from the specified reader or buffer. + * Decodes a CreateVersionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutState + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.RolloutState} RolloutState + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest} CreateVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RolloutState.decode = function decode(reader, length) { + CreateVersionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.RolloutState(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.step = reader.string(); - break; - case 3: - message.stepIndex = reader.int32(); + message.parent = reader.string(); break; case 2: - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.version = $root.google.cloud.dialogflow.cx.v3beta1.Version.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -126252,130 +124353,122 @@ }; /** - * Decodes a RolloutState message from the specified reader or buffer, length delimited. + * Decodes a CreateVersionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutState + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.RolloutState} RolloutState + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest} CreateVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RolloutState.decodeDelimited = function decodeDelimited(reader) { + CreateVersionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RolloutState message. + * Verifies a CreateVersionRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutState + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RolloutState.verify = function verify(message) { + CreateVersionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.step != null && message.hasOwnProperty("step")) - if (!$util.isString(message.step)) - return "step: string expected"; - if (message.stepIndex != null && message.hasOwnProperty("stepIndex")) - if (!$util.isInteger(message.stepIndex)) - return "stepIndex: integer expected"; - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.version != null && message.hasOwnProperty("version")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Version.verify(message.version); if (error) - return "startTime." + error; + return "version." + error; } return null; }; /** - * Creates a RolloutState message from a plain object. Also converts values to their respective internal types. + * Creates a CreateVersionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutState + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.RolloutState} RolloutState + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest} CreateVersionRequest */ - RolloutState.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RolloutState) + CreateVersionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.RolloutState(); - if (object.step != null) - message.step = String(object.step); - if (object.stepIndex != null) - message.stepIndex = object.stepIndex | 0; - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.RolloutState.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.version != null) { + if (typeof object.version !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest.version: object expected"); + message.version = $root.google.cloud.dialogflow.cx.v3beta1.Version.fromObject(object.version); } return message; }; /** - * Creates a plain object from a RolloutState message. Also converts values to other types if specified. + * Creates a plain object from a CreateVersionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutState + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.RolloutState} message RolloutState + * @param {google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest} message CreateVersionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RolloutState.toObject = function toObject(message, options) { + CreateVersionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.step = ""; - object.startTime = null; - object.stepIndex = 0; + object.parent = ""; + object.version = null; } - if (message.step != null && message.hasOwnProperty("step")) - object.step = message.step; - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.stepIndex != null && message.hasOwnProperty("stepIndex")) - object.stepIndex = message.stepIndex; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.version != null && message.hasOwnProperty("version")) + object.version = $root.google.cloud.dialogflow.cx.v3beta1.Version.toObject(message.version, options); return object; }; /** - * Converts this RolloutState to JSON. + * Converts this CreateVersionRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.RolloutState + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest * @instance * @returns {Object.} JSON object */ - RolloutState.prototype.toJSON = function toJSON() { + CreateVersionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RolloutState; + return CreateVersionRequest; })(); - v3beta1.VariantsHistory = (function() { + v3beta1.UpdateVersionRequest = (function() { /** - * Properties of a VariantsHistory. + * Properties of an UpdateVersionRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IVariantsHistory - * @property {google.cloud.dialogflow.cx.v3beta1.IVersionVariants|null} [versionVariants] VariantsHistory versionVariants - * @property {google.protobuf.ITimestamp|null} [updateTime] VariantsHistory updateTime + * @interface IUpdateVersionRequest + * @property {google.cloud.dialogflow.cx.v3beta1.IVersion|null} [version] UpdateVersionRequest version + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateVersionRequest updateMask */ /** - * Constructs a new VariantsHistory. + * Constructs a new UpdateVersionRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a VariantsHistory. - * @implements IVariantsHistory + * @classdesc Represents an UpdateVersionRequest. + * @implements IUpdateVersionRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IVariantsHistory=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest=} [properties] Properties to set */ - function VariantsHistory(properties) { + function UpdateVersionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -126383,102 +124476,88 @@ } /** - * VariantsHistory versionVariants. - * @member {google.cloud.dialogflow.cx.v3beta1.IVersionVariants|null|undefined} versionVariants - * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory - * @instance - */ - VariantsHistory.prototype.versionVariants = null; - - /** - * VariantsHistory updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory + * UpdateVersionRequest version. + * @member {google.cloud.dialogflow.cx.v3beta1.IVersion|null|undefined} version + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest * @instance */ - VariantsHistory.prototype.updateTime = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + UpdateVersionRequest.prototype.version = null; /** - * VariantsHistory variants. - * @member {"versionVariants"|undefined} variants - * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory + * UpdateVersionRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest * @instance */ - Object.defineProperty(VariantsHistory.prototype, "variants", { - get: $util.oneOfGetter($oneOfFields = ["versionVariants"]), - set: $util.oneOfSetter($oneOfFields) - }); + UpdateVersionRequest.prototype.updateMask = null; /** - * Creates a new VariantsHistory instance using the specified properties. + * Creates a new UpdateVersionRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IVariantsHistory=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.VariantsHistory} VariantsHistory instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest} UpdateVersionRequest instance */ - VariantsHistory.create = function create(properties) { - return new VariantsHistory(properties); + UpdateVersionRequest.create = function create(properties) { + return new UpdateVersionRequest(properties); }; /** - * Encodes the specified VariantsHistory message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VariantsHistory.verify|verify} messages. + * Encodes the specified UpdateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IVariantsHistory} message VariantsHistory message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest} message UpdateVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VariantsHistory.encode = function encode(message, writer) { + UpdateVersionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.versionVariants != null && Object.hasOwnProperty.call(message, "versionVariants")) - $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.encode(message.versionVariants, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + $root.google.cloud.dialogflow.cx.v3beta1.Version.encode(message.version, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified VariantsHistory message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VariantsHistory.verify|verify} messages. + * Encodes the specified UpdateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IVariantsHistory} message VariantsHistory message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest} message UpdateVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VariantsHistory.encodeDelimited = function encodeDelimited(message, writer) { + UpdateVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VariantsHistory message from the specified reader or buffer. + * Decodes an UpdateVersionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.VariantsHistory} VariantsHistory + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest} UpdateVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VariantsHistory.decode = function decode(reader, length) { + UpdateVersionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.VariantsHistory(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.versionVariants = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.decode(reader, reader.uint32()); + message.version = $root.google.cloud.dialogflow.cx.v3beta1.Version.decode(reader, reader.uint32()); break; case 2: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -126489,133 +124568,126 @@ }; /** - * Decodes a VariantsHistory message from the specified reader or buffer, length delimited. + * Decodes an UpdateVersionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.VariantsHistory} VariantsHistory + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest} UpdateVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VariantsHistory.decodeDelimited = function decodeDelimited(reader) { + UpdateVersionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VariantsHistory message. + * Verifies an UpdateVersionRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VariantsHistory.verify = function verify(message) { + UpdateVersionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.versionVariants != null && message.hasOwnProperty("versionVariants")) { - properties.variants = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.verify(message.versionVariants); - if (error) - return "versionVariants." + error; - } + if (message.version != null && message.hasOwnProperty("version")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Version.verify(message.version); + if (error) + return "version." + error; } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); if (error) - return "updateTime." + error; + return "updateMask." + error; } return null; }; /** - * Creates a VariantsHistory message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateVersionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.VariantsHistory} VariantsHistory + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest} UpdateVersionRequest */ - VariantsHistory.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.VariantsHistory) + UpdateVersionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.VariantsHistory(); - if (object.versionVariants != null) { - if (typeof object.versionVariants !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.VariantsHistory.versionVariants: object expected"); - message.versionVariants = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.fromObject(object.versionVariants); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest(); + if (object.version != null) { + if (typeof object.version !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest.version: object expected"); + message.version = $root.google.cloud.dialogflow.cx.v3beta1.Version.fromObject(object.version); } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.VariantsHistory.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from a VariantsHistory message. Also converts values to other types if specified. + * Creates a plain object from an UpdateVersionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.VariantsHistory} message VariantsHistory + * @param {google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest} message UpdateVersionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VariantsHistory.toObject = function toObject(message, options) { + UpdateVersionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.updateTime = null; - if (message.versionVariants != null && message.hasOwnProperty("versionVariants")) { - object.versionVariants = $root.google.cloud.dialogflow.cx.v3beta1.VersionVariants.toObject(message.versionVariants, options); - if (options.oneofs) - object.variants = "versionVariants"; + if (options.defaults) { + object.version = null; + object.updateMask = null; } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.version != null && message.hasOwnProperty("version")) + object.version = $root.google.cloud.dialogflow.cx.v3beta1.Version.toObject(message.version, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this VariantsHistory to JSON. + * Converts this UpdateVersionRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.VariantsHistory + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest * @instance * @returns {Object.} JSON object */ - VariantsHistory.prototype.toJSON = function toJSON() { + UpdateVersionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return VariantsHistory; + return UpdateVersionRequest; })(); - v3beta1.ListExperimentsRequest = (function() { + v3beta1.DeleteVersionRequest = (function() { /** - * Properties of a ListExperimentsRequest. + * Properties of a DeleteVersionRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListExperimentsRequest - * @property {string|null} [parent] ListExperimentsRequest parent - * @property {number|null} [pageSize] ListExperimentsRequest pageSize - * @property {string|null} [pageToken] ListExperimentsRequest pageToken + * @interface IDeleteVersionRequest + * @property {string|null} [name] DeleteVersionRequest name */ /** - * Constructs a new ListExperimentsRequest. + * Constructs a new DeleteVersionRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListExperimentsRequest. - * @implements IListExperimentsRequest + * @classdesc Represents a DeleteVersionRequest. + * @implements IDeleteVersionRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest=} [properties] Properties to set */ - function ListExperimentsRequest(properties) { + function DeleteVersionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -126623,101 +124695,75 @@ } /** - * ListExperimentsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest - * @instance - */ - ListExperimentsRequest.prototype.parent = ""; - - /** - * ListExperimentsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest - * @instance - */ - ListExperimentsRequest.prototype.pageSize = 0; - - /** - * ListExperimentsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest + * DeleteVersionRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest * @instance */ - ListExperimentsRequest.prototype.pageToken = ""; + DeleteVersionRequest.prototype.name = ""; /** - * Creates a new ListExperimentsRequest instance using the specified properties. + * Creates a new DeleteVersionRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest} ListExperimentsRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest} DeleteVersionRequest instance */ - ListExperimentsRequest.create = function create(properties) { - return new ListExperimentsRequest(properties); + DeleteVersionRequest.create = function create(properties) { + return new DeleteVersionRequest(properties); }; /** - * Encodes the specified ListExperimentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest.verify|verify} messages. + * Encodes the specified DeleteVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest} message ListExperimentsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest} message DeleteVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListExperimentsRequest.encode = function encode(message, writer) { + DeleteVersionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListExperimentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest.verify|verify} messages. + * Encodes the specified DeleteVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsRequest} message ListExperimentsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest} message DeleteVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListExperimentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListExperimentsRequest message from the specified reader or buffer. + * Decodes a DeleteVersionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest} ListExperimentsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest} DeleteVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListExperimentsRequest.decode = function decode(reader, length) { + DeleteVersionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -126728,126 +124774,108 @@ }; /** - * Decodes a ListExperimentsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteVersionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest} ListExperimentsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest} DeleteVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListExperimentsRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteVersionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListExperimentsRequest message. + * Verifies a DeleteVersionRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListExperimentsRequest.verify = function verify(message) { + DeleteVersionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListExperimentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteVersionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest} ListExperimentsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest} DeleteVersionRequest */ - ListExperimentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest) + DeleteVersionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListExperimentsRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteVersionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest} message ListExperimentsRequest + * @param {google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest} message DeleteVersionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListExperimentsRequest.toObject = function toObject(message, options) { + DeleteVersionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListExperimentsRequest to JSON. + * Converts this DeleteVersionRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest * @instance * @returns {Object.} JSON object */ - ListExperimentsRequest.prototype.toJSON = function toJSON() { + DeleteVersionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListExperimentsRequest; + return DeleteVersionRequest; })(); - v3beta1.ListExperimentsResponse = (function() { + v3beta1.LoadVersionRequest = (function() { /** - * Properties of a ListExperimentsResponse. + * Properties of a LoadVersionRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListExperimentsResponse - * @property {Array.|null} [experiments] ListExperimentsResponse experiments - * @property {string|null} [nextPageToken] ListExperimentsResponse nextPageToken + * @interface ILoadVersionRequest + * @property {string|null} [name] LoadVersionRequest name + * @property {boolean|null} [allowOverrideAgentResources] LoadVersionRequest allowOverrideAgentResources */ /** - * Constructs a new ListExperimentsResponse. + * Constructs a new LoadVersionRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListExperimentsResponse. - * @implements IListExperimentsResponse + * @classdesc Represents a LoadVersionRequest. + * @implements ILoadVersionRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest=} [properties] Properties to set */ - function ListExperimentsResponse(properties) { - this.experiments = []; + function LoadVersionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -126855,91 +124883,88 @@ } /** - * ListExperimentsResponse experiments. - * @member {Array.} experiments - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse + * LoadVersionRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest * @instance */ - ListExperimentsResponse.prototype.experiments = $util.emptyArray; + LoadVersionRequest.prototype.name = ""; /** - * ListExperimentsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse + * LoadVersionRequest allowOverrideAgentResources. + * @member {boolean} allowOverrideAgentResources + * @memberof google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest * @instance */ - ListExperimentsResponse.prototype.nextPageToken = ""; + LoadVersionRequest.prototype.allowOverrideAgentResources = false; /** - * Creates a new ListExperimentsResponse instance using the specified properties. + * Creates a new LoadVersionRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse} ListExperimentsResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest} LoadVersionRequest instance */ - ListExperimentsResponse.create = function create(properties) { - return new ListExperimentsResponse(properties); + LoadVersionRequest.create = function create(properties) { + return new LoadVersionRequest(properties); }; /** - * Encodes the specified ListExperimentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse.verify|verify} messages. + * Encodes the specified LoadVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsResponse} message ListExperimentsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest} message LoadVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListExperimentsResponse.encode = function encode(message, writer) { + LoadVersionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.experiments != null && message.experiments.length) - for (var i = 0; i < message.experiments.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Experiment.encode(message.experiments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.allowOverrideAgentResources != null && Object.hasOwnProperty.call(message, "allowOverrideAgentResources")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowOverrideAgentResources); return writer; }; /** - * Encodes the specified ListExperimentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse.verify|verify} messages. + * Encodes the specified LoadVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListExperimentsResponse} message ListExperimentsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest} message LoadVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListExperimentsResponse.encodeDelimited = function encodeDelimited(message, writer) { + LoadVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListExperimentsResponse message from the specified reader or buffer. + * Decodes a LoadVersionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse} ListExperimentsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest} LoadVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListExperimentsResponse.decode = function decode(reader, length) { + LoadVersionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.experiments && message.experiments.length)) - message.experiments = []; - message.experiments.push($root.google.cloud.dialogflow.cx.v3beta1.Experiment.decode(reader, reader.uint32())); + message.name = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + message.allowOverrideAgentResources = reader.bool(); break; default: reader.skipType(tag & 7); @@ -126950,133 +124975,118 @@ }; /** - * Decodes a ListExperimentsResponse message from the specified reader or buffer, length delimited. + * Decodes a LoadVersionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse} ListExperimentsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest} LoadVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListExperimentsResponse.decodeDelimited = function decodeDelimited(reader) { + LoadVersionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListExperimentsResponse message. + * Verifies a LoadVersionRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListExperimentsResponse.verify = function verify(message) { + LoadVersionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.experiments != null && message.hasOwnProperty("experiments")) { - if (!Array.isArray(message.experiments)) - return "experiments: array expected"; - for (var i = 0; i < message.experiments.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.verify(message.experiments[i]); - if (error) - return "experiments." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.allowOverrideAgentResources != null && message.hasOwnProperty("allowOverrideAgentResources")) + if (typeof message.allowOverrideAgentResources !== "boolean") + return "allowOverrideAgentResources: boolean expected"; return null; }; /** - * Creates a ListExperimentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a LoadVersionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse} ListExperimentsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest} LoadVersionRequest */ - ListExperimentsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse) + LoadVersionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse(); - if (object.experiments) { - if (!Array.isArray(object.experiments)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse.experiments: array expected"); - message.experiments = []; - for (var i = 0; i < object.experiments.length; ++i) { - if (typeof object.experiments[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse.experiments: object expected"); - message.experiments[i] = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.fromObject(object.experiments[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.allowOverrideAgentResources != null) + message.allowOverrideAgentResources = Boolean(object.allowOverrideAgentResources); return message; }; /** - * Creates a plain object from a ListExperimentsResponse message. Also converts values to other types if specified. + * Creates a plain object from a LoadVersionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse} message ListExperimentsResponse + * @param {google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest} message LoadVersionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListExperimentsResponse.toObject = function toObject(message, options) { + LoadVersionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.experiments = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.experiments && message.experiments.length) { - object.experiments = []; - for (var j = 0; j < message.experiments.length; ++j) - object.experiments[j] = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.toObject(message.experiments[j], options); + if (options.defaults) { + object.name = ""; + object.allowOverrideAgentResources = false; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.allowOverrideAgentResources != null && message.hasOwnProperty("allowOverrideAgentResources")) + object.allowOverrideAgentResources = message.allowOverrideAgentResources; return object; }; /** - * Converts this ListExperimentsResponse to JSON. + * Converts this LoadVersionRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest * @instance * @returns {Object.} JSON object */ - ListExperimentsResponse.prototype.toJSON = function toJSON() { + LoadVersionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListExperimentsResponse; + return LoadVersionRequest; })(); - v3beta1.GetExperimentRequest = (function() { + v3beta1.CompareVersionsRequest = (function() { /** - * Properties of a GetExperimentRequest. + * Properties of a CompareVersionsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetExperimentRequest - * @property {string|null} [name] GetExperimentRequest name + * @interface ICompareVersionsRequest + * @property {string|null} [baseVersion] CompareVersionsRequest baseVersion + * @property {string|null} [targetVersion] CompareVersionsRequest targetVersion + * @property {string|null} [languageCode] CompareVersionsRequest languageCode */ /** - * Constructs a new GetExperimentRequest. + * Constructs a new CompareVersionsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetExperimentRequest. - * @implements IGetExperimentRequest + * @classdesc Represents a CompareVersionsRequest. + * @implements ICompareVersionsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ICompareVersionsRequest=} [properties] Properties to set */ - function GetExperimentRequest(properties) { + function CompareVersionsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -127084,75 +125094,101 @@ } /** - * GetExperimentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest + * CompareVersionsRequest baseVersion. + * @member {string} baseVersion + * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest * @instance */ - GetExperimentRequest.prototype.name = ""; + CompareVersionsRequest.prototype.baseVersion = ""; /** - * Creates a new GetExperimentRequest instance using the specified properties. + * CompareVersionsRequest targetVersion. + * @member {string} targetVersion + * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest + * @instance + */ + CompareVersionsRequest.prototype.targetVersion = ""; + + /** + * CompareVersionsRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest + * @instance + */ + CompareVersionsRequest.prototype.languageCode = ""; + + /** + * Creates a new CompareVersionsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest} GetExperimentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICompareVersionsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest} CompareVersionsRequest instance */ - GetExperimentRequest.create = function create(properties) { - return new GetExperimentRequest(properties); + CompareVersionsRequest.create = function create(properties) { + return new CompareVersionsRequest(properties); }; /** - * Encodes the specified GetExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest.verify|verify} messages. + * Encodes the specified CompareVersionsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest} message GetExperimentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICompareVersionsRequest} message CompareVersionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetExperimentRequest.encode = function encode(message, writer) { + CompareVersionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.baseVersion != null && Object.hasOwnProperty.call(message, "baseVersion")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.baseVersion); + if (message.targetVersion != null && Object.hasOwnProperty.call(message, "targetVersion")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.targetVersion); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); return writer; }; /** - * Encodes the specified GetExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest.verify|verify} messages. + * Encodes the specified CompareVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetExperimentRequest} message GetExperimentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICompareVersionsRequest} message CompareVersionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { + CompareVersionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetExperimentRequest message from the specified reader or buffer. + * Decodes a CompareVersionsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest} GetExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest} CompareVersionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetExperimentRequest.decode = function decode(reader, length) { + CompareVersionsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.baseVersion = reader.string(); + break; + case 2: + message.targetVersion = reader.string(); + break; + case 3: + message.languageCode = reader.string(); break; default: reader.skipType(tag & 7); @@ -127163,108 +125199,126 @@ }; /** - * Decodes a GetExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a CompareVersionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest} GetExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest} CompareVersionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetExperimentRequest.decodeDelimited = function decodeDelimited(reader) { + CompareVersionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetExperimentRequest message. + * Verifies a CompareVersionsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetExperimentRequest.verify = function verify(message) { + CompareVersionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.baseVersion != null && message.hasOwnProperty("baseVersion")) + if (!$util.isString(message.baseVersion)) + return "baseVersion: string expected"; + if (message.targetVersion != null && message.hasOwnProperty("targetVersion")) + if (!$util.isString(message.targetVersion)) + return "targetVersion: string expected"; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates a GetExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CompareVersionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest} GetExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest} CompareVersionsRequest */ - GetExperimentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest) + CompareVersionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest(); + if (object.baseVersion != null) + message.baseVersion = String(object.baseVersion); + if (object.targetVersion != null) + message.targetVersion = String(object.targetVersion); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a GetExperimentRequest message. Also converts values to other types if specified. + * Creates a plain object from a CompareVersionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest} message GetExperimentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest} message CompareVersionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetExperimentRequest.toObject = function toObject(message, options) { + CompareVersionsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.baseVersion = ""; + object.targetVersion = ""; + object.languageCode = ""; + } + if (message.baseVersion != null && message.hasOwnProperty("baseVersion")) + object.baseVersion = message.baseVersion; + if (message.targetVersion != null && message.hasOwnProperty("targetVersion")) + object.targetVersion = message.targetVersion; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this GetExperimentRequest to JSON. + * Converts this CompareVersionsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest * @instance * @returns {Object.} JSON object */ - GetExperimentRequest.prototype.toJSON = function toJSON() { + CompareVersionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetExperimentRequest; + return CompareVersionsRequest; })(); - v3beta1.CreateExperimentRequest = (function() { + v3beta1.CompareVersionsResponse = (function() { /** - * Properties of a CreateExperimentRequest. + * Properties of a CompareVersionsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ICreateExperimentRequest - * @property {string|null} [parent] CreateExperimentRequest parent - * @property {google.cloud.dialogflow.cx.v3beta1.IExperiment|null} [experiment] CreateExperimentRequest experiment + * @interface ICompareVersionsResponse + * @property {string|null} [baseVersionContentJson] CompareVersionsResponse baseVersionContentJson + * @property {string|null} [targetVersionContentJson] CompareVersionsResponse targetVersionContentJson + * @property {google.protobuf.ITimestamp|null} [compareTime] CompareVersionsResponse compareTime */ /** - * Constructs a new CreateExperimentRequest. + * Constructs a new CompareVersionsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CreateExperimentRequest. - * @implements ICreateExperimentRequest + * @classdesc Represents a CompareVersionsResponse. + * @implements ICompareVersionsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ICompareVersionsResponse=} [properties] Properties to set */ - function CreateExperimentRequest(properties) { + function CompareVersionsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -127272,88 +125326,101 @@ } /** - * CreateExperimentRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest + * CompareVersionsResponse baseVersionContentJson. + * @member {string} baseVersionContentJson + * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse * @instance */ - CreateExperimentRequest.prototype.parent = ""; + CompareVersionsResponse.prototype.baseVersionContentJson = ""; /** - * CreateExperimentRequest experiment. - * @member {google.cloud.dialogflow.cx.v3beta1.IExperiment|null|undefined} experiment - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest + * CompareVersionsResponse targetVersionContentJson. + * @member {string} targetVersionContentJson + * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse * @instance */ - CreateExperimentRequest.prototype.experiment = null; + CompareVersionsResponse.prototype.targetVersionContentJson = ""; /** - * Creates a new CreateExperimentRequest instance using the specified properties. + * CompareVersionsResponse compareTime. + * @member {google.protobuf.ITimestamp|null|undefined} compareTime + * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse + * @instance + */ + CompareVersionsResponse.prototype.compareTime = null; + + /** + * Creates a new CompareVersionsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest} CreateExperimentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICompareVersionsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse} CompareVersionsResponse instance */ - CreateExperimentRequest.create = function create(properties) { - return new CreateExperimentRequest(properties); + CompareVersionsResponse.create = function create(properties) { + return new CompareVersionsResponse(properties); }; /** - * Encodes the specified CreateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest.verify|verify} messages. + * Encodes the specified CompareVersionsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest} message CreateExperimentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICompareVersionsResponse} message CompareVersionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateExperimentRequest.encode = function encode(message, writer) { + CompareVersionsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.experiment != null && Object.hasOwnProperty.call(message, "experiment")) - $root.google.cloud.dialogflow.cx.v3beta1.Experiment.encode(message.experiment, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.baseVersionContentJson != null && Object.hasOwnProperty.call(message, "baseVersionContentJson")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.baseVersionContentJson); + if (message.targetVersionContentJson != null && Object.hasOwnProperty.call(message, "targetVersionContentJson")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.targetVersionContentJson); + if (message.compareTime != null && Object.hasOwnProperty.call(message, "compareTime")) + $root.google.protobuf.Timestamp.encode(message.compareTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest.verify|verify} messages. + * Encodes the specified CompareVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateExperimentRequest} message CreateExperimentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICompareVersionsResponse} message CompareVersionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { + CompareVersionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateExperimentRequest message from the specified reader or buffer. + * Decodes a CompareVersionsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest} CreateExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse} CompareVersionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateExperimentRequest.decode = function decode(reader, length) { + CompareVersionsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.baseVersionContentJson = reader.string(); break; case 2: - message.experiment = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.decode(reader, reader.uint32()); + message.targetVersionContentJson = reader.string(); + break; + case 3: + message.compareTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -127364,211 +125431,489 @@ }; /** - * Decodes a CreateExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a CompareVersionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest} CreateExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse} CompareVersionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateExperimentRequest.decodeDelimited = function decodeDelimited(reader) { + CompareVersionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateExperimentRequest message. + * Verifies a CompareVersionsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateExperimentRequest.verify = function verify(message) { + CompareVersionsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.experiment != null && message.hasOwnProperty("experiment")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.verify(message.experiment); + if (message.baseVersionContentJson != null && message.hasOwnProperty("baseVersionContentJson")) + if (!$util.isString(message.baseVersionContentJson)) + return "baseVersionContentJson: string expected"; + if (message.targetVersionContentJson != null && message.hasOwnProperty("targetVersionContentJson")) + if (!$util.isString(message.targetVersionContentJson)) + return "targetVersionContentJson: string expected"; + if (message.compareTime != null && message.hasOwnProperty("compareTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.compareTime); if (error) - return "experiment." + error; + return "compareTime." + error; } return null; }; /** - * Creates a CreateExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CompareVersionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest} CreateExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse} CompareVersionsResponse */ - CreateExperimentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest) + CompareVersionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.experiment != null) { - if (typeof object.experiment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest.experiment: object expected"); - message.experiment = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.fromObject(object.experiment); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse(); + if (object.baseVersionContentJson != null) + message.baseVersionContentJson = String(object.baseVersionContentJson); + if (object.targetVersionContentJson != null) + message.targetVersionContentJson = String(object.targetVersionContentJson); + if (object.compareTime != null) { + if (typeof object.compareTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse.compareTime: object expected"); + message.compareTime = $root.google.protobuf.Timestamp.fromObject(object.compareTime); } return message; }; /** - * Creates a plain object from a CreateExperimentRequest message. Also converts values to other types if specified. + * Creates a plain object from a CompareVersionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest} message CreateExperimentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse} message CompareVersionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateExperimentRequest.toObject = function toObject(message, options) { + CompareVersionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.experiment = null; + object.baseVersionContentJson = ""; + object.targetVersionContentJson = ""; + object.compareTime = null; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.experiment != null && message.hasOwnProperty("experiment")) - object.experiment = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.toObject(message.experiment, options); + if (message.baseVersionContentJson != null && message.hasOwnProperty("baseVersionContentJson")) + object.baseVersionContentJson = message.baseVersionContentJson; + if (message.targetVersionContentJson != null && message.hasOwnProperty("targetVersionContentJson")) + object.targetVersionContentJson = message.targetVersionContentJson; + if (message.compareTime != null && message.hasOwnProperty("compareTime")) + object.compareTime = $root.google.protobuf.Timestamp.toObject(message.compareTime, options); return object; }; /** - * Converts this CreateExperimentRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest + * Converts this CompareVersionsResponse to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse + * @instance + * @returns {Object.} JSON object + */ + CompareVersionsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CompareVersionsResponse; + })(); + + v3beta1.Webhooks = (function() { + + /** + * Constructs a new Webhooks service. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a Webhooks + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function Webhooks(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Webhooks.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Webhooks; + + /** + * Creates new Webhooks service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {Webhooks} RPC service. Useful where requests and/or responses are streamed. + */ + Webhooks.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Webhooks#listWebhooks}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks + * @typedef ListWebhooksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse} [response] ListWebhooksResponse + */ + + /** + * Calls ListWebhooks. + * @function listWebhooks + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest} request ListWebhooksRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Webhooks.ListWebhooksCallback} callback Node-style callback called with the error, if any, and ListWebhooksResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Webhooks.prototype.listWebhooks = function listWebhooks(request, callback) { + return this.rpcCall(listWebhooks, $root.google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse, request, callback); + }, "name", { value: "ListWebhooks" }); + + /** + * Calls ListWebhooks. + * @function listWebhooks + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest} request ListWebhooksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Webhooks#getWebhook}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks + * @typedef GetWebhookCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Webhook} [response] Webhook + */ + + /** + * Calls GetWebhook. + * @function getWebhook + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest} request GetWebhookRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Webhooks.GetWebhookCallback} callback Node-style callback called with the error, if any, and Webhook + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Webhooks.prototype.getWebhook = function getWebhook(request, callback) { + return this.rpcCall(getWebhook, $root.google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest, $root.google.cloud.dialogflow.cx.v3beta1.Webhook, request, callback); + }, "name", { value: "GetWebhook" }); + + /** + * Calls GetWebhook. + * @function getWebhook + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest} request GetWebhookRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Webhooks#createWebhook}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks + * @typedef CreateWebhookCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Webhook} [response] Webhook + */ + + /** + * Calls CreateWebhook. + * @function createWebhook + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest} request CreateWebhookRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Webhooks.CreateWebhookCallback} callback Node-style callback called with the error, if any, and Webhook + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Webhooks.prototype.createWebhook = function createWebhook(request, callback) { + return this.rpcCall(createWebhook, $root.google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest, $root.google.cloud.dialogflow.cx.v3beta1.Webhook, request, callback); + }, "name", { value: "CreateWebhook" }); + + /** + * Calls CreateWebhook. + * @function createWebhook + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest} request CreateWebhookRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Webhooks#updateWebhook}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks + * @typedef UpdateWebhookCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Webhook} [response] Webhook + */ + + /** + * Calls UpdateWebhook. + * @function updateWebhook + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest} request UpdateWebhookRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Webhooks.UpdateWebhookCallback} callback Node-style callback called with the error, if any, and Webhook + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Webhooks.prototype.updateWebhook = function updateWebhook(request, callback) { + return this.rpcCall(updateWebhook, $root.google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest, $root.google.cloud.dialogflow.cx.v3beta1.Webhook, request, callback); + }, "name", { value: "UpdateWebhook" }); + + /** + * Calls UpdateWebhook. + * @function updateWebhook + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest} request UpdateWebhookRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Webhooks#deleteWebhook}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks + * @typedef DeleteWebhookCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteWebhook. + * @function deleteWebhook + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest} request DeleteWebhookRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Webhooks.DeleteWebhookCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Webhooks.prototype.deleteWebhook = function deleteWebhook(request, callback) { + return this.rpcCall(deleteWebhook, $root.google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteWebhook" }); + + /** + * Calls DeleteWebhook. + * @function deleteWebhook + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest} request DeleteWebhookRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Webhooks; + })(); + + v3beta1.Webhook = (function() { + + /** + * Properties of a Webhook. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IWebhook + * @property {string|null} [name] Webhook name + * @property {string|null} [displayName] Webhook displayName + * @property {google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService|null} [genericWebService] Webhook genericWebService + * @property {google.cloud.dialogflow.cx.v3beta1.Webhook.IServiceDirectoryConfig|null} [serviceDirectory] Webhook serviceDirectory + * @property {google.protobuf.IDuration|null} [timeout] Webhook timeout + * @property {boolean|null} [disabled] Webhook disabled + */ + + /** + * Constructs a new Webhook. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a Webhook. + * @implements IWebhook + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IWebhook=} [properties] Properties to set + */ + function Webhook(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Webhook name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @instance + */ + Webhook.prototype.name = ""; + + /** + * Webhook displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @instance + */ + Webhook.prototype.displayName = ""; + + /** + * Webhook genericWebService. + * @member {google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService|null|undefined} genericWebService + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook * @instance - * @returns {Object.} JSON object */ - CreateExperimentRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CreateExperimentRequest; - })(); - - v3beta1.UpdateExperimentRequest = (function() { + Webhook.prototype.genericWebService = null; /** - * Properties of an UpdateExperimentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IUpdateExperimentRequest - * @property {google.cloud.dialogflow.cx.v3beta1.IExperiment|null} [experiment] UpdateExperimentRequest experiment - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateExperimentRequest updateMask + * Webhook serviceDirectory. + * @member {google.cloud.dialogflow.cx.v3beta1.Webhook.IServiceDirectoryConfig|null|undefined} serviceDirectory + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @instance */ + Webhook.prototype.serviceDirectory = null; /** - * Constructs a new UpdateExperimentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an UpdateExperimentRequest. - * @implements IUpdateExperimentRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest=} [properties] Properties to set + * Webhook timeout. + * @member {google.protobuf.IDuration|null|undefined} timeout + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @instance */ - function UpdateExperimentRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Webhook.prototype.timeout = null; /** - * UpdateExperimentRequest experiment. - * @member {google.cloud.dialogflow.cx.v3beta1.IExperiment|null|undefined} experiment - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest + * Webhook disabled. + * @member {boolean} disabled + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook * @instance */ - UpdateExperimentRequest.prototype.experiment = null; + Webhook.prototype.disabled = false; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * UpdateExperimentRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest + * Webhook webhook. + * @member {"genericWebService"|"serviceDirectory"|undefined} webhook + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook * @instance */ - UpdateExperimentRequest.prototype.updateMask = null; + Object.defineProperty(Webhook.prototype, "webhook", { + get: $util.oneOfGetter($oneOfFields = ["genericWebService", "serviceDirectory"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new UpdateExperimentRequest instance using the specified properties. + * Creates a new Webhook instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest} UpdateExperimentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IWebhook=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Webhook} Webhook instance */ - UpdateExperimentRequest.create = function create(properties) { - return new UpdateExperimentRequest(properties); + Webhook.create = function create(properties) { + return new Webhook(properties); }; /** - * Encodes the specified UpdateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest.verify|verify} messages. + * Encodes the specified Webhook message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Webhook.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest} message UpdateExperimentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IWebhook} message Webhook message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateExperimentRequest.encode = function encode(message, writer) { + Webhook.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.experiment != null && Object.hasOwnProperty.call(message, "experiment")) - $root.google.cloud.dialogflow.cx.v3beta1.Experiment.encode(message.experiment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.genericWebService != null && Object.hasOwnProperty.call(message, "genericWebService")) + $root.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.encode(message.genericWebService, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.disabled); + if (message.timeout != null && Object.hasOwnProperty.call(message, "timeout")) + $root.google.protobuf.Duration.encode(message.timeout, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.serviceDirectory != null && Object.hasOwnProperty.call(message, "serviceDirectory")) + $root.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig.encode(message.serviceDirectory, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest.verify|verify} messages. + * Encodes the specified Webhook message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Webhook.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateExperimentRequest} message UpdateExperimentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IWebhook} message Webhook message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { + Webhook.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateExperimentRequest message from the specified reader or buffer. + * Decodes a Webhook message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest} UpdateExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.Webhook} Webhook * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateExperimentRequest.decode = function decode(reader, length) { + Webhook.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Webhook(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.experiment = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.decode(reader, reader.uint32()); + message.name = reader.string(); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.displayName = reader.string(); + break; + case 4: + message.genericWebService = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.decode(reader, reader.uint32()); + break; + case 7: + message.serviceDirectory = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig.decode(reader, reader.uint32()); + break; + case 6: + message.timeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 5: + message.disabled = reader.bool(); break; default: reader.skipType(tag & 7); @@ -127579,313 +125924,725 @@ }; /** - * Decodes an UpdateExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a Webhook message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest} UpdateExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.Webhook} Webhook * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateExperimentRequest.decodeDelimited = function decodeDelimited(reader) { + Webhook.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateExperimentRequest message. + * Verifies a Webhook message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateExperimentRequest.verify = function verify(message) { + Webhook.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.experiment != null && message.hasOwnProperty("experiment")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.verify(message.experiment); - if (error) - return "experiment." + error; + var properties = {}; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.genericWebService != null && message.hasOwnProperty("genericWebService")) { + properties.webhook = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.verify(message.genericWebService); + if (error) + return "genericWebService." + error; + } } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (message.serviceDirectory != null && message.hasOwnProperty("serviceDirectory")) { + if (properties.webhook === 1) + return "webhook: multiple values"; + properties.webhook = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig.verify(message.serviceDirectory); + if (error) + return "serviceDirectory." + error; + } + } + if (message.timeout != null && message.hasOwnProperty("timeout")) { + var error = $root.google.protobuf.Duration.verify(message.timeout); if (error) - return "updateMask." + error; + return "timeout." + error; } + if (message.disabled != null && message.hasOwnProperty("disabled")) + if (typeof message.disabled !== "boolean") + return "disabled: boolean expected"; return null; }; - /** - * Creates an UpdateExperimentRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest} UpdateExperimentRequest - */ - UpdateExperimentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest) + /** + * Creates a Webhook message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Webhook} Webhook + */ + Webhook.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Webhook) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Webhook(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.genericWebService != null) { + if (typeof object.genericWebService !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Webhook.genericWebService: object expected"); + message.genericWebService = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.fromObject(object.genericWebService); + } + if (object.serviceDirectory != null) { + if (typeof object.serviceDirectory !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Webhook.serviceDirectory: object expected"); + message.serviceDirectory = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig.fromObject(object.serviceDirectory); + } + if (object.timeout != null) { + if (typeof object.timeout !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Webhook.timeout: object expected"); + message.timeout = $root.google.protobuf.Duration.fromObject(object.timeout); + } + if (object.disabled != null) + message.disabled = Boolean(object.disabled); + return message; + }; + + /** + * Creates a plain object from a Webhook message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Webhook} message Webhook + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Webhook.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.disabled = false; + object.timeout = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.genericWebService != null && message.hasOwnProperty("genericWebService")) { + object.genericWebService = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.toObject(message.genericWebService, options); + if (options.oneofs) + object.webhook = "genericWebService"; + } + if (message.disabled != null && message.hasOwnProperty("disabled")) + object.disabled = message.disabled; + if (message.timeout != null && message.hasOwnProperty("timeout")) + object.timeout = $root.google.protobuf.Duration.toObject(message.timeout, options); + if (message.serviceDirectory != null && message.hasOwnProperty("serviceDirectory")) { + object.serviceDirectory = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig.toObject(message.serviceDirectory, options); + if (options.oneofs) + object.webhook = "serviceDirectory"; + } + return object; + }; + + /** + * Converts this Webhook to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @instance + * @returns {Object.} JSON object + */ + Webhook.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + Webhook.GenericWebService = (function() { + + /** + * Properties of a GenericWebService. + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @interface IGenericWebService + * @property {string|null} [uri] GenericWebService uri + * @property {string|null} [username] GenericWebService username + * @property {string|null} [password] GenericWebService password + * @property {Object.|null} [requestHeaders] GenericWebService requestHeaders + * @property {Array.|null} [allowedCaCerts] GenericWebService allowedCaCerts + */ + + /** + * Constructs a new GenericWebService. + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @classdesc Represents a GenericWebService. + * @implements IGenericWebService + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService=} [properties] Properties to set + */ + function GenericWebService(properties) { + this.requestHeaders = {}; + this.allowedCaCerts = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GenericWebService uri. + * @member {string} uri + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * @instance + */ + GenericWebService.prototype.uri = ""; + + /** + * GenericWebService username. + * @member {string} username + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * @instance + */ + GenericWebService.prototype.username = ""; + + /** + * GenericWebService password. + * @member {string} password + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * @instance + */ + GenericWebService.prototype.password = ""; + + /** + * GenericWebService requestHeaders. + * @member {Object.} requestHeaders + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * @instance + */ + GenericWebService.prototype.requestHeaders = $util.emptyObject; + + /** + * GenericWebService allowedCaCerts. + * @member {Array.} allowedCaCerts + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * @instance + */ + GenericWebService.prototype.allowedCaCerts = $util.emptyArray; + + /** + * Creates a new GenericWebService instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService} GenericWebService instance + */ + GenericWebService.create = function create(properties) { + return new GenericWebService(properties); + }; + + /** + * Encodes the specified GenericWebService message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService} message GenericWebService message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GenericWebService.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uri != null && Object.hasOwnProperty.call(message, "uri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); + if (message.username != null && Object.hasOwnProperty.call(message, "username")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); + if (message.password != null && Object.hasOwnProperty.call(message, "password")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.password); + if (message.requestHeaders != null && Object.hasOwnProperty.call(message, "requestHeaders")) + for (var keys = Object.keys(message.requestHeaders), i = 0; i < keys.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.requestHeaders[keys[i]]).ldelim(); + if (message.allowedCaCerts != null && message.allowedCaCerts.length) + for (var i = 0; i < message.allowedCaCerts.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.allowedCaCerts[i]); + return writer; + }; + + /** + * Encodes the specified GenericWebService message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService} message GenericWebService message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GenericWebService.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GenericWebService message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService} GenericWebService + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GenericWebService.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.uri = reader.string(); + break; + case 2: + message.username = reader.string(); + break; + case 3: + message.password = reader.string(); + break; + case 4: + if (message.requestHeaders === $util.emptyObject) + message.requestHeaders = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.requestHeaders[key] = value; + break; + case 5: + if (!(message.allowedCaCerts && message.allowedCaCerts.length)) + message.allowedCaCerts = []; + message.allowedCaCerts.push(reader.bytes()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GenericWebService message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService} GenericWebService + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GenericWebService.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GenericWebService message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GenericWebService.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uri != null && message.hasOwnProperty("uri")) + if (!$util.isString(message.uri)) + return "uri: string expected"; + if (message.username != null && message.hasOwnProperty("username")) + if (!$util.isString(message.username)) + return "username: string expected"; + if (message.password != null && message.hasOwnProperty("password")) + if (!$util.isString(message.password)) + return "password: string expected"; + if (message.requestHeaders != null && message.hasOwnProperty("requestHeaders")) { + if (!$util.isObject(message.requestHeaders)) + return "requestHeaders: object expected"; + var key = Object.keys(message.requestHeaders); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.requestHeaders[key[i]])) + return "requestHeaders: string{k:string} expected"; + } + if (message.allowedCaCerts != null && message.hasOwnProperty("allowedCaCerts")) { + if (!Array.isArray(message.allowedCaCerts)) + return "allowedCaCerts: array expected"; + for (var i = 0; i < message.allowedCaCerts.length; ++i) + if (!(message.allowedCaCerts[i] && typeof message.allowedCaCerts[i].length === "number" || $util.isString(message.allowedCaCerts[i]))) + return "allowedCaCerts: buffer[] expected"; + } + return null; + }; + + /** + * Creates a GenericWebService message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService} GenericWebService + */ + GenericWebService.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService(); + if (object.uri != null) + message.uri = String(object.uri); + if (object.username != null) + message.username = String(object.username); + if (object.password != null) + message.password = String(object.password); + if (object.requestHeaders) { + if (typeof object.requestHeaders !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.requestHeaders: object expected"); + message.requestHeaders = {}; + for (var keys = Object.keys(object.requestHeaders), i = 0; i < keys.length; ++i) + message.requestHeaders[keys[i]] = String(object.requestHeaders[keys[i]]); + } + if (object.allowedCaCerts) { + if (!Array.isArray(object.allowedCaCerts)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.allowedCaCerts: array expected"); + message.allowedCaCerts = []; + for (var i = 0; i < object.allowedCaCerts.length; ++i) + if (typeof object.allowedCaCerts[i] === "string") + $util.base64.decode(object.allowedCaCerts[i], message.allowedCaCerts[i] = $util.newBuffer($util.base64.length(object.allowedCaCerts[i])), 0); + else if (object.allowedCaCerts[i].length) + message.allowedCaCerts[i] = object.allowedCaCerts[i]; + } + return message; + }; + + /** + * Creates a plain object from a GenericWebService message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService} message GenericWebService + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GenericWebService.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.allowedCaCerts = []; + if (options.objects || options.defaults) + object.requestHeaders = {}; + if (options.defaults) { + object.uri = ""; + object.username = ""; + object.password = ""; + } + if (message.uri != null && message.hasOwnProperty("uri")) + object.uri = message.uri; + if (message.username != null && message.hasOwnProperty("username")) + object.username = message.username; + if (message.password != null && message.hasOwnProperty("password")) + object.password = message.password; + var keys2; + if (message.requestHeaders && (keys2 = Object.keys(message.requestHeaders)).length) { + object.requestHeaders = {}; + for (var j = 0; j < keys2.length; ++j) + object.requestHeaders[keys2[j]] = message.requestHeaders[keys2[j]]; + } + if (message.allowedCaCerts && message.allowedCaCerts.length) { + object.allowedCaCerts = []; + for (var j = 0; j < message.allowedCaCerts.length; ++j) + object.allowedCaCerts[j] = options.bytes === String ? $util.base64.encode(message.allowedCaCerts[j], 0, message.allowedCaCerts[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.allowedCaCerts[j]) : message.allowedCaCerts[j]; + } return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest(); - if (object.experiment != null) { - if (typeof object.experiment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest.experiment: object expected"); - message.experiment = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.fromObject(object.experiment); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - return message; - }; + }; - /** - * Creates a plain object from an UpdateExperimentRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest} message UpdateExperimentRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UpdateExperimentRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.experiment = null; - object.updateMask = null; - } - if (message.experiment != null && message.hasOwnProperty("experiment")) - object.experiment = $root.google.cloud.dialogflow.cx.v3beta1.Experiment.toObject(message.experiment, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - return object; - }; + /** + * Converts this GenericWebService to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * @instance + * @returns {Object.} JSON object + */ + GenericWebService.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this UpdateExperimentRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest - * @instance - * @returns {Object.} JSON object - */ - UpdateExperimentRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return GenericWebService; + })(); - return UpdateExperimentRequest; - })(); + Webhook.ServiceDirectoryConfig = (function() { - v3beta1.DeleteExperimentRequest = (function() { + /** + * Properties of a ServiceDirectoryConfig. + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @interface IServiceDirectoryConfig + * @property {string|null} [service] ServiceDirectoryConfig service + * @property {google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService|null} [genericWebService] ServiceDirectoryConfig genericWebService + */ - /** - * Properties of a DeleteExperimentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDeleteExperimentRequest - * @property {string|null} [name] DeleteExperimentRequest name - */ + /** + * Constructs a new ServiceDirectoryConfig. + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @classdesc Represents a ServiceDirectoryConfig. + * @implements IServiceDirectoryConfig + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Webhook.IServiceDirectoryConfig=} [properties] Properties to set + */ + function ServiceDirectoryConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new DeleteExperimentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DeleteExperimentRequest. - * @implements IDeleteExperimentRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest=} [properties] Properties to set - */ - function DeleteExperimentRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * ServiceDirectoryConfig service. + * @member {string} service + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig + * @instance + */ + ServiceDirectoryConfig.prototype.service = ""; - /** - * DeleteExperimentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest - * @instance - */ - DeleteExperimentRequest.prototype.name = ""; + /** + * ServiceDirectoryConfig genericWebService. + * @member {google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService|null|undefined} genericWebService + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig + * @instance + */ + ServiceDirectoryConfig.prototype.genericWebService = null; - /** - * Creates a new DeleteExperimentRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest} DeleteExperimentRequest instance - */ - DeleteExperimentRequest.create = function create(properties) { - return new DeleteExperimentRequest(properties); - }; + /** + * Creates a new ServiceDirectoryConfig instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Webhook.IServiceDirectoryConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig} ServiceDirectoryConfig instance + */ + ServiceDirectoryConfig.create = function create(properties) { + return new ServiceDirectoryConfig(properties); + }; - /** - * Encodes the specified DeleteExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest} message DeleteExperimentRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteExperimentRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; + /** + * Encodes the specified ServiceDirectoryConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Webhook.IServiceDirectoryConfig} message ServiceDirectoryConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceDirectoryConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.service != null && Object.hasOwnProperty.call(message, "service")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.service); + if (message.genericWebService != null && Object.hasOwnProperty.call(message, "genericWebService")) + $root.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.encode(message.genericWebService, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified DeleteExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteExperimentRequest} message DeleteExperimentRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ServiceDirectoryConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Webhook.IServiceDirectoryConfig} message ServiceDirectoryConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceDirectoryConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a DeleteExperimentRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest} DeleteExperimentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteExperimentRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Decodes a ServiceDirectoryConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig} ServiceDirectoryConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceDirectoryConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.service = reader.string(); + break; + case 2: + message.genericWebService = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a DeleteExperimentRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest} DeleteExperimentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteExperimentRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a ServiceDirectoryConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig} ServiceDirectoryConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceDirectoryConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a DeleteExperimentRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeleteExperimentRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; + /** + * Verifies a ServiceDirectoryConfig message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ServiceDirectoryConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.service != null && message.hasOwnProperty("service")) + if (!$util.isString(message.service)) + return "service: string expected"; + if (message.genericWebService != null && message.hasOwnProperty("genericWebService")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.verify(message.genericWebService); + if (error) + return "genericWebService." + error; + } + return null; + }; - /** - * Creates a DeleteExperimentRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest} DeleteExperimentRequest - */ - DeleteExperimentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + /** + * Creates a ServiceDirectoryConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig} ServiceDirectoryConfig + */ + ServiceDirectoryConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig(); + if (object.service != null) + message.service = String(object.service); + if (object.genericWebService != null) { + if (typeof object.genericWebService !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig.genericWebService: object expected"); + message.genericWebService = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.fromObject(object.genericWebService); + } + return message; + }; - /** - * Creates a plain object from a DeleteExperimentRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest} message DeleteExperimentRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteExperimentRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + /** + * Creates a plain object from a ServiceDirectoryConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig} message ServiceDirectoryConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ServiceDirectoryConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.service = ""; + object.genericWebService = null; + } + if (message.service != null && message.hasOwnProperty("service")) + object.service = message.service; + if (message.genericWebService != null && message.hasOwnProperty("genericWebService")) + object.genericWebService = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.toObject(message.genericWebService, options); + return object; + }; - /** - * Converts this DeleteExperimentRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest - * @instance - * @returns {Object.} JSON object - */ - DeleteExperimentRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this ServiceDirectoryConfig to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig + * @instance + * @returns {Object.} JSON object + */ + ServiceDirectoryConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return DeleteExperimentRequest; + return ServiceDirectoryConfig; + })(); + + return Webhook; })(); - v3beta1.StartExperimentRequest = (function() { + v3beta1.ListWebhooksRequest = (function() { /** - * Properties of a StartExperimentRequest. + * Properties of a ListWebhooksRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IStartExperimentRequest - * @property {string|null} [name] StartExperimentRequest name + * @interface IListWebhooksRequest + * @property {string|null} [parent] ListWebhooksRequest parent + * @property {number|null} [pageSize] ListWebhooksRequest pageSize + * @property {string|null} [pageToken] ListWebhooksRequest pageToken */ /** - * Constructs a new StartExperimentRequest. + * Constructs a new ListWebhooksRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a StartExperimentRequest. - * @implements IStartExperimentRequest + * @classdesc Represents a ListWebhooksRequest. + * @implements IListWebhooksRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest=} [properties] Properties to set */ - function StartExperimentRequest(properties) { + function ListWebhooksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -127893,75 +126650,101 @@ } /** - * StartExperimentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest + * ListWebhooksRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest * @instance */ - StartExperimentRequest.prototype.name = ""; + ListWebhooksRequest.prototype.parent = ""; /** - * Creates a new StartExperimentRequest instance using the specified properties. + * ListWebhooksRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest + * @instance + */ + ListWebhooksRequest.prototype.pageSize = 0; + + /** + * ListWebhooksRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest + * @instance + */ + ListWebhooksRequest.prototype.pageToken = ""; + + /** + * Creates a new ListWebhooksRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest} StartExperimentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest} ListWebhooksRequest instance */ - StartExperimentRequest.create = function create(properties) { - return new StartExperimentRequest(properties); + ListWebhooksRequest.create = function create(properties) { + return new ListWebhooksRequest(properties); }; /** - * Encodes the specified StartExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest.verify|verify} messages. + * Encodes the specified ListWebhooksRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest} message StartExperimentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest} message ListWebhooksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartExperimentRequest.encode = function encode(message, writer) { + ListWebhooksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified StartExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest.verify|verify} messages. + * Encodes the specified ListWebhooksRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStartExperimentRequest} message StartExperimentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest} message ListWebhooksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListWebhooksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StartExperimentRequest message from the specified reader or buffer. + * Decodes a ListWebhooksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest} StartExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest} ListWebhooksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartExperimentRequest.decode = function decode(reader, length) { + ListWebhooksRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); + break; + case 2: + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -127972,107 +126755,126 @@ }; /** - * Decodes a StartExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a ListWebhooksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest} StartExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest} ListWebhooksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartExperimentRequest.decodeDelimited = function decodeDelimited(reader) { + ListWebhooksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StartExperimentRequest message. + * Verifies a ListWebhooksRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StartExperimentRequest.verify = function verify(message) { + ListWebhooksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a StartExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListWebhooksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest} StartExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest} ListWebhooksRequest */ - StartExperimentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest) + ListWebhooksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a StartExperimentRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListWebhooksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest} message StartExperimentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest} message ListWebhooksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StartExperimentRequest.toObject = function toObject(message, options) { + ListWebhooksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this StartExperimentRequest to JSON. + * Converts this ListWebhooksRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest * @instance * @returns {Object.} JSON object */ - StartExperimentRequest.prototype.toJSON = function toJSON() { + ListWebhooksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StartExperimentRequest; + return ListWebhooksRequest; })(); - v3beta1.StopExperimentRequest = (function() { + v3beta1.ListWebhooksResponse = (function() { /** - * Properties of a StopExperimentRequest. + * Properties of a ListWebhooksResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IStopExperimentRequest - * @property {string|null} [name] StopExperimentRequest name + * @interface IListWebhooksResponse + * @property {Array.|null} [webhooks] ListWebhooksResponse webhooks + * @property {string|null} [nextPageToken] ListWebhooksResponse nextPageToken */ /** - * Constructs a new StopExperimentRequest. + * Constructs a new ListWebhooksResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a StopExperimentRequest. - * @implements IStopExperimentRequest + * @classdesc Represents a ListWebhooksResponse. + * @implements IListWebhooksResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListWebhooksResponse=} [properties] Properties to set */ - function StopExperimentRequest(properties) { + function ListWebhooksResponse(properties) { + this.webhooks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -128080,75 +126882,91 @@ } /** - * StopExperimentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest + * ListWebhooksResponse webhooks. + * @member {Array.} webhooks + * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse * @instance */ - StopExperimentRequest.prototype.name = ""; + ListWebhooksResponse.prototype.webhooks = $util.emptyArray; /** - * Creates a new StopExperimentRequest instance using the specified properties. + * ListWebhooksResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse + * @instance + */ + ListWebhooksResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListWebhooksResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest} StopExperimentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListWebhooksResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse} ListWebhooksResponse instance */ - StopExperimentRequest.create = function create(properties) { - return new StopExperimentRequest(properties); + ListWebhooksResponse.create = function create(properties) { + return new ListWebhooksResponse(properties); }; /** - * Encodes the specified StopExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest.verify|verify} messages. + * Encodes the specified ListWebhooksResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest} message StopExperimentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListWebhooksResponse} message ListWebhooksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopExperimentRequest.encode = function encode(message, writer) { + ListWebhooksResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.webhooks != null && message.webhooks.length) + for (var i = 0; i < message.webhooks.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Webhook.encode(message.webhooks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified StopExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest.verify|verify} messages. + * Encodes the specified ListWebhooksResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStopExperimentRequest} message StopExperimentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListWebhooksResponse} message ListWebhooksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListWebhooksResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StopExperimentRequest message from the specified reader or buffer. + * Decodes a ListWebhooksResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest} StopExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse} ListWebhooksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopExperimentRequest.decode = function decode(reader, length) { + ListWebhooksResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.webhooks && message.webhooks.length)) + message.webhooks = []; + message.webhooks.push($root.google.cloud.dialogflow.cx.v3beta1.Webhook.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -128159,373 +126977,321 @@ }; /** - * Decodes a StopExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a ListWebhooksResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest} StopExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse} ListWebhooksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopExperimentRequest.decodeDelimited = function decodeDelimited(reader) { + ListWebhooksResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StopExperimentRequest message. + * Verifies a ListWebhooksResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StopExperimentRequest.verify = function verify(message) { + ListWebhooksResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.webhooks != null && message.hasOwnProperty("webhooks")) { + if (!Array.isArray(message.webhooks)) + return "webhooks: array expected"; + for (var i = 0; i < message.webhooks.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.verify(message.webhooks[i]); + if (error) + return "webhooks." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a StopExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListWebhooksResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest} StopExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse} ListWebhooksResponse */ - StopExperimentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest) + ListWebhooksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse(); + if (object.webhooks) { + if (!Array.isArray(object.webhooks)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse.webhooks: array expected"); + message.webhooks = []; + for (var i = 0; i < object.webhooks.length; ++i) { + if (typeof object.webhooks[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse.webhooks: object expected"); + message.webhooks[i] = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.fromObject(object.webhooks[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a StopExperimentRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListWebhooksResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest} message StopExperimentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse} message ListWebhooksResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StopExperimentRequest.toObject = function toObject(message, options) { + ListWebhooksResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.webhooks = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.nextPageToken = ""; + if (message.webhooks && message.webhooks.length) { + object.webhooks = []; + for (var j = 0; j < message.webhooks.length; ++j) + object.webhooks[j] = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.toObject(message.webhooks[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this StopExperimentRequest to JSON. + * Converts this ListWebhooksResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse * @instance * @returns {Object.} JSON object */ - StopExperimentRequest.prototype.toJSON = function toJSON() { + ListWebhooksResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StopExperimentRequest; + return ListWebhooksResponse; })(); - v3beta1.Versions = (function() { + v3beta1.GetWebhookRequest = (function() { /** - * Constructs a new Versions service. + * Properties of a GetWebhookRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a Versions - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Versions(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Versions.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Versions; - - /** - * Creates new Versions service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {Versions} RPC service. Useful where requests and/or responses are streamed. - */ - Versions.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#listVersions}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions - * @typedef ListVersionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse} [response] ListVersionsResponse - */ - - /** - * Calls ListVersions. - * @function listVersions - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest} request ListVersionsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Versions.ListVersionsCallback} callback Node-style callback called with the error, if any, and ListVersionsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Versions.prototype.listVersions = function listVersions(request, callback) { - return this.rpcCall(listVersions, $root.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse, request, callback); - }, "name", { value: "ListVersions" }); - - /** - * Calls ListVersions. - * @function listVersions - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest} request ListVersionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#getVersion}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions - * @typedef GetVersionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Version} [response] Version - */ - - /** - * Calls GetVersion. - * @function getVersion - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest} request GetVersionRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Versions.GetVersionCallback} callback Node-style callback called with the error, if any, and Version - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Versions.prototype.getVersion = function getVersion(request, callback) { - return this.rpcCall(getVersion, $root.google.cloud.dialogflow.cx.v3beta1.GetVersionRequest, $root.google.cloud.dialogflow.cx.v3beta1.Version, request, callback); - }, "name", { value: "GetVersion" }); - - /** - * Calls GetVersion. - * @function getVersion - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest} request GetVersionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#createVersion}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions - * @typedef CreateVersionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls CreateVersion. - * @function createVersion - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest} request CreateVersionRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Versions.CreateVersionCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Versions.prototype.createVersion = function createVersion(request, callback) { - return this.rpcCall(createVersion, $root.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateVersion" }); - - /** - * Calls CreateVersion. - * @function createVersion - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest} request CreateVersionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#updateVersion}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions - * @typedef UpdateVersionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Version} [response] Version + * @interface IGetWebhookRequest + * @property {string|null} [name] GetWebhookRequest name */ /** - * Calls UpdateVersion. - * @function updateVersion - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest} request UpdateVersionRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Versions.UpdateVersionCallback} callback Node-style callback called with the error, if any, and Version - * @returns {undefined} - * @variation 1 + * Constructs a new GetWebhookRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a GetWebhookRequest. + * @implements IGetWebhookRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest=} [properties] Properties to set */ - Object.defineProperty(Versions.prototype.updateVersion = function updateVersion(request, callback) { - return this.rpcCall(updateVersion, $root.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest, $root.google.cloud.dialogflow.cx.v3beta1.Version, request, callback); - }, "name", { value: "UpdateVersion" }); + function GetWebhookRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls UpdateVersion. - * @function updateVersion - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * GetWebhookRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest} request UpdateVersionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + GetWebhookRequest.prototype.name = ""; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#deleteVersion}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions - * @typedef DeleteVersionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Creates a new GetWebhookRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest} GetWebhookRequest instance */ + GetWebhookRequest.create = function create(properties) { + return new GetWebhookRequest(properties); + }; /** - * Calls DeleteVersion. - * @function deleteVersion - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest} request DeleteVersionRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Versions.DeleteVersionCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * Encodes the specified GetWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest} message GetWebhookRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(Versions.prototype.deleteVersion = function deleteVersion(request, callback) { - return this.rpcCall(deleteVersion, $root.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteVersion" }); + GetWebhookRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; /** - * Calls DeleteVersion. - * @function deleteVersion - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest} request DeleteVersionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified GetWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest} message GetWebhookRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + GetWebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#loadVersion}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions - * @typedef LoadVersionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Decodes a GetWebhookRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest} GetWebhookRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + GetWebhookRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls LoadVersion. - * @function loadVersion - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest} request LoadVersionRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Versions.LoadVersionCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Decodes a GetWebhookRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest} GetWebhookRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(Versions.prototype.loadVersion = function loadVersion(request, callback) { - return this.rpcCall(loadVersion, $root.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "LoadVersion" }); + GetWebhookRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls LoadVersion. - * @function loadVersion - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest} request LoadVersionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a GetWebhookRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + GetWebhookRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#compareVersions}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions - * @typedef CompareVersionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse} [response] CompareVersionsResponse + * Creates a GetWebhookRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest} GetWebhookRequest */ + GetWebhookRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; /** - * Calls CompareVersions. - * @function compareVersions - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICompareVersionsRequest} request CompareVersionsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Versions.CompareVersionsCallback} callback Node-style callback called with the error, if any, and CompareVersionsResponse - * @returns {undefined} - * @variation 1 + * Creates a plain object from a GetWebhookRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest} message GetWebhookRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(Versions.prototype.compareVersions = function compareVersions(request, callback) { - return this.rpcCall(compareVersions, $root.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest, $root.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse, request, callback); - }, "name", { value: "CompareVersions" }); + GetWebhookRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; /** - * Calls CompareVersions. - * @function compareVersions - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * Converts this GetWebhookRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICompareVersionsRequest} request CompareVersionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + GetWebhookRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Versions; + return GetWebhookRequest; })(); - v3beta1.CreateVersionOperationMetadata = (function() { + v3beta1.CreateWebhookRequest = (function() { /** - * Properties of a CreateVersionOperationMetadata. + * Properties of a CreateWebhookRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ICreateVersionOperationMetadata - * @property {string|null} [version] CreateVersionOperationMetadata version + * @interface ICreateWebhookRequest + * @property {string|null} [parent] CreateWebhookRequest parent + * @property {google.cloud.dialogflow.cx.v3beta1.IWebhook|null} [webhook] CreateWebhookRequest webhook */ /** - * Constructs a new CreateVersionOperationMetadata. + * Constructs a new CreateWebhookRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CreateVersionOperationMetadata. - * @implements ICreateVersionOperationMetadata + * @classdesc Represents a CreateWebhookRequest. + * @implements ICreateWebhookRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateVersionOperationMetadata=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest=} [properties] Properties to set */ - function CreateVersionOperationMetadata(properties) { + function CreateWebhookRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -128533,75 +127299,88 @@ } /** - * CreateVersionOperationMetadata version. - * @member {string} version - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata + * CreateWebhookRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest * @instance */ - CreateVersionOperationMetadata.prototype.version = ""; + CreateWebhookRequest.prototype.parent = ""; /** - * Creates a new CreateVersionOperationMetadata instance using the specified properties. + * CreateWebhookRequest webhook. + * @member {google.cloud.dialogflow.cx.v3beta1.IWebhook|null|undefined} webhook + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest + * @instance + */ + CreateWebhookRequest.prototype.webhook = null; + + /** + * Creates a new CreateWebhookRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateVersionOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata} CreateVersionOperationMetadata instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest} CreateWebhookRequest instance */ - CreateVersionOperationMetadata.create = function create(properties) { - return new CreateVersionOperationMetadata(properties); + CreateWebhookRequest.create = function create(properties) { + return new CreateWebhookRequest(properties); }; /** - * Encodes the specified CreateVersionOperationMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata.verify|verify} messages. + * Encodes the specified CreateWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateVersionOperationMetadata} message CreateVersionOperationMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest} message CreateWebhookRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateVersionOperationMetadata.encode = function encode(message, writer) { + CreateWebhookRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.webhook != null && Object.hasOwnProperty.call(message, "webhook")) + $root.google.cloud.dialogflow.cx.v3beta1.Webhook.encode(message.webhook, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateVersionOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata.verify|verify} messages. + * Encodes the specified CreateWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateVersionOperationMetadata} message CreateVersionOperationMetadata message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest} message CreateWebhookRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateVersionOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + CreateWebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateVersionOperationMetadata message from the specified reader or buffer. + * Decodes a CreateWebhookRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata} CreateVersionOperationMetadata + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest} CreateWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateVersionOperationMetadata.decode = function decode(reader, length) { + CreateWebhookRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.version = reader.string(); + message.parent = reader.string(); + break; + case 2: + message.webhook = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -128612,112 +127391,122 @@ }; /** - * Decodes a CreateVersionOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a CreateWebhookRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata} CreateVersionOperationMetadata + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest} CreateWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateVersionOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + CreateWebhookRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateVersionOperationMetadata message. + * Verifies a CreateWebhookRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateVersionOperationMetadata.verify = function verify(message) { + CreateWebhookRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.webhook != null && message.hasOwnProperty("webhook")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.verify(message.webhook); + if (error) + return "webhook." + error; + } return null; }; /** - * Creates a CreateVersionOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a CreateWebhookRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata} CreateVersionOperationMetadata + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest} CreateWebhookRequest */ - CreateVersionOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata) + CreateWebhookRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata(); - if (object.version != null) - message.version = String(object.version); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.webhook != null) { + if (typeof object.webhook !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest.webhook: object expected"); + message.webhook = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.fromObject(object.webhook); + } return message; }; /** - * Creates a plain object from a CreateVersionOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a CreateWebhookRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata} message CreateVersionOperationMetadata + * @param {google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest} message CreateWebhookRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateVersionOperationMetadata.toObject = function toObject(message, options) { + CreateWebhookRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.version = ""; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; + if (options.defaults) { + object.parent = ""; + object.webhook = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.webhook != null && message.hasOwnProperty("webhook")) + object.webhook = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.toObject(message.webhook, options); return object; }; /** - * Converts this CreateVersionOperationMetadata to JSON. + * Converts this CreateWebhookRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest * @instance * @returns {Object.} JSON object */ - CreateVersionOperationMetadata.prototype.toJSON = function toJSON() { + CreateWebhookRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateVersionOperationMetadata; + return CreateWebhookRequest; })(); - v3beta1.Version = (function() { + v3beta1.UpdateWebhookRequest = (function() { /** - * Properties of a Version. + * Properties of an UpdateWebhookRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IVersion - * @property {string|null} [name] Version name - * @property {string|null} [displayName] Version displayName - * @property {string|null} [description] Version description - * @property {google.cloud.dialogflow.cx.v3beta1.INluSettings|null} [nluSettings] Version nluSettings - * @property {google.protobuf.ITimestamp|null} [createTime] Version createTime - * @property {google.cloud.dialogflow.cx.v3beta1.Version.State|null} [state] Version state + * @interface IUpdateWebhookRequest + * @property {google.cloud.dialogflow.cx.v3beta1.IWebhook|null} [webhook] UpdateWebhookRequest webhook + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateWebhookRequest updateMask */ /** - * Constructs a new Version. + * Constructs a new UpdateWebhookRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a Version. - * @implements IVersion + * @classdesc Represents an UpdateWebhookRequest. + * @implements IUpdateWebhookRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IVersion=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest=} [properties] Properties to set */ - function Version(properties) { + function UpdateWebhookRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -128725,140 +127514,88 @@ } /** - * Version name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.Version - * @instance - */ - Version.prototype.name = ""; - - /** - * Version displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.Version - * @instance - */ - Version.prototype.displayName = ""; - - /** - * Version description. - * @member {string} description - * @memberof google.cloud.dialogflow.cx.v3beta1.Version - * @instance - */ - Version.prototype.description = ""; - - /** - * Version nluSettings. - * @member {google.cloud.dialogflow.cx.v3beta1.INluSettings|null|undefined} nluSettings - * @memberof google.cloud.dialogflow.cx.v3beta1.Version - * @instance - */ - Version.prototype.nluSettings = null; - - /** - * Version createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * UpdateWebhookRequest webhook. + * @member {google.cloud.dialogflow.cx.v3beta1.IWebhook|null|undefined} webhook + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest * @instance */ - Version.prototype.createTime = null; + UpdateWebhookRequest.prototype.webhook = null; /** - * Version state. - * @member {google.cloud.dialogflow.cx.v3beta1.Version.State} state - * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * UpdateWebhookRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest * @instance */ - Version.prototype.state = 0; + UpdateWebhookRequest.prototype.updateMask = null; /** - * Creates a new Version instance using the specified properties. + * Creates a new UpdateWebhookRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IVersion=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Version} Version instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest} UpdateWebhookRequest instance */ - Version.create = function create(properties) { - return new Version(properties); + UpdateWebhookRequest.create = function create(properties) { + return new UpdateWebhookRequest(properties); }; /** - * Encodes the specified Version message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Version.verify|verify} messages. + * Encodes the specified UpdateWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IVersion} message Version message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest} message UpdateWebhookRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Version.encode = function encode(message, writer) { + UpdateWebhookRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); - if (message.nluSettings != null && Object.hasOwnProperty.call(message, "nluSettings")) - $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.encode(message.nluSettings, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state); + if (message.webhook != null && Object.hasOwnProperty.call(message, "webhook")) + $root.google.cloud.dialogflow.cx.v3beta1.Webhook.encode(message.webhook, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified Version message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Version.verify|verify} messages. + * Encodes the specified UpdateWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IVersion} message Version message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest} message UpdateWebhookRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Version.encodeDelimited = function encodeDelimited(message, writer) { + UpdateWebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Version message from the specified reader or buffer. + * Decodes an UpdateWebhookRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Version} Version + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest} UpdateWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Version.decode = function decode(reader, length) { + UpdateWebhookRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Version(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.webhook = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.decode(reader, reader.uint32()); break; case 2: - message.displayName = reader.string(); - break; - case 3: - message.description = reader.string(); - break; - case 4: - message.nluSettings = $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.decode(reader, reader.uint32()); - break; - case 5: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 6: - message.state = reader.int32(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -128869,201 +127606,127 @@ }; /** - * Decodes a Version message from the specified reader or buffer, length delimited. + * Decodes an UpdateWebhookRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Version} Version + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest} UpdateWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Version.decodeDelimited = function decodeDelimited(reader) { + UpdateWebhookRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Version message. + * Verifies an UpdateWebhookRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Version.verify = function verify(message) { + UpdateWebhookRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.nluSettings != null && message.hasOwnProperty("nluSettings")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.verify(message.nluSettings); + if (message.webhook != null && message.hasOwnProperty("webhook")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.verify(message.webhook); if (error) - return "nluSettings." + error; + return "webhook." + error; } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); if (error) - return "createTime." + error; + return "updateMask." + error; } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } return null; }; /** - * Creates a Version message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateWebhookRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Version} Version + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest} UpdateWebhookRequest */ - Version.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Version) + UpdateWebhookRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Version(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.description != null) - message.description = String(object.description); - if (object.nluSettings != null) { - if (typeof object.nluSettings !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Version.nluSettings: object expected"); - message.nluSettings = $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.fromObject(object.nluSettings); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Version.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest(); + if (object.webhook != null) { + if (typeof object.webhook !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest.webhook: object expected"); + message.webhook = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.fromObject(object.webhook); } - switch (object.state) { - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "RUNNING": - case 1: - message.state = 1; - break; - case "SUCCEEDED": - case 2: - message.state = 2; - break; - case "FAILED": - case 3: - message.state = 3; - break; + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from a Version message. Also converts values to other types if specified. + * Creates a plain object from an UpdateWebhookRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Version} message Version + * @param {google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest} message UpdateWebhookRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Version.toObject = function toObject(message, options) { + UpdateWebhookRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.description = ""; - object.nluSettings = null; - object.createTime = null; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.webhook = null; + object.updateMask = null; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.nluSettings != null && message.hasOwnProperty("nluSettings")) - object.nluSettings = $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.toObject(message.nluSettings, options); - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.Version.State[message.state] : message.state; + if (message.webhook != null && message.hasOwnProperty("webhook")) + object.webhook = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.toObject(message.webhook, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this Version to JSON. + * Converts this UpdateWebhookRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest * @instance * @returns {Object.} JSON object */ - Version.prototype.toJSON = function toJSON() { + UpdateWebhookRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * State enum. - * @name google.cloud.dialogflow.cx.v3beta1.Version.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} RUNNING=1 RUNNING value - * @property {number} SUCCEEDED=2 SUCCEEDED value - * @property {number} FAILED=3 FAILED value - */ - Version.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "RUNNING"] = 1; - values[valuesById[2] = "SUCCEEDED"] = 2; - values[valuesById[3] = "FAILED"] = 3; - return values; - })(); - - return Version; + return UpdateWebhookRequest; })(); - v3beta1.ListVersionsRequest = (function() { + v3beta1.DeleteWebhookRequest = (function() { /** - * Properties of a ListVersionsRequest. + * Properties of a DeleteWebhookRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListVersionsRequest - * @property {string|null} [parent] ListVersionsRequest parent - * @property {number|null} [pageSize] ListVersionsRequest pageSize - * @property {string|null} [pageToken] ListVersionsRequest pageToken + * @interface IDeleteWebhookRequest + * @property {string|null} [name] DeleteWebhookRequest name + * @property {boolean|null} [force] DeleteWebhookRequest force */ /** - * Constructs a new ListVersionsRequest. + * Constructs a new DeleteWebhookRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListVersionsRequest. - * @implements IListVersionsRequest + * @classdesc Represents a DeleteWebhookRequest. + * @implements IDeleteWebhookRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest=} [properties] Properties to set */ - function ListVersionsRequest(properties) { + function DeleteWebhookRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -129071,101 +127734,88 @@ } /** - * ListVersionsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest - * @instance - */ - ListVersionsRequest.prototype.parent = ""; - - /** - * ListVersionsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest + * DeleteWebhookRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest * @instance */ - ListVersionsRequest.prototype.pageSize = 0; + DeleteWebhookRequest.prototype.name = ""; /** - * ListVersionsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest + * DeleteWebhookRequest force. + * @member {boolean} force + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest * @instance */ - ListVersionsRequest.prototype.pageToken = ""; + DeleteWebhookRequest.prototype.force = false; /** - * Creates a new ListVersionsRequest instance using the specified properties. + * Creates a new DeleteWebhookRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest} ListVersionsRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest} DeleteWebhookRequest instance */ - ListVersionsRequest.create = function create(properties) { - return new ListVersionsRequest(properties); + DeleteWebhookRequest.create = function create(properties) { + return new DeleteWebhookRequest(properties); }; /** - * Encodes the specified ListVersionsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest.verify|verify} messages. + * Encodes the specified DeleteWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest} message ListVersionsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest} message DeleteWebhookRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListVersionsRequest.encode = function encode(message, writer) { + DeleteWebhookRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); return writer; }; /** - * Encodes the specified ListVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest.verify|verify} messages. + * Encodes the specified DeleteWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest} message ListVersionsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest} message DeleteWebhookRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListVersionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteWebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListVersionsRequest message from the specified reader or buffer. + * Decodes a DeleteWebhookRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest} ListVersionsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest} DeleteWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListVersionsRequest.decode = function decode(reader, length) { + DeleteWebhookRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.name = reader.string(); break; case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); + message.force = reader.bool(); break; default: reader.skipType(tag & 7); @@ -129176,126 +127826,129 @@ }; /** - * Decodes a ListVersionsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteWebhookRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest} ListVersionsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest} DeleteWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListVersionsRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteWebhookRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListVersionsRequest message. + * Verifies a DeleteWebhookRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListVersionsRequest.verify = function verify(message) { + DeleteWebhookRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; return null; }; /** - * Creates a ListVersionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteWebhookRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest} ListVersionsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest} DeleteWebhookRequest */ - ListVersionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest) + DeleteWebhookRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.force != null) + message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from a ListVersionsRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteWebhookRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest} message ListVersionsRequest + * @param {google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest} message DeleteWebhookRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListVersionsRequest.toObject = function toObject(message, options) { + DeleteWebhookRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.name = ""; + object.force = false; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; return object; }; /** - * Converts this ListVersionsRequest to JSON. + * Converts this DeleteWebhookRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest * @instance * @returns {Object.} JSON object */ - ListVersionsRequest.prototype.toJSON = function toJSON() { + DeleteWebhookRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListVersionsRequest; + return DeleteWebhookRequest; })(); - v3beta1.ListVersionsResponse = (function() { + v3beta1.WebhookRequest = (function() { /** - * Properties of a ListVersionsResponse. + * Properties of a WebhookRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListVersionsResponse - * @property {Array.|null} [versions] ListVersionsResponse versions - * @property {string|null} [nextPageToken] ListVersionsResponse nextPageToken + * @interface IWebhookRequest + * @property {string|null} [detectIntentResponseId] WebhookRequest detectIntentResponseId + * @property {string|null} [text] WebhookRequest text + * @property {string|null} [triggerIntent] WebhookRequest triggerIntent + * @property {string|null} [transcript] WebhookRequest transcript + * @property {string|null} [triggerEvent] WebhookRequest triggerEvent + * @property {string|null} [languageCode] WebhookRequest languageCode + * @property {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IFulfillmentInfo|null} [fulfillmentInfo] WebhookRequest fulfillmentInfo + * @property {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IIntentInfo|null} [intentInfo] WebhookRequest intentInfo + * @property {google.cloud.dialogflow.cx.v3beta1.IPageInfo|null} [pageInfo] WebhookRequest pageInfo + * @property {google.cloud.dialogflow.cx.v3beta1.ISessionInfo|null} [sessionInfo] WebhookRequest sessionInfo + * @property {Array.|null} [messages] WebhookRequest messages + * @property {google.protobuf.IStruct|null} [payload] WebhookRequest payload + * @property {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.ISentimentAnalysisResult|null} [sentimentAnalysisResult] WebhookRequest sentimentAnalysisResult */ /** - * Constructs a new ListVersionsResponse. + * Constructs a new WebhookRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListVersionsResponse. - * @implements IListVersionsResponse + * @classdesc Represents a WebhookRequest. + * @implements IWebhookRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListVersionsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IWebhookRequest=} [properties] Properties to set */ - function ListVersionsResponse(properties) { - this.versions = []; + function WebhookRequest(properties) { + this.messages = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -129303,91 +127956,248 @@ } /** - * ListVersionsResponse versions. - * @member {Array.} versions - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse + * WebhookRequest detectIntentResponseId. + * @member {string} detectIntentResponseId + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest * @instance */ - ListVersionsResponse.prototype.versions = $util.emptyArray; + WebhookRequest.prototype.detectIntentResponseId = ""; /** - * ListVersionsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse + * WebhookRequest text. + * @member {string|null|undefined} text + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest * @instance */ - ListVersionsResponse.prototype.nextPageToken = ""; + WebhookRequest.prototype.text = null; /** - * Creates a new ListVersionsResponse instance using the specified properties. + * WebhookRequest triggerIntent. + * @member {string|null|undefined} triggerIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @instance + */ + WebhookRequest.prototype.triggerIntent = null; + + /** + * WebhookRequest transcript. + * @member {string|null|undefined} transcript + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @instance + */ + WebhookRequest.prototype.transcript = null; + + /** + * WebhookRequest triggerEvent. + * @member {string|null|undefined} triggerEvent + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @instance + */ + WebhookRequest.prototype.triggerEvent = null; + + /** + * WebhookRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @instance + */ + WebhookRequest.prototype.languageCode = ""; + + /** + * WebhookRequest fulfillmentInfo. + * @member {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IFulfillmentInfo|null|undefined} fulfillmentInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @instance + */ + WebhookRequest.prototype.fulfillmentInfo = null; + + /** + * WebhookRequest intentInfo. + * @member {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IIntentInfo|null|undefined} intentInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @instance + */ + WebhookRequest.prototype.intentInfo = null; + + /** + * WebhookRequest pageInfo. + * @member {google.cloud.dialogflow.cx.v3beta1.IPageInfo|null|undefined} pageInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @instance + */ + WebhookRequest.prototype.pageInfo = null; + + /** + * WebhookRequest sessionInfo. + * @member {google.cloud.dialogflow.cx.v3beta1.ISessionInfo|null|undefined} sessionInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @instance + */ + WebhookRequest.prototype.sessionInfo = null; + + /** + * WebhookRequest messages. + * @member {Array.} messages + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @instance + */ + WebhookRequest.prototype.messages = $util.emptyArray; + + /** + * WebhookRequest payload. + * @member {google.protobuf.IStruct|null|undefined} payload + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @instance + */ + WebhookRequest.prototype.payload = null; + + /** + * WebhookRequest sentimentAnalysisResult. + * @member {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.ISentimentAnalysisResult|null|undefined} sentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @instance + */ + WebhookRequest.prototype.sentimentAnalysisResult = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * WebhookRequest query. + * @member {"text"|"triggerIntent"|"transcript"|"triggerEvent"|undefined} query + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @instance + */ + Object.defineProperty(WebhookRequest.prototype, "query", { + get: $util.oneOfGetter($oneOfFields = ["text", "triggerIntent", "transcript", "triggerEvent"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new WebhookRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListVersionsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse} ListVersionsResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IWebhookRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest} WebhookRequest instance */ - ListVersionsResponse.create = function create(properties) { - return new ListVersionsResponse(properties); + WebhookRequest.create = function create(properties) { + return new WebhookRequest(properties); }; /** - * Encodes the specified ListVersionsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse.verify|verify} messages. + * Encodes the specified WebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListVersionsResponse} message ListVersionsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IWebhookRequest} message WebhookRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListVersionsResponse.encode = function encode(message, writer) { + WebhookRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.versions != null && message.versions.length) - for (var i = 0; i < message.versions.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Version.encode(message.versions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.detectIntentResponseId != null && Object.hasOwnProperty.call(message, "detectIntentResponseId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.detectIntentResponseId); + if (message.intentInfo != null && Object.hasOwnProperty.call(message, "intentInfo")) + $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.encode(message.intentInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.pageInfo != null && Object.hasOwnProperty.call(message, "pageInfo")) + $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.encode(message.pageInfo, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.sessionInfo != null && Object.hasOwnProperty.call(message, "sessionInfo")) + $root.google.cloud.dialogflow.cx.v3beta1.SessionInfo.encode(message.sessionInfo, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.fulfillmentInfo != null && Object.hasOwnProperty.call(message, "fulfillmentInfo")) + $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.encode(message.fulfillmentInfo, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.messages != null && message.messages.length) + for (var i = 0; i < message.messages.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.encode(message.messages[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) + $root.google.protobuf.Struct.encode(message.payload, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.sentimentAnalysisResult != null && Object.hasOwnProperty.call(message, "sentimentAnalysisResult")) + $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult.encode(message.sentimentAnalysisResult, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.text); + if (message.triggerIntent != null && Object.hasOwnProperty.call(message, "triggerIntent")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.triggerIntent); + if (message.transcript != null && Object.hasOwnProperty.call(message, "transcript")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.transcript); + if (message.triggerEvent != null && Object.hasOwnProperty.call(message, "triggerEvent")) + writer.uint32(/* id 14, wireType 2 =*/114).string(message.triggerEvent); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 15, wireType 2 =*/122).string(message.languageCode); return writer; }; /** - * Encodes the specified ListVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse.verify|verify} messages. + * Encodes the specified WebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListVersionsResponse} message ListVersionsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IWebhookRequest} message WebhookRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListVersionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + WebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListVersionsResponse message from the specified reader or buffer. + * Decodes a WebhookRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse} ListVersionsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest} WebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListVersionsResponse.decode = function decode(reader, length) { + WebhookRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.versions && message.versions.length)) - message.versions = []; - message.versions.push($root.google.cloud.dialogflow.cx.v3beta1.Version.decode(reader, reader.uint32())); + message.detectIntentResponseId = reader.string(); break; - case 2: - message.nextPageToken = reader.string(); + case 10: + message.text = reader.string(); + break; + case 11: + message.triggerIntent = reader.string(); + break; + case 12: + message.transcript = reader.string(); + break; + case 14: + message.triggerEvent = reader.string(); + break; + case 15: + message.languageCode = reader.string(); + break; + case 6: + message.fulfillmentInfo = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.decode(reader, reader.uint32()); + break; + case 3: + message.intentInfo = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.decode(reader, reader.uint32()); + break; + case 4: + message.pageInfo = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.decode(reader, reader.uint32()); + break; + case 5: + message.sessionInfo = $root.google.cloud.dialogflow.cx.v3beta1.SessionInfo.decode(reader, reader.uint32()); + break; + case 7: + if (!(message.messages && message.messages.length)) + message.messages = []; + message.messages.push($root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.decode(reader, reader.uint32())); + break; + case 8: + message.payload = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 9: + message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -129398,755 +128208,1189 @@ }; /** - * Decodes a ListVersionsResponse message from the specified reader or buffer, length delimited. + * Decodes a WebhookRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse} ListVersionsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest} WebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListVersionsResponse.decodeDelimited = function decodeDelimited(reader) { + WebhookRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListVersionsResponse message. + * Verifies a WebhookRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListVersionsResponse.verify = function verify(message) { + WebhookRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.versions != null && message.hasOwnProperty("versions")) { - if (!Array.isArray(message.versions)) - return "versions: array expected"; - for (var i = 0; i < message.versions.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Version.verify(message.versions[i]); + var properties = {}; + if (message.detectIntentResponseId != null && message.hasOwnProperty("detectIntentResponseId")) + if (!$util.isString(message.detectIntentResponseId)) + return "detectIntentResponseId: string expected"; + if (message.text != null && message.hasOwnProperty("text")) { + properties.query = 1; + if (!$util.isString(message.text)) + return "text: string expected"; + } + if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { + if (properties.query === 1) + return "query: multiple values"; + properties.query = 1; + if (!$util.isString(message.triggerIntent)) + return "triggerIntent: string expected"; + } + if (message.transcript != null && message.hasOwnProperty("transcript")) { + if (properties.query === 1) + return "query: multiple values"; + properties.query = 1; + if (!$util.isString(message.transcript)) + return "transcript: string expected"; + } + if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { + if (properties.query === 1) + return "query: multiple values"; + properties.query = 1; + if (!$util.isString(message.triggerEvent)) + return "triggerEvent: string expected"; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + if (message.fulfillmentInfo != null && message.hasOwnProperty("fulfillmentInfo")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.verify(message.fulfillmentInfo); + if (error) + return "fulfillmentInfo." + error; + } + if (message.intentInfo != null && message.hasOwnProperty("intentInfo")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.verify(message.intentInfo); + if (error) + return "intentInfo." + error; + } + if (message.pageInfo != null && message.hasOwnProperty("pageInfo")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.verify(message.pageInfo); + if (error) + return "pageInfo." + error; + } + if (message.sessionInfo != null && message.hasOwnProperty("sessionInfo")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.SessionInfo.verify(message.sessionInfo); + if (error) + return "sessionInfo." + error; + } + if (message.messages != null && message.hasOwnProperty("messages")) { + if (!Array.isArray(message.messages)) + return "messages: array expected"; + for (var i = 0; i < message.messages.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify(message.messages[i]); if (error) - return "versions." + error; + return "messages." + error; } } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.payload != null && message.hasOwnProperty("payload")) { + var error = $root.google.protobuf.Struct.verify(message.payload); + if (error) + return "payload." + error; + } + if (message.sentimentAnalysisResult != null && message.hasOwnProperty("sentimentAnalysisResult")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult.verify(message.sentimentAnalysisResult); + if (error) + return "sentimentAnalysisResult." + error; + } return null; }; /** - * Creates a ListVersionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a WebhookRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse} ListVersionsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest} WebhookRequest */ - ListVersionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse) + WebhookRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse(); - if (object.versions) { - if (!Array.isArray(object.versions)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse.versions: array expected"); - message.versions = []; - for (var i = 0; i < object.versions.length; ++i) { - if (typeof object.versions[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse.versions: object expected"); - message.versions[i] = $root.google.cloud.dialogflow.cx.v3beta1.Version.fromObject(object.versions[i]); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest(); + if (object.detectIntentResponseId != null) + message.detectIntentResponseId = String(object.detectIntentResponseId); + if (object.text != null) + message.text = String(object.text); + if (object.triggerIntent != null) + message.triggerIntent = String(object.triggerIntent); + if (object.transcript != null) + message.transcript = String(object.transcript); + if (object.triggerEvent != null) + message.triggerEvent = String(object.triggerEvent); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + if (object.fulfillmentInfo != null) { + if (typeof object.fulfillmentInfo !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookRequest.fulfillmentInfo: object expected"); + message.fulfillmentInfo = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.fromObject(object.fulfillmentInfo); + } + if (object.intentInfo != null) { + if (typeof object.intentInfo !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookRequest.intentInfo: object expected"); + message.intentInfo = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.fromObject(object.intentInfo); + } + if (object.pageInfo != null) { + if (typeof object.pageInfo !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookRequest.pageInfo: object expected"); + message.pageInfo = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.fromObject(object.pageInfo); + } + if (object.sessionInfo != null) { + if (typeof object.sessionInfo !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookRequest.sessionInfo: object expected"); + message.sessionInfo = $root.google.cloud.dialogflow.cx.v3beta1.SessionInfo.fromObject(object.sessionInfo); + } + if (object.messages) { + if (!Array.isArray(object.messages)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookRequest.messages: array expected"); + message.messages = []; + for (var i = 0; i < object.messages.length; ++i) { + if (typeof object.messages[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookRequest.messages: object expected"); + message.messages[i] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.fromObject(object.messages[i]); } } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + if (object.payload != null) { + if (typeof object.payload !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookRequest.payload: object expected"); + message.payload = $root.google.protobuf.Struct.fromObject(object.payload); + } + if (object.sentimentAnalysisResult != null) { + if (typeof object.sentimentAnalysisResult !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookRequest.sentimentAnalysisResult: object expected"); + message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult.fromObject(object.sentimentAnalysisResult); + } return message; }; /** - * Creates a plain object from a ListVersionsResponse message. Also converts values to other types if specified. + * Creates a plain object from a WebhookRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse} message ListVersionsResponse + * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest} message WebhookRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListVersionsResponse.toObject = function toObject(message, options) { + WebhookRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.versions = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.versions && message.versions.length) { - object.versions = []; - for (var j = 0; j < message.versions.length; ++j) - object.versions[j] = $root.google.cloud.dialogflow.cx.v3beta1.Version.toObject(message.versions[j], options); + object.messages = []; + if (options.defaults) { + object.detectIntentResponseId = ""; + object.intentInfo = null; + object.pageInfo = null; + object.sessionInfo = null; + object.fulfillmentInfo = null; + object.payload = null; + object.sentimentAnalysisResult = null; + object.languageCode = ""; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.detectIntentResponseId != null && message.hasOwnProperty("detectIntentResponseId")) + object.detectIntentResponseId = message.detectIntentResponseId; + if (message.intentInfo != null && message.hasOwnProperty("intentInfo")) + object.intentInfo = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.toObject(message.intentInfo, options); + if (message.pageInfo != null && message.hasOwnProperty("pageInfo")) + object.pageInfo = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.toObject(message.pageInfo, options); + if (message.sessionInfo != null && message.hasOwnProperty("sessionInfo")) + object.sessionInfo = $root.google.cloud.dialogflow.cx.v3beta1.SessionInfo.toObject(message.sessionInfo, options); + if (message.fulfillmentInfo != null && message.hasOwnProperty("fulfillmentInfo")) + object.fulfillmentInfo = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.toObject(message.fulfillmentInfo, options); + if (message.messages && message.messages.length) { + object.messages = []; + for (var j = 0; j < message.messages.length; ++j) + object.messages[j] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.toObject(message.messages[j], options); + } + if (message.payload != null && message.hasOwnProperty("payload")) + object.payload = $root.google.protobuf.Struct.toObject(message.payload, options); + if (message.sentimentAnalysisResult != null && message.hasOwnProperty("sentimentAnalysisResult")) + object.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult.toObject(message.sentimentAnalysisResult, options); + if (message.text != null && message.hasOwnProperty("text")) { + object.text = message.text; + if (options.oneofs) + object.query = "text"; + } + if (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { + object.triggerIntent = message.triggerIntent; + if (options.oneofs) + object.query = "triggerIntent"; + } + if (message.transcript != null && message.hasOwnProperty("transcript")) { + object.transcript = message.transcript; + if (options.oneofs) + object.query = "transcript"; + } + if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { + object.triggerEvent = message.triggerEvent; + if (options.oneofs) + object.query = "triggerEvent"; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this ListVersionsResponse to JSON. + * Converts this WebhookRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest * @instance * @returns {Object.} JSON object */ - ListVersionsResponse.prototype.toJSON = function toJSON() { + WebhookRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListVersionsResponse; - })(); + WebhookRequest.FulfillmentInfo = (function() { + + /** + * Properties of a FulfillmentInfo. + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @interface IFulfillmentInfo + * @property {string|null} [tag] FulfillmentInfo tag + */ + + /** + * Constructs a new FulfillmentInfo. + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @classdesc Represents a FulfillmentInfo. + * @implements IFulfillmentInfo + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IFulfillmentInfo=} [properties] Properties to set + */ + function FulfillmentInfo(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FulfillmentInfo tag. + * @member {string} tag + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo + * @instance + */ + FulfillmentInfo.prototype.tag = ""; + + /** + * Creates a new FulfillmentInfo instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IFulfillmentInfo=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo} FulfillmentInfo instance + */ + FulfillmentInfo.create = function create(properties) { + return new FulfillmentInfo(properties); + }; + + /** + * Encodes the specified FulfillmentInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IFulfillmentInfo} message FulfillmentInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FulfillmentInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tag != null && Object.hasOwnProperty.call(message, "tag")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.tag); + return writer; + }; + + /** + * Encodes the specified FulfillmentInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IFulfillmentInfo} message FulfillmentInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FulfillmentInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FulfillmentInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo} FulfillmentInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FulfillmentInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tag = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FulfillmentInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo} FulfillmentInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FulfillmentInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FulfillmentInfo message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FulfillmentInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.tag != null && message.hasOwnProperty("tag")) + if (!$util.isString(message.tag)) + return "tag: string expected"; + return null; + }; + + /** + * Creates a FulfillmentInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo} FulfillmentInfo + */ + FulfillmentInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo(); + if (object.tag != null) + message.tag = String(object.tag); + return message; + }; + + /** + * Creates a plain object from a FulfillmentInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo} message FulfillmentInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FulfillmentInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.tag = ""; + if (message.tag != null && message.hasOwnProperty("tag")) + object.tag = message.tag; + return object; + }; + + /** + * Converts this FulfillmentInfo to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo + * @instance + * @returns {Object.} JSON object + */ + FulfillmentInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return FulfillmentInfo; + })(); + + WebhookRequest.IntentInfo = (function() { - v3beta1.GetVersionRequest = (function() { + /** + * Properties of an IntentInfo. + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @interface IIntentInfo + * @property {string|null} [lastMatchedIntent] IntentInfo lastMatchedIntent + * @property {string|null} [displayName] IntentInfo displayName + * @property {Object.|null} [parameters] IntentInfo parameters + * @property {number|null} [confidence] IntentInfo confidence + */ - /** - * Properties of a GetVersionRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetVersionRequest - * @property {string|null} [name] GetVersionRequest name - */ + /** + * Constructs a new IntentInfo. + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @classdesc Represents an IntentInfo. + * @implements IIntentInfo + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IIntentInfo=} [properties] Properties to set + */ + function IntentInfo(properties) { + this.parameters = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new GetVersionRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetVersionRequest. - * @implements IGetVersionRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest=} [properties] Properties to set - */ - function GetVersionRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * IntentInfo lastMatchedIntent. + * @member {string} lastMatchedIntent + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo + * @instance + */ + IntentInfo.prototype.lastMatchedIntent = ""; - /** - * GetVersionRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetVersionRequest - * @instance - */ - GetVersionRequest.prototype.name = ""; + /** + * IntentInfo displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo + * @instance + */ + IntentInfo.prototype.displayName = ""; - /** - * Creates a new GetVersionRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetVersionRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetVersionRequest} GetVersionRequest instance - */ - GetVersionRequest.create = function create(properties) { - return new GetVersionRequest(properties); - }; + /** + * IntentInfo parameters. + * @member {Object.} parameters + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo + * @instance + */ + IntentInfo.prototype.parameters = $util.emptyObject; - /** - * Encodes the specified GetVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetVersionRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetVersionRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest} message GetVersionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetVersionRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; + /** + * IntentInfo confidence. + * @member {number} confidence + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo + * @instance + */ + IntentInfo.prototype.confidence = 0; - /** - * Encodes the specified GetVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetVersionRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetVersionRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest} message GetVersionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new IntentInfo instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IIntentInfo=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo} IntentInfo instance + */ + IntentInfo.create = function create(properties) { + return new IntentInfo(properties); + }; - /** - * Decodes a GetVersionRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetVersionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.GetVersionRequest} GetVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetVersionRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetVersionRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified IntentInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IIntentInfo} message IntentInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IntentInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.lastMatchedIntent != null && Object.hasOwnProperty.call(message, "lastMatchedIntent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.lastMatchedIntent); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + for (var keys = Object.keys(message.parameters), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue.encode(message.parameters[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + writer.uint32(/* id 4, wireType 5 =*/37).float(message.confidence); + return writer; + }; - /** - * Decodes a GetVersionRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetVersionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetVersionRequest} GetVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetVersionRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified IntentInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IIntentInfo} message IntentInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IntentInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies a GetVersionRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetVersionRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetVersionRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; + /** + * Decodes an IntentInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo} IntentInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IntentInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.lastMatchedIntent = reader.string(); + break; + case 3: + message.displayName = reader.string(); + break; + case 2: + if (message.parameters === $util.emptyObject) + message.parameters = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.parameters[key] = value; + break; + case 4: + message.confidence = reader.float(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a GetVersionRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetVersionRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetVersionRequest} GetVersionRequest - */ - GetVersionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetVersionRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetVersionRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + /** + * Decodes an IntentInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo} IntentInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IntentInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from a GetVersionRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetVersionRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetVersionRequest} message GetVersionRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetVersionRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + /** + * Verifies an IntentInfo message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IntentInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.lastMatchedIntent != null && message.hasOwnProperty("lastMatchedIntent")) + if (!$util.isString(message.lastMatchedIntent)) + return "lastMatchedIntent: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.parameters != null && message.hasOwnProperty("parameters")) { + if (!$util.isObject(message.parameters)) + return "parameters: object expected"; + var key = Object.keys(message.parameters); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue.verify(message.parameters[key[i]]); + if (error) + return "parameters." + error; + } + } + if (message.confidence != null && message.hasOwnProperty("confidence")) + if (typeof message.confidence !== "number") + return "confidence: number expected"; + return null; + }; - /** - * Converts this GetVersionRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetVersionRequest - * @instance - * @returns {Object.} JSON object - */ - GetVersionRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates an IntentInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo} IntentInfo + */ + IntentInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo(); + if (object.lastMatchedIntent != null) + message.lastMatchedIntent = String(object.lastMatchedIntent); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.parameters) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.parameters: object expected"); + message.parameters = {}; + for (var keys = Object.keys(object.parameters), i = 0; i < keys.length; ++i) { + if (typeof object.parameters[keys[i]] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.parameters: object expected"); + message.parameters[keys[i]] = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue.fromObject(object.parameters[keys[i]]); + } + } + if (object.confidence != null) + message.confidence = Number(object.confidence); + return message; + }; - return GetVersionRequest; - })(); + /** + * Creates a plain object from an IntentInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo} message IntentInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IntentInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.parameters = {}; + if (options.defaults) { + object.lastMatchedIntent = ""; + object.displayName = ""; + object.confidence = 0; + } + if (message.lastMatchedIntent != null && message.hasOwnProperty("lastMatchedIntent")) + object.lastMatchedIntent = message.lastMatchedIntent; + var keys2; + if (message.parameters && (keys2 = Object.keys(message.parameters)).length) { + object.parameters = {}; + for (var j = 0; j < keys2.length; ++j) + object.parameters[keys2[j]] = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue.toObject(message.parameters[keys2[j]], options); + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.confidence != null && message.hasOwnProperty("confidence")) + object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; + return object; + }; - v3beta1.CreateVersionRequest = (function() { + /** + * Converts this IntentInfo to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo + * @instance + * @returns {Object.} JSON object + */ + IntentInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Properties of a CreateVersionRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ICreateVersionRequest - * @property {string|null} [parent] CreateVersionRequest parent - * @property {google.cloud.dialogflow.cx.v3beta1.IVersion|null} [version] CreateVersionRequest version - */ + IntentInfo.IntentParameterValue = (function() { - /** - * Constructs a new CreateVersionRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CreateVersionRequest. - * @implements ICreateVersionRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest=} [properties] Properties to set - */ - function CreateVersionRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of an IntentParameterValue. + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo + * @interface IIntentParameterValue + * @property {string|null} [originalValue] IntentParameterValue originalValue + * @property {google.protobuf.IValue|null} [resolvedValue] IntentParameterValue resolvedValue + */ - /** - * CreateVersionRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest - * @instance - */ - CreateVersionRequest.prototype.parent = ""; + /** + * Constructs a new IntentParameterValue. + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo + * @classdesc Represents an IntentParameterValue. + * @implements IIntentParameterValue + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IIntentParameterValue=} [properties] Properties to set + */ + function IntentParameterValue(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * CreateVersionRequest version. - * @member {google.cloud.dialogflow.cx.v3beta1.IVersion|null|undefined} version - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest - * @instance - */ - CreateVersionRequest.prototype.version = null; + /** + * IntentParameterValue originalValue. + * @member {string} originalValue + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue + * @instance + */ + IntentParameterValue.prototype.originalValue = ""; - /** - * Creates a new CreateVersionRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest} CreateVersionRequest instance - */ - CreateVersionRequest.create = function create(properties) { - return new CreateVersionRequest(properties); - }; + /** + * IntentParameterValue resolvedValue. + * @member {google.protobuf.IValue|null|undefined} resolvedValue + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue + * @instance + */ + IntentParameterValue.prototype.resolvedValue = null; - /** - * Encodes the specified CreateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest} message CreateVersionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateVersionRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - $root.google.cloud.dialogflow.cx.v3beta1.Version.encode(message.version, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Creates a new IntentParameterValue instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IIntentParameterValue=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue} IntentParameterValue instance + */ + IntentParameterValue.create = function create(properties) { + return new IntentParameterValue(properties); + }; - /** - * Encodes the specified CreateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest} message CreateVersionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified IntentParameterValue message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IIntentParameterValue} message IntentParameterValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IntentParameterValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.originalValue != null && Object.hasOwnProperty.call(message, "originalValue")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.originalValue); + if (message.resolvedValue != null && Object.hasOwnProperty.call(message, "resolvedValue")) + $root.google.protobuf.Value.encode(message.resolvedValue, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Decodes a CreateVersionRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest} CreateVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateVersionRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.version = $root.google.cloud.dialogflow.cx.v3beta1.Version.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified IntentParameterValue message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IIntentParameterValue} message IntentParameterValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IntentParameterValue.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a CreateVersionRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest} CreateVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateVersionRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes an IntentParameterValue message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue} IntentParameterValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IntentParameterValue.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.originalValue = reader.string(); + break; + case 2: + message.resolvedValue = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Verifies a CreateVersionRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateVersionRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.version != null && message.hasOwnProperty("version")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Version.verify(message.version); - if (error) - return "version." + error; - } - return null; - }; + /** + * Decodes an IntentParameterValue message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue} IntentParameterValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IntentParameterValue.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a CreateVersionRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest} CreateVersionRequest - */ - CreateVersionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.version != null) { - if (typeof object.version !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest.version: object expected"); - message.version = $root.google.cloud.dialogflow.cx.v3beta1.Version.fromObject(object.version); - } - return message; - }; + /** + * Verifies an IntentParameterValue message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IntentParameterValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.originalValue != null && message.hasOwnProperty("originalValue")) + if (!$util.isString(message.originalValue)) + return "originalValue: string expected"; + if (message.resolvedValue != null && message.hasOwnProperty("resolvedValue")) { + var error = $root.google.protobuf.Value.verify(message.resolvedValue); + if (error) + return "resolvedValue." + error; + } + return null; + }; - /** - * Creates a plain object from a CreateVersionRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest} message CreateVersionRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CreateVersionRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.version = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.version != null && message.hasOwnProperty("version")) - object.version = $root.google.cloud.dialogflow.cx.v3beta1.Version.toObject(message.version, options); - return object; - }; + /** + * Creates an IntentParameterValue message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue} IntentParameterValue + */ + IntentParameterValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue(); + if (object.originalValue != null) + message.originalValue = String(object.originalValue); + if (object.resolvedValue != null) { + if (typeof object.resolvedValue !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue.resolvedValue: object expected"); + message.resolvedValue = $root.google.protobuf.Value.fromObject(object.resolvedValue); + } + return message; + }; - /** - * Converts this CreateVersionRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest - * @instance - * @returns {Object.} JSON object - */ - CreateVersionRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from an IntentParameterValue message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue} message IntentParameterValue + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IntentParameterValue.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.originalValue = ""; + object.resolvedValue = null; + } + if (message.originalValue != null && message.hasOwnProperty("originalValue")) + object.originalValue = message.originalValue; + if (message.resolvedValue != null && message.hasOwnProperty("resolvedValue")) + object.resolvedValue = $root.google.protobuf.Value.toObject(message.resolvedValue, options); + return object; + }; - return CreateVersionRequest; - })(); + /** + * Converts this IntentParameterValue to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue + * @instance + * @returns {Object.} JSON object + */ + IntentParameterValue.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - v3beta1.UpdateVersionRequest = (function() { + return IntentParameterValue; + })(); - /** - * Properties of an UpdateVersionRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IUpdateVersionRequest - * @property {google.cloud.dialogflow.cx.v3beta1.IVersion|null} [version] UpdateVersionRequest version - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateVersionRequest updateMask - */ + return IntentInfo; + })(); - /** - * Constructs a new UpdateVersionRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an UpdateVersionRequest. - * @implements IUpdateVersionRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest=} [properties] Properties to set - */ - function UpdateVersionRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + WebhookRequest.SentimentAnalysisResult = (function() { - /** - * UpdateVersionRequest version. - * @member {google.cloud.dialogflow.cx.v3beta1.IVersion|null|undefined} version - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest - * @instance - */ - UpdateVersionRequest.prototype.version = null; + /** + * Properties of a SentimentAnalysisResult. + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @interface ISentimentAnalysisResult + * @property {number|null} [score] SentimentAnalysisResult score + * @property {number|null} [magnitude] SentimentAnalysisResult magnitude + */ - /** - * UpdateVersionRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest - * @instance - */ - UpdateVersionRequest.prototype.updateMask = null; + /** + * Constructs a new SentimentAnalysisResult. + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @classdesc Represents a SentimentAnalysisResult. + * @implements ISentimentAnalysisResult + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.ISentimentAnalysisResult=} [properties] Properties to set + */ + function SentimentAnalysisResult(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a new UpdateVersionRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest} UpdateVersionRequest instance - */ - UpdateVersionRequest.create = function create(properties) { - return new UpdateVersionRequest(properties); - }; + /** + * SentimentAnalysisResult score. + * @member {number} score + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult + * @instance + */ + SentimentAnalysisResult.prototype.score = 0; - /** - * Encodes the specified UpdateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest} message UpdateVersionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateVersionRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - $root.google.cloud.dialogflow.cx.v3beta1.Version.encode(message.version, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * SentimentAnalysisResult magnitude. + * @member {number} magnitude + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult + * @instance + */ + SentimentAnalysisResult.prototype.magnitude = 0; - /** - * Encodes the specified UpdateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest} message UpdateVersionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new SentimentAnalysisResult instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.ISentimentAnalysisResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult} SentimentAnalysisResult instance + */ + SentimentAnalysisResult.create = function create(properties) { + return new SentimentAnalysisResult(properties); + }; - /** - * Decodes an UpdateVersionRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest} UpdateVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateVersionRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.version = $root.google.cloud.dialogflow.cx.v3beta1.Version.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Encodes the specified SentimentAnalysisResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.ISentimentAnalysisResult} message SentimentAnalysisResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SentimentAnalysisResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); + if (message.magnitude != null && Object.hasOwnProperty.call(message, "magnitude")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.magnitude); + return writer; + }; + + /** + * Encodes the specified SentimentAnalysisResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.ISentimentAnalysisResult} message SentimentAnalysisResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SentimentAnalysisResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SentimentAnalysisResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult} SentimentAnalysisResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SentimentAnalysisResult.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.score = reader.float(); + break; + case 2: + message.magnitude = reader.float(); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes an UpdateVersionRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest} UpdateVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateVersionRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a SentimentAnalysisResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult} SentimentAnalysisResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SentimentAnalysisResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies an UpdateVersionRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UpdateVersionRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.version != null && message.hasOwnProperty("version")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Version.verify(message.version); - if (error) - return "version." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } - return null; - }; + /** + * Verifies a SentimentAnalysisResult message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SentimentAnalysisResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.score != null && message.hasOwnProperty("score")) + if (typeof message.score !== "number") + return "score: number expected"; + if (message.magnitude != null && message.hasOwnProperty("magnitude")) + if (typeof message.magnitude !== "number") + return "magnitude: number expected"; + return null; + }; - /** - * Creates an UpdateVersionRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest} UpdateVersionRequest - */ - UpdateVersionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest) + /** + * Creates a SentimentAnalysisResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult} SentimentAnalysisResult + */ + SentimentAnalysisResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult(); + if (object.score != null) + message.score = Number(object.score); + if (object.magnitude != null) + message.magnitude = Number(object.magnitude); + return message; + }; + + /** + * Creates a plain object from a SentimentAnalysisResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult} message SentimentAnalysisResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SentimentAnalysisResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.score = 0; + object.magnitude = 0; + } + if (message.score != null && message.hasOwnProperty("score")) + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (message.magnitude != null && message.hasOwnProperty("magnitude")) + object.magnitude = options.json && !isFinite(message.magnitude) ? String(message.magnitude) : message.magnitude; return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest(); - if (object.version != null) { - if (typeof object.version !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest.version: object expected"); - message.version = $root.google.cloud.dialogflow.cx.v3beta1.Version.fromObject(object.version); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - return message; - }; + }; - /** - * Creates a plain object from an UpdateVersionRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest} message UpdateVersionRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UpdateVersionRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.version = null; - object.updateMask = null; - } - if (message.version != null && message.hasOwnProperty("version")) - object.version = $root.google.cloud.dialogflow.cx.v3beta1.Version.toObject(message.version, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - return object; - }; + /** + * Converts this SentimentAnalysisResult to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult + * @instance + * @returns {Object.} JSON object + */ + SentimentAnalysisResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this UpdateVersionRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest - * @instance - * @returns {Object.} JSON object - */ - UpdateVersionRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return SentimentAnalysisResult; + })(); - return UpdateVersionRequest; + return WebhookRequest; })(); - v3beta1.DeleteVersionRequest = (function() { + v3beta1.WebhookResponse = (function() { /** - * Properties of a DeleteVersionRequest. + * Properties of a WebhookResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDeleteVersionRequest - * @property {string|null} [name] DeleteVersionRequest name + * @interface IWebhookResponse + * @property {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.IFulfillmentResponse|null} [fulfillmentResponse] WebhookResponse fulfillmentResponse + * @property {google.cloud.dialogflow.cx.v3beta1.IPageInfo|null} [pageInfo] WebhookResponse pageInfo + * @property {google.cloud.dialogflow.cx.v3beta1.ISessionInfo|null} [sessionInfo] WebhookResponse sessionInfo + * @property {google.protobuf.IStruct|null} [payload] WebhookResponse payload + * @property {string|null} [targetPage] WebhookResponse targetPage + * @property {string|null} [targetFlow] WebhookResponse targetFlow */ /** - * Constructs a new DeleteVersionRequest. + * Constructs a new WebhookResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DeleteVersionRequest. - * @implements IDeleteVersionRequest + * @classdesc Represents a WebhookResponse. + * @implements IWebhookResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IWebhookResponse=} [properties] Properties to set */ - function DeleteVersionRequest(properties) { + function WebhookResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -130154,276 +129398,154 @@ } /** - * DeleteVersionRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest + * WebhookResponse fulfillmentResponse. + * @member {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.IFulfillmentResponse|null|undefined} fulfillmentResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse * @instance */ - DeleteVersionRequest.prototype.name = ""; - - /** - * Creates a new DeleteVersionRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest} DeleteVersionRequest instance - */ - DeleteVersionRequest.create = function create(properties) { - return new DeleteVersionRequest(properties); - }; - - /** - * Encodes the specified DeleteVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest} message DeleteVersionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteVersionRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; - - /** - * Encodes the specified DeleteVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest} message DeleteVersionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a DeleteVersionRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest} DeleteVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteVersionRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a DeleteVersionRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest} DeleteVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteVersionRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeleteVersionRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeleteVersionRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; - - /** - * Creates a DeleteVersionRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest} DeleteVersionRequest - */ - DeleteVersionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + WebhookResponse.prototype.fulfillmentResponse = null; /** - * Creates a plain object from a DeleteVersionRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest} message DeleteVersionRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * WebhookResponse pageInfo. + * @member {google.cloud.dialogflow.cx.v3beta1.IPageInfo|null|undefined} pageInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse + * @instance */ - DeleteVersionRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + WebhookResponse.prototype.pageInfo = null; /** - * Converts this DeleteVersionRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest + * WebhookResponse sessionInfo. + * @member {google.cloud.dialogflow.cx.v3beta1.ISessionInfo|null|undefined} sessionInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse * @instance - * @returns {Object.} JSON object */ - DeleteVersionRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return DeleteVersionRequest; - })(); - - v3beta1.LoadVersionRequest = (function() { + WebhookResponse.prototype.sessionInfo = null; /** - * Properties of a LoadVersionRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ILoadVersionRequest - * @property {string|null} [name] LoadVersionRequest name - * @property {boolean|null} [allowOverrideAgentResources] LoadVersionRequest allowOverrideAgentResources + * WebhookResponse payload. + * @member {google.protobuf.IStruct|null|undefined} payload + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse + * @instance */ + WebhookResponse.prototype.payload = null; /** - * Constructs a new LoadVersionRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a LoadVersionRequest. - * @implements ILoadVersionRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest=} [properties] Properties to set + * WebhookResponse targetPage. + * @member {string|null|undefined} targetPage + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse + * @instance */ - function LoadVersionRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + WebhookResponse.prototype.targetPage = null; /** - * LoadVersionRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest + * WebhookResponse targetFlow. + * @member {string|null|undefined} targetFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse * @instance */ - LoadVersionRequest.prototype.name = ""; + WebhookResponse.prototype.targetFlow = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * LoadVersionRequest allowOverrideAgentResources. - * @member {boolean} allowOverrideAgentResources - * @memberof google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest + * WebhookResponse transition. + * @member {"targetPage"|"targetFlow"|undefined} transition + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse * @instance */ - LoadVersionRequest.prototype.allowOverrideAgentResources = false; + Object.defineProperty(WebhookResponse.prototype, "transition", { + get: $util.oneOfGetter($oneOfFields = ["targetPage", "targetFlow"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new LoadVersionRequest instance using the specified properties. + * Creates a new WebhookResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest} LoadVersionRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IWebhookResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookResponse} WebhookResponse instance */ - LoadVersionRequest.create = function create(properties) { - return new LoadVersionRequest(properties); + WebhookResponse.create = function create(properties) { + return new WebhookResponse(properties); }; /** - * Encodes the specified LoadVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest.verify|verify} messages. + * Encodes the specified WebhookResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest} message LoadVersionRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IWebhookResponse} message WebhookResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LoadVersionRequest.encode = function encode(message, writer) { + WebhookResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.allowOverrideAgentResources != null && Object.hasOwnProperty.call(message, "allowOverrideAgentResources")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowOverrideAgentResources); + if (message.fulfillmentResponse != null && Object.hasOwnProperty.call(message, "fulfillmentResponse")) + $root.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.encode(message.fulfillmentResponse, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pageInfo != null && Object.hasOwnProperty.call(message, "pageInfo")) + $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.encode(message.pageInfo, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.sessionInfo != null && Object.hasOwnProperty.call(message, "sessionInfo")) + $root.google.cloud.dialogflow.cx.v3beta1.SessionInfo.encode(message.sessionInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) + $root.google.protobuf.Struct.encode(message.payload, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.targetPage != null && Object.hasOwnProperty.call(message, "targetPage")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.targetPage); + if (message.targetFlow != null && Object.hasOwnProperty.call(message, "targetFlow")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.targetFlow); return writer; }; /** - * Encodes the specified LoadVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest.verify|verify} messages. + * Encodes the specified WebhookResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest} message LoadVersionRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IWebhookResponse} message WebhookResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LoadVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { + WebhookResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LoadVersionRequest message from the specified reader or buffer. + * Decodes a WebhookResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest} LoadVersionRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookResponse} WebhookResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LoadVersionRequest.decode = function decode(reader, length) { + WebhookResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.WebhookResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.fulfillmentResponse = $root.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.decode(reader, reader.uint32()); break; case 2: - message.allowOverrideAgentResources = reader.bool(); + message.pageInfo = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.decode(reader, reader.uint32()); + break; + case 3: + message.sessionInfo = $root.google.cloud.dialogflow.cx.v3beta1.SessionInfo.decode(reader, reader.uint32()); + break; + case 4: + message.payload = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 5: + message.targetPage = reader.string(); + break; + case 6: + message.targetFlow = reader.string(); break; default: reader.skipType(tag & 7); @@ -130434,118 +129556,446 @@ }; /** - * Decodes a LoadVersionRequest message from the specified reader or buffer, length delimited. + * Decodes a WebhookResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest} LoadVersionRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookResponse} WebhookResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LoadVersionRequest.decodeDelimited = function decodeDelimited(reader) { + WebhookResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LoadVersionRequest message. + * Verifies a WebhookResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LoadVersionRequest.verify = function verify(message) { + WebhookResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.allowOverrideAgentResources != null && message.hasOwnProperty("allowOverrideAgentResources")) - if (typeof message.allowOverrideAgentResources !== "boolean") - return "allowOverrideAgentResources: boolean expected"; + var properties = {}; + if (message.fulfillmentResponse != null && message.hasOwnProperty("fulfillmentResponse")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.verify(message.fulfillmentResponse); + if (error) + return "fulfillmentResponse." + error; + } + if (message.pageInfo != null && message.hasOwnProperty("pageInfo")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.verify(message.pageInfo); + if (error) + return "pageInfo." + error; + } + if (message.sessionInfo != null && message.hasOwnProperty("sessionInfo")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.SessionInfo.verify(message.sessionInfo); + if (error) + return "sessionInfo." + error; + } + if (message.payload != null && message.hasOwnProperty("payload")) { + var error = $root.google.protobuf.Struct.verify(message.payload); + if (error) + return "payload." + error; + } + if (message.targetPage != null && message.hasOwnProperty("targetPage")) { + properties.transition = 1; + if (!$util.isString(message.targetPage)) + return "targetPage: string expected"; + } + if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { + if (properties.transition === 1) + return "transition: multiple values"; + properties.transition = 1; + if (!$util.isString(message.targetFlow)) + return "targetFlow: string expected"; + } return null; }; /** - * Creates a LoadVersionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a WebhookResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest} LoadVersionRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookResponse} WebhookResponse */ - LoadVersionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest) + WebhookResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.WebhookResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.allowOverrideAgentResources != null) - message.allowOverrideAgentResources = Boolean(object.allowOverrideAgentResources); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.WebhookResponse(); + if (object.fulfillmentResponse != null) { + if (typeof object.fulfillmentResponse !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookResponse.fulfillmentResponse: object expected"); + message.fulfillmentResponse = $root.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.fromObject(object.fulfillmentResponse); + } + if (object.pageInfo != null) { + if (typeof object.pageInfo !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookResponse.pageInfo: object expected"); + message.pageInfo = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.fromObject(object.pageInfo); + } + if (object.sessionInfo != null) { + if (typeof object.sessionInfo !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookResponse.sessionInfo: object expected"); + message.sessionInfo = $root.google.cloud.dialogflow.cx.v3beta1.SessionInfo.fromObject(object.sessionInfo); + } + if (object.payload != null) { + if (typeof object.payload !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookResponse.payload: object expected"); + message.payload = $root.google.protobuf.Struct.fromObject(object.payload); + } + if (object.targetPage != null) + message.targetPage = String(object.targetPage); + if (object.targetFlow != null) + message.targetFlow = String(object.targetFlow); return message; }; /** - * Creates a plain object from a LoadVersionRequest message. Also converts values to other types if specified. + * Creates a plain object from a WebhookResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest} message LoadVersionRequest + * @param {google.cloud.dialogflow.cx.v3beta1.WebhookResponse} message WebhookResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LoadVersionRequest.toObject = function toObject(message, options) { + WebhookResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.allowOverrideAgentResources = false; + object.fulfillmentResponse = null; + object.pageInfo = null; + object.sessionInfo = null; + object.payload = null; + } + if (message.fulfillmentResponse != null && message.hasOwnProperty("fulfillmentResponse")) + object.fulfillmentResponse = $root.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.toObject(message.fulfillmentResponse, options); + if (message.pageInfo != null && message.hasOwnProperty("pageInfo")) + object.pageInfo = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.toObject(message.pageInfo, options); + if (message.sessionInfo != null && message.hasOwnProperty("sessionInfo")) + object.sessionInfo = $root.google.cloud.dialogflow.cx.v3beta1.SessionInfo.toObject(message.sessionInfo, options); + if (message.payload != null && message.hasOwnProperty("payload")) + object.payload = $root.google.protobuf.Struct.toObject(message.payload, options); + if (message.targetPage != null && message.hasOwnProperty("targetPage")) { + object.targetPage = message.targetPage; + if (options.oneofs) + object.transition = "targetPage"; + } + if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { + object.targetFlow = message.targetFlow; + if (options.oneofs) + object.transition = "targetFlow"; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.allowOverrideAgentResources != null && message.hasOwnProperty("allowOverrideAgentResources")) - object.allowOverrideAgentResources = message.allowOverrideAgentResources; return object; }; /** - * Converts this LoadVersionRequest to JSON. + * Converts this WebhookResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse * @instance * @returns {Object.} JSON object */ - LoadVersionRequest.prototype.toJSON = function toJSON() { + WebhookResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return LoadVersionRequest; + WebhookResponse.FulfillmentResponse = (function() { + + /** + * Properties of a FulfillmentResponse. + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse + * @interface IFulfillmentResponse + * @property {Array.|null} [messages] FulfillmentResponse messages + * @property {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior|null} [mergeBehavior] FulfillmentResponse mergeBehavior + */ + + /** + * Constructs a new FulfillmentResponse. + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse + * @classdesc Represents a FulfillmentResponse. + * @implements IFulfillmentResponse + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.IFulfillmentResponse=} [properties] Properties to set + */ + function FulfillmentResponse(properties) { + this.messages = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FulfillmentResponse messages. + * @member {Array.} messages + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse + * @instance + */ + FulfillmentResponse.prototype.messages = $util.emptyArray; + + /** + * FulfillmentResponse mergeBehavior. + * @member {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior} mergeBehavior + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse + * @instance + */ + FulfillmentResponse.prototype.mergeBehavior = 0; + + /** + * Creates a new FulfillmentResponse instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.IFulfillmentResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse} FulfillmentResponse instance + */ + FulfillmentResponse.create = function create(properties) { + return new FulfillmentResponse(properties); + }; + + /** + * Encodes the specified FulfillmentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.IFulfillmentResponse} message FulfillmentResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FulfillmentResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.messages != null && message.messages.length) + for (var i = 0; i < message.messages.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.encode(message.messages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.mergeBehavior != null && Object.hasOwnProperty.call(message, "mergeBehavior")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.mergeBehavior); + return writer; + }; + + /** + * Encodes the specified FulfillmentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.IFulfillmentResponse} message FulfillmentResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FulfillmentResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FulfillmentResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse} FulfillmentResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FulfillmentResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.messages && message.messages.length)) + message.messages = []; + message.messages.push($root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.decode(reader, reader.uint32())); + break; + case 2: + message.mergeBehavior = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FulfillmentResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse} FulfillmentResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FulfillmentResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FulfillmentResponse message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FulfillmentResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.messages != null && message.hasOwnProperty("messages")) { + if (!Array.isArray(message.messages)) + return "messages: array expected"; + for (var i = 0; i < message.messages.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify(message.messages[i]); + if (error) + return "messages." + error; + } + } + if (message.mergeBehavior != null && message.hasOwnProperty("mergeBehavior")) + switch (message.mergeBehavior) { + default: + return "mergeBehavior: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates a FulfillmentResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse} FulfillmentResponse + */ + FulfillmentResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse(); + if (object.messages) { + if (!Array.isArray(object.messages)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.messages: array expected"); + message.messages = []; + for (var i = 0; i < object.messages.length; ++i) { + if (typeof object.messages[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.messages: object expected"); + message.messages[i] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.fromObject(object.messages[i]); + } + } + switch (object.mergeBehavior) { + case "MERGE_BEHAVIOR_UNSPECIFIED": + case 0: + message.mergeBehavior = 0; + break; + case "APPEND": + case 1: + message.mergeBehavior = 1; + break; + case "REPLACE": + case 2: + message.mergeBehavior = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from a FulfillmentResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse} message FulfillmentResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FulfillmentResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.messages = []; + if (options.defaults) + object.mergeBehavior = options.enums === String ? "MERGE_BEHAVIOR_UNSPECIFIED" : 0; + if (message.messages && message.messages.length) { + object.messages = []; + for (var j = 0; j < message.messages.length; ++j) + object.messages[j] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.toObject(message.messages[j], options); + } + if (message.mergeBehavior != null && message.hasOwnProperty("mergeBehavior")) + object.mergeBehavior = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior[message.mergeBehavior] : message.mergeBehavior; + return object; + }; + + /** + * Converts this FulfillmentResponse to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse + * @instance + * @returns {Object.} JSON object + */ + FulfillmentResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * MergeBehavior enum. + * @name google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior + * @enum {number} + * @property {number} MERGE_BEHAVIOR_UNSPECIFIED=0 MERGE_BEHAVIOR_UNSPECIFIED value + * @property {number} APPEND=1 APPEND value + * @property {number} REPLACE=2 REPLACE value + */ + FulfillmentResponse.MergeBehavior = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MERGE_BEHAVIOR_UNSPECIFIED"] = 0; + values[valuesById[1] = "APPEND"] = 1; + values[valuesById[2] = "REPLACE"] = 2; + return values; + })(); + + return FulfillmentResponse; + })(); + + return WebhookResponse; })(); - v3beta1.CompareVersionsRequest = (function() { + v3beta1.PageInfo = (function() { /** - * Properties of a CompareVersionsRequest. + * Properties of a PageInfo. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ICompareVersionsRequest - * @property {string|null} [baseVersion] CompareVersionsRequest baseVersion - * @property {string|null} [targetVersion] CompareVersionsRequest targetVersion - * @property {string|null} [languageCode] CompareVersionsRequest languageCode + * @interface IPageInfo + * @property {string|null} [currentPage] PageInfo currentPage + * @property {string|null} [displayName] PageInfo displayName + * @property {google.cloud.dialogflow.cx.v3beta1.PageInfo.IFormInfo|null} [formInfo] PageInfo formInfo */ /** - * Constructs a new CompareVersionsRequest. + * Constructs a new PageInfo. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CompareVersionsRequest. - * @implements ICompareVersionsRequest + * @classdesc Represents a PageInfo. + * @implements IPageInfo * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICompareVersionsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IPageInfo=} [properties] Properties to set */ - function CompareVersionsRequest(properties) { + function PageInfo(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -130553,101 +130003,101 @@ } /** - * CompareVersionsRequest baseVersion. - * @member {string} baseVersion - * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest + * PageInfo currentPage. + * @member {string} currentPage + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo * @instance */ - CompareVersionsRequest.prototype.baseVersion = ""; + PageInfo.prototype.currentPage = ""; /** - * CompareVersionsRequest targetVersion. - * @member {string} targetVersion - * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest + * PageInfo displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo * @instance */ - CompareVersionsRequest.prototype.targetVersion = ""; + PageInfo.prototype.displayName = ""; /** - * CompareVersionsRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest + * PageInfo formInfo. + * @member {google.cloud.dialogflow.cx.v3beta1.PageInfo.IFormInfo|null|undefined} formInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo * @instance */ - CompareVersionsRequest.prototype.languageCode = ""; + PageInfo.prototype.formInfo = null; /** - * Creates a new CompareVersionsRequest instance using the specified properties. + * Creates a new PageInfo instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICompareVersionsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest} CompareVersionsRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IPageInfo=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.PageInfo} PageInfo instance */ - CompareVersionsRequest.create = function create(properties) { - return new CompareVersionsRequest(properties); + PageInfo.create = function create(properties) { + return new PageInfo(properties); }; /** - * Encodes the specified CompareVersionsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest.verify|verify} messages. + * Encodes the specified PageInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.PageInfo.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICompareVersionsRequest} message CompareVersionsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IPageInfo} message PageInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CompareVersionsRequest.encode = function encode(message, writer) { + PageInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.baseVersion != null && Object.hasOwnProperty.call(message, "baseVersion")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.baseVersion); - if (message.targetVersion != null && Object.hasOwnProperty.call(message, "targetVersion")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.targetVersion); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); + if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.currentPage); + if (message.formInfo != null && Object.hasOwnProperty.call(message, "formInfo")) + $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.encode(message.formInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.displayName); return writer; }; /** - * Encodes the specified CompareVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest.verify|verify} messages. + * Encodes the specified PageInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.PageInfo.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICompareVersionsRequest} message CompareVersionsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IPageInfo} message PageInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CompareVersionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + PageInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CompareVersionsRequest message from the specified reader or buffer. + * Decodes a PageInfo message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest} CompareVersionsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.PageInfo} PageInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CompareVersionsRequest.decode = function decode(reader, length) { + PageInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.PageInfo(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.baseVersion = reader.string(); + message.currentPage = reader.string(); break; - case 2: - message.targetVersion = reader.string(); + case 4: + message.displayName = reader.string(); break; case 3: - message.languageCode = reader.string(); + message.formInfo = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -130657,127 +130107,662 @@ return message; }; - /** - * Decodes a CompareVersionsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest} CompareVersionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompareVersionsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a PageInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.PageInfo} PageInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PageInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PageInfo message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PageInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.currentPage != null && message.hasOwnProperty("currentPage")) + if (!$util.isString(message.currentPage)) + return "currentPage: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.formInfo != null && message.hasOwnProperty("formInfo")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.verify(message.formInfo); + if (error) + return "formInfo." + error; + } + return null; + }; + + /** + * Creates a PageInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.PageInfo} PageInfo + */ + PageInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.PageInfo) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.PageInfo(); + if (object.currentPage != null) + message.currentPage = String(object.currentPage); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.formInfo != null) { + if (typeof object.formInfo !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.PageInfo.formInfo: object expected"); + message.formInfo = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.fromObject(object.formInfo); + } + return message; + }; + + /** + * Creates a plain object from a PageInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.PageInfo} message PageInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PageInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.currentPage = ""; + object.formInfo = null; + object.displayName = ""; + } + if (message.currentPage != null && message.hasOwnProperty("currentPage")) + object.currentPage = message.currentPage; + if (message.formInfo != null && message.hasOwnProperty("formInfo")) + object.formInfo = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.toObject(message.formInfo, options); + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + return object; + }; + + /** + * Converts this PageInfo to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo + * @instance + * @returns {Object.} JSON object + */ + PageInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + PageInfo.FormInfo = (function() { + + /** + * Properties of a FormInfo. + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo + * @interface IFormInfo + * @property {Array.|null} [parameterInfo] FormInfo parameterInfo + */ + + /** + * Constructs a new FormInfo. + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo + * @classdesc Represents a FormInfo. + * @implements IFormInfo + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.PageInfo.IFormInfo=} [properties] Properties to set + */ + function FormInfo(properties) { + this.parameterInfo = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FormInfo parameterInfo. + * @member {Array.} parameterInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo + * @instance + */ + FormInfo.prototype.parameterInfo = $util.emptyArray; + + /** + * Creates a new FormInfo instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.PageInfo.IFormInfo=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo} FormInfo instance + */ + FormInfo.create = function create(properties) { + return new FormInfo(properties); + }; + + /** + * Encodes the specified FormInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.PageInfo.IFormInfo} message FormInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FormInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parameterInfo != null && message.parameterInfo.length) + for (var i = 0; i < message.parameterInfo.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.encode(message.parameterInfo[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FormInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.PageInfo.IFormInfo} message FormInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FormInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FormInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo} FormInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FormInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + if (!(message.parameterInfo && message.parameterInfo.length)) + message.parameterInfo = []; + message.parameterInfo.push($root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FormInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo} FormInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FormInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FormInfo message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FormInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parameterInfo != null && message.hasOwnProperty("parameterInfo")) { + if (!Array.isArray(message.parameterInfo)) + return "parameterInfo: array expected"; + for (var i = 0; i < message.parameterInfo.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.verify(message.parameterInfo[i]); + if (error) + return "parameterInfo." + error; + } + } + return null; + }; + + /** + * Creates a FormInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo} FormInfo + */ + FormInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo(); + if (object.parameterInfo) { + if (!Array.isArray(object.parameterInfo)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.parameterInfo: array expected"); + message.parameterInfo = []; + for (var i = 0; i < object.parameterInfo.length; ++i) { + if (typeof object.parameterInfo[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.parameterInfo: object expected"); + message.parameterInfo[i] = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.fromObject(object.parameterInfo[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a FormInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo} message FormInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FormInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.parameterInfo = []; + if (message.parameterInfo && message.parameterInfo.length) { + object.parameterInfo = []; + for (var j = 0; j < message.parameterInfo.length; ++j) + object.parameterInfo[j] = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.toObject(message.parameterInfo[j], options); + } + return object; + }; + + /** + * Converts this FormInfo to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo + * @instance + * @returns {Object.} JSON object + */ + FormInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + FormInfo.ParameterInfo = (function() { + + /** + * Properties of a ParameterInfo. + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo + * @interface IParameterInfo + * @property {string|null} [displayName] ParameterInfo displayName + * @property {boolean|null} [required] ParameterInfo required + * @property {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.ParameterState|null} [state] ParameterInfo state + * @property {google.protobuf.IValue|null} [value] ParameterInfo value + * @property {boolean|null} [justCollected] ParameterInfo justCollected + */ + + /** + * Constructs a new ParameterInfo. + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo + * @classdesc Represents a ParameterInfo. + * @implements IParameterInfo + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.IParameterInfo=} [properties] Properties to set + */ + function ParameterInfo(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ParameterInfo displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo + * @instance + */ + ParameterInfo.prototype.displayName = ""; + + /** + * ParameterInfo required. + * @member {boolean} required + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo + * @instance + */ + ParameterInfo.prototype.required = false; + + /** + * ParameterInfo state. + * @member {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.ParameterState} state + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo + * @instance + */ + ParameterInfo.prototype.state = 0; + + /** + * ParameterInfo value. + * @member {google.protobuf.IValue|null|undefined} value + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo + * @instance + */ + ParameterInfo.prototype.value = null; + + /** + * ParameterInfo justCollected. + * @member {boolean} justCollected + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo + * @instance + */ + ParameterInfo.prototype.justCollected = false; + + /** + * Creates a new ParameterInfo instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.IParameterInfo=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo} ParameterInfo instance + */ + ParameterInfo.create = function create(properties) { + return new ParameterInfo(properties); + }; + + /** + * Encodes the specified ParameterInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.IParameterInfo} message ParameterInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ParameterInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName); + if (message.required != null && Object.hasOwnProperty.call(message, "required")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.required); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + $root.google.protobuf.Value.encode(message.value, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.justCollected != null && Object.hasOwnProperty.call(message, "justCollected")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.justCollected); + return writer; + }; + + /** + * Encodes the specified ParameterInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.IParameterInfo} message ParameterInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ParameterInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ParameterInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo} ParameterInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ParameterInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.displayName = reader.string(); + break; + case 2: + message.required = reader.bool(); + break; + case 3: + message.state = reader.int32(); + break; + case 4: + message.value = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + case 5: + message.justCollected = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ParameterInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo} ParameterInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ParameterInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ParameterInfo message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ParameterInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.required != null && message.hasOwnProperty("required")) + if (typeof message.required !== "boolean") + return "required: boolean expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.value != null && message.hasOwnProperty("value")) { + var error = $root.google.protobuf.Value.verify(message.value); + if (error) + return "value." + error; + } + if (message.justCollected != null && message.hasOwnProperty("justCollected")) + if (typeof message.justCollected !== "boolean") + return "justCollected: boolean expected"; + return null; + }; + + /** + * Creates a ParameterInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo} ParameterInfo + */ + ParameterInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo(); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.required != null) + message.required = Boolean(object.required); + switch (object.state) { + case "PARAMETER_STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "EMPTY": + case 1: + message.state = 1; + break; + case "INVALID": + case 2: + message.state = 2; + break; + case "FILLED": + case 3: + message.state = 3; + break; + } + if (object.value != null) { + if (typeof object.value !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.value: object expected"); + message.value = $root.google.protobuf.Value.fromObject(object.value); + } + if (object.justCollected != null) + message.justCollected = Boolean(object.justCollected); + return message; + }; - /** - * Verifies a CompareVersionsRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CompareVersionsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.baseVersion != null && message.hasOwnProperty("baseVersion")) - if (!$util.isString(message.baseVersion)) - return "baseVersion: string expected"; - if (message.targetVersion != null && message.hasOwnProperty("targetVersion")) - if (!$util.isString(message.targetVersion)) - return "targetVersion: string expected"; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; - return null; - }; + /** + * Creates a plain object from a ParameterInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo} message ParameterInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ParameterInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.displayName = ""; + object.required = false; + object.state = options.enums === String ? "PARAMETER_STATE_UNSPECIFIED" : 0; + object.value = null; + object.justCollected = false; + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.required != null && message.hasOwnProperty("required")) + object.required = message.required; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.ParameterState[message.state] : message.state; + if (message.value != null && message.hasOwnProperty("value")) + object.value = $root.google.protobuf.Value.toObject(message.value, options); + if (message.justCollected != null && message.hasOwnProperty("justCollected")) + object.justCollected = message.justCollected; + return object; + }; - /** - * Creates a CompareVersionsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest} CompareVersionsRequest - */ - CompareVersionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest(); - if (object.baseVersion != null) - message.baseVersion = String(object.baseVersion); - if (object.targetVersion != null) - message.targetVersion = String(object.targetVersion); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); - return message; - }; + /** + * Converts this ParameterInfo to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo + * @instance + * @returns {Object.} JSON object + */ + ParameterInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a plain object from a CompareVersionsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest} message CompareVersionsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CompareVersionsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.baseVersion = ""; - object.targetVersion = ""; - object.languageCode = ""; - } - if (message.baseVersion != null && message.hasOwnProperty("baseVersion")) - object.baseVersion = message.baseVersion; - if (message.targetVersion != null && message.hasOwnProperty("targetVersion")) - object.targetVersion = message.targetVersion; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; - return object; - }; + /** + * ParameterState enum. + * @name google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.ParameterState + * @enum {number} + * @property {number} PARAMETER_STATE_UNSPECIFIED=0 PARAMETER_STATE_UNSPECIFIED value + * @property {number} EMPTY=1 EMPTY value + * @property {number} INVALID=2 INVALID value + * @property {number} FILLED=3 FILLED value + */ + ParameterInfo.ParameterState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PARAMETER_STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "EMPTY"] = 1; + values[valuesById[2] = "INVALID"] = 2; + values[valuesById[3] = "FILLED"] = 3; + return values; + })(); - /** - * Converts this CompareVersionsRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest - * @instance - * @returns {Object.} JSON object - */ - CompareVersionsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return ParameterInfo; + })(); - return CompareVersionsRequest; + return FormInfo; + })(); + + return PageInfo; })(); - v3beta1.CompareVersionsResponse = (function() { + v3beta1.SessionInfo = (function() { /** - * Properties of a CompareVersionsResponse. + * Properties of a SessionInfo. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ICompareVersionsResponse - * @property {string|null} [baseVersionContentJson] CompareVersionsResponse baseVersionContentJson - * @property {string|null} [targetVersionContentJson] CompareVersionsResponse targetVersionContentJson - * @property {google.protobuf.ITimestamp|null} [compareTime] CompareVersionsResponse compareTime + * @interface ISessionInfo + * @property {string|null} [session] SessionInfo session + * @property {Object.|null} [parameters] SessionInfo parameters */ /** - * Constructs a new CompareVersionsResponse. + * Constructs a new SessionInfo. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CompareVersionsResponse. - * @implements ICompareVersionsResponse + * @classdesc Represents a SessionInfo. + * @implements ISessionInfo * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICompareVersionsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ISessionInfo=} [properties] Properties to set */ - function CompareVersionsResponse(properties) { + function SessionInfo(properties) { + this.parameters = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -130785,101 +130770,110 @@ } /** - * CompareVersionsResponse baseVersionContentJson. - * @member {string} baseVersionContentJson - * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse - * @instance - */ - CompareVersionsResponse.prototype.baseVersionContentJson = ""; - - /** - * CompareVersionsResponse targetVersionContentJson. - * @member {string} targetVersionContentJson - * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse + * SessionInfo session. + * @member {string} session + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionInfo * @instance */ - CompareVersionsResponse.prototype.targetVersionContentJson = ""; + SessionInfo.prototype.session = ""; /** - * CompareVersionsResponse compareTime. - * @member {google.protobuf.ITimestamp|null|undefined} compareTime - * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse + * SessionInfo parameters. + * @member {Object.} parameters + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionInfo * @instance */ - CompareVersionsResponse.prototype.compareTime = null; + SessionInfo.prototype.parameters = $util.emptyObject; /** - * Creates a new CompareVersionsResponse instance using the specified properties. + * Creates a new SessionInfo instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICompareVersionsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse} CompareVersionsResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.ISessionInfo=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.SessionInfo} SessionInfo instance */ - CompareVersionsResponse.create = function create(properties) { - return new CompareVersionsResponse(properties); + SessionInfo.create = function create(properties) { + return new SessionInfo(properties); }; /** - * Encodes the specified CompareVersionsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse.verify|verify} messages. + * Encodes the specified SessionInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SessionInfo.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICompareVersionsResponse} message CompareVersionsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ISessionInfo} message SessionInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CompareVersionsResponse.encode = function encode(message, writer) { + SessionInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.baseVersionContentJson != null && Object.hasOwnProperty.call(message, "baseVersionContentJson")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.baseVersionContentJson); - if (message.targetVersionContentJson != null && Object.hasOwnProperty.call(message, "targetVersionContentJson")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.targetVersionContentJson); - if (message.compareTime != null && Object.hasOwnProperty.call(message, "compareTime")) - $root.google.protobuf.Timestamp.encode(message.compareTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.session != null && Object.hasOwnProperty.call(message, "session")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.session); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + for (var keys = Object.keys(message.parameters), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.protobuf.Value.encode(message.parameters[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified CompareVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse.verify|verify} messages. + * Encodes the specified SessionInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SessionInfo.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICompareVersionsResponse} message CompareVersionsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ISessionInfo} message SessionInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CompareVersionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + SessionInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CompareVersionsResponse message from the specified reader or buffer. + * Decodes a SessionInfo message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse} CompareVersionsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.SessionInfo} SessionInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CompareVersionsResponse.decode = function decode(reader, length) { + SessionInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.SessionInfo(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.baseVersionContentJson = reader.string(); + message.session = reader.string(); break; case 2: - message.targetVersionContentJson = reader.string(); - break; - case 3: - message.compareTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + if (message.parameters === $util.emptyObject) + message.parameters = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.parameters[key] = value; break; default: reader.skipType(tag & 7); @@ -130890,109 +130884,115 @@ }; /** - * Decodes a CompareVersionsResponse message from the specified reader or buffer, length delimited. + * Decodes a SessionInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse} CompareVersionsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.SessionInfo} SessionInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CompareVersionsResponse.decodeDelimited = function decodeDelimited(reader) { + SessionInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CompareVersionsResponse message. + * Verifies a SessionInfo message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionInfo * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CompareVersionsResponse.verify = function verify(message) { + SessionInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.baseVersionContentJson != null && message.hasOwnProperty("baseVersionContentJson")) - if (!$util.isString(message.baseVersionContentJson)) - return "baseVersionContentJson: string expected"; - if (message.targetVersionContentJson != null && message.hasOwnProperty("targetVersionContentJson")) - if (!$util.isString(message.targetVersionContentJson)) - return "targetVersionContentJson: string expected"; - if (message.compareTime != null && message.hasOwnProperty("compareTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.compareTime); - if (error) - return "compareTime." + error; + if (message.session != null && message.hasOwnProperty("session")) + if (!$util.isString(message.session)) + return "session: string expected"; + if (message.parameters != null && message.hasOwnProperty("parameters")) { + if (!$util.isObject(message.parameters)) + return "parameters: object expected"; + var key = Object.keys(message.parameters); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.parameters[key[i]]); + if (error) + return "parameters." + error; + } } return null; }; /** - * Creates a CompareVersionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SessionInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionInfo * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse} CompareVersionsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.SessionInfo} SessionInfo */ - CompareVersionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse) + SessionInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SessionInfo) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse(); - if (object.baseVersionContentJson != null) - message.baseVersionContentJson = String(object.baseVersionContentJson); - if (object.targetVersionContentJson != null) - message.targetVersionContentJson = String(object.targetVersionContentJson); - if (object.compareTime != null) { - if (typeof object.compareTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse.compareTime: object expected"); - message.compareTime = $root.google.protobuf.Timestamp.fromObject(object.compareTime); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.SessionInfo(); + if (object.session != null) + message.session = String(object.session); + if (object.parameters) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SessionInfo.parameters: object expected"); + message.parameters = {}; + for (var keys = Object.keys(object.parameters), i = 0; i < keys.length; ++i) { + if (typeof object.parameters[keys[i]] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SessionInfo.parameters: object expected"); + message.parameters[keys[i]] = $root.google.protobuf.Value.fromObject(object.parameters[keys[i]]); + } } return message; }; /** - * Creates a plain object from a CompareVersionsResponse message. Also converts values to other types if specified. + * Creates a plain object from a SessionInfo message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse} message CompareVersionsResponse + * @param {google.cloud.dialogflow.cx.v3beta1.SessionInfo} message SessionInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CompareVersionsResponse.toObject = function toObject(message, options) { + SessionInfo.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.baseVersionContentJson = ""; - object.targetVersionContentJson = ""; - object.compareTime = null; + if (options.objects || options.defaults) + object.parameters = {}; + if (options.defaults) + object.session = ""; + if (message.session != null && message.hasOwnProperty("session")) + object.session = message.session; + var keys2; + if (message.parameters && (keys2 = Object.keys(message.parameters)).length) { + object.parameters = {}; + for (var j = 0; j < keys2.length; ++j) + object.parameters[keys2[j]] = $root.google.protobuf.Value.toObject(message.parameters[keys2[j]], options); } - if (message.baseVersionContentJson != null && message.hasOwnProperty("baseVersionContentJson")) - object.baseVersionContentJson = message.baseVersionContentJson; - if (message.targetVersionContentJson != null && message.hasOwnProperty("targetVersionContentJson")) - object.targetVersionContentJson = message.targetVersionContentJson; - if (message.compareTime != null && message.hasOwnProperty("compareTime")) - object.compareTime = $root.google.protobuf.Timestamp.toObject(message.compareTime, options); return object; }; /** - * Converts this CompareVersionsResponse to JSON. + * Converts this SessionInfo to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.SessionInfo * @instance * @returns {Object.} JSON object */ - CompareVersionsResponse.prototype.toJSON = function toJSON() { + SessionInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CompareVersionsResponse; + return SessionInfo; })(); return v3beta1; @@ -131016,6 +131016,32 @@ */ var api = {}; + /** + * FieldBehavior enum. + * @name google.api.FieldBehavior + * @enum {number} + * @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value + * @property {number} OPTIONAL=1 OPTIONAL value + * @property {number} REQUIRED=2 REQUIRED value + * @property {number} OUTPUT_ONLY=3 OUTPUT_ONLY value + * @property {number} INPUT_ONLY=4 INPUT_ONLY value + * @property {number} IMMUTABLE=5 IMMUTABLE value + * @property {number} UNORDERED_LIST=6 UNORDERED_LIST value + * @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value + */ + api.FieldBehavior = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "FIELD_BEHAVIOR_UNSPECIFIED"] = 0; + values[valuesById[1] = "OPTIONAL"] = 1; + values[valuesById[2] = "REQUIRED"] = 2; + values[valuesById[3] = "OUTPUT_ONLY"] = 3; + values[valuesById[4] = "INPUT_ONLY"] = 4; + values[valuesById[5] = "IMMUTABLE"] = 5; + values[valuesById[6] = "UNORDERED_LIST"] = 6; + values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7; + return values; + })(); + api.Http = (function() { /** @@ -131920,32 +131946,6 @@ return CustomHttpPattern; })(); - /** - * FieldBehavior enum. - * @name google.api.FieldBehavior - * @enum {number} - * @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value - * @property {number} OPTIONAL=1 OPTIONAL value - * @property {number} REQUIRED=2 REQUIRED value - * @property {number} OUTPUT_ONLY=3 OUTPUT_ONLY value - * @property {number} INPUT_ONLY=4 INPUT_ONLY value - * @property {number} IMMUTABLE=5 IMMUTABLE value - * @property {number} UNORDERED_LIST=6 UNORDERED_LIST value - * @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value - */ - api.FieldBehavior = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "FIELD_BEHAVIOR_UNSPECIFIED"] = 0; - values[valuesById[1] = "OPTIONAL"] = 1; - values[valuesById[2] = "REQUIRED"] = 2; - values[valuesById[3] = "OUTPUT_ONLY"] = 3; - values[valuesById[4] = "INPUT_ONLY"] = 4; - values[valuesById[5] = "IMMUTABLE"] = 5; - values[valuesById[6] = "UNORDERED_LIST"] = 6; - values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7; - return values; - })(); - api.ResourceDescriptor = (function() { /** @@ -141305,230 +141305,6 @@ return GeneratedCodeInfo; })(); - protobuf.Duration = (function() { - - /** - * Properties of a Duration. - * @memberof google.protobuf - * @interface IDuration - * @property {number|Long|null} [seconds] Duration seconds - * @property {number|null} [nanos] Duration nanos - */ - - /** - * Constructs a new Duration. - * @memberof google.protobuf - * @classdesc Represents a Duration. - * @implements IDuration - * @constructor - * @param {google.protobuf.IDuration=} [properties] Properties to set - */ - function Duration(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Duration seconds. - * @member {number|Long} seconds - * @memberof google.protobuf.Duration - * @instance - */ - Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Duration nanos. - * @member {number} nanos - * @memberof google.protobuf.Duration - * @instance - */ - Duration.prototype.nanos = 0; - - /** - * Creates a new Duration instance using the specified properties. - * @function create - * @memberof google.protobuf.Duration - * @static - * @param {google.protobuf.IDuration=} [properties] Properties to set - * @returns {google.protobuf.Duration} Duration instance - */ - Duration.create = function create(properties) { - return new Duration(properties); - }; - - /** - * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. - * @function encode - * @memberof google.protobuf.Duration - * @static - * @param {google.protobuf.IDuration} message Duration message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Duration.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); - if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); - return writer; - }; - - /** - * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.Duration - * @static - * @param {google.protobuf.IDuration} message Duration message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Duration.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Duration message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.Duration - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Duration} Duration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Duration.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Duration(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.seconds = reader.int64(); - break; - case 2: - message.nanos = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Duration message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.Duration - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.Duration} Duration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Duration.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Duration message. - * @function verify - * @memberof google.protobuf.Duration - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Duration.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) - return "seconds: integer|Long expected"; - if (message.nanos != null && message.hasOwnProperty("nanos")) - if (!$util.isInteger(message.nanos)) - return "nanos: integer expected"; - return null; - }; - - /** - * Creates a Duration message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.Duration - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.Duration} Duration - */ - Duration.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Duration) - return object; - var message = new $root.google.protobuf.Duration(); - if (object.seconds != null) - if ($util.Long) - (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; - else if (typeof object.seconds === "string") - message.seconds = parseInt(object.seconds, 10); - else if (typeof object.seconds === "number") - message.seconds = object.seconds; - else if (typeof object.seconds === "object") - message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); - if (object.nanos != null) - message.nanos = object.nanos | 0; - return message; - }; - - /** - * Creates a plain object from a Duration message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.Duration - * @static - * @param {google.protobuf.Duration} message Duration - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Duration.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.seconds = options.longs === String ? "0" : 0; - object.nanos = 0; - } - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (typeof message.seconds === "number") - object.seconds = options.longs === String ? String(message.seconds) : message.seconds; - else - object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; - if (message.nanos != null && message.hasOwnProperty("nanos")) - object.nanos = message.nanos; - return object; - }; - - /** - * Converts this Duration to JSON. - * @function toJSON - * @memberof google.protobuf.Duration - * @instance - * @returns {Object.} JSON object - */ - Duration.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Duration; - })(); - protobuf.Struct = (function() { /** @@ -142925,6 +142701,230 @@ return Any; })(); + protobuf.Duration = (function() { + + /** + * Properties of a Duration. + * @memberof google.protobuf + * @interface IDuration + * @property {number|Long|null} [seconds] Duration seconds + * @property {number|null} [nanos] Duration nanos + */ + + /** + * Constructs a new Duration. + * @memberof google.protobuf + * @classdesc Represents a Duration. + * @implements IDuration + * @constructor + * @param {google.protobuf.IDuration=} [properties] Properties to set + */ + function Duration(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Duration seconds. + * @member {number|Long} seconds + * @memberof google.protobuf.Duration + * @instance + */ + Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Duration nanos. + * @member {number} nanos + * @memberof google.protobuf.Duration + * @instance + */ + Duration.prototype.nanos = 0; + + /** + * Creates a new Duration instance using the specified properties. + * @function create + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.IDuration=} [properties] Properties to set + * @returns {google.protobuf.Duration} Duration instance + */ + Duration.create = function create(properties) { + return new Duration(properties); + }; + + /** + * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.IDuration} message Duration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Duration.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + return writer; + }; + + /** + * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.IDuration} message Duration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Duration.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Duration message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Duration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Duration} Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Duration.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Duration(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seconds = reader.int64(); + break; + case 2: + message.nanos = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Duration message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Duration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Duration} Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Duration.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Duration message. + * @function verify + * @memberof google.protobuf.Duration + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Duration.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanos != null && message.hasOwnProperty("nanos")) + if (!$util.isInteger(message.nanos)) + return "nanos: integer expected"; + return null; + }; + + /** + * Creates a Duration message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Duration + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Duration} Duration + */ + Duration.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Duration) + return object; + var message = new $root.google.protobuf.Duration(); + if (object.seconds != null) + if ($util.Long) + (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; + else if (typeof object.seconds === "string") + message.seconds = parseInt(object.seconds, 10); + else if (typeof object.seconds === "number") + message.seconds = object.seconds; + else if (typeof object.seconds === "object") + message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); + if (object.nanos != null) + message.nanos = object.nanos | 0; + return message; + }; + + /** + * Creates a plain object from a Duration message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.Duration} message Duration + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Duration.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.seconds = options.longs === String ? "0" : 0; + object.nanos = 0; + } + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (typeof message.seconds === "number") + object.seconds = options.longs === String ? String(message.seconds) : message.seconds; + else + object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; + if (message.nanos != null && message.hasOwnProperty("nanos")) + object.nanos = message.nanos; + return object; + }; + + /** + * Converts this Duration to JSON. + * @function toJSON + * @memberof google.protobuf.Duration + * @instance + * @returns {Object.} JSON object + */ + Duration.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Duration; + })(); + protobuf.Timestamp = (function() { /** diff --git a/packages/google-cloud-dialogflow-cx/protos/protos.json b/packages/google-cloud-dialogflow-cx/protos/protos.json index 4bbb5da59d6..a65cd4304d4 100644 --- a/packages/google-cloud-dialogflow-cx/protos/protos.json +++ b/packages/google-cloud-dialogflow-cx/protos/protos.json @@ -14,7 +14,7 @@ "csharp_namespace": "Google.Cloud.Dialogflow.Cx.V3", "go_package": "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx", "java_multiple_files": true, - "java_outer_classname": "VersionProto", + "java_outer_classname": "WebhookProto", "java_package": "com.google.cloud.dialogflow.cx.v3", "objc_class_prefix": "DF", "ruby_package": "Google::Cloud::Dialogflow::CX::V3", @@ -1890,81 +1890,173 @@ } } }, - "SecuritySettingsService": { - "options": { - "(google.api.default_host)": "dialogflow.googleapis.com", - "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" - }, - "methods": { - "CreateSecuritySettings": { - "requestType": "CreateSecuritySettingsRequest", - "responseType": "SecuritySettings", - "options": { - "(google.api.http).post": "/v3/{parent=projects/*/locations/*}/securitySettings", - "(google.api.http).body": "security_settings", - "(google.api.method_signature)": "parent,security_settings" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v3/{parent=projects/*/locations/*}/securitySettings", - "body": "security_settings" - } - }, - { - "(google.api.method_signature)": "parent,security_settings" - } - ] + "AudioEncoding": { + "values": { + "AUDIO_ENCODING_UNSPECIFIED": 0, + "AUDIO_ENCODING_LINEAR_16": 1, + "AUDIO_ENCODING_FLAC": 2, + "AUDIO_ENCODING_MULAW": 3, + "AUDIO_ENCODING_AMR": 4, + "AUDIO_ENCODING_AMR_WB": 5, + "AUDIO_ENCODING_OGG_OPUS": 6, + "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE": 7 + } + }, + "SpeechModelVariant": { + "values": { + "SPEECH_MODEL_VARIANT_UNSPECIFIED": 0, + "USE_BEST_AVAILABLE": 1, + "USE_STANDARD": 2, + "USE_ENHANCED": 3 + } + }, + "SpeechWordInfo": { + "fields": { + "word": { + "type": "string", + "id": 3 }, - "GetSecuritySettings": { - "requestType": "GetSecuritySettingsRequest", - "responseType": "SecuritySettings", + "startOffset": { + "type": "google.protobuf.Duration", + "id": 1 + }, + "endOffset": { + "type": "google.protobuf.Duration", + "id": 2 + }, + "confidence": { + "type": "float", + "id": 4 + } + } + }, + "InputAudioConfig": { + "fields": { + "audioEncoding": { + "type": "AudioEncoding", + "id": 1, "options": { - "(google.api.http).get": "/v3/{name=projects/*/locations/*/securitySettings/*}", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v3/{name=projects/*/locations/*/securitySettings/*}" - } - }, - { - "(google.api.method_signature)": "name" - } - ] + "(google.api.field_behavior)": "REQUIRED" + } }, - "UpdateSecuritySettings": { - "requestType": "UpdateSecuritySettingsRequest", - "responseType": "SecuritySettings", + "sampleRateHertz": { + "type": "int32", + "id": 2 + }, + "enableWordInfo": { + "type": "bool", + "id": 13 + }, + "phraseHints": { + "rule": "repeated", + "type": "string", + "id": 4 + }, + "model": { + "type": "string", + "id": 7 + }, + "modelVariant": { + "type": "SpeechModelVariant", + "id": 10 + }, + "singleUtterance": { + "type": "bool", + "id": 8 + } + } + }, + "SsmlVoiceGender": { + "values": { + "SSML_VOICE_GENDER_UNSPECIFIED": 0, + "SSML_VOICE_GENDER_MALE": 1, + "SSML_VOICE_GENDER_FEMALE": 2, + "SSML_VOICE_GENDER_NEUTRAL": 3 + } + }, + "VoiceSelectionParams": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "ssmlGender": { + "type": "SsmlVoiceGender", + "id": 2 + } + } + }, + "SynthesizeSpeechConfig": { + "fields": { + "speakingRate": { + "type": "double", + "id": 1 + }, + "pitch": { + "type": "double", + "id": 2 + }, + "volumeGainDb": { + "type": "double", + "id": 3 + }, + "effectsProfileId": { + "rule": "repeated", + "type": "string", + "id": 5 + }, + "voice": { + "type": "VoiceSelectionParams", + "id": 4 + } + } + }, + "OutputAudioEncoding": { + "values": { + "OUTPUT_AUDIO_ENCODING_UNSPECIFIED": 0, + "OUTPUT_AUDIO_ENCODING_LINEAR_16": 1, + "OUTPUT_AUDIO_ENCODING_MP3": 2, + "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS": 4, + "OUTPUT_AUDIO_ENCODING_OGG_OPUS": 3, + "OUTPUT_AUDIO_ENCODING_MULAW": 5 + } + }, + "OutputAudioConfig": { + "fields": { + "audioEncoding": { + "type": "OutputAudioEncoding", + "id": 1, "options": { - "(google.api.http).patch": "/v3/{security_settings.name=projects/*/locations/*/securitySettings/*}", - "(google.api.http).body": "security_settings", - "(google.api.method_signature)": "security_settings,update_mask" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "patch": "/v3/{security_settings.name=projects/*/locations/*/securitySettings/*}", - "body": "security_settings" - } - }, - { - "(google.api.method_signature)": "security_settings,update_mask" - } - ] + "(google.api.field_behavior)": "REQUIRED" + } }, - "ListSecuritySettings": { - "requestType": "ListSecuritySettingsRequest", - "responseType": "ListSecuritySettingsResponse", + "sampleRateHertz": { + "type": "int32", + "id": 2 + }, + "synthesizeSpeechConfig": { + "type": "SynthesizeSpeechConfig", + "id": 3 + } + } + }, + "Changelogs": { + "options": { + "(google.api.default_host)": "dialogflow.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" + }, + "methods": { + "ListChangelogs": { + "requestType": "ListChangelogsRequest", + "responseType": "ListChangelogsResponse", "options": { - "(google.api.http).get": "/v3/{parent=projects/*/locations/*}/securitySettings", + "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*}/changelogs", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3/{parent=projects/*/locations/*}/securitySettings" + "get": "/v3/{parent=projects/*/locations/*/agents/*}/changelogs" } }, { @@ -1972,17 +2064,17 @@ } ] }, - "DeleteSecuritySettings": { - "requestType": "DeleteSecuritySettingsRequest", - "responseType": "google.protobuf.Empty", + "GetChangelog": { + "requestType": "GetChangelogRequest", + "responseType": "Changelog", "options": { - "(google.api.http).delete": "/v3/{name=projects/*/locations/*/securitySettings/*}", + "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/changelogs/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "delete": "/v3/{name=projects/*/locations/*/securitySettings/*}" + "get": "/v3/{name=projects/*/locations/*/agents/*/changelogs/*}" } }, { @@ -1992,61 +2084,35 @@ } } }, - "GetSecuritySettingsRequest": { + "ListChangelogsRequest": { "fields": { - "name": { + "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/SecuritySettings" + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Changelog" } + }, + "filter": { + "type": "string", + "id": 2 + }, + "pageSize": { + "type": "int32", + "id": 3 + }, + "pageToken": { + "type": "string", + "id": 4 } } }, - "UpdateSecuritySettingsRequest": { + "ListChangelogsResponse": { "fields": { - "securitySettings": { - "type": "SecuritySettings", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "updateMask": { - "type": "google.protobuf.FieldMask", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "ListSecuritySettingsRequest": { - "fields": { - "parent": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/SecuritySettings" - } - }, - "pageSize": { - "type": "int32", - "id": 2 - }, - "pageToken": { - "type": "string", - "id": 3 - } - } - }, - "ListSecuritySettingsResponse": { - "fields": { - "securitySettings": { + "changelogs": { "rule": "repeated", - "type": "SecuritySettings", + "type": "Changelog", "id": 1 }, "nextPageToken": { @@ -2055,293 +2121,224 @@ } } }, - "CreateSecuritySettingsRequest": { + "GetChangelogRequest": { "fields": { - "parent": { + "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/SecuritySettings" - } - }, - "securitySettings": { - "type": "SecuritySettings", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Changelog" } } } }, - "DeleteSecuritySettingsRequest": { + "Changelog": { + "options": { + "(google.api.resource).type": "dialogflow.googleapis.com/Changelog", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/changelogs/{changelog}" + }, "fields": { "name": { "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/SecuritySettings" - } + "id": 1 + }, + "userEmail": { + "type": "string", + "id": 2 + }, + "displayName": { + "type": "string", + "id": 7 + }, + "action": { + "type": "string", + "id": 11 + }, + "type": { + "type": "string", + "id": 8 + }, + "resource": { + "type": "string", + "id": 3 + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 4 } } }, - "SecuritySettings": { + "Deployments": { "options": { - "(google.api.resource).type": "dialogflow.googleapis.com/SecuritySettings", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/securitySettings/{security_settings}" + "(google.api.default_host)": "dialogflow.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" }, - "oneofs": { - "dataRetention": { - "oneof": [ - "retentionWindowDays" + "methods": { + "ListDeployments": { + "requestType": "ListDeploymentsRequest", + "responseType": "ListDeploymentsResponse", + "options": { + "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/deployments", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/deployments" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "GetDeployment": { + "requestType": "GetDeploymentRequest", + "responseType": "Deployment", + "options": { + "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/environments/*/deployments/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v3/{name=projects/*/locations/*/agents/*/environments/*/deployments/*}" + } + }, + { + "(google.api.method_signature)": "name" + } ] } + } + }, + "Deployment": { + "options": { + "(google.api.resource).type": "dialogflow.googleapis.com/Deployment", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/deployments/{deployment}" }, "fields": { "name": { "type": "string", "id": 1 }, - "displayName": { + "flowVersion": { "type": "string", "id": 2, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" } }, - "redactionStrategy": { - "type": "RedactionStrategy", + "state": { + "type": "State", "id": 3 }, - "redactionScope": { - "type": "RedactionScope", + "result": { + "type": "Result", "id": 4 }, - "inspectTemplate": { - "type": "string", - "id": 9, - "options": { - "(google.api.resource_reference).type": "dlp.googleapis.com/InspectTemplate" - } - }, - "deidentifyTemplate": { - "type": "string", - "id": 17, - "options": { - "(google.api.resource_reference).type": "dlp.googleapis.com/DeidentifyTemplate" - } + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 5 }, - "retentionWindowDays": { - "type": "int32", + "endTime": { + "type": "google.protobuf.Timestamp", "id": 6 - }, - "purgeDataTypes": { - "rule": "repeated", - "type": "PurgeDataType", - "id": 8 - }, - "insightsExportSettings": { - "type": "InsightsExportSettings", - "id": 13 } }, "nested": { - "RedactionStrategy": { - "values": { - "REDACTION_STRATEGY_UNSPECIFIED": 0, - "REDACT_WITH_SERVICE": 1 - } - }, - "RedactionScope": { - "values": { - "REDACTION_SCOPE_UNSPECIFIED": 0, - "REDACT_DISK_STORAGE": 2 - } - }, - "PurgeDataType": { + "State": { "values": { - "PURGE_DATA_TYPE_UNSPECIFIED": 0, - "DIALOGFLOW_HISTORY": 1 + "STATE_UNSPECIFIED": 0, + "RUNNING": 1, + "SUCCEEDED": 2, + "FAILED": 3 } }, - "InsightsExportSettings": { + "Result": { "fields": { - "enableInsightsExport": { - "type": "bool", - "id": 1 + "deploymentTestResults": { + "rule": "repeated", + "type": "string", + "id": 1, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/TestCaseResult" + } + }, + "experiment": { + "type": "string", + "id": 2, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" + } } } } } }, - "AudioEncoding": { - "values": { - "AUDIO_ENCODING_UNSPECIFIED": 0, - "AUDIO_ENCODING_LINEAR_16": 1, - "AUDIO_ENCODING_FLAC": 2, - "AUDIO_ENCODING_MULAW": 3, - "AUDIO_ENCODING_AMR": 4, - "AUDIO_ENCODING_AMR_WB": 5, - "AUDIO_ENCODING_OGG_OPUS": 6, - "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE": 7 - } - }, - "SpeechModelVariant": { - "values": { - "SPEECH_MODEL_VARIANT_UNSPECIFIED": 0, - "USE_BEST_AVAILABLE": 1, - "USE_STANDARD": 2, - "USE_ENHANCED": 3 - } - }, - "SpeechWordInfo": { + "ListDeploymentsRequest": { "fields": { - "word": { + "parent": { "type": "string", - "id": 3 - }, - "startOffset": { - "type": "google.protobuf.Duration", - "id": 1 + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Deployment" + } }, - "endOffset": { - "type": "google.protobuf.Duration", + "pageSize": { + "type": "int32", "id": 2 }, - "confidence": { - "type": "float", - "id": 4 - } - } - }, - "InputAudioConfig": { - "fields": { - "audioEncoding": { - "type": "AudioEncoding", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "sampleRateHertz": { - "type": "int32", - "id": 2 - }, - "enableWordInfo": { - "type": "bool", - "id": 13 - }, - "phraseHints": { - "rule": "repeated", - "type": "string", - "id": 4 - }, - "model": { + "pageToken": { "type": "string", - "id": 7 - }, - "modelVariant": { - "type": "SpeechModelVariant", - "id": 10 - }, - "singleUtterance": { - "type": "bool", - "id": 8 + "id": 3 } } }, - "SsmlVoiceGender": { - "values": { - "SSML_VOICE_GENDER_UNSPECIFIED": 0, - "SSML_VOICE_GENDER_MALE": 1, - "SSML_VOICE_GENDER_FEMALE": 2, - "SSML_VOICE_GENDER_NEUTRAL": 3 - } - }, - "VoiceSelectionParams": { + "ListDeploymentsResponse": { "fields": { - "name": { - "type": "string", + "deployments": { + "rule": "repeated", + "type": "Deployment", "id": 1 }, - "ssmlGender": { - "type": "SsmlVoiceGender", + "nextPageToken": { + "type": "string", "id": 2 } } }, - "SynthesizeSpeechConfig": { + "GetDeploymentRequest": { "fields": { - "speakingRate": { - "type": "double", - "id": 1 - }, - "pitch": { - "type": "double", - "id": 2 - }, - "volumeGainDb": { - "type": "double", - "id": 3 - }, - "effectsProfileId": { - "rule": "repeated", + "name": { "type": "string", - "id": 5 - }, - "voice": { - "type": "VoiceSelectionParams", - "id": 4 - } - } - }, - "OutputAudioEncoding": { - "values": { - "OUTPUT_AUDIO_ENCODING_UNSPECIFIED": 0, - "OUTPUT_AUDIO_ENCODING_LINEAR_16": 1, - "OUTPUT_AUDIO_ENCODING_MP3": 2, - "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS": 4, - "OUTPUT_AUDIO_ENCODING_OGG_OPUS": 3, - "OUTPUT_AUDIO_ENCODING_MULAW": 5 - } - }, - "OutputAudioConfig": { - "fields": { - "audioEncoding": { - "type": "OutputAudioEncoding", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Deployment" } - }, - "sampleRateHertz": { - "type": "int32", - "id": 2 - }, - "synthesizeSpeechConfig": { - "type": "SynthesizeSpeechConfig", - "id": 3 } } }, - "Changelogs": { + "EntityTypes": { "options": { "(google.api.default_host)": "dialogflow.googleapis.com", "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" }, "methods": { - "ListChangelogs": { - "requestType": "ListChangelogsRequest", - "responseType": "ListChangelogsResponse", + "ListEntityTypes": { + "requestType": "ListEntityTypesRequest", + "responseType": "ListEntityTypesResponse", "options": { - "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*}/changelogs", + "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*}/entityTypes", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3/{parent=projects/*/locations/*/agents/*}/changelogs" + "get": "/v3/{parent=projects/*/locations/*/agents/*}/entityTypes" } }, { @@ -2349,343 +2346,61 @@ } ] }, - "GetChangelog": { - "requestType": "GetChangelogRequest", - "responseType": "Changelog", + "GetEntityType": { + "requestType": "GetEntityTypeRequest", + "responseType": "EntityType", "options": { - "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/changelogs/*}", + "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/entityTypes/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3/{name=projects/*/locations/*/agents/*/changelogs/*}" + "get": "/v3/{name=projects/*/locations/*/agents/*/entityTypes/*}" } }, { "(google.api.method_signature)": "name" } ] - } - } - }, - "ListChangelogsRequest": { - "fields": { - "parent": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Changelog" - } - }, - "filter": { - "type": "string", - "id": 2 - }, - "pageSize": { - "type": "int32", - "id": 3 - }, - "pageToken": { - "type": "string", - "id": 4 - } - } - }, - "ListChangelogsResponse": { - "fields": { - "changelogs": { - "rule": "repeated", - "type": "Changelog", - "id": 1 - }, - "nextPageToken": { - "type": "string", - "id": 2 - } - } - }, - "GetChangelogRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Changelog" - } - } - } - }, - "Changelog": { - "options": { - "(google.api.resource).type": "dialogflow.googleapis.com/Changelog", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/changelogs/{changelog}" - }, - "fields": { - "name": { - "type": "string", - "id": 1 - }, - "userEmail": { - "type": "string", - "id": 2 - }, - "displayName": { - "type": "string", - "id": 7 - }, - "action": { - "type": "string", - "id": 11 - }, - "type": { - "type": "string", - "id": 8 - }, - "resource": { - "type": "string", - "id": 3 }, - "createTime": { - "type": "google.protobuf.Timestamp", - "id": 4 - } - } - }, - "Deployments": { - "options": { - "(google.api.default_host)": "dialogflow.googleapis.com", - "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" - }, - "methods": { - "ListDeployments": { - "requestType": "ListDeploymentsRequest", - "responseType": "ListDeploymentsResponse", + "CreateEntityType": { + "requestType": "CreateEntityTypeRequest", + "responseType": "EntityType", "options": { - "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/deployments", - "(google.api.method_signature)": "parent" + "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*}/entityTypes", + "(google.api.http).body": "entity_type", + "(google.api.method_signature)": "parent,entity_type" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/deployments" + "post": "/v3/{parent=projects/*/locations/*/agents/*}/entityTypes", + "body": "entity_type" } }, { - "(google.api.method_signature)": "parent" + "(google.api.method_signature)": "parent,entity_type" } ] }, - "GetDeployment": { - "requestType": "GetDeploymentRequest", - "responseType": "Deployment", + "UpdateEntityType": { + "requestType": "UpdateEntityTypeRequest", + "responseType": "EntityType", "options": { - "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/environments/*/deployments/*}", - "(google.api.method_signature)": "name" + "(google.api.http).patch": "/v3/{entity_type.name=projects/*/locations/*/agents/*/entityTypes/*}", + "(google.api.http).body": "entity_type", + "(google.api.method_signature)": "entity_type,update_mask" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3/{name=projects/*/locations/*/agents/*/environments/*/deployments/*}" + "patch": "/v3/{entity_type.name=projects/*/locations/*/agents/*/entityTypes/*}", + "body": "entity_type" } }, { - "(google.api.method_signature)": "name" - } - ] - } - } - }, - "Deployment": { - "options": { - "(google.api.resource).type": "dialogflow.googleapis.com/Deployment", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/deployments/{deployment}" - }, - "fields": { - "name": { - "type": "string", - "id": 1 - }, - "flowVersion": { - "type": "string", - "id": 2, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" - } - }, - "state": { - "type": "State", - "id": 3 - }, - "result": { - "type": "Result", - "id": 4 - }, - "startTime": { - "type": "google.protobuf.Timestamp", - "id": 5 - }, - "endTime": { - "type": "google.protobuf.Timestamp", - "id": 6 - } - }, - "nested": { - "State": { - "values": { - "STATE_UNSPECIFIED": 0, - "RUNNING": 1, - "SUCCEEDED": 2, - "FAILED": 3 - } - }, - "Result": { - "fields": { - "deploymentTestResults": { - "rule": "repeated", - "type": "string", - "id": 1, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/TestCaseResult" - } - }, - "experiment": { - "type": "string", - "id": 2, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" - } - } - } - } - } - }, - "ListDeploymentsRequest": { - "fields": { - "parent": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Deployment" - } - }, - "pageSize": { - "type": "int32", - "id": 2 - }, - "pageToken": { - "type": "string", - "id": 3 - } - } - }, - "ListDeploymentsResponse": { - "fields": { - "deployments": { - "rule": "repeated", - "type": "Deployment", - "id": 1 - }, - "nextPageToken": { - "type": "string", - "id": 2 - } - } - }, - "GetDeploymentRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Deployment" - } - } - } - }, - "EntityTypes": { - "options": { - "(google.api.default_host)": "dialogflow.googleapis.com", - "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" - }, - "methods": { - "ListEntityTypes": { - "requestType": "ListEntityTypesRequest", - "responseType": "ListEntityTypesResponse", - "options": { - "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*}/entityTypes", - "(google.api.method_signature)": "parent" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v3/{parent=projects/*/locations/*/agents/*}/entityTypes" - } - }, - { - "(google.api.method_signature)": "parent" - } - ] - }, - "GetEntityType": { - "requestType": "GetEntityTypeRequest", - "responseType": "EntityType", - "options": { - "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/entityTypes/*}", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v3/{name=projects/*/locations/*/agents/*/entityTypes/*}" - } - }, - { - "(google.api.method_signature)": "name" - } - ] - }, - "CreateEntityType": { - "requestType": "CreateEntityTypeRequest", - "responseType": "EntityType", - "options": { - "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*}/entityTypes", - "(google.api.http).body": "entity_type", - "(google.api.method_signature)": "parent,entity_type" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v3/{parent=projects/*/locations/*/agents/*}/entityTypes", - "body": "entity_type" - } - }, - { - "(google.api.method_signature)": "parent,entity_type" - } - ] - }, - "UpdateEntityType": { - "requestType": "UpdateEntityTypeRequest", - "responseType": "EntityType", - "options": { - "(google.api.http).patch": "/v3/{entity_type.name=projects/*/locations/*/agents/*/entityTypes/*}", - "(google.api.http).body": "entity_type", - "(google.api.method_signature)": "entity_type,update_mask" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "patch": "/v3/{entity_type.name=projects/*/locations/*/agents/*/entityTypes/*}", - "body": "entity_type" - } - }, - { - "(google.api.method_signature)": "entity_type,update_mask" + "(google.api.method_signature)": "entity_type,update_mask" } ] }, @@ -5966,23 +5681,23 @@ } } }, - "Webhooks": { + "Experiments": { "options": { "(google.api.default_host)": "dialogflow.googleapis.com", "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" }, "methods": { - "ListWebhooks": { - "requestType": "ListWebhooksRequest", - "responseType": "ListWebhooksResponse", + "ListExperiments": { + "requestType": "ListExperimentsRequest", + "responseType": "ListExperimentsResponse", "options": { - "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*}/webhooks", + "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/experiments", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3/{parent=projects/*/locations/*/agents/*}/webhooks" + "get": "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/experiments" } }, { @@ -5990,17 +5705,17 @@ } ] }, - "GetWebhook": { - "requestType": "GetWebhookRequest", - "responseType": "Webhook", + "GetExperiment": { + "requestType": "GetExperimentRequest", + "responseType": "Experiment", "options": { - "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/webhooks/*}", + "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3/{name=projects/*/locations/*/agents/*/webhooks/*}" + "get": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}" } }, { @@ -6008,57 +5723,97 @@ } ] }, - "CreateWebhook": { - "requestType": "CreateWebhookRequest", - "responseType": "Webhook", + "CreateExperiment": { + "requestType": "CreateExperimentRequest", + "responseType": "Experiment", "options": { - "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*}/webhooks", - "(google.api.http).body": "webhook", - "(google.api.method_signature)": "parent,webhook" + "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/experiments", + "(google.api.http).body": "experiment", + "(google.api.method_signature)": "parent,experiment" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3/{parent=projects/*/locations/*/agents/*}/webhooks", - "body": "webhook" + "post": "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/experiments", + "body": "experiment" } }, { - "(google.api.method_signature)": "parent,webhook" + "(google.api.method_signature)": "parent,experiment" } ] }, - "UpdateWebhook": { - "requestType": "UpdateWebhookRequest", - "responseType": "Webhook", + "UpdateExperiment": { + "requestType": "UpdateExperimentRequest", + "responseType": "Experiment", "options": { - "(google.api.http).patch": "/v3/{webhook.name=projects/*/locations/*/agents/*/webhooks/*}", - "(google.api.http).body": "webhook", - "(google.api.method_signature)": "webhook,update_mask" + "(google.api.http).patch": "/v3/{experiment.name=projects/*/locations/*/agents/*/environments/*/experiments/*}", + "(google.api.http).body": "experiment", + "(google.api.method_signature)": "experiment,update_mask" }, "parsedOptions": [ { "(google.api.http)": { - "patch": "/v3/{webhook.name=projects/*/locations/*/agents/*/webhooks/*}", - "body": "webhook" + "patch": "/v3/{experiment.name=projects/*/locations/*/agents/*/environments/*/experiments/*}", + "body": "experiment" } }, { - "(google.api.method_signature)": "webhook,update_mask" + "(google.api.method_signature)": "experiment,update_mask" } ] }, - "DeleteWebhook": { - "requestType": "DeleteWebhookRequest", + "DeleteExperiment": { + "requestType": "DeleteExperimentRequest", "responseType": "google.protobuf.Empty", "options": { - "(google.api.http).delete": "/v3/{name=projects/*/locations/*/agents/*/webhooks/*}", + "(google.api.http).delete": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "delete": "/v3/{name=projects/*/locations/*/agents/*/webhooks/*}" + "delete": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "StartExperiment": { + "requestType": "StartExperimentRequest", + "responseType": "Experiment", + "options": { + "(google.api.http).post": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:start", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:start", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "StopExperiment": { + "requestType": "StopExperimentRequest", + "responseType": "Experiment", + "options": { + "(google.api.http).post": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:stop", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:stop", + "body": "*" } }, { @@ -6068,18 +5823,10 @@ } } }, - "Webhook": { + "Experiment": { "options": { - "(google.api.resource).type": "dialogflow.googleapis.com/Webhook", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/webhooks/{webhook}" - }, - "oneofs": { - "webhook": { - "oneof": [ - "genericWebService", - "serviceDirectory" - ] - } + "(google.api.resource).type": "dialogflow.googleapis.com/Experiment", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/experiments/{experiment}" }, "fields": { "name": { @@ -6093,88 +5840,301 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "genericWebService": { - "type": "GenericWebService", + "description": { + "type": "string", + "id": 3 + }, + "state": { + "type": "State", "id": 4 }, - "serviceDirectory": { - "type": "ServiceDirectoryConfig", + "definition": { + "type": "Definition", + "id": 5 + }, + "rolloutConfig": { + "type": "RolloutConfig", + "id": 14 + }, + "rolloutState": { + "type": "RolloutState", + "id": 15 + }, + "rolloutFailureReason": { + "type": "string", + "id": 16 + }, + "result": { + "type": "Result", + "id": 6 + }, + "createTime": { + "type": "google.protobuf.Timestamp", "id": 7 }, - "timeout": { + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 8 + }, + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 9 + }, + "lastUpdateTime": { + "type": "google.protobuf.Timestamp", + "id": 10 + }, + "experimentLength": { "type": "google.protobuf.Duration", - "id": 6 + "id": 11 }, - "disabled": { - "type": "bool", - "id": 5 + "variantsHistory": { + "rule": "repeated", + "type": "VariantsHistory", + "id": 12 } }, "nested": { - "GenericWebService": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "DRAFT": 1, + "RUNNING": 2, + "DONE": 3, + "ROLLOUT_FAILED": 4 + } + }, + "Definition": { + "oneofs": { + "variants": { + "oneof": [ + "versionVariants" + ] + } + }, "fields": { - "uri": { + "condition": { "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" + "id": 1 + }, + "versionVariants": { + "type": "VersionVariants", + "id": 2 + } + } + }, + "Result": { + "fields": { + "versionMetrics": { + "rule": "repeated", + "type": "VersionMetrics", + "id": 1 + }, + "lastUpdateTime": { + "type": "google.protobuf.Timestamp", + "id": 2 + } + }, + "nested": { + "MetricType": { + "values": { + "METRIC_UNSPECIFIED": 0, + "CONTAINED_SESSION_NO_CALLBACK_RATE": 1, + "LIVE_AGENT_HANDOFF_RATE": 2, + "CALLBACK_SESSION_RATE": 3, + "ABANDONED_SESSION_RATE": 4, + "SESSION_END_RATE": 5 } }, - "username": { - "type": "string", - "id": 2, - "options": { - "deprecated": true + "CountType": { + "values": { + "COUNT_TYPE_UNSPECIFIED": 0, + "TOTAL_NO_MATCH_COUNT": 1, + "TOTAL_TURN_COUNT": 2, + "AVERAGE_TURN_COUNT": 3 } }, - "password": { - "type": "string", - "id": 3, - "options": { - "deprecated": true + "ConfidenceInterval": { + "fields": { + "confidenceLevel": { + "type": "double", + "id": 1 + }, + "ratio": { + "type": "double", + "id": 2 + }, + "lowerBound": { + "type": "double", + "id": 3 + }, + "upperBound": { + "type": "double", + "id": 4 + } } }, - "requestHeaders": { - "keyType": "string", - "type": "string", - "id": 4 + "Metric": { + "oneofs": { + "value": { + "oneof": [ + "ratio", + "count" + ] + } + }, + "fields": { + "type": { + "type": "MetricType", + "id": 1 + }, + "countType": { + "type": "CountType", + "id": 5 + }, + "ratio": { + "type": "double", + "id": 2 + }, + "count": { + "type": "double", + "id": 4 + }, + "confidenceInterval": { + "type": "ConfidenceInterval", + "id": 3 + } + } }, - "allowedCaCerts": { - "rule": "repeated", - "type": "bytes", - "id": 5, - "options": { - "(google.api.field_behavior)": "OPTIONAL" + "VersionMetrics": { + "fields": { + "version": { + "type": "string", + "id": 1, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" + } + }, + "metrics": { + "rule": "repeated", + "type": "Metric", + "id": 2 + }, + "sessionCount": { + "type": "int32", + "id": 3 + } } } } - }, - "ServiceDirectoryConfig": { + } + } + }, + "VersionVariants": { + "fields": { + "variants": { + "rule": "repeated", + "type": "Variant", + "id": 1 + } + }, + "nested": { + "Variant": { "fields": { - "service": { + "version": { "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "servicedirectory.googleapis.com/Service" - } + "id": 1 }, - "genericWebService": { - "type": "GenericWebService", + "trafficAllocation": { + "type": "float", "id": 2 + }, + "isControlGroup": { + "type": "bool", + "id": 3 } } } } }, - "ListWebhooksRequest": { + "VariantsHistory": { + "oneofs": { + "variants": { + "oneof": [ + "versionVariants" + ] + } + }, + "fields": { + "versionVariants": { + "type": "VersionVariants", + "id": 1 + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 2 + } + } + }, + "RolloutConfig": { + "fields": { + "rolloutSteps": { + "rule": "repeated", + "type": "RolloutStep", + "id": 1 + }, + "rolloutCondition": { + "type": "string", + "id": 2 + }, + "failureCondition": { + "type": "string", + "id": 3 + } + }, + "nested": { + "RolloutStep": { + "fields": { + "displayName": { + "type": "string", + "id": 1 + }, + "trafficPercent": { + "type": "int32", + "id": 2 + }, + "minDuration": { + "type": "google.protobuf.Duration", + "id": 3 + } + } + } + } + }, + "RolloutState": { + "fields": { + "step": { + "type": "string", + "id": 1 + }, + "stepIndex": { + "type": "int32", + "id": 3 + }, + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 2 + } + } + }, + "ListExperimentsRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Webhook" + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Experiment" } }, "pageSize": { @@ -6187,11 +6147,11 @@ } } }, - "ListWebhooksResponse": { + "ListExperimentsResponse": { "fields": { - "webhooks": { + "experiments": { "rule": "repeated", - "type": "Webhook", + "type": "Experiment", "id": 1 }, "nextPageToken": { @@ -6200,30 +6160,30 @@ } } }, - "GetWebhookRequest": { + "GetExperimentRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Webhook" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" } } } }, - "CreateWebhookRequest": { + "CreateExperimentRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Webhook" + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Experiment" } }, - "webhook": { - "type": "Webhook", + "experiment": { + "type": "Experiment", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -6231,10 +6191,10 @@ } } }, - "UpdateWebhookRequest": { + "UpdateExperimentRequest": { "fields": { - "webhook": { - "type": "Webhook", + "experiment": { + "type": "Experiment", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -6242,450 +6202,256 @@ }, "updateMask": { "type": "google.protobuf.FieldMask", - "id": 2 + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "DeleteWebhookRequest": { + "DeleteExperimentRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Webhook" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" } - }, - "force": { - "type": "bool", - "id": 2 } } }, - "WebhookRequest": { - "oneofs": { - "query": { - "oneof": [ - "text", - "triggerIntent", - "transcript", - "triggerEvent" - ] - } - }, + "StartExperimentRequest": { "fields": { - "detectIntentResponseId": { - "type": "string", - "id": 1 - }, - "text": { - "type": "string", - "id": 10 - }, - "triggerIntent": { + "name": { "type": "string", - "id": 11, + "id": 1, "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Intent" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" } - }, - "transcript": { - "type": "string", - "id": 12 - }, - "triggerEvent": { - "type": "string", - "id": 14 - }, - "languageCode": { + } + } + }, + "StopExperimentRequest": { + "fields": { + "name": { "type": "string", - "id": 15 - }, - "fulfillmentInfo": { - "type": "FulfillmentInfo", - "id": 6 - }, - "intentInfo": { - "type": "IntentInfo", - "id": 3 - }, - "pageInfo": { - "type": "PageInfo", - "id": 4 - }, - "sessionInfo": { - "type": "SessionInfo", - "id": 5 - }, - "messages": { - "rule": "repeated", - "type": "ResponseMessage", - "id": 7 - }, - "payload": { - "type": "google.protobuf.Struct", - "id": 8 - }, - "sentimentAnalysisResult": { - "type": "SentimentAnalysisResult", - "id": 9 + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" + } } + } + }, + "SecuritySettingsService": { + "options": { + "(google.api.default_host)": "dialogflow.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" }, - "nested": { - "FulfillmentInfo": { - "fields": { - "tag": { - "type": "string", - "id": 1 - } - } - }, - "IntentInfo": { - "fields": { - "lastMatchedIntent": { - "type": "string", - "id": 1, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Intent" + "methods": { + "CreateSecuritySettings": { + "requestType": "CreateSecuritySettingsRequest", + "responseType": "SecuritySettings", + "options": { + "(google.api.http).post": "/v3/{parent=projects/*/locations/*}/securitySettings", + "(google.api.http).body": "security_settings", + "(google.api.method_signature)": "parent,security_settings" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v3/{parent=projects/*/locations/*}/securitySettings", + "body": "security_settings" } }, - "displayName": { - "type": "string", - "id": 3 - }, - "parameters": { - "keyType": "string", - "type": "IntentParameterValue", - "id": 2 - }, - "confidence": { - "type": "float", - "id": 4 - } - }, - "nested": { - "IntentParameterValue": { - "fields": { - "originalValue": { - "type": "string", - "id": 1 - }, - "resolvedValue": { - "type": "google.protobuf.Value", - "id": 2 - } - } - } - } - }, - "SentimentAnalysisResult": { - "fields": { - "score": { - "type": "float", - "id": 1 - }, - "magnitude": { - "type": "float", - "id": 2 + { + "(google.api.method_signature)": "parent,security_settings" } - } - } - } - }, - "WebhookResponse": { - "oneofs": { - "transition": { - "oneof": [ - "targetPage", - "targetFlow" ] - } - }, - "fields": { - "fulfillmentResponse": { - "type": "FulfillmentResponse", - "id": 1 - }, - "pageInfo": { - "type": "PageInfo", - "id": 2 - }, - "sessionInfo": { - "type": "SessionInfo", - "id": 3 - }, - "payload": { - "type": "google.protobuf.Struct", - "id": 4 - }, - "targetPage": { - "type": "string", - "id": 5, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Page" - } - }, - "targetFlow": { - "type": "string", - "id": 6, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Flow" - } - } - }, - "nested": { - "FulfillmentResponse": { - "fields": { - "messages": { - "rule": "repeated", - "type": "ResponseMessage", - "id": 1 - }, - "mergeBehavior": { - "type": "MergeBehavior", - "id": 2 - } - }, - "nested": { - "MergeBehavior": { - "values": { - "MERGE_BEHAVIOR_UNSPECIFIED": 0, - "APPEND": 1, - "REPLACE": 2 - } - } - } - } - } - }, - "PageInfo": { - "fields": { - "currentPage": { - "type": "string", - "id": 1, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Page" - } - }, - "displayName": { - "type": "string", - "id": 4 - }, - "formInfo": { - "type": "FormInfo", - "id": 3 - } - }, - "nested": { - "FormInfo": { - "fields": { - "parameterInfo": { - "rule": "repeated", - "type": "ParameterInfo", - "id": 2 - } - }, - "nested": { - "ParameterInfo": { - "fields": { - "displayName": { - "type": "string", - "id": 1 - }, - "required": { - "type": "bool", - "id": 2 - }, - "state": { - "type": "ParameterState", - "id": 3 - }, - "value": { - "type": "google.protobuf.Value", - "id": 4 - }, - "justCollected": { - "type": "bool", - "id": 5 - } - }, - "nested": { - "ParameterState": { - "values": { - "PARAMETER_STATE_UNSPECIFIED": 0, - "EMPTY": 1, - "INVALID": 2, - "FILLED": 3 - } - } - } - } - } - } - } - }, - "SessionInfo": { - "fields": { - "session": { - "type": "string", - "id": 1, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Session" - } }, - "parameters": { - "keyType": "string", - "type": "google.protobuf.Value", - "id": 2 - } - } - }, - "Experiments": { - "options": { - "(google.api.default_host)": "dialogflow.googleapis.com", - "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" - }, - "methods": { - "ListExperiments": { - "requestType": "ListExperimentsRequest", - "responseType": "ListExperimentsResponse", + "GetSecuritySettings": { + "requestType": "GetSecuritySettingsRequest", + "responseType": "SecuritySettings", "options": { - "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/experiments", - "(google.api.method_signature)": "parent" + "(google.api.http).get": "/v3/{name=projects/*/locations/*/securitySettings/*}", + "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/experiments" + "get": "/v3/{name=projects/*/locations/*/securitySettings/*}" } }, { - "(google.api.method_signature)": "parent" + "(google.api.method_signature)": "name" } ] }, - "GetExperiment": { - "requestType": "GetExperimentRequest", - "responseType": "Experiment", + "UpdateSecuritySettings": { + "requestType": "UpdateSecuritySettingsRequest", + "responseType": "SecuritySettings", "options": { - "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}", - "(google.api.method_signature)": "name" + "(google.api.http).patch": "/v3/{security_settings.name=projects/*/locations/*/securitySettings/*}", + "(google.api.http).body": "security_settings", + "(google.api.method_signature)": "security_settings,update_mask" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}" + "patch": "/v3/{security_settings.name=projects/*/locations/*/securitySettings/*}", + "body": "security_settings" } }, { - "(google.api.method_signature)": "name" + "(google.api.method_signature)": "security_settings,update_mask" } ] }, - "CreateExperiment": { - "requestType": "CreateExperimentRequest", - "responseType": "Experiment", + "ListSecuritySettings": { + "requestType": "ListSecuritySettingsRequest", + "responseType": "ListSecuritySettingsResponse", "options": { - "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/experiments", - "(google.api.http).body": "experiment", - "(google.api.method_signature)": "parent,experiment" + "(google.api.http).get": "/v3/{parent=projects/*/locations/*}/securitySettings", + "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/experiments", - "body": "experiment" + "get": "/v3/{parent=projects/*/locations/*}/securitySettings" } }, { - "(google.api.method_signature)": "parent,experiment" + "(google.api.method_signature)": "parent" } ] }, - "UpdateExperiment": { - "requestType": "UpdateExperimentRequest", - "responseType": "Experiment", + "DeleteSecuritySettings": { + "requestType": "DeleteSecuritySettingsRequest", + "responseType": "google.protobuf.Empty", "options": { - "(google.api.http).patch": "/v3/{experiment.name=projects/*/locations/*/agents/*/environments/*/experiments/*}", - "(google.api.http).body": "experiment", - "(google.api.method_signature)": "experiment,update_mask" + "(google.api.http).delete": "/v3/{name=projects/*/locations/*/securitySettings/*}", + "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "patch": "/v3/{experiment.name=projects/*/locations/*/agents/*/environments/*/experiments/*}", - "body": "experiment" + "delete": "/v3/{name=projects/*/locations/*/securitySettings/*}" } }, { - "(google.api.method_signature)": "experiment,update_mask" + "(google.api.method_signature)": "name" } ] + } + } + }, + "GetSecuritySettingsRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/SecuritySettings" + } + } + } + }, + "UpdateSecuritySettingsRequest": { + "fields": { + "securitySettings": { + "type": "SecuritySettings", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, - "DeleteExperiment": { - "requestType": "DeleteExperimentRequest", - "responseType": "google.protobuf.Empty", + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, "options": { - "(google.api.http).delete": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "delete": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}" - } - }, - { - "(google.api.method_signature)": "name" - } - ] + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "ListSecuritySettingsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/SecuritySettings" + } }, - "StartExperiment": { - "requestType": "StartExperimentRequest", - "responseType": "Experiment", + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListSecuritySettingsResponse": { + "fields": { + "securitySettings": { + "rule": "repeated", + "type": "SecuritySettings", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "CreateSecuritySettingsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, "options": { - "(google.api.http).post": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:start", - "(google.api.http).body": "*", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:start", - "body": "*" - } - }, - { - "(google.api.method_signature)": "name" - } - ] + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/SecuritySettings" + } }, - "StopExperiment": { - "requestType": "StopExperimentRequest", - "responseType": "Experiment", + "securitySettings": { + "type": "SecuritySettings", + "id": 2, "options": { - "(google.api.http).post": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:stop", - "(google.api.http).body": "*", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:stop", - "body": "*" - } - }, - { - "(google.api.method_signature)": "name" - } - ] + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "Experiment": { + "DeleteSecuritySettingsRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/SecuritySettings" + } + } + } + }, + "SecuritySettings": { "options": { - "(google.api.resource).type": "dialogflow.googleapis.com/Experiment", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/experiments/{experiment}" + "(google.api.resource).type": "dialogflow.googleapis.com/SecuritySettings", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/securitySettings/{security_settings}" + }, + "oneofs": { + "dataRetention": { + "oneof": [ + "retentionWindowDays" + ] + } }, "fields": { "name": { @@ -6699,408 +6465,68 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "description": { - "type": "string", + "redactionStrategy": { + "type": "RedactionStrategy", "id": 3 }, - "state": { - "type": "State", + "redactionScope": { + "type": "RedactionScope", "id": 4 }, - "definition": { - "type": "Definition", - "id": 5 - }, - "rolloutConfig": { - "type": "RolloutConfig", - "id": 14 - }, - "rolloutState": { - "type": "RolloutState", - "id": 15 + "inspectTemplate": { + "type": "string", + "id": 9, + "options": { + "(google.api.resource_reference).type": "dlp.googleapis.com/InspectTemplate" + } }, - "rolloutFailureReason": { + "deidentifyTemplate": { "type": "string", - "id": 16 + "id": 17, + "options": { + "(google.api.resource_reference).type": "dlp.googleapis.com/DeidentifyTemplate" + } }, - "result": { - "type": "Result", + "retentionWindowDays": { + "type": "int32", "id": 6 }, - "createTime": { - "type": "google.protobuf.Timestamp", - "id": 7 - }, - "startTime": { - "type": "google.protobuf.Timestamp", + "purgeDataTypes": { + "rule": "repeated", + "type": "PurgeDataType", "id": 8 }, - "endTime": { - "type": "google.protobuf.Timestamp", - "id": 9 - }, - "lastUpdateTime": { - "type": "google.protobuf.Timestamp", - "id": 10 - }, - "experimentLength": { - "type": "google.protobuf.Duration", - "id": 11 - }, - "variantsHistory": { - "rule": "repeated", - "type": "VariantsHistory", - "id": 12 + "insightsExportSettings": { + "type": "InsightsExportSettings", + "id": 13 } }, "nested": { - "State": { + "RedactionStrategy": { "values": { - "STATE_UNSPECIFIED": 0, - "DRAFT": 1, - "RUNNING": 2, - "DONE": 3, - "ROLLOUT_FAILED": 4 + "REDACTION_STRATEGY_UNSPECIFIED": 0, + "REDACT_WITH_SERVICE": 1 } }, - "Definition": { - "oneofs": { - "variants": { - "oneof": [ - "versionVariants" - ] - } - }, + "RedactionScope": { + "values": { + "REDACTION_SCOPE_UNSPECIFIED": 0, + "REDACT_DISK_STORAGE": 2 + } + }, + "PurgeDataType": { + "values": { + "PURGE_DATA_TYPE_UNSPECIFIED": 0, + "DIALOGFLOW_HISTORY": 1 + } + }, + "InsightsExportSettings": { "fields": { - "condition": { - "type": "string", + "enableInsightsExport": { + "type": "bool", "id": 1 - }, - "versionVariants": { - "type": "VersionVariants", - "id": 2 } } - }, - "Result": { - "fields": { - "versionMetrics": { - "rule": "repeated", - "type": "VersionMetrics", - "id": 1 - }, - "lastUpdateTime": { - "type": "google.protobuf.Timestamp", - "id": 2 - } - }, - "nested": { - "MetricType": { - "values": { - "METRIC_UNSPECIFIED": 0, - "CONTAINED_SESSION_NO_CALLBACK_RATE": 1, - "LIVE_AGENT_HANDOFF_RATE": 2, - "CALLBACK_SESSION_RATE": 3, - "ABANDONED_SESSION_RATE": 4, - "SESSION_END_RATE": 5 - } - }, - "CountType": { - "values": { - "COUNT_TYPE_UNSPECIFIED": 0, - "TOTAL_NO_MATCH_COUNT": 1, - "TOTAL_TURN_COUNT": 2, - "AVERAGE_TURN_COUNT": 3 - } - }, - "ConfidenceInterval": { - "fields": { - "confidenceLevel": { - "type": "double", - "id": 1 - }, - "ratio": { - "type": "double", - "id": 2 - }, - "lowerBound": { - "type": "double", - "id": 3 - }, - "upperBound": { - "type": "double", - "id": 4 - } - } - }, - "Metric": { - "oneofs": { - "value": { - "oneof": [ - "ratio", - "count" - ] - } - }, - "fields": { - "type": { - "type": "MetricType", - "id": 1 - }, - "countType": { - "type": "CountType", - "id": 5 - }, - "ratio": { - "type": "double", - "id": 2 - }, - "count": { - "type": "double", - "id": 4 - }, - "confidenceInterval": { - "type": "ConfidenceInterval", - "id": 3 - } - } - }, - "VersionMetrics": { - "fields": { - "version": { - "type": "string", - "id": 1, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" - } - }, - "metrics": { - "rule": "repeated", - "type": "Metric", - "id": 2 - }, - "sessionCount": { - "type": "int32", - "id": 3 - } - } - } - } - } - } - }, - "VersionVariants": { - "fields": { - "variants": { - "rule": "repeated", - "type": "Variant", - "id": 1 - } - }, - "nested": { - "Variant": { - "fields": { - "version": { - "type": "string", - "id": 1 - }, - "trafficAllocation": { - "type": "float", - "id": 2 - }, - "isControlGroup": { - "type": "bool", - "id": 3 - } - } - } - } - }, - "VariantsHistory": { - "oneofs": { - "variants": { - "oneof": [ - "versionVariants" - ] - } - }, - "fields": { - "versionVariants": { - "type": "VersionVariants", - "id": 1 - }, - "updateTime": { - "type": "google.protobuf.Timestamp", - "id": 2 - } - } - }, - "RolloutConfig": { - "fields": { - "rolloutSteps": { - "rule": "repeated", - "type": "RolloutStep", - "id": 1 - }, - "rolloutCondition": { - "type": "string", - "id": 2 - }, - "failureCondition": { - "type": "string", - "id": 3 - } - }, - "nested": { - "RolloutStep": { - "fields": { - "displayName": { - "type": "string", - "id": 1 - }, - "trafficPercent": { - "type": "int32", - "id": 2 - }, - "minDuration": { - "type": "google.protobuf.Duration", - "id": 3 - } - } - } - } - }, - "RolloutState": { - "fields": { - "step": { - "type": "string", - "id": 1 - }, - "stepIndex": { - "type": "int32", - "id": 3 - }, - "startTime": { - "type": "google.protobuf.Timestamp", - "id": 2 - } - } - }, - "ListExperimentsRequest": { - "fields": { - "parent": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Experiment" - } - }, - "pageSize": { - "type": "int32", - "id": 2 - }, - "pageToken": { - "type": "string", - "id": 3 - } - } - }, - "ListExperimentsResponse": { - "fields": { - "experiments": { - "rule": "repeated", - "type": "Experiment", - "id": 1 - }, - "nextPageToken": { - "type": "string", - "id": 2 - } - } - }, - "GetExperimentRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" - } - } - } - }, - "CreateExperimentRequest": { - "fields": { - "parent": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Experiment" - } - }, - "experiment": { - "type": "Experiment", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "UpdateExperimentRequest": { - "fields": { - "experiment": { - "type": "Experiment", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "updateMask": { - "type": "google.protobuf.FieldMask", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "DeleteExperimentRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" - } - } - } - }, - "StartExperimentRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" - } - } - } - }, - "StopExperimentRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" - } } } }, @@ -7465,149 +6891,53 @@ "fields": { "baseVersionContentJson": { "type": "string", - "id": 1 - }, - "targetVersionContentJson": { - "type": "string", - "id": 2 - }, - "compareTime": { - "type": "google.protobuf.Timestamp", - "id": 3 - } - } - } - } - }, - "v3beta1": { - "options": { - "cc_enable_arenas": true, - "csharp_namespace": "Google.Cloud.Dialogflow.Cx.V3Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3beta1;cx", - "java_multiple_files": true, - "java_outer_classname": "VersionProto", - "java_package": "com.google.cloud.dialogflow.cx.v3beta1", - "objc_class_prefix": "DF", - "ruby_package": "Google::Cloud::Dialogflow::CX::V3beta1", - "(google.api.resource_definition).type": "servicedirectory.googleapis.com/Service", - "(google.api.resource_definition).pattern": "projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}" - }, - "nested": { - "AdvancedSettings": { - "fields": { - "loggingSettings": { - "type": "LoggingSettings", - "id": 6 - } - }, - "nested": { - "LoggingSettings": { - "fields": { - "enableStackdriverLogging": { - "type": "bool", - "id": 2 - }, - "enableInteractionLogging": { - "type": "bool", - "id": 3 - } - } - } - } - }, - "Agents": { - "options": { - "(google.api.default_host)": "dialogflow.googleapis.com", - "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" - }, - "methods": { - "ListAgents": { - "requestType": "ListAgentsRequest", - "responseType": "ListAgentsResponse", - "options": { - "(google.api.http).get": "/v3beta1/{parent=projects/*/locations/*}/agents", - "(google.api.method_signature)": "parent" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v3beta1/{parent=projects/*/locations/*}/agents" - } - }, - { - "(google.api.method_signature)": "parent" - } - ] - }, - "GetAgent": { - "requestType": "GetAgentRequest", - "responseType": "Agent", - "options": { - "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/agents/*}", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v3beta1/{name=projects/*/locations/*/agents/*}" - } - }, - { - "(google.api.method_signature)": "name" - } - ] + "id": 1 }, - "CreateAgent": { - "requestType": "CreateAgentRequest", - "responseType": "Agent", - "options": { - "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*}/agents", - "(google.api.http).body": "agent", - "(google.api.method_signature)": "parent,agent" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v3beta1/{parent=projects/*/locations/*}/agents", - "body": "agent" - } - }, - { - "(google.api.method_signature)": "parent,agent" - } - ] + "targetVersionContentJson": { + "type": "string", + "id": 2 }, - "UpdateAgent": { - "requestType": "UpdateAgentRequest", - "responseType": "Agent", + "compareTime": { + "type": "google.protobuf.Timestamp", + "id": 3 + } + } + }, + "Webhooks": { + "options": { + "(google.api.default_host)": "dialogflow.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" + }, + "methods": { + "ListWebhooks": { + "requestType": "ListWebhooksRequest", + "responseType": "ListWebhooksResponse", "options": { - "(google.api.http).patch": "/v3beta1/{agent.name=projects/*/locations/*/agents/*}", - "(google.api.http).body": "agent", - "(google.api.method_signature)": "agent,update_mask" + "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*}/webhooks", + "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "patch": "/v3beta1/{agent.name=projects/*/locations/*/agents/*}", - "body": "agent" + "get": "/v3/{parent=projects/*/locations/*/agents/*}/webhooks" } }, { - "(google.api.method_signature)": "agent,update_mask" + "(google.api.method_signature)": "parent" } ] }, - "DeleteAgent": { - "requestType": "DeleteAgentRequest", - "responseType": "google.protobuf.Empty", + "GetWebhook": { + "requestType": "GetWebhookRequest", + "responseType": "Webhook", "options": { - "(google.api.http).delete": "/v3beta1/{name=projects/*/locations/*/agents/*}", + "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/webhooks/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "delete": "/v3beta1/{name=projects/*/locations/*/agents/*}" + "get": "/v3/{name=projects/*/locations/*/agents/*/webhooks/*}" } }, { @@ -7615,81 +6945,57 @@ } ] }, - "ExportAgent": { - "requestType": "ExportAgentRequest", - "responseType": "google.longrunning.Operation", + "CreateWebhook": { + "requestType": "CreateWebhookRequest", + "responseType": "Webhook", "options": { - "(google.api.http).post": "/v3beta1/{name=projects/*/locations/*/agents/*}:export", - "(google.api.http).body": "*", - "(google.longrunning.operation_info).response_type": "ExportAgentResponse", - "(google.longrunning.operation_info).metadata_type": "google.protobuf.Struct" + "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*}/webhooks", + "(google.api.http).body": "webhook", + "(google.api.method_signature)": "parent,webhook" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3beta1/{name=projects/*/locations/*/agents/*}:export", - "body": "*" + "post": "/v3/{parent=projects/*/locations/*/agents/*}/webhooks", + "body": "webhook" } }, { - "(google.longrunning.operation_info)": { - "response_type": "ExportAgentResponse", - "metadata_type": "google.protobuf.Struct" - } + "(google.api.method_signature)": "parent,webhook" } ] }, - "RestoreAgent": { - "requestType": "RestoreAgentRequest", - "responseType": "google.longrunning.Operation", + "UpdateWebhook": { + "requestType": "UpdateWebhookRequest", + "responseType": "Webhook", "options": { - "(google.api.http).post": "/v3beta1/{name=projects/*/locations/*/agents/*}:restore", - "(google.api.http).body": "*", - "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", - "(google.longrunning.operation_info).metadata_type": "google.protobuf.Struct" + "(google.api.http).patch": "/v3/{webhook.name=projects/*/locations/*/agents/*/webhooks/*}", + "(google.api.http).body": "webhook", + "(google.api.method_signature)": "webhook,update_mask" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3beta1/{name=projects/*/locations/*/agents/*}:restore", - "body": "*" + "patch": "/v3/{webhook.name=projects/*/locations/*/agents/*/webhooks/*}", + "body": "webhook" } }, { - "(google.longrunning.operation_info)": { - "response_type": "google.protobuf.Empty", - "metadata_type": "google.protobuf.Struct" - } - } - ] - }, - "ValidateAgent": { - "requestType": "ValidateAgentRequest", - "responseType": "AgentValidationResult", - "options": { - "(google.api.http).post": "/v3beta1/{name=projects/*/locations/*/agents/*}:validate", - "(google.api.http).body": "*" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v3beta1/{name=projects/*/locations/*/agents/*}:validate", - "body": "*" - } + "(google.api.method_signature)": "webhook,update_mask" } ] }, - "GetAgentValidationResult": { - "requestType": "GetAgentValidationResultRequest", - "responseType": "AgentValidationResult", + "DeleteWebhook": { + "requestType": "DeleteWebhookRequest", + "responseType": "google.protobuf.Empty", "options": { - "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/agents/*/validationResult}", + "(google.api.http).delete": "/v3/{name=projects/*/locations/*/agents/*/webhooks/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{name=projects/*/locations/*/agents/*/validationResult}" + "delete": "/v3/{name=projects/*/locations/*/agents/*/webhooks/*}" } }, { @@ -7699,18 +7005,18 @@ } } }, - "SpeechToTextSettings": { - "fields": { - "enableSpeechAdaptation": { - "type": "bool", - "id": 1 - } - } - }, - "Agent": { + "Webhook": { "options": { - "(google.api.resource).type": "dialogflow.googleapis.com/Agent", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}" + "(google.api.resource).type": "dialogflow.googleapis.com/Webhook", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/webhooks/{webhook}" + }, + "oneofs": { + "webhook": { + "oneof": [ + "genericWebService", + "serviceDirectory" + ] + } }, "fields": { "name": { @@ -7724,77 +7030,88 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "defaultLanguageCode": { - "type": "string", - "id": 3, - "options": { - "(google.api.field_behavior)": "IMMUTABLE" - } - }, - "supportedLanguageCodes": { - "rule": "repeated", - "type": "string", + "genericWebService": { + "type": "GenericWebService", "id": 4 }, - "timeZone": { - "type": "string", - "id": 5, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "description": { - "type": "string", - "id": 6 - }, - "avatarUri": { - "type": "string", + "serviceDirectory": { + "type": "ServiceDirectoryConfig", "id": 7 }, - "speechToTextSettings": { - "type": "SpeechToTextSettings", - "id": 13 - }, - "startFlow": { - "type": "string", - "id": 16, - "options": { - "(google.api.field_behavior)": "IMMUTABLE", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Flow" - } + "timeout": { + "type": "google.protobuf.Duration", + "id": 6 }, - "securitySettings": { - "type": "string", - "id": 17, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/SecuritySettings" + "disabled": { + "type": "bool", + "id": 5 + } + }, + "nested": { + "GenericWebService": { + "fields": { + "uri": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "username": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } + }, + "password": { + "type": "string", + "id": 3, + "options": { + "deprecated": true + } + }, + "requestHeaders": { + "keyType": "string", + "type": "string", + "id": 4 + }, + "allowedCaCerts": { + "rule": "repeated", + "type": "bytes", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } } }, - "enableStackdriverLogging": { - "type": "bool", - "id": 18, - "options": { - "deprecated": true + "ServiceDirectoryConfig": { + "fields": { + "service": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "servicedirectory.googleapis.com/Service" + } + }, + "genericWebService": { + "type": "GenericWebService", + "id": 2 + } } - }, - "enableSpellCorrection": { - "type": "bool", - "id": 20 - }, - "advancedSettings": { - "type": "AdvancedSettings", - "id": 22 } } }, - "ListAgentsRequest": { + "ListWebhooksRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Agent" + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Webhook" } }, "pageSize": { @@ -7807,11 +7124,11 @@ } } }, - "ListAgentsResponse": { + "ListWebhooksResponse": { "fields": { - "agents": { + "webhooks": { "rule": "repeated", - "type": "Agent", + "type": "Webhook", "id": 1 }, "nextPageToken": { @@ -7820,30 +7137,30 @@ } } }, - "GetAgentRequest": { + "GetWebhookRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Agent" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Webhook" } } } }, - "CreateAgentRequest": { + "CreateWebhookRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Agent" + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Webhook" } }, - "agent": { - "type": "Agent", + "webhook": { + "type": "Webhook", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -7851,10 +7168,10 @@ } } }, - "UpdateAgentRequest": { + "UpdateWebhookRequest": { "fields": { - "agent": { - "type": "Agent", + "webhook": { + "type": "Webhook", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -7866,210 +7183,355 @@ } } }, - "DeleteAgentRequest": { + "DeleteWebhookRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Agent" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Webhook" } + }, + "force": { + "type": "bool", + "id": 2 } } }, - "ExportAgentRequest": { + "WebhookRequest": { + "oneofs": { + "query": { + "oneof": [ + "text", + "triggerIntent", + "transcript", + "triggerEvent" + ] + } + }, "fields": { - "name": { + "detectIntentResponseId": { "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Agent" - } + "id": 1 }, - "agentUri": { + "text": { "type": "string", - "id": 2, + "id": 10 + }, + "triggerIntent": { + "type": "string", + "id": 11, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Intent" } }, - "environment": { + "transcript": { "type": "string", - "id": 5, - "options": { - "(google.api.field_behavior)": "OPTIONAL", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Environment" + "id": 12 + }, + "triggerEvent": { + "type": "string", + "id": 14 + }, + "languageCode": { + "type": "string", + "id": 15 + }, + "fulfillmentInfo": { + "type": "FulfillmentInfo", + "id": 6 + }, + "intentInfo": { + "type": "IntentInfo", + "id": 3 + }, + "pageInfo": { + "type": "PageInfo", + "id": 4 + }, + "sessionInfo": { + "type": "SessionInfo", + "id": 5 + }, + "messages": { + "rule": "repeated", + "type": "ResponseMessage", + "id": 7 + }, + "payload": { + "type": "google.protobuf.Struct", + "id": 8 + }, + "sentimentAnalysisResult": { + "type": "SentimentAnalysisResult", + "id": 9 + } + }, + "nested": { + "FulfillmentInfo": { + "fields": { + "tag": { + "type": "string", + "id": 1 + } + } + }, + "IntentInfo": { + "fields": { + "lastMatchedIntent": { + "type": "string", + "id": 1, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Intent" + } + }, + "displayName": { + "type": "string", + "id": 3 + }, + "parameters": { + "keyType": "string", + "type": "IntentParameterValue", + "id": 2 + }, + "confidence": { + "type": "float", + "id": 4 + } + }, + "nested": { + "IntentParameterValue": { + "fields": { + "originalValue": { + "type": "string", + "id": 1 + }, + "resolvedValue": { + "type": "google.protobuf.Value", + "id": 2 + } + } + } + } + }, + "SentimentAnalysisResult": { + "fields": { + "score": { + "type": "float", + "id": 1 + }, + "magnitude": { + "type": "float", + "id": 2 + } } } } }, - "ExportAgentResponse": { + "WebhookResponse": { "oneofs": { - "agent": { + "transition": { "oneof": [ - "agentUri", - "agentContent" + "targetPage", + "targetFlow" ] } }, "fields": { - "agentUri": { - "type": "string", + "fulfillmentResponse": { + "type": "FulfillmentResponse", "id": 1 }, - "agentContent": { - "type": "bytes", + "pageInfo": { + "type": "PageInfo", "id": 2 - } - } - }, - "RestoreAgentRequest": { - "oneofs": { - "agent": { - "oneof": [ - "agentUri", - "agentContent" - ] - } - }, - "fields": { - "name": { + }, + "sessionInfo": { + "type": "SessionInfo", + "id": 3 + }, + "payload": { + "type": "google.protobuf.Struct", + "id": 4 + }, + "targetPage": { "type": "string", - "id": 1, + "id": 5, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Agent" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Page" } }, - "agentUri": { + "targetFlow": { "type": "string", - "id": 2 - }, - "agentContent": { - "type": "bytes", - "id": 3 - }, - "restoreOption": { - "type": "RestoreOption", - "id": 5 + "id": 6, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Flow" + } } }, "nested": { - "RestoreOption": { - "values": { - "RESTORE_OPTION_UNSPECIFIED": 0, - "KEEP": 1, - "FALLBACK": 2 + "FulfillmentResponse": { + "fields": { + "messages": { + "rule": "repeated", + "type": "ResponseMessage", + "id": 1 + }, + "mergeBehavior": { + "type": "MergeBehavior", + "id": 2 + } + }, + "nested": { + "MergeBehavior": { + "values": { + "MERGE_BEHAVIOR_UNSPECIFIED": 0, + "APPEND": 1, + "REPLACE": 2 + } + } } } } }, - "ValidateAgentRequest": { + "PageInfo": { "fields": { - "name": { + "currentPage": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Agent" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Page" } }, - "languageCode": { + "displayName": { "type": "string", - "id": 2 + "id": 4 + }, + "formInfo": { + "type": "FormInfo", + "id": 3 + } + }, + "nested": { + "FormInfo": { + "fields": { + "parameterInfo": { + "rule": "repeated", + "type": "ParameterInfo", + "id": 2 + } + }, + "nested": { + "ParameterInfo": { + "fields": { + "displayName": { + "type": "string", + "id": 1 + }, + "required": { + "type": "bool", + "id": 2 + }, + "state": { + "type": "ParameterState", + "id": 3 + }, + "value": { + "type": "google.protobuf.Value", + "id": 4 + }, + "justCollected": { + "type": "bool", + "id": 5 + } + }, + "nested": { + "ParameterState": { + "values": { + "PARAMETER_STATE_UNSPECIFIED": 0, + "EMPTY": 1, + "INVALID": 2, + "FILLED": 3 + } + } + } + } + } } } }, - "GetAgentValidationResultRequest": { + "SessionInfo": { "fields": { - "name": { + "session": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/AgentValidationResult" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Session" } }, - "languageCode": { - "type": "string", + "parameters": { + "keyType": "string", + "type": "google.protobuf.Value", "id": 2 } } - }, - "AgentValidationResult": { - "options": { - "(google.api.resource).type": "dialogflow.googleapis.com/AgentValidationResult", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/validationResult" - }, + } + } + }, + "v3beta1": { + "options": { + "cc_enable_arenas": true, + "csharp_namespace": "Google.Cloud.Dialogflow.Cx.V3Beta1", + "go_package": "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3beta1;cx", + "java_multiple_files": true, + "java_outer_classname": "WebhookProto", + "java_package": "com.google.cloud.dialogflow.cx.v3beta1", + "objc_class_prefix": "DF", + "ruby_package": "Google::Cloud::Dialogflow::CX::V3beta1", + "(google.api.resource_definition).type": "servicedirectory.googleapis.com/Service", + "(google.api.resource_definition).pattern": "projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}" + }, + "nested": { + "AdvancedSettings": { "fields": { - "name": { - "type": "string", - "id": 1 - }, - "flowValidationResults": { - "rule": "repeated", - "type": "FlowValidationResult", - "id": 2 + "loggingSettings": { + "type": "LoggingSettings", + "id": 6 + } + }, + "nested": { + "LoggingSettings": { + "fields": { + "enableStackdriverLogging": { + "type": "bool", + "id": 2 + }, + "enableInteractionLogging": { + "type": "bool", + "id": 3 + } + } } } }, - "Flows": { + "Agents": { "options": { "(google.api.default_host)": "dialogflow.googleapis.com", "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" }, "methods": { - "CreateFlow": { - "requestType": "CreateFlowRequest", - "responseType": "Flow", - "options": { - "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/flows", - "(google.api.http).body": "flow", - "(google.api.method_signature)": "parent,flow" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/flows", - "body": "flow" - } - }, - { - "(google.api.method_signature)": "parent,flow" - } - ] - }, - "DeleteFlow": { - "requestType": "DeleteFlowRequest", - "responseType": "google.protobuf.Empty", - "options": { - "(google.api.http).delete": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*}", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "delete": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*}" - } - }, - { - "(google.api.method_signature)": "name" - } - ] - }, - "ListFlows": { - "requestType": "ListFlowsRequest", - "responseType": "ListFlowsResponse", + "ListAgents": { + "requestType": "ListAgentsRequest", + "responseType": "ListAgentsResponse", "options": { - "(google.api.http).get": "/v3beta1/{parent=projects/*/locations/*/agents/*}/flows", + "(google.api.http).get": "/v3beta1/{parent=projects/*/locations/*}/agents", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{parent=projects/*/locations/*/agents/*}/flows" + "get": "/v3beta1/{parent=projects/*/locations/*}/agents" } }, { @@ -8077,17 +7539,17 @@ } ] }, - "GetFlow": { - "requestType": "GetFlowRequest", - "responseType": "Flow", + "GetAgent": { + "requestType": "GetAgentRequest", + "responseType": "Agent", "options": { - "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*}", + "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/agents/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*}" + "get": "/v3beta1/{name=projects/*/locations/*/agents/*}" } }, { @@ -8095,81 +7557,57 @@ } ] }, - "UpdateFlow": { - "requestType": "UpdateFlowRequest", - "responseType": "Flow", + "CreateAgent": { + "requestType": "CreateAgentRequest", + "responseType": "Agent", "options": { - "(google.api.http).patch": "/v3beta1/{flow.name=projects/*/locations/*/agents/*/flows/*}", - "(google.api.http).body": "flow", - "(google.api.method_signature)": "flow,update_mask" + "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*}/agents", + "(google.api.http).body": "agent", + "(google.api.method_signature)": "parent,agent" }, "parsedOptions": [ { "(google.api.http)": { - "patch": "/v3beta1/{flow.name=projects/*/locations/*/agents/*/flows/*}", - "body": "flow" + "post": "/v3beta1/{parent=projects/*/locations/*}/agents", + "body": "agent" } }, { - "(google.api.method_signature)": "flow,update_mask" + "(google.api.method_signature)": "parent,agent" } ] }, - "TrainFlow": { - "requestType": "TrainFlowRequest", - "responseType": "google.longrunning.Operation", + "UpdateAgent": { + "requestType": "UpdateAgentRequest", + "responseType": "Agent", "options": { - "(google.api.http).post": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*}:train", - "(google.api.http).body": "*", - "(google.api.method_signature)": "name", - "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", - "(google.longrunning.operation_info).metadata_type": "google.protobuf.Struct" + "(google.api.http).patch": "/v3beta1/{agent.name=projects/*/locations/*/agents/*}", + "(google.api.http).body": "agent", + "(google.api.method_signature)": "agent,update_mask" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*}:train", - "body": "*" + "patch": "/v3beta1/{agent.name=projects/*/locations/*/agents/*}", + "body": "agent" } }, { - "(google.api.method_signature)": "name" - }, - { - "(google.longrunning.operation_info)": { - "response_type": "google.protobuf.Empty", - "metadata_type": "google.protobuf.Struct" - } - } - ] - }, - "ValidateFlow": { - "requestType": "ValidateFlowRequest", - "responseType": "FlowValidationResult", - "options": { - "(google.api.http).post": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*}:validate", - "(google.api.http).body": "*" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*}:validate", - "body": "*" - } + "(google.api.method_signature)": "agent,update_mask" } ] }, - "GetFlowValidationResult": { - "requestType": "GetFlowValidationResultRequest", - "responseType": "FlowValidationResult", + "DeleteAgent": { + "requestType": "DeleteAgentRequest", + "responseType": "google.protobuf.Empty", "options": { - "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/validationResult}", + "(google.api.http).delete": "/v3beta1/{name=projects/*/locations/*/agents/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/validationResult}" + "delete": "/v3beta1/{name=projects/*/locations/*/agents/*}" } }, { @@ -8177,92 +7615,102 @@ } ] }, - "ImportFlow": { - "requestType": "ImportFlowRequest", + "ExportAgent": { + "requestType": "ExportAgentRequest", "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/flows:import", + "(google.api.http).post": "/v3beta1/{name=projects/*/locations/*/agents/*}:export", "(google.api.http).body": "*", - "(google.longrunning.operation_info).response_type": "ImportFlowResponse", + "(google.longrunning.operation_info).response_type": "ExportAgentResponse", "(google.longrunning.operation_info).metadata_type": "google.protobuf.Struct" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/flows:import", + "post": "/v3beta1/{name=projects/*/locations/*/agents/*}:export", "body": "*" } }, { "(google.longrunning.operation_info)": { - "response_type": "ImportFlowResponse", + "response_type": "ExportAgentResponse", "metadata_type": "google.protobuf.Struct" } } ] }, - "ExportFlow": { - "requestType": "ExportFlowRequest", + "RestoreAgent": { + "requestType": "RestoreAgentRequest", "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).post": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*}:export", + "(google.api.http).post": "/v3beta1/{name=projects/*/locations/*/agents/*}:restore", "(google.api.http).body": "*", - "(google.longrunning.operation_info).response_type": "ExportFlowResponse", + "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", "(google.longrunning.operation_info).metadata_type": "google.protobuf.Struct" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*}:export", + "post": "/v3beta1/{name=projects/*/locations/*/agents/*}:restore", "body": "*" } }, { "(google.longrunning.operation_info)": { - "response_type": "ExportFlowResponse", + "response_type": "google.protobuf.Empty", "metadata_type": "google.protobuf.Struct" } } ] + }, + "ValidateAgent": { + "requestType": "ValidateAgentRequest", + "responseType": "AgentValidationResult", + "options": { + "(google.api.http).post": "/v3beta1/{name=projects/*/locations/*/agents/*}:validate", + "(google.api.http).body": "*" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v3beta1/{name=projects/*/locations/*/agents/*}:validate", + "body": "*" + } + } + ] + }, + "GetAgentValidationResult": { + "requestType": "GetAgentValidationResultRequest", + "responseType": "AgentValidationResult", + "options": { + "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/agents/*/validationResult}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v3beta1/{name=projects/*/locations/*/agents/*/validationResult}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] } } }, - "NluSettings": { + "SpeechToTextSettings": { "fields": { - "modelType": { - "type": "ModelType", + "enableSpeechAdaptation": { + "type": "bool", "id": 1 - }, - "classificationThreshold": { - "type": "float", - "id": 3 - }, - "modelTrainingMode": { - "type": "ModelTrainingMode", - "id": 4 - } - }, - "nested": { - "ModelType": { - "values": { - "MODEL_TYPE_UNSPECIFIED": 0, - "MODEL_TYPE_STANDARD": 1, - "MODEL_TYPE_ADVANCED": 3 - } - }, - "ModelTrainingMode": { - "values": { - "MODEL_TRAINING_MODE_UNSPECIFIED": 0, - "MODEL_TRAINING_MODE_AUTOMATIC": 1, - "MODEL_TRAINING_MODE_MANUAL": 2 - } } } }, - "Flow": { + "Agent": { "options": { - "(google.api.resource).type": "dialogflow.googleapis.com/Flow", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/flows/{flow}" + "(google.api.resource).type": "dialogflow.googleapis.com/Agent", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}" }, "fields": { "name": { @@ -8276,81 +7724,77 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "description": { + "defaultLanguageCode": { "type": "string", - "id": 3 + "id": 3, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } }, - "transitionRoutes": { + "supportedLanguageCodes": { "rule": "repeated", - "type": "TransitionRoute", + "type": "string", "id": 4 }, - "eventHandlers": { - "rule": "repeated", - "type": "EventHandler", - "id": 10 - }, - "transitionRouteGroups": { - "rule": "repeated", + "timeZone": { "type": "string", - "id": 15, + "id": 5, "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/TransitionRouteGroup" + "(google.api.field_behavior)": "REQUIRED" } }, - "nluSettings": { - "type": "NluSettings", - "id": 11 - } - } - }, - "CreateFlowRequest": { - "fields": { - "parent": { + "description": { "type": "string", - "id": 1, + "id": 6 + }, + "avatarUri": { + "type": "string", + "id": 7 + }, + "speechToTextSettings": { + "type": "SpeechToTextSettings", + "id": 13 + }, + "startFlow": { + "type": "string", + "id": 16, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Flow" + "(google.api.field_behavior)": "IMMUTABLE", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Flow" } }, - "flow": { - "type": "Flow", - "id": 2, + "securitySettings": { + "type": "string", + "id": 17, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/SecuritySettings" } }, - "languageCode": { - "type": "string", - "id": 3 - } - } - }, - "DeleteFlowRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, + "enableStackdriverLogging": { + "type": "bool", + "id": 18, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Flow" + "deprecated": true } }, - "force": { + "enableSpellCorrection": { "type": "bool", - "id": 2 + "id": 20 + }, + "advancedSettings": { + "type": "AdvancedSettings", + "id": 22 } } }, - "ListFlowsRequest": { + "ListAgentsRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Flow" + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Agent" } }, "pageSize": { @@ -8360,18 +7804,14 @@ "pageToken": { "type": "string", "id": 3 - }, - "languageCode": { - "type": "string", - "id": 4 } } }, - "ListFlowsResponse": { + "ListAgentsResponse": { "fields": { - "flows": { + "agents": { "rule": "repeated", - "type": "Flow", + "type": "Agent", "id": 1 }, "nextPageToken": { @@ -8380,26 +7820,41 @@ } } }, - "GetFlowRequest": { + "GetAgentRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Flow" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Agent" } - }, - "languageCode": { + } + } + }, + "CreateAgentRequest": { + "fields": { + "parent": { "type": "string", - "id": 2 + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Agent" + } + }, + "agent": { + "type": "Agent", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "UpdateFlowRequest": { + "UpdateAgentRequest": { "fields": { - "flow": { - "type": "Flow", + "agent": { + "type": "Agent", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -8408,193 +7863,213 @@ "updateMask": { "type": "google.protobuf.FieldMask", "id": 2 - }, - "languageCode": { - "type": "string", - "id": 3 } } }, - "TrainFlowRequest": { + "DeleteAgentRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Flow" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Agent" } } } }, - "ValidateFlowRequest": { + "ExportAgentRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Flow" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Agent" } }, - "languageCode": { - "type": "string", - "id": 2 - } - } - }, - "GetFlowValidationResultRequest": { - "fields": { - "name": { + "agentUri": { "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/FlowValidationResult" + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" } }, - "languageCode": { + "environment": { "type": "string", - "id": 2 + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Environment" + } } } }, - "FlowValidationResult": { - "options": { - "(google.api.resource).type": "dialogflow.googleapis.com/FlowValidationResult", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/validationResult" + "ExportAgentResponse": { + "oneofs": { + "agent": { + "oneof": [ + "agentUri", + "agentContent" + ] + } }, "fields": { - "name": { + "agentUri": { "type": "string", "id": 1 }, - "validationMessages": { - "rule": "repeated", - "type": "ValidationMessage", + "agentContent": { + "type": "bytes", "id": 2 - }, - "updateTime": { - "type": "google.protobuf.Timestamp", - "id": 3 } } }, - "ImportFlowRequest": { + "RestoreAgentRequest": { "oneofs": { - "flow": { + "agent": { "oneof": [ - "flowUri", - "flowContent" + "agentUri", + "agentContent" ] } }, "fields": { - "parent": { + "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Flow" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Agent" } }, - "flowUri": { + "agentUri": { "type": "string", "id": 2 }, - "flowContent": { + "agentContent": { "type": "bytes", "id": 3 }, - "importOption": { - "type": "ImportOption", - "id": 4 + "restoreOption": { + "type": "RestoreOption", + "id": 5 } }, "nested": { - "ImportOption": { + "RestoreOption": { "values": { - "IMPORT_OPTION_UNSPECIFIED": 0, + "RESTORE_OPTION_UNSPECIFIED": 0, "KEEP": 1, "FALLBACK": 2 } } } }, - "ImportFlowResponse": { + "ValidateAgentRequest": { "fields": { - "flow": { + "name": { "type": "string", "id": 1, "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Flow" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Agent" } + }, + "languageCode": { + "type": "string", + "id": 2 } } }, - "ExportFlowRequest": { + "GetAgentValidationResultRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Flow" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/AgentValidationResult" } }, - "flowUri": { + "languageCode": { "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "includeReferencedFlows": { - "type": "bool", - "id": 4, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } + "id": 2 } } }, - "ExportFlowResponse": { - "oneofs": { - "flow": { - "oneof": [ - "flowUri", - "flowContent" - ] - } + "AgentValidationResult": { + "options": { + "(google.api.resource).type": "dialogflow.googleapis.com/AgentValidationResult", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/validationResult" }, "fields": { - "flowUri": { + "name": { "type": "string", "id": 1 }, - "flowContent": { - "type": "bytes", + "flowValidationResults": { + "rule": "repeated", + "type": "FlowValidationResult", "id": 2 } } }, - "Pages": { + "Flows": { "options": { "(google.api.default_host)": "dialogflow.googleapis.com", "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" }, "methods": { - "ListPages": { - "requestType": "ListPagesRequest", - "responseType": "ListPagesResponse", + "CreateFlow": { + "requestType": "CreateFlowRequest", + "responseType": "Flow", "options": { - "(google.api.http).get": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/pages", + "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/flows", + "(google.api.http).body": "flow", + "(google.api.method_signature)": "parent,flow" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/flows", + "body": "flow" + } + }, + { + "(google.api.method_signature)": "parent,flow" + } + ] + }, + "DeleteFlow": { + "requestType": "DeleteFlowRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListFlows": { + "requestType": "ListFlowsRequest", + "responseType": "ListFlowsResponse", + "options": { + "(google.api.http).get": "/v3beta1/{parent=projects/*/locations/*/agents/*}/flows", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/pages" + "get": "/v3beta1/{parent=projects/*/locations/*/agents/*}/flows" } }, { @@ -8602,17 +8077,17 @@ } ] }, - "GetPage": { - "requestType": "GetPageRequest", - "responseType": "Page", + "GetFlow": { + "requestType": "GetFlowRequest", + "responseType": "Flow", "options": { - "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/pages/*}", + "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/pages/*}" + "get": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*}" } }, { @@ -8620,70 +8095,174 @@ } ] }, - "CreatePage": { - "requestType": "CreatePageRequest", - "responseType": "Page", + "UpdateFlow": { + "requestType": "UpdateFlowRequest", + "responseType": "Flow", "options": { - "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/pages", - "(google.api.http).body": "page", - "(google.api.method_signature)": "parent,page" + "(google.api.http).patch": "/v3beta1/{flow.name=projects/*/locations/*/agents/*/flows/*}", + "(google.api.http).body": "flow", + "(google.api.method_signature)": "flow,update_mask" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/pages", - "body": "page" + "patch": "/v3beta1/{flow.name=projects/*/locations/*/agents/*/flows/*}", + "body": "flow" } }, { - "(google.api.method_signature)": "parent,page" + "(google.api.method_signature)": "flow,update_mask" } ] }, - "UpdatePage": { - "requestType": "UpdatePageRequest", - "responseType": "Page", + "TrainFlow": { + "requestType": "TrainFlowRequest", + "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).patch": "/v3beta1/{page.name=projects/*/locations/*/agents/*/flows/*/pages/*}", - "(google.api.http).body": "page", - "(google.api.method_signature)": "page,update_mask" + "(google.api.http).post": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*}:train", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name", + "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", + "(google.longrunning.operation_info).metadata_type": "google.protobuf.Struct" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*}:train", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "google.protobuf.Empty", + "metadata_type": "google.protobuf.Struct" + } + } + ] + }, + "ValidateFlow": { + "requestType": "ValidateFlowRequest", + "responseType": "FlowValidationResult", + "options": { + "(google.api.http).post": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*}:validate", + "(google.api.http).body": "*" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*}:validate", + "body": "*" + } + } + ] + }, + "GetFlowValidationResult": { + "requestType": "GetFlowValidationResultRequest", + "responseType": "FlowValidationResult", + "options": { + "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/validationResult}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/validationResult}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ImportFlow": { + "requestType": "ImportFlowRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/flows:import", + "(google.api.http).body": "*", + "(google.longrunning.operation_info).response_type": "ImportFlowResponse", + "(google.longrunning.operation_info).metadata_type": "google.protobuf.Struct" }, "parsedOptions": [ { "(google.api.http)": { - "patch": "/v3beta1/{page.name=projects/*/locations/*/agents/*/flows/*/pages/*}", - "body": "page" + "post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/flows:import", + "body": "*" } }, { - "(google.api.method_signature)": "page,update_mask" + "(google.longrunning.operation_info)": { + "response_type": "ImportFlowResponse", + "metadata_type": "google.protobuf.Struct" + } } ] }, - "DeletePage": { - "requestType": "DeletePageRequest", - "responseType": "google.protobuf.Empty", + "ExportFlow": { + "requestType": "ExportFlowRequest", + "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).delete": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/pages/*}", - "(google.api.method_signature)": "name" + "(google.api.http).post": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*}:export", + "(google.api.http).body": "*", + "(google.longrunning.operation_info).response_type": "ExportFlowResponse", + "(google.longrunning.operation_info).metadata_type": "google.protobuf.Struct" }, "parsedOptions": [ { "(google.api.http)": { - "delete": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/pages/*}" + "post": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*}:export", + "body": "*" } }, { - "(google.api.method_signature)": "name" + "(google.longrunning.operation_info)": { + "response_type": "ExportFlowResponse", + "metadata_type": "google.protobuf.Struct" + } } ] } } }, - "Page": { + "NluSettings": { + "fields": { + "modelType": { + "type": "ModelType", + "id": 1 + }, + "classificationThreshold": { + "type": "float", + "id": 3 + }, + "modelTrainingMode": { + "type": "ModelTrainingMode", + "id": 4 + } + }, + "nested": { + "ModelType": { + "values": { + "MODEL_TYPE_UNSPECIFIED": 0, + "MODEL_TYPE_STANDARD": 1, + "MODEL_TYPE_ADVANCED": 3 + } + }, + "ModelTrainingMode": { + "values": { + "MODEL_TRAINING_MODE_UNSPECIFIED": 0, + "MODEL_TRAINING_MODE_AUTOMATIC": 1, + "MODEL_TRAINING_MODE_MANUAL": 2 + } + } + } + }, + "Flow": { "options": { - "(google.api.resource).type": "dialogflow.googleapis.com/Page", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/pages/{page}" + "(google.api.resource).type": "dialogflow.googleapis.com/Flow", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/flows/{flow}" }, "fields": { "name": { @@ -8697,395 +8276,519 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "entryFulfillment": { - "type": "Fulfillment", - "id": 7 + "description": { + "type": "string", + "id": 3 }, - "form": { - "type": "Form", + "transitionRoutes": { + "rule": "repeated", + "type": "TransitionRoute", "id": 4 }, + "eventHandlers": { + "rule": "repeated", + "type": "EventHandler", + "id": 10 + }, "transitionRouteGroups": { "rule": "repeated", "type": "string", - "id": 11, + "id": 15, "options": { "(google.api.resource_reference).type": "dialogflow.googleapis.com/TransitionRouteGroup" } }, - "transitionRoutes": { - "rule": "repeated", - "type": "TransitionRoute", - "id": 9 + "nluSettings": { + "type": "NluSettings", + "id": 11 + } + } + }, + "CreateFlowRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Flow" + } }, - "eventHandlers": { - "rule": "repeated", - "type": "EventHandler", - "id": 10 + "flow": { + "type": "Flow", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "languageCode": { + "type": "string", + "id": 3 } } }, - "Form": { + "DeleteFlowRequest": { "fields": { - "parameters": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Flow" + } + }, + "force": { + "type": "bool", + "id": 2 + } + } + }, + "ListFlowsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Flow" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + }, + "languageCode": { + "type": "string", + "id": 4 + } + } + }, + "ListFlowsResponse": { + "fields": { + "flows": { "rule": "repeated", - "type": "Parameter", + "type": "Flow", "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 } - }, - "nested": { - "Parameter": { - "fields": { - "displayName": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "required": { - "type": "bool", - "id": 2 - }, - "entityType": { - "type": "string", - "id": 3, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/EntityType" - } - }, - "isList": { - "type": "bool", - "id": 4 - }, - "fillBehavior": { - "type": "FillBehavior", - "id": 7, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "defaultValue": { - "type": "google.protobuf.Value", - "id": 9 - }, - "redact": { - "type": "bool", - "id": 11 - } - }, - "nested": { - "FillBehavior": { - "fields": { - "initialPromptFulfillment": { - "type": "Fulfillment", - "id": 3, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "repromptEventHandlers": { - "rule": "repeated", - "type": "EventHandler", - "id": 5 - } - } - } + } + }, + "GetFlowRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Flow" + } + }, + "languageCode": { + "type": "string", + "id": 2 + } + } + }, + "UpdateFlowRequest": { + "fields": { + "flow": { + "type": "Flow", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2 + }, + "languageCode": { + "type": "string", + "id": 3 } } }, - "EventHandler": { - "oneofs": { - "target": { - "oneof": [ - "targetPage", - "targetFlow" - ] - } - }, + "TrainFlowRequest": { "fields": { "name": { "type": "string", - "id": 6, + "id": 1, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Flow" } - }, - "event": { + } + } + }, + "ValidateFlowRequest": { + "fields": { + "name": { "type": "string", - "id": 4, + "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Flow" } }, - "triggerFulfillment": { - "type": "Fulfillment", - "id": 5 - }, - "targetPage": { + "languageCode": { "type": "string", - "id": 2, + "id": 2 + } + } + }, + "GetFlowValidationResultRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Page" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/FlowValidationResult" } }, - "targetFlow": { + "languageCode": { "type": "string", - "id": 3, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Flow" - } + "id": 2 } } }, - "TransitionRoute": { + "FlowValidationResult": { + "options": { + "(google.api.resource).type": "dialogflow.googleapis.com/FlowValidationResult", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/validationResult" + }, + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "validationMessages": { + "rule": "repeated", + "type": "ValidationMessage", + "id": 2 + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 3 + } + } + }, + "ImportFlowRequest": { "oneofs": { - "target": { + "flow": { "oneof": [ - "targetPage", - "targetFlow" + "flowUri", + "flowContent" ] } }, "fields": { - "name": { - "type": "string", - "id": 6, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "intent": { + "parent": { "type": "string", "id": 1, "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Intent" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Flow" } }, - "condition": { + "flowUri": { "type": "string", "id": 2 }, - "triggerFulfillment": { - "type": "Fulfillment", + "flowContent": { + "type": "bytes", "id": 3 }, - "targetPage": { - "type": "string", - "id": 4, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Page" + "importOption": { + "type": "ImportOption", + "id": 4 + } + }, + "nested": { + "ImportOption": { + "values": { + "IMPORT_OPTION_UNSPECIFIED": 0, + "KEEP": 1, + "FALLBACK": 2 } - }, - "targetFlow": { + } + } + }, + "ImportFlowResponse": { + "fields": { + "flow": { "type": "string", - "id": 5, + "id": 1, "options": { "(google.api.resource_reference).type": "dialogflow.googleapis.com/Flow" } } } }, - "ListPagesRequest": { + "ExportFlowRequest": { "fields": { - "parent": { + "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Page" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Flow" } }, - "languageCode": { + "flowUri": { "type": "string", - "id": 2 - }, - "pageSize": { - "type": "int32", - "id": 3 + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } }, - "pageToken": { - "type": "string", - "id": 4 + "includeReferencedFlows": { + "type": "bool", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, - "ListPagesResponse": { + "ExportFlowResponse": { + "oneofs": { + "flow": { + "oneof": [ + "flowUri", + "flowContent" + ] + } + }, "fields": { - "pages": { - "rule": "repeated", - "type": "Page", + "flowUri": { + "type": "string", "id": 1 }, - "nextPageToken": { - "type": "string", - "id": 2 + "flowContent": { + "type": "bytes", + "id": 2 + } + } + }, + "Pages": { + "options": { + "(google.api.default_host)": "dialogflow.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" + }, + "methods": { + "ListPages": { + "requestType": "ListPagesRequest", + "responseType": "ListPagesResponse", + "options": { + "(google.api.http).get": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/pages", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/pages" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "GetPage": { + "requestType": "GetPageRequest", + "responseType": "Page", + "options": { + "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/pages/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/pages/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "CreatePage": { + "requestType": "CreatePageRequest", + "responseType": "Page", + "options": { + "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/pages", + "(google.api.http).body": "page", + "(google.api.method_signature)": "parent,page" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/pages", + "body": "page" + } + }, + { + "(google.api.method_signature)": "parent,page" + } + ] + }, + "UpdatePage": { + "requestType": "UpdatePageRequest", + "responseType": "Page", + "options": { + "(google.api.http).patch": "/v3beta1/{page.name=projects/*/locations/*/agents/*/flows/*/pages/*}", + "(google.api.http).body": "page", + "(google.api.method_signature)": "page,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v3beta1/{page.name=projects/*/locations/*/agents/*/flows/*/pages/*}", + "body": "page" + } + }, + { + "(google.api.method_signature)": "page,update_mask" + } + ] + }, + "DeletePage": { + "requestType": "DeletePageRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/pages/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/pages/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] } } }, - "GetPageRequest": { + "Page": { + "options": { + "(google.api.resource).type": "dialogflow.googleapis.com/Page", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/pages/{page}" + }, "fields": { "name": { "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Page" - } + "id": 1 }, - "languageCode": { - "type": "string", - "id": 2 - } - } - }, - "CreatePageRequest": { - "fields": { - "parent": { + "displayName": { "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Page" - } - }, - "page": { - "type": "Page", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "languageCode": { - "type": "string", - "id": 3 - } - } - }, - "UpdatePageRequest": { - "fields": { - "page": { - "type": "Page", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } + "entryFulfillment": { + "type": "Fulfillment", + "id": 7 }, - "languageCode": { - "type": "string", - "id": 2 + "form": { + "type": "Form", + "id": 4 }, - "updateMask": { - "type": "google.protobuf.FieldMask", - "id": 3 - } - } - }, - "DeletePageRequest": { - "fields": { - "name": { + "transitionRouteGroups": { + "rule": "repeated", "type": "string", - "id": 1, + "id": 11, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Page" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/TransitionRouteGroup" } }, - "force": { - "type": "bool", - "id": 2 + "transitionRoutes": { + "rule": "repeated", + "type": "TransitionRoute", + "id": 9 + }, + "eventHandlers": { + "rule": "repeated", + "type": "EventHandler", + "id": 10 } } }, - "Fulfillment": { + "Form": { "fields": { - "messages": { + "parameters": { "rule": "repeated", - "type": "ResponseMessage", + "type": "Parameter", "id": 1 - }, - "webhook": { - "type": "string", - "id": 2, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Webhook" - } - }, - "returnPartialResponses": { - "type": "bool", - "id": 8 - }, - "tag": { - "type": "string", - "id": 3 - }, - "setParameterActions": { - "rule": "repeated", - "type": "SetParameterAction", - "id": 4 - }, - "conditionalCases": { - "rule": "repeated", - "type": "ConditionalCases", - "id": 5 } }, "nested": { - "SetParameterAction": { + "Parameter": { "fields": { - "parameter": { + "displayName": { "type": "string", - "id": 1 + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, - "value": { - "type": "google.protobuf.Value", + "required": { + "type": "bool", "id": 2 - } - } - }, - "ConditionalCases": { - "fields": { - "cases": { - "rule": "repeated", - "type": "Case", - "id": 1 + }, + "entityType": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/EntityType" + } + }, + "isList": { + "type": "bool", + "id": 4 + }, + "fillBehavior": { + "type": "FillBehavior", + "id": 7, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "defaultValue": { + "type": "google.protobuf.Value", + "id": 9 + }, + "redact": { + "type": "bool", + "id": 11 } }, "nested": { - "Case": { + "FillBehavior": { "fields": { - "condition": { - "type": "string", - "id": 1 + "initialPromptFulfillment": { + "type": "Fulfillment", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, - "caseContent": { + "repromptEventHandlers": { "rule": "repeated", - "type": "CaseContent", - "id": 2 - } - }, - "nested": { - "CaseContent": { - "oneofs": { - "casesOrMessage": { - "oneof": [ - "message", - "additionalCases" - ] - } - }, - "fields": { - "message": { - "type": "ResponseMessage", - "id": 1 - }, - "additionalCases": { - "type": "ConditionalCases", - "id": 2 - } - } + "type": "EventHandler", + "id": 5 } } } @@ -9093,556 +8796,568 @@ } } }, - "ResponseMessage": { + "EventHandler": { + "oneofs": { + "target": { + "oneof": [ + "targetPage", + "targetFlow" + ] + } + }, + "fields": { + "name": { + "type": "string", + "id": 6, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "event": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "triggerFulfillment": { + "type": "Fulfillment", + "id": 5 + }, + "targetPage": { + "type": "string", + "id": 2, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Page" + } + }, + "targetFlow": { + "type": "string", + "id": 3, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Flow" + } + } + } + }, + "TransitionRoute": { "oneofs": { - "message": { + "target": { "oneof": [ - "text", - "payload", - "conversationSuccess", - "outputAudioText", - "liveAgentHandoff", - "endInteraction", - "playAudio", - "mixedAudio", - "telephonyTransferCall" + "targetPage", + "targetFlow" ] } }, "fields": { - "text": { - "type": "Text", - "id": 1 - }, - "payload": { - "type": "google.protobuf.Struct", - "id": 2 - }, - "conversationSuccess": { - "type": "ConversationSuccess", - "id": 9 - }, - "outputAudioText": { - "type": "OutputAudioText", - "id": 8 - }, - "liveAgentHandoff": { - "type": "LiveAgentHandoff", - "id": 10 - }, - "endInteraction": { - "type": "EndInteraction", - "id": 11, + "name": { + "type": "string", + "id": 6, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "playAudio": { - "type": "PlayAudio", - "id": 12 - }, - "mixedAudio": { - "type": "MixedAudio", - "id": 13, + "intent": { + "type": "string", + "id": 1, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Intent" } }, - "telephonyTransferCall": { - "type": "TelephonyTransferCall", - "id": 18 - } - }, - "nested": { - "Text": { - "fields": { - "text": { - "rule": "repeated", - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "allowPlaybackInterruption": { - "type": "bool", - "id": 2, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - } - } + "condition": { + "type": "string", + "id": 2 }, - "LiveAgentHandoff": { - "fields": { - "metadata": { - "type": "google.protobuf.Struct", - "id": 1 - } - } + "triggerFulfillment": { + "type": "Fulfillment", + "id": 3 }, - "ConversationSuccess": { - "fields": { - "metadata": { - "type": "google.protobuf.Struct", - "id": 1 - } + "targetPage": { + "type": "string", + "id": 4, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Page" } }, - "OutputAudioText": { - "oneofs": { - "source": { - "oneof": [ - "text", - "ssml" - ] - } - }, - "fields": { - "text": { - "type": "string", - "id": 1 - }, - "ssml": { - "type": "string", - "id": 2 - }, - "allowPlaybackInterruption": { - "type": "bool", - "id": 3, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - } + "targetFlow": { + "type": "string", + "id": 5, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Flow" + } + } + } + }, + "ListPagesRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Page" } }, - "EndInteraction": { - "fields": {} + "languageCode": { + "type": "string", + "id": 2 }, - "PlayAudio": { - "fields": { - "audioUri": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "allowPlaybackInterruption": { - "type": "bool", - "id": 2, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - } - } + "pageSize": { + "type": "int32", + "id": 3 }, - "MixedAudio": { - "fields": { - "segments": { - "rule": "repeated", - "type": "Segment", - "id": 1 - } - }, - "nested": { - "Segment": { - "oneofs": { - "content": { - "oneof": [ - "audio", - "uri" - ] - } - }, - "fields": { - "audio": { - "type": "bytes", - "id": 1 - }, - "uri": { - "type": "string", - "id": 2 - }, - "allowPlaybackInterruption": { - "type": "bool", - "id": 3, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - } - } - } - } + "pageToken": { + "type": "string", + "id": 4 + } + } + }, + "ListPagesResponse": { + "fields": { + "pages": { + "rule": "repeated", + "type": "Page", + "id": 1 }, - "TelephonyTransferCall": { - "oneofs": { - "endpoint": { - "oneof": [ - "phoneNumber" - ] - } - }, - "fields": { - "phoneNumber": { - "type": "string", - "id": 1 - } + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "GetPageRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Page" } + }, + "languageCode": { + "type": "string", + "id": 2 } } }, - "ValidationMessage": { + "CreatePageRequest": { "fields": { - "resourceType": { - "type": "ResourceType", - "id": 1 - }, - "resources": { - "rule": "repeated", + "parent": { "type": "string", - "id": 2, + "id": 1, "options": { - "deprecated": true + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Page" } }, - "resourceNames": { - "rule": "repeated", - "type": "ResourceName", - "id": 6 - }, - "severity": { - "type": "Severity", - "id": 3 + "page": { + "type": "Page", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, - "detail": { + "languageCode": { "type": "string", - "id": 4 + "id": 3 } - }, - "nested": { - "ResourceType": { - "values": { - "RESOURCE_TYPE_UNSPECIFIED": 0, - "AGENT": 1, - "INTENT": 2, - "INTENT_TRAINING_PHRASE": 8, - "INTENT_PARAMETER": 9, - "INTENTS": 10, - "INTENT_TRAINING_PHRASES": 11, - "ENTITY_TYPE": 3, - "ENTITY_TYPES": 12, - "WEBHOOK": 4, - "FLOW": 5, - "PAGE": 6, - "PAGES": 13, - "TRANSITION_ROUTE_GROUP": 7 + } + }, + "UpdatePageRequest": { + "fields": { + "page": { + "type": "Page", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" } }, - "Severity": { - "values": { - "SEVERITY_UNSPECIFIED": 0, - "INFO": 1, - "WARNING": 2, - "ERROR": 3 - } + "languageCode": { + "type": "string", + "id": 2 + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 3 } } }, - "ResourceName": { + "DeletePageRequest": { "fields": { "name": { "type": "string", - "id": 1 + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Page" + } }, - "displayName": { - "type": "string", + "force": { + "type": "bool", "id": 2 } } }, - "SecuritySettingsService": { - "options": { - "(google.api.default_host)": "dialogflow.googleapis.com", - "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" - }, - "methods": { - "CreateSecuritySettings": { - "requestType": "CreateSecuritySettingsRequest", - "responseType": "SecuritySettings", - "options": { - "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*}/securitySettings", - "(google.api.http).body": "security_settings", - "(google.api.method_signature)": "parent,security_settings" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v3beta1/{parent=projects/*/locations/*}/securitySettings", - "body": "security_settings" - } - }, - { - "(google.api.method_signature)": "parent,security_settings" - } - ] + "Fulfillment": { + "fields": { + "messages": { + "rule": "repeated", + "type": "ResponseMessage", + "id": 1 }, - "GetSecuritySettings": { - "requestType": "GetSecuritySettingsRequest", - "responseType": "SecuritySettings", + "webhook": { + "type": "string", + "id": 2, "options": { - "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/securitySettings/*}", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v3beta1/{name=projects/*/locations/*/securitySettings/*}" - } - }, - { - "(google.api.method_signature)": "name" - } - ] + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Webhook" + } }, - "UpdateSecuritySettings": { - "requestType": "UpdateSecuritySettingsRequest", - "responseType": "SecuritySettings", - "options": { - "(google.api.http).patch": "/v3beta1/{security_settings.name=projects/*/locations/*/securitySettings/*}", - "(google.api.http).body": "security_settings", - "(google.api.method_signature)": "security_settings,update_mask" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "patch": "/v3beta1/{security_settings.name=projects/*/locations/*/securitySettings/*}", - "body": "security_settings" - } - }, - { - "(google.api.method_signature)": "security_settings,update_mask" - } - ] + "returnPartialResponses": { + "type": "bool", + "id": 8 }, - "ListSecuritySettings": { - "requestType": "ListSecuritySettingsRequest", - "responseType": "ListSecuritySettingsResponse", - "options": { - "(google.api.http).get": "/v3beta1/{parent=projects/*/locations/*}/securitySettings", - "(google.api.method_signature)": "parent" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v3beta1/{parent=projects/*/locations/*}/securitySettings" - } + "tag": { + "type": "string", + "id": 3 + }, + "setParameterActions": { + "rule": "repeated", + "type": "SetParameterAction", + "id": 4 + }, + "conditionalCases": { + "rule": "repeated", + "type": "ConditionalCases", + "id": 5 + } + }, + "nested": { + "SetParameterAction": { + "fields": { + "parameter": { + "type": "string", + "id": 1 }, - { - "(google.api.method_signature)": "parent" + "value": { + "type": "google.protobuf.Value", + "id": 2 } - ] + } }, - "DeleteSecuritySettings": { - "requestType": "DeleteSecuritySettingsRequest", - "responseType": "google.protobuf.Empty", - "options": { - "(google.api.http).delete": "/v3beta1/{name=projects/*/locations/*/securitySettings/*}", - "(google.api.method_signature)": "name" + "ConditionalCases": { + "fields": { + "cases": { + "rule": "repeated", + "type": "Case", + "id": 1 + } }, - "parsedOptions": [ - { - "(google.api.http)": { - "delete": "/v3beta1/{name=projects/*/locations/*/securitySettings/*}" + "nested": { + "Case": { + "fields": { + "condition": { + "type": "string", + "id": 1 + }, + "caseContent": { + "rule": "repeated", + "type": "CaseContent", + "id": 2 + } + }, + "nested": { + "CaseContent": { + "oneofs": { + "casesOrMessage": { + "oneof": [ + "message", + "additionalCases" + ] + } + }, + "fields": { + "message": { + "type": "ResponseMessage", + "id": 1 + }, + "additionalCases": { + "type": "ConditionalCases", + "id": 2 + } + } + } } - }, - { - "(google.api.method_signature)": "name" } - ] - } - } - }, - "GetSecuritySettingsRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/SecuritySettings" } } } }, - "UpdateSecuritySettingsRequest": { + "ResponseMessage": { + "oneofs": { + "message": { + "oneof": [ + "text", + "payload", + "conversationSuccess", + "outputAudioText", + "liveAgentHandoff", + "endInteraction", + "playAudio", + "mixedAudio", + "telephonyTransferCall" + ] + } + }, "fields": { - "securitySettings": { - "type": "SecuritySettings", - "id": 1, + "text": { + "type": "Text", + "id": 1 + }, + "payload": { + "type": "google.protobuf.Struct", + "id": 2 + }, + "conversationSuccess": { + "type": "ConversationSuccess", + "id": 9 + }, + "outputAudioText": { + "type": "OutputAudioText", + "id": 8 + }, + "liveAgentHandoff": { + "type": "LiveAgentHandoff", + "id": 10 + }, + "endInteraction": { + "type": "EndInteraction", + "id": 11, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "updateMask": { - "type": "google.protobuf.FieldMask", - "id": 2, + "playAudio": { + "type": "PlayAudio", + "id": 12 + }, + "mixedAudio": { + "type": "MixedAudio", + "id": 13, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "telephonyTransferCall": { + "type": "TelephonyTransferCall", + "id": 18 } - } - }, - "ListSecuritySettingsRequest": { - "fields": { - "parent": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/SecuritySettings" + }, + "nested": { + "Text": { + "fields": { + "text": { + "rule": "repeated", + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "allowPlaybackInterruption": { + "type": "bool", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } } }, - "pageSize": { - "type": "int32", - "id": 2 + "LiveAgentHandoff": { + "fields": { + "metadata": { + "type": "google.protobuf.Struct", + "id": 1 + } + } }, - "pageToken": { - "type": "string", - "id": 3 - } - } - }, - "ListSecuritySettingsResponse": { - "fields": { - "securitySettings": { - "rule": "repeated", - "type": "SecuritySettings", - "id": 1 + "ConversationSuccess": { + "fields": { + "metadata": { + "type": "google.protobuf.Struct", + "id": 1 + } + } }, - "nextPageToken": { - "type": "string", - "id": 2 - } - } - }, - "CreateSecuritySettingsRequest": { - "fields": { - "parent": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/SecuritySettings" + "OutputAudioText": { + "oneofs": { + "source": { + "oneof": [ + "text", + "ssml" + ] + } + }, + "fields": { + "text": { + "type": "string", + "id": 1 + }, + "ssml": { + "type": "string", + "id": 2 + }, + "allowPlaybackInterruption": { + "type": "bool", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } } }, - "securitySettings": { - "type": "SecuritySettings", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" + "EndInteraction": { + "fields": {} + }, + "PlayAudio": { + "fields": { + "audioUri": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "allowPlaybackInterruption": { + "type": "bool", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } } - } - } - }, - "DeleteSecuritySettingsRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/SecuritySettings" + }, + "MixedAudio": { + "fields": { + "segments": { + "rule": "repeated", + "type": "Segment", + "id": 1 + } + }, + "nested": { + "Segment": { + "oneofs": { + "content": { + "oneof": [ + "audio", + "uri" + ] + } + }, + "fields": { + "audio": { + "type": "bytes", + "id": 1 + }, + "uri": { + "type": "string", + "id": 2 + }, + "allowPlaybackInterruption": { + "type": "bool", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + } + } + }, + "TelephonyTransferCall": { + "oneofs": { + "endpoint": { + "oneof": [ + "phoneNumber" + ] + } + }, + "fields": { + "phoneNumber": { + "type": "string", + "id": 1 + } } } } }, - "SecuritySettings": { - "options": { - "(google.api.resource).type": "dialogflow.googleapis.com/SecuritySettings", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/securitySettings/{security_settings}" - }, - "oneofs": { - "dataRetention": { - "oneof": [ - "retentionWindowDays" - ] - } - }, + "ValidationMessage": { "fields": { - "name": { - "type": "string", + "resourceType": { + "type": "ResourceType", "id": 1 }, - "displayName": { + "resources": { + "rule": "repeated", "type": "string", "id": 2, "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "redactionStrategy": { - "type": "RedactionStrategy", - "id": 3 - }, - "redactionScope": { - "type": "RedactionScope", - "id": 4 - }, - "inspectTemplate": { - "type": "string", - "id": 9, - "options": { - "(google.api.resource_reference).type": "dlp.googleapis.com/InspectTemplate" - } - }, - "deidentifyTemplate": { - "type": "string", - "id": 17, - "options": { - "(google.api.resource_reference).type": "dlp.googleapis.com/DeidentifyTemplate" + "deprecated": true } }, - "retentionWindowDays": { - "type": "int32", + "resourceNames": { + "rule": "repeated", + "type": "ResourceName", "id": 6 }, - "purgeDataTypes": { - "rule": "repeated", - "type": "PurgeDataType", - "id": 8 + "severity": { + "type": "Severity", + "id": 3 }, - "insightsExportSettings": { - "type": "InsightsExportSettings", - "id": 13 + "detail": { + "type": "string", + "id": 4 } }, "nested": { - "RedactionStrategy": { - "values": { - "REDACTION_STRATEGY_UNSPECIFIED": 0, - "REDACT_WITH_SERVICE": 1 - } - }, - "RedactionScope": { + "ResourceType": { "values": { - "REDACTION_SCOPE_UNSPECIFIED": 0, - "REDACT_DISK_STORAGE": 2 + "RESOURCE_TYPE_UNSPECIFIED": 0, + "AGENT": 1, + "INTENT": 2, + "INTENT_TRAINING_PHRASE": 8, + "INTENT_PARAMETER": 9, + "INTENTS": 10, + "INTENT_TRAINING_PHRASES": 11, + "ENTITY_TYPE": 3, + "ENTITY_TYPES": 12, + "WEBHOOK": 4, + "FLOW": 5, + "PAGE": 6, + "PAGES": 13, + "TRANSITION_ROUTE_GROUP": 7 } }, - "PurgeDataType": { + "Severity": { "values": { - "PURGE_DATA_TYPE_UNSPECIFIED": 0, - "DIALOGFLOW_HISTORY": 1 + "SEVERITY_UNSPECIFIED": 0, + "INFO": 1, + "WARNING": 2, + "ERROR": 3 } + } + } + }, + "ResourceName": { + "fields": { + "name": { + "type": "string", + "id": 1 }, - "InsightsExportSettings": { - "fields": { - "enableInsightsExport": { - "type": "bool", - "id": 1 - } - } + "displayName": { + "type": "string", + "id": 2 } } }, @@ -13437,23 +13152,23 @@ } } }, - "Webhooks": { + "Experiments": { "options": { "(google.api.default_host)": "dialogflow.googleapis.com", "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" }, "methods": { - "ListWebhooks": { - "requestType": "ListWebhooksRequest", - "responseType": "ListWebhooksResponse", + "ListExperiments": { + "requestType": "ListExperimentsRequest", + "responseType": "ListExperimentsResponse", "options": { - "(google.api.http).get": "/v3beta1/{parent=projects/*/locations/*/agents/*}/webhooks", + "(google.api.http).get": "/v3beta1/{parent=projects/*/locations/*/agents/*/environments/*}/experiments", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{parent=projects/*/locations/*/agents/*}/webhooks" + "get": "/v3beta1/{parent=projects/*/locations/*/agents/*/environments/*}/experiments" } }, { @@ -13461,17 +13176,17 @@ } ] }, - "GetWebhook": { - "requestType": "GetWebhookRequest", - "responseType": "Webhook", + "GetExperiment": { + "requestType": "GetExperimentRequest", + "responseType": "Experiment", "options": { - "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/agents/*/webhooks/*}", + "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{name=projects/*/locations/*/agents/*/webhooks/*}" + "get": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}" } }, { @@ -13479,57 +13194,97 @@ } ] }, - "CreateWebhook": { - "requestType": "CreateWebhookRequest", - "responseType": "Webhook", + "CreateExperiment": { + "requestType": "CreateExperimentRequest", + "responseType": "Experiment", "options": { - "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/webhooks", - "(google.api.http).body": "webhook", - "(google.api.method_signature)": "parent,webhook" + "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*/environments/*}/experiments", + "(google.api.http).body": "experiment", + "(google.api.method_signature)": "parent,experiment" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/webhooks", - "body": "webhook" + "post": "/v3beta1/{parent=projects/*/locations/*/agents/*/environments/*}/experiments", + "body": "experiment" } }, { - "(google.api.method_signature)": "parent,webhook" + "(google.api.method_signature)": "parent,experiment" } ] }, - "UpdateWebhook": { - "requestType": "UpdateWebhookRequest", - "responseType": "Webhook", + "UpdateExperiment": { + "requestType": "UpdateExperimentRequest", + "responseType": "Experiment", "options": { - "(google.api.http).patch": "/v3beta1/{webhook.name=projects/*/locations/*/agents/*/webhooks/*}", - "(google.api.http).body": "webhook", - "(google.api.method_signature)": "webhook,update_mask" + "(google.api.http).patch": "/v3beta1/{experiment.name=projects/*/locations/*/agents/*/environments/*/experiments/*}", + "(google.api.http).body": "experiment", + "(google.api.method_signature)": "experiment,update_mask" }, "parsedOptions": [ { "(google.api.http)": { - "patch": "/v3beta1/{webhook.name=projects/*/locations/*/agents/*/webhooks/*}", - "body": "webhook" + "patch": "/v3beta1/{experiment.name=projects/*/locations/*/agents/*/environments/*/experiments/*}", + "body": "experiment" } }, { - "(google.api.method_signature)": "webhook,update_mask" + "(google.api.method_signature)": "experiment,update_mask" } ] }, - "DeleteWebhook": { - "requestType": "DeleteWebhookRequest", + "DeleteExperiment": { + "requestType": "DeleteExperimentRequest", "responseType": "google.protobuf.Empty", "options": { - "(google.api.http).delete": "/v3beta1/{name=projects/*/locations/*/agents/*/webhooks/*}", + "(google.api.http).delete": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "delete": "/v3beta1/{name=projects/*/locations/*/agents/*/webhooks/*}" + "delete": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "StartExperiment": { + "requestType": "StartExperimentRequest", + "responseType": "Experiment", + "options": { + "(google.api.http).post": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:start", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:start", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "StopExperiment": { + "requestType": "StopExperimentRequest", + "responseType": "Experiment", + "options": { + "(google.api.http).post": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:stop", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:stop", + "body": "*" } }, { @@ -13539,113 +13294,318 @@ } } }, - "Webhook": { + "Experiment": { "options": { - "(google.api.resource).type": "dialogflow.googleapis.com/Webhook", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/webhooks/{webhook}" - }, - "oneofs": { - "webhook": { - "oneof": [ - "genericWebService", - "serviceDirectory" - ] - } + "(google.api.resource).type": "dialogflow.googleapis.com/Experiment", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/experiments/{experiment}" }, "fields": { "name": { "type": "string", "id": 1 }, - "displayName": { + "displayName": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "description": { + "type": "string", + "id": 3 + }, + "state": { + "type": "State", + "id": 4 + }, + "definition": { + "type": "Definition", + "id": 5 + }, + "rolloutConfig": { + "type": "RolloutConfig", + "id": 14 + }, + "rolloutState": { + "type": "RolloutState", + "id": 15 + }, + "rolloutFailureReason": { "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } + "id": 16 }, - "genericWebService": { - "type": "GenericWebService", - "id": 4 + "result": { + "type": "Result", + "id": 6 }, - "serviceDirectory": { - "type": "ServiceDirectoryConfig", + "createTime": { + "type": "google.protobuf.Timestamp", "id": 7 }, - "timeout": { + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 8 + }, + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 9 + }, + "lastUpdateTime": { + "type": "google.protobuf.Timestamp", + "id": 10 + }, + "experimentLength": { "type": "google.protobuf.Duration", - "id": 6 + "id": 11 }, - "disabled": { - "type": "bool", - "id": 5 + "variantsHistory": { + "rule": "repeated", + "type": "VariantsHistory", + "id": 12 } }, "nested": { - "GenericWebService": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "DRAFT": 1, + "RUNNING": 2, + "DONE": 3, + "ROLLOUT_FAILED": 4 + } + }, + "Definition": { + "oneofs": { + "variants": { + "oneof": [ + "versionVariants" + ] + } + }, "fields": { - "uri": { + "condition": { "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" + "id": 1 + }, + "versionVariants": { + "type": "VersionVariants", + "id": 2 + } + } + }, + "Result": { + "fields": { + "versionMetrics": { + "rule": "repeated", + "type": "VersionMetrics", + "id": 1 + }, + "lastUpdateTime": { + "type": "google.protobuf.Timestamp", + "id": 2 + } + }, + "nested": { + "MetricType": { + "values": { + "METRIC_UNSPECIFIED": 0, + "CONTAINED_SESSION_NO_CALLBACK_RATE": 1, + "LIVE_AGENT_HANDOFF_RATE": 2, + "CALLBACK_SESSION_RATE": 3, + "ABANDONED_SESSION_RATE": 4, + "SESSION_END_RATE": 5 } }, - "username": { - "type": "string", - "id": 2, - "options": { - "deprecated": true + "CountType": { + "values": { + "COUNT_TYPE_UNSPECIFIED": 0, + "TOTAL_NO_MATCH_COUNT": 1, + "TOTAL_TURN_COUNT": 2, + "AVERAGE_TURN_COUNT": 3 } }, - "password": { - "type": "string", - "id": 3, - "options": { - "deprecated": true + "ConfidenceInterval": { + "fields": { + "confidenceLevel": { + "type": "double", + "id": 1 + }, + "ratio": { + "type": "double", + "id": 2 + }, + "lowerBound": { + "type": "double", + "id": 3 + }, + "upperBound": { + "type": "double", + "id": 4 + } } }, - "requestHeaders": { - "keyType": "string", - "type": "string", - "id": 4 + "Metric": { + "oneofs": { + "value": { + "oneof": [ + "ratio", + "count" + ] + } + }, + "fields": { + "type": { + "type": "MetricType", + "id": 1 + }, + "countType": { + "type": "CountType", + "id": 5 + }, + "ratio": { + "type": "double", + "id": 2 + }, + "count": { + "type": "double", + "id": 4 + }, + "confidenceInterval": { + "type": "ConfidenceInterval", + "id": 3 + } + } }, - "allowedCaCerts": { - "rule": "repeated", - "type": "bytes", - "id": 5, - "options": { - "(google.api.field_behavior)": "OPTIONAL" + "VersionMetrics": { + "fields": { + "version": { + "type": "string", + "id": 1, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" + } + }, + "metrics": { + "rule": "repeated", + "type": "Metric", + "id": 2 + }, + "sessionCount": { + "type": "int32", + "id": 3 + } } } } + } + } + }, + "VersionVariants": { + "fields": { + "variants": { + "rule": "repeated", + "type": "Variant", + "id": 1 + } + }, + "nested": { + "Variant": { + "fields": { + "version": { + "type": "string", + "id": 1 + }, + "trafficAllocation": { + "type": "float", + "id": 2 + }, + "isControlGroup": { + "type": "bool", + "id": 3 + } + } + } + } + }, + "RolloutConfig": { + "fields": { + "rolloutSteps": { + "rule": "repeated", + "type": "RolloutStep", + "id": 1 }, - "ServiceDirectoryConfig": { + "rolloutCondition": { + "type": "string", + "id": 2 + }, + "failureCondition": { + "type": "string", + "id": 3 + } + }, + "nested": { + "RolloutStep": { "fields": { - "service": { + "displayName": { "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "servicedirectory.googleapis.com/Service" - } + "id": 1 }, - "genericWebService": { - "type": "GenericWebService", + "trafficPercent": { + "type": "int32", "id": 2 + }, + "minDuration": { + "type": "google.protobuf.Duration", + "id": 3 } } } } }, - "ListWebhooksRequest": { + "RolloutState": { + "fields": { + "step": { + "type": "string", + "id": 1 + }, + "stepIndex": { + "type": "int32", + "id": 3 + }, + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 2 + } + } + }, + "VariantsHistory": { + "oneofs": { + "variants": { + "oneof": [ + "versionVariants" + ] + } + }, + "fields": { + "versionVariants": { + "type": "VersionVariants", + "id": 1 + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 2 + } + } + }, + "ListExperimentsRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Webhook" + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Experiment" } }, "pageSize": { @@ -13658,11 +13618,11 @@ } } }, - "ListWebhooksResponse": { + "ListExperimentsResponse": { "fields": { - "webhooks": { + "experiments": { "rule": "repeated", - "type": "Webhook", + "type": "Experiment", "id": 1 }, "nextPageToken": { @@ -13671,30 +13631,30 @@ } } }, - "GetWebhookRequest": { + "GetExperimentRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Webhook" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" } } } }, - "CreateWebhookRequest": { + "CreateExperimentRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Webhook" + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Experiment" } }, - "webhook": { - "type": "Webhook", + "experiment": { + "type": "Experiment", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -13702,10 +13662,10 @@ } } }, - "UpdateWebhookRequest": { + "UpdateExperimentRequest": { "fields": { - "webhook": { - "type": "Webhook", + "experiment": { + "type": "Experiment", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -13713,321 +13673,351 @@ }, "updateMask": { "type": "google.protobuf.FieldMask", - "id": 2 + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "DeleteWebhookRequest": { + "DeleteExperimentRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Webhook" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" } - }, - "force": { - "type": "bool", - "id": 2 } } }, - "WebhookRequest": { - "oneofs": { - "query": { - "oneof": [ - "text", - "triggerIntent", - "transcript", - "triggerEvent" - ] - } - }, + "StartExperimentRequest": { "fields": { - "detectIntentResponseId": { - "type": "string", - "id": 1 - }, - "text": { - "type": "string", - "id": 10 - }, - "triggerIntent": { + "name": { "type": "string", - "id": 11, + "id": 1, "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Intent" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" } - }, - "transcript": { - "type": "string", - "id": 12 - }, - "triggerEvent": { - "type": "string", - "id": 14 - }, - "languageCode": { + } + } + }, + "StopExperimentRequest": { + "fields": { + "name": { "type": "string", - "id": 15 - }, - "fulfillmentInfo": { - "type": "FulfillmentInfo", - "id": 6 - }, - "intentInfo": { - "type": "IntentInfo", - "id": 3 - }, - "pageInfo": { - "type": "PageInfo", - "id": 4 - }, - "sessionInfo": { - "type": "SessionInfo", - "id": 5 - }, - "messages": { - "rule": "repeated", - "type": "ResponseMessage", - "id": 7 - }, - "payload": { - "type": "google.protobuf.Struct", - "id": 8 - }, - "sentimentAnalysisResult": { - "type": "SentimentAnalysisResult", - "id": 9 + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" + } } + } + }, + "SecuritySettingsService": { + "options": { + "(google.api.default_host)": "dialogflow.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" }, - "nested": { - "FulfillmentInfo": { - "fields": { - "tag": { - "type": "string", - "id": 1 + "methods": { + "CreateSecuritySettings": { + "requestType": "CreateSecuritySettingsRequest", + "responseType": "SecuritySettings", + "options": { + "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*}/securitySettings", + "(google.api.http).body": "security_settings", + "(google.api.method_signature)": "parent,security_settings" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v3beta1/{parent=projects/*/locations/*}/securitySettings", + "body": "security_settings" + } + }, + { + "(google.api.method_signature)": "parent,security_settings" } - } + ] }, - "IntentInfo": { - "fields": { - "lastMatchedIntent": { - "type": "string", - "id": 1, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Intent" + "GetSecuritySettings": { + "requestType": "GetSecuritySettingsRequest", + "responseType": "SecuritySettings", + "options": { + "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/securitySettings/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v3beta1/{name=projects/*/locations/*/securitySettings/*}" } }, - "displayName": { - "type": "string", - "id": 3 - }, - "parameters": { - "keyType": "string", - "type": "IntentParameterValue", - "id": 2 - }, - "confidence": { - "type": "float", - "id": 4 + { + "(google.api.method_signature)": "name" } + ] + }, + "UpdateSecuritySettings": { + "requestType": "UpdateSecuritySettingsRequest", + "responseType": "SecuritySettings", + "options": { + "(google.api.http).patch": "/v3beta1/{security_settings.name=projects/*/locations/*/securitySettings/*}", + "(google.api.http).body": "security_settings", + "(google.api.method_signature)": "security_settings,update_mask" }, - "nested": { - "IntentParameterValue": { - "fields": { - "originalValue": { - "type": "string", - "id": 1 - }, - "resolvedValue": { - "type": "google.protobuf.Value", - "id": 2 - } + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v3beta1/{security_settings.name=projects/*/locations/*/securitySettings/*}", + "body": "security_settings" + } + }, + { + "(google.api.method_signature)": "security_settings,update_mask" + } + ] + }, + "ListSecuritySettings": { + "requestType": "ListSecuritySettingsRequest", + "responseType": "ListSecuritySettingsResponse", + "options": { + "(google.api.http).get": "/v3beta1/{parent=projects/*/locations/*}/securitySettings", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v3beta1/{parent=projects/*/locations/*}/securitySettings" } + }, + { + "(google.api.method_signature)": "parent" } - } + ] }, - "SentimentAnalysisResult": { - "fields": { - "score": { - "type": "float", - "id": 1 + "DeleteSecuritySettings": { + "requestType": "DeleteSecuritySettingsRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v3beta1/{name=projects/*/locations/*/securitySettings/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v3beta1/{name=projects/*/locations/*/securitySettings/*}" + } }, - "magnitude": { - "type": "float", - "id": 2 + { + "(google.api.method_signature)": "name" } + ] + } + } + }, + "GetSecuritySettingsRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/SecuritySettings" } } } }, - "WebhookResponse": { - "oneofs": { - "transition": { - "oneof": [ - "targetPage", - "targetFlow" - ] + "UpdateSecuritySettingsRequest": { + "fields": { + "securitySettings": { + "type": "SecuritySettings", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } - }, + } + }, + "ListSecuritySettingsRequest": { "fields": { - "fulfillmentResponse": { - "type": "FulfillmentResponse", - "id": 1 + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/SecuritySettings" + } }, - "pageInfo": { - "type": "PageInfo", + "pageSize": { + "type": "int32", "id": 2 }, - "sessionInfo": { - "type": "SessionInfo", + "pageToken": { + "type": "string", "id": 3 + } + } + }, + "ListSecuritySettingsResponse": { + "fields": { + "securitySettings": { + "rule": "repeated", + "type": "SecuritySettings", + "id": 1 }, - "payload": { - "type": "google.protobuf.Struct", - "id": 4 - }, - "targetPage": { + "nextPageToken": { "type": "string", - "id": 5, + "id": 2 + } + } + }, + "CreateSecuritySettingsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Page" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/SecuritySettings" } }, - "targetFlow": { - "type": "string", - "id": 6, + "securitySettings": { + "type": "SecuritySettings", + "id": 2, "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Flow" - } - } - }, - "nested": { - "FulfillmentResponse": { - "fields": { - "messages": { - "rule": "repeated", - "type": "ResponseMessage", - "id": 1 - }, - "mergeBehavior": { - "type": "MergeBehavior", - "id": 2 - } - }, - "nested": { - "MergeBehavior": { - "values": { - "MERGE_BEHAVIOR_UNSPECIFIED": 0, - "APPEND": 1, - "REPLACE": 2 - } - } + "(google.api.field_behavior)": "REQUIRED" } } } }, - "PageInfo": { + "DeleteSecuritySettingsRequest": { "fields": { - "currentPage": { + "name": { "type": "string", "id": 1, "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Page" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/SecuritySettings" } + } + } + }, + "SecuritySettings": { + "options": { + "(google.api.resource).type": "dialogflow.googleapis.com/SecuritySettings", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/securitySettings/{security_settings}" + }, + "oneofs": { + "dataRetention": { + "oneof": [ + "retentionWindowDays" + ] + } + }, + "fields": { + "name": { + "type": "string", + "id": 1 }, "displayName": { "type": "string", - "id": 4 + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, - "formInfo": { - "type": "FormInfo", + "redactionStrategy": { + "type": "RedactionStrategy", "id": 3 - } - }, - "nested": { - "FormInfo": { - "fields": { - "parameterInfo": { - "rule": "repeated", - "type": "ParameterInfo", - "id": 2 - } - }, - "nested": { - "ParameterInfo": { - "fields": { - "displayName": { - "type": "string", - "id": 1 - }, - "required": { - "type": "bool", - "id": 2 - }, - "state": { - "type": "ParameterState", - "id": 3 - }, - "value": { - "type": "google.protobuf.Value", - "id": 4 - }, - "justCollected": { - "type": "bool", - "id": 5 - } - }, - "nested": { - "ParameterState": { - "values": { - "PARAMETER_STATE_UNSPECIFIED": 0, - "EMPTY": 1, - "INVALID": 2, - "FILLED": 3 - } - } - } - } + }, + "redactionScope": { + "type": "RedactionScope", + "id": 4 + }, + "inspectTemplate": { + "type": "string", + "id": 9, + "options": { + "(google.api.resource_reference).type": "dlp.googleapis.com/InspectTemplate" + } + }, + "deidentifyTemplate": { + "type": "string", + "id": 17, + "options": { + "(google.api.resource_reference).type": "dlp.googleapis.com/DeidentifyTemplate" } + }, + "retentionWindowDays": { + "type": "int32", + "id": 6 + }, + "purgeDataTypes": { + "rule": "repeated", + "type": "PurgeDataType", + "id": 8 + }, + "insightsExportSettings": { + "type": "InsightsExportSettings", + "id": 13 } - } - }, - "SessionInfo": { - "fields": { - "session": { - "type": "string", - "id": 1, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Session" + }, + "nested": { + "RedactionStrategy": { + "values": { + "REDACTION_STRATEGY_UNSPECIFIED": 0, + "REDACT_WITH_SERVICE": 1 } }, - "parameters": { - "keyType": "string", - "type": "google.protobuf.Value", - "id": 2 + "RedactionScope": { + "values": { + "REDACTION_SCOPE_UNSPECIFIED": 0, + "REDACT_DISK_STORAGE": 2 + } + }, + "PurgeDataType": { + "values": { + "PURGE_DATA_TYPE_UNSPECIFIED": 0, + "DIALOGFLOW_HISTORY": 1 + } + }, + "InsightsExportSettings": { + "fields": { + "enableInsightsExport": { + "type": "bool", + "id": 1 + } + } } } }, - "Experiments": { + "Versions": { "options": { "(google.api.default_host)": "dialogflow.googleapis.com", "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" }, "methods": { - "ListExperiments": { - "requestType": "ListExperimentsRequest", - "responseType": "ListExperimentsResponse", + "ListVersions": { + "requestType": "ListVersionsRequest", + "responseType": "ListVersionsResponse", "options": { - "(google.api.http).get": "/v3beta1/{parent=projects/*/locations/*/agents/*/environments/*}/experiments", + "(google.api.http).get": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/versions", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{parent=projects/*/locations/*/agents/*/environments/*}/experiments" + "get": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/versions" } }, { @@ -14035,17 +14025,17 @@ } ] }, - "GetExperiment": { - "requestType": "GetExperimentRequest", - "responseType": "Experiment", + "GetVersion": { + "requestType": "GetVersionRequest", + "responseType": "Version", "options": { - "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}", + "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/versions/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}" + "get": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/versions/*}" } }, { @@ -14053,418 +14043,195 @@ } ] }, - "CreateExperiment": { - "requestType": "CreateExperimentRequest", - "responseType": "Experiment", - "options": { - "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*/environments/*}/experiments", - "(google.api.http).body": "experiment", - "(google.api.method_signature)": "parent,experiment" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v3beta1/{parent=projects/*/locations/*/agents/*/environments/*}/experiments", - "body": "experiment" - } - }, - { - "(google.api.method_signature)": "parent,experiment" - } - ] - }, - "UpdateExperiment": { - "requestType": "UpdateExperimentRequest", - "responseType": "Experiment", - "options": { - "(google.api.http).patch": "/v3beta1/{experiment.name=projects/*/locations/*/agents/*/environments/*/experiments/*}", - "(google.api.http).body": "experiment", - "(google.api.method_signature)": "experiment,update_mask" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "patch": "/v3beta1/{experiment.name=projects/*/locations/*/agents/*/environments/*/experiments/*}", - "body": "experiment" - } - }, - { - "(google.api.method_signature)": "experiment,update_mask" - } - ] - }, - "DeleteExperiment": { - "requestType": "DeleteExperimentRequest", - "responseType": "google.protobuf.Empty", + "CreateVersion": { + "requestType": "CreateVersionRequest", + "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).delete": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}", - "(google.api.method_signature)": "name" + "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/versions", + "(google.api.http).body": "version", + "(google.api.method_signature)": "parent,version", + "(google.longrunning.operation_info).response_type": "Version", + "(google.longrunning.operation_info).metadata_type": "CreateVersionOperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { - "delete": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}" + "post": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/versions", + "body": "version" } }, { - "(google.api.method_signature)": "name" - } - ] - }, - "StartExperiment": { - "requestType": "StartExperimentRequest", - "responseType": "Experiment", - "options": { - "(google.api.http).post": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:start", - "(google.api.http).body": "*", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:start", - "body": "*" - } + "(google.api.method_signature)": "parent,version" }, { - "(google.api.method_signature)": "name" - } - ] - }, - "StopExperiment": { - "requestType": "StopExperimentRequest", - "responseType": "Experiment", - "options": { - "(google.api.http).post": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:stop", - "(google.api.http).body": "*", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:stop", - "body": "*" + "(google.longrunning.operation_info)": { + "response_type": "Version", + "metadata_type": "CreateVersionOperationMetadata" } - }, - { - "(google.api.method_signature)": "name" } ] - } - } - }, - "Experiment": { - "options": { - "(google.api.resource).type": "dialogflow.googleapis.com/Experiment", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/experiments/{experiment}" - }, - "fields": { - "name": { - "type": "string", - "id": 1 }, - "displayName": { - "type": "string", - "id": 2, + "UpdateVersion": { + "requestType": "UpdateVersionRequest", + "responseType": "Version", "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "description": { - "type": "string", - "id": 3 - }, - "state": { - "type": "State", - "id": 4 - }, - "definition": { - "type": "Definition", - "id": 5 - }, - "rolloutConfig": { - "type": "RolloutConfig", - "id": 14 - }, - "rolloutState": { - "type": "RolloutState", - "id": 15 - }, - "rolloutFailureReason": { - "type": "string", - "id": 16 - }, - "result": { - "type": "Result", - "id": 6 - }, - "createTime": { - "type": "google.protobuf.Timestamp", - "id": 7 - }, - "startTime": { - "type": "google.protobuf.Timestamp", - "id": 8 - }, - "endTime": { - "type": "google.protobuf.Timestamp", - "id": 9 - }, - "lastUpdateTime": { - "type": "google.protobuf.Timestamp", - "id": 10 - }, - "experimentLength": { - "type": "google.protobuf.Duration", - "id": 11 - }, - "variantsHistory": { - "rule": "repeated", - "type": "VariantsHistory", - "id": 12 - } - }, - "nested": { - "State": { - "values": { - "STATE_UNSPECIFIED": 0, - "DRAFT": 1, - "RUNNING": 2, - "DONE": 3, - "ROLLOUT_FAILED": 4 - } - }, - "Definition": { - "oneofs": { - "variants": { - "oneof": [ - "versionVariants" - ] - } + "(google.api.http).patch": "/v3beta1/{version.name=projects/*/locations/*/agents/*/flows/*/versions/*}", + "(google.api.http).body": "version", + "(google.api.method_signature)": "version,update_mask" }, - "fields": { - "condition": { - "type": "string", - "id": 1 + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v3beta1/{version.name=projects/*/locations/*/agents/*/flows/*/versions/*}", + "body": "version" + } }, - "versionVariants": { - "type": "VersionVariants", - "id": 2 + { + "(google.api.method_signature)": "version,update_mask" } - } + ] }, - "Result": { - "fields": { - "versionMetrics": { - "rule": "repeated", - "type": "VersionMetrics", - "id": 1 + "DeleteVersion": { + "requestType": "DeleteVersionRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/versions/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/versions/*}" + } }, - "lastUpdateTime": { - "type": "google.protobuf.Timestamp", - "id": 2 + { + "(google.api.method_signature)": "name" } + ] + }, + "LoadVersion": { + "requestType": "LoadVersionRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/versions/*}:load", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name", + "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", + "(google.longrunning.operation_info).metadata_type": "google.protobuf.Struct" }, - "nested": { - "MetricType": { - "values": { - "METRIC_UNSPECIFIED": 0, - "CONTAINED_SESSION_NO_CALLBACK_RATE": 1, - "LIVE_AGENT_HANDOFF_RATE": 2, - "CALLBACK_SESSION_RATE": 3, - "ABANDONED_SESSION_RATE": 4, - "SESSION_END_RATE": 5 + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/versions/*}:load", + "body": "*" } }, - "CountType": { - "values": { - "COUNT_TYPE_UNSPECIFIED": 0, - "TOTAL_NO_MATCH_COUNT": 1, - "TOTAL_TURN_COUNT": 2, - "AVERAGE_TURN_COUNT": 3 - } + { + "(google.api.method_signature)": "name" }, - "ConfidenceInterval": { - "fields": { - "confidenceLevel": { - "type": "double", - "id": 1 - }, - "ratio": { - "type": "double", - "id": 2 - }, - "lowerBound": { - "type": "double", - "id": 3 - }, - "upperBound": { - "type": "double", - "id": 4 - } + { + "(google.longrunning.operation_info)": { + "response_type": "google.protobuf.Empty", + "metadata_type": "google.protobuf.Struct" } - }, - "Metric": { - "oneofs": { - "value": { - "oneof": [ - "ratio", - "count" - ] - } - }, - "fields": { - "type": { - "type": "MetricType", - "id": 1 - }, - "countType": { - "type": "CountType", - "id": 5 - }, - "ratio": { - "type": "double", - "id": 2 - }, - "count": { - "type": "double", - "id": 4 - }, - "confidenceInterval": { - "type": "ConfidenceInterval", - "id": 3 - } + } + ] + }, + "CompareVersions": { + "requestType": "CompareVersionsRequest", + "responseType": "CompareVersionsResponse", + "options": { + "(google.api.http).post": "/v3beta1/{base_version=projects/*/locations/*/agents/*/flows/*/versions/*}:compareVersions", + "(google.api.http).body": "*", + "(google.api.method_signature)": "base_version" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v3beta1/{base_version=projects/*/locations/*/agents/*/flows/*/versions/*}:compareVersions", + "body": "*" } }, - "VersionMetrics": { - "fields": { - "version": { - "type": "string", - "id": 1, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" - } - }, - "metrics": { - "rule": "repeated", - "type": "Metric", - "id": 2 - }, - "sessionCount": { - "type": "int32", - "id": 3 - } - } + { + "(google.api.method_signature)": "base_version" } - } + ] } } }, - "VersionVariants": { + "CreateVersionOperationMetadata": { "fields": { - "variants": { - "rule": "repeated", - "type": "Variant", - "id": 1 - } - }, - "nested": { - "Variant": { - "fields": { - "version": { - "type": "string", - "id": 1 - }, - "trafficAllocation": { - "type": "float", - "id": 2 - }, - "isControlGroup": { - "type": "bool", - "id": 3 - } + "version": { + "type": "string", + "id": 1, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" } } } }, - "RolloutConfig": { + "Version": { + "options": { + "(google.api.resource).type": "dialogflow.googleapis.com/Version", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/versions/{version}" + }, "fields": { - "rolloutSteps": { - "rule": "repeated", - "type": "RolloutStep", + "name": { + "type": "string", "id": 1 }, - "rolloutCondition": { + "displayName": { "type": "string", - "id": 2 + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, - "failureCondition": { + "description": { "type": "string", "id": 3 - } - }, - "nested": { - "RolloutStep": { - "fields": { - "displayName": { - "type": "string", - "id": 1 - }, - "trafficPercent": { - "type": "int32", - "id": 2 - }, - "minDuration": { - "type": "google.protobuf.Duration", - "id": 3 - } + }, + "nluSettings": { + "type": "NluSettings", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" } - } - } - }, - "RolloutState": { - "fields": { - "step": { - "type": "string", - "id": 1 }, - "stepIndex": { - "type": "int32", - "id": 3 + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, - "startTime": { - "type": "google.protobuf.Timestamp", - "id": 2 - } - } - }, - "VariantsHistory": { - "oneofs": { - "variants": { - "oneof": [ - "versionVariants" - ] + "state": { + "type": "State", + "id": 6, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } }, - "fields": { - "versionVariants": { - "type": "VersionVariants", - "id": 1 - }, - "updateTime": { - "type": "google.protobuf.Timestamp", - "id": 2 + "nested": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "RUNNING": 1, + "SUCCEEDED": 2, + "FAILED": 3 + } } } }, - "ListExperimentsRequest": { + "ListVersionsRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Experiment" + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Version" } }, "pageSize": { @@ -14477,11 +14244,11 @@ } } }, - "ListExperimentsResponse": { + "ListVersionsResponse": { "fields": { - "experiments": { + "versions": { "rule": "repeated", - "type": "Experiment", + "type": "Version", "id": 1 }, "nextPageToken": { @@ -14490,30 +14257,30 @@ } } }, - "GetExperimentRequest": { + "GetVersionRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" } } } }, - "CreateExperimentRequest": { + "CreateVersionRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Experiment" + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Version" } }, - "experiment": { - "type": "Experiment", + "version": { + "type": "Version", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -14521,10 +14288,10 @@ } } }, - "UpdateExperimentRequest": { + "UpdateVersionRequest": { "fields": { - "experiment": { - "type": "Experiment", + "version": { + "type": "Version", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -14539,59 +14306,91 @@ } } }, - "DeleteExperimentRequest": { + "DeleteVersionRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" } } } }, - "StartExperimentRequest": { + "LoadVersionRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" } + }, + "allowOverrideAgentResources": { + "type": "bool", + "id": 2 } } }, - "StopExperimentRequest": { + "CompareVersionsRequest": { "fields": { - "name": { + "baseVersion": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" + } + }, + "targetVersion": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" } + }, + "languageCode": { + "type": "string", + "id": 3 } } }, - "Versions": { + "CompareVersionsResponse": { + "fields": { + "baseVersionContentJson": { + "type": "string", + "id": 1 + }, + "targetVersionContentJson": { + "type": "string", + "id": 2 + }, + "compareTime": { + "type": "google.protobuf.Timestamp", + "id": 3 + } + } + }, + "Webhooks": { "options": { "(google.api.default_host)": "dialogflow.googleapis.com", "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" }, "methods": { - "ListVersions": { - "requestType": "ListVersionsRequest", - "responseType": "ListVersionsResponse", + "ListWebhooks": { + "requestType": "ListWebhooksRequest", + "responseType": "ListWebhooksResponse", "options": { - "(google.api.http).get": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/versions", + "(google.api.http).get": "/v3beta1/{parent=projects/*/locations/*/agents/*}/webhooks", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/versions" + "get": "/v3beta1/{parent=projects/*/locations/*/agents/*}/webhooks" } }, { @@ -14599,17 +14398,17 @@ } ] }, - "GetVersion": { - "requestType": "GetVersionRequest", - "responseType": "Version", + "GetWebhook": { + "requestType": "GetWebhookRequest", + "responseType": "Webhook", "options": { - "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/versions/*}", + "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/agents/*/webhooks/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/versions/*}" + "get": "/v3beta1/{name=projects/*/locations/*/agents/*/webhooks/*}" } }, { @@ -14617,137 +14416,78 @@ } ] }, - "CreateVersion": { - "requestType": "CreateVersionRequest", - "responseType": "google.longrunning.Operation", + "CreateWebhook": { + "requestType": "CreateWebhookRequest", + "responseType": "Webhook", "options": { - "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/versions", - "(google.api.http).body": "version", - "(google.api.method_signature)": "parent,version", - "(google.longrunning.operation_info).response_type": "Version", - "(google.longrunning.operation_info).metadata_type": "CreateVersionOperationMetadata" + "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/webhooks", + "(google.api.http).body": "webhook", + "(google.api.method_signature)": "parent,webhook" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/versions", - "body": "version" + "post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/webhooks", + "body": "webhook" } }, { - "(google.api.method_signature)": "parent,version" - }, - { - "(google.longrunning.operation_info)": { - "response_type": "Version", - "metadata_type": "CreateVersionOperationMetadata" - } + "(google.api.method_signature)": "parent,webhook" } ] }, - "UpdateVersion": { - "requestType": "UpdateVersionRequest", - "responseType": "Version", + "UpdateWebhook": { + "requestType": "UpdateWebhookRequest", + "responseType": "Webhook", "options": { - "(google.api.http).patch": "/v3beta1/{version.name=projects/*/locations/*/agents/*/flows/*/versions/*}", - "(google.api.http).body": "version", - "(google.api.method_signature)": "version,update_mask" + "(google.api.http).patch": "/v3beta1/{webhook.name=projects/*/locations/*/agents/*/webhooks/*}", + "(google.api.http).body": "webhook", + "(google.api.method_signature)": "webhook,update_mask" }, "parsedOptions": [ { "(google.api.http)": { - "patch": "/v3beta1/{version.name=projects/*/locations/*/agents/*/flows/*/versions/*}", - "body": "version" + "patch": "/v3beta1/{webhook.name=projects/*/locations/*/agents/*/webhooks/*}", + "body": "webhook" } }, { - "(google.api.method_signature)": "version,update_mask" + "(google.api.method_signature)": "webhook,update_mask" } ] }, - "DeleteVersion": { - "requestType": "DeleteVersionRequest", + "DeleteWebhook": { + "requestType": "DeleteWebhookRequest", "responseType": "google.protobuf.Empty", "options": { - "(google.api.http).delete": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/versions/*}", + "(google.api.http).delete": "/v3beta1/{name=projects/*/locations/*/agents/*/webhooks/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "delete": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/versions/*}" - } - }, - { - "(google.api.method_signature)": "name" - } - ] - }, - "LoadVersion": { - "requestType": "LoadVersionRequest", - "responseType": "google.longrunning.Operation", - "options": { - "(google.api.http).post": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/versions/*}:load", - "(google.api.http).body": "*", - "(google.api.method_signature)": "name", - "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", - "(google.longrunning.operation_info).metadata_type": "google.protobuf.Struct" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/versions/*}:load", - "body": "*" + "delete": "/v3beta1/{name=projects/*/locations/*/agents/*/webhooks/*}" } }, { "(google.api.method_signature)": "name" - }, - { - "(google.longrunning.operation_info)": { - "response_type": "google.protobuf.Empty", - "metadata_type": "google.protobuf.Struct" - } - } - ] - }, - "CompareVersions": { - "requestType": "CompareVersionsRequest", - "responseType": "CompareVersionsResponse", - "options": { - "(google.api.http).post": "/v3beta1/{base_version=projects/*/locations/*/agents/*/flows/*/versions/*}:compareVersions", - "(google.api.http).body": "*", - "(google.api.method_signature)": "base_version" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v3beta1/{base_version=projects/*/locations/*/agents/*/flows/*/versions/*}:compareVersions", - "body": "*" - } - }, - { - "(google.api.method_signature)": "base_version" } ] } } }, - "CreateVersionOperationMetadata": { - "fields": { - "version": { - "type": "string", - "id": 1, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" - } - } - } - }, - "Version": { + "Webhook": { "options": { - "(google.api.resource).type": "dialogflow.googleapis.com/Version", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/versions/{version}" + "(google.api.resource).type": "dialogflow.googleapis.com/Webhook", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/webhooks/{webhook}" + }, + "oneofs": { + "webhook": { + "oneof": [ + "genericWebService", + "serviceDirectory" + ] + } }, "fields": { "name": { @@ -14761,51 +14501,88 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "description": { - "type": "string", - "id": 3 + "genericWebService": { + "type": "GenericWebService", + "id": 4 }, - "nluSettings": { - "type": "NluSettings", - "id": 4, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } + "serviceDirectory": { + "type": "ServiceDirectoryConfig", + "id": 7 }, - "createTime": { - "type": "google.protobuf.Timestamp", - "id": 5, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } + "timeout": { + "type": "google.protobuf.Duration", + "id": 6 }, - "state": { - "type": "State", - "id": 6, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } + "disabled": { + "type": "bool", + "id": 5 } }, "nested": { - "State": { - "values": { - "STATE_UNSPECIFIED": 0, - "RUNNING": 1, - "SUCCEEDED": 2, - "FAILED": 3 + "GenericWebService": { + "fields": { + "uri": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "username": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } + }, + "password": { + "type": "string", + "id": 3, + "options": { + "deprecated": true + } + }, + "requestHeaders": { + "keyType": "string", + "type": "string", + "id": 4 + }, + "allowedCaCerts": { + "rule": "repeated", + "type": "bytes", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "ServiceDirectoryConfig": { + "fields": { + "service": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "servicedirectory.googleapis.com/Service" + } + }, + "genericWebService": { + "type": "GenericWebService", + "id": 2 + } } } } }, - "ListVersionsRequest": { + "ListWebhooksRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Version" + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Webhook" } }, "pageSize": { @@ -14818,11 +14595,11 @@ } } }, - "ListVersionsResponse": { + "ListWebhooksResponse": { "fields": { - "versions": { + "webhooks": { "rule": "repeated", - "type": "Version", + "type": "Webhook", "id": 1 }, "nextPageToken": { @@ -14831,120 +14608,343 @@ } } }, - "GetVersionRequest": { + "GetWebhookRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Webhook" } } } }, - "CreateVersionRequest": { + "CreateWebhookRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Version" + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Webhook" + } + }, + "webhook": { + "type": "Webhook", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "UpdateWebhookRequest": { + "fields": { + "webhook": { + "type": "Webhook", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2 + } + } + }, + "DeleteWebhookRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Webhook" + } + }, + "force": { + "type": "bool", + "id": 2 + } + } + }, + "WebhookRequest": { + "oneofs": { + "query": { + "oneof": [ + "text", + "triggerIntent", + "transcript", + "triggerEvent" + ] + } + }, + "fields": { + "detectIntentResponseId": { + "type": "string", + "id": 1 + }, + "text": { + "type": "string", + "id": 10 + }, + "triggerIntent": { + "type": "string", + "id": 11, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Intent" + } + }, + "transcript": { + "type": "string", + "id": 12 + }, + "triggerEvent": { + "type": "string", + "id": 14 + }, + "languageCode": { + "type": "string", + "id": 15 + }, + "fulfillmentInfo": { + "type": "FulfillmentInfo", + "id": 6 + }, + "intentInfo": { + "type": "IntentInfo", + "id": 3 + }, + "pageInfo": { + "type": "PageInfo", + "id": 4 + }, + "sessionInfo": { + "type": "SessionInfo", + "id": 5 + }, + "messages": { + "rule": "repeated", + "type": "ResponseMessage", + "id": 7 + }, + "payload": { + "type": "google.protobuf.Struct", + "id": 8 + }, + "sentimentAnalysisResult": { + "type": "SentimentAnalysisResult", + "id": 9 + } + }, + "nested": { + "FulfillmentInfo": { + "fields": { + "tag": { + "type": "string", + "id": 1 + } + } + }, + "IntentInfo": { + "fields": { + "lastMatchedIntent": { + "type": "string", + "id": 1, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Intent" + } + }, + "displayName": { + "type": "string", + "id": 3 + }, + "parameters": { + "keyType": "string", + "type": "IntentParameterValue", + "id": 2 + }, + "confidence": { + "type": "float", + "id": 4 + } + }, + "nested": { + "IntentParameterValue": { + "fields": { + "originalValue": { + "type": "string", + "id": 1 + }, + "resolvedValue": { + "type": "google.protobuf.Value", + "id": 2 + } + } + } } }, - "version": { - "type": "Version", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" + "SentimentAnalysisResult": { + "fields": { + "score": { + "type": "float", + "id": 1 + }, + "magnitude": { + "type": "float", + "id": 2 + } } } } }, - "UpdateVersionRequest": { + "WebhookResponse": { + "oneofs": { + "transition": { + "oneof": [ + "targetPage", + "targetFlow" + ] + } + }, "fields": { - "version": { - "type": "Version", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } + "fulfillmentResponse": { + "type": "FulfillmentResponse", + "id": 1 }, - "updateMask": { - "type": "google.protobuf.FieldMask", - "id": 2, + "pageInfo": { + "type": "PageInfo", + "id": 2 + }, + "sessionInfo": { + "type": "SessionInfo", + "id": 3 + }, + "payload": { + "type": "google.protobuf.Struct", + "id": 4 + }, + "targetPage": { + "type": "string", + "id": 5, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Page" } - } - } - }, - "DeleteVersionRequest": { - "fields": { - "name": { + }, + "targetFlow": { "type": "string", - "id": 1, + "id": 6, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Flow" } } - } - }, - "LoadVersionRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" + }, + "nested": { + "FulfillmentResponse": { + "fields": { + "messages": { + "rule": "repeated", + "type": "ResponseMessage", + "id": 1 + }, + "mergeBehavior": { + "type": "MergeBehavior", + "id": 2 + } + }, + "nested": { + "MergeBehavior": { + "values": { + "MERGE_BEHAVIOR_UNSPECIFIED": 0, + "APPEND": 1, + "REPLACE": 2 + } + } } - }, - "allowOverrideAgentResources": { - "type": "bool", - "id": 2 } } }, - "CompareVersionsRequest": { + "PageInfo": { "fields": { - "baseVersion": { + "currentPage": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Page" } }, - "targetVersion": { + "displayName": { "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" - } + "id": 4 }, - "languageCode": { - "type": "string", + "formInfo": { + "type": "FormInfo", "id": 3 } + }, + "nested": { + "FormInfo": { + "fields": { + "parameterInfo": { + "rule": "repeated", + "type": "ParameterInfo", + "id": 2 + } + }, + "nested": { + "ParameterInfo": { + "fields": { + "displayName": { + "type": "string", + "id": 1 + }, + "required": { + "type": "bool", + "id": 2 + }, + "state": { + "type": "ParameterState", + "id": 3 + }, + "value": { + "type": "google.protobuf.Value", + "id": 4 + }, + "justCollected": { + "type": "bool", + "id": 5 + } + }, + "nested": { + "ParameterState": { + "values": { + "PARAMETER_STATE_UNSPECIFIED": 0, + "EMPTY": 1, + "INVALID": 2, + "FILLED": 3 + } + } + } + } + } + } } }, - "CompareVersionsResponse": { + "SessionInfo": { "fields": { - "baseVersionContentJson": { + "session": { "type": "string", - "id": 1 + "id": 1, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Session" + } }, - "targetVersionContentJson": { - "type": "string", + "parameters": { + "keyType": "string", + "type": "google.protobuf.Value", "id": 2 - }, - "compareTime": { - "type": "google.protobuf.Timestamp", - "id": 3 } } } @@ -14966,6 +14966,24 @@ "cc_enable_arenas": true }, "nested": { + "fieldBehavior": { + "rule": "repeated", + "type": "google.api.FieldBehavior", + "id": 1052, + "extend": "google.protobuf.FieldOptions" + }, + "FieldBehavior": { + "values": { + "FIELD_BEHAVIOR_UNSPECIFIED": 0, + "OPTIONAL": 1, + "REQUIRED": 2, + "OUTPUT_ONLY": 3, + "INPUT_ONLY": 4, + "IMMUTABLE": 5, + "UNORDERED_LIST": 6, + "NON_EMPTY_DEFAULT": 7 + } + }, "http": { "type": "HttpRule", "id": 72295728, @@ -15053,24 +15071,6 @@ } } }, - "fieldBehavior": { - "rule": "repeated", - "type": "google.api.FieldBehavior", - "id": 1052, - "extend": "google.protobuf.FieldOptions" - }, - "FieldBehavior": { - "values": { - "FIELD_BEHAVIOR_UNSPECIFIED": 0, - "OPTIONAL": 1, - "REQUIRED": 2, - "OUTPUT_ONLY": 3, - "INPUT_ONLY": 4, - "IMMUTABLE": 5, - "UNORDERED_LIST": 6, - "NON_EMPTY_DEFAULT": 7 - } - }, "methodSignature": { "rule": "repeated", "type": "string", @@ -16073,18 +16073,6 @@ } } }, - "Duration": { - "fields": { - "seconds": { - "type": "int64", - "id": 1 - }, - "nanos": { - "type": "int32", - "id": 2 - } - } - }, "Struct": { "fields": { "fields": { @@ -16172,6 +16160,18 @@ } } }, + "Duration": { + "fields": { + "seconds": { + "type": "int64", + "id": 1 + }, + "nanos": { + "type": "int32", + "id": 2 + } + } + }, "Timestamp": { "fields": { "seconds": {